var current_banners = ['collaboration', 'tallis', 'soweto', 'horne', 
];

$(function(){
	var banners = new BannerList();
	
	for(key in current_banners){
		banners.add( new Banner(banner_list[current_banners[key]]) );
	}
	
	banners.render_in_element("#banner");
	// set the interval
	var interval = setInterval(banners.goNext,5000);
	// reset the timer whenever they click on the nav
	$(banners.nav).click(function(){
		window.clearInterval(interval);
		interval = setInterval(banners.goNext,5000);
	});
});

var banner_list = {
	
	// Art Exhibitions
	
	amam: {
		image_url:"banners/amamreopening.jpg",
		link_url:"http://oberlin.edu/artsguide/art-exhibitions/future.shtml",
		html: "\
			<span class=\"h1\">Foundation for Our <b>Future</b></span>\
			<span class=\"h2\">Museum closed January 2010 to late spring 2011</span>\
			<span class=\"blockquote\">Construction has begun on the north side of the AMAM building in preparation for the addition of a geothermal well field.</span>\
			",
		cl: "ae"
	},
	
	// Opera Theater

	sortileges: {
	image_url:"banners/sortileges.jpg",
	link_url:"http://oberlin.edu/artsguide/opera-theater/sortileges.shtml",
	html: "\
		<span class=\"h1\">L&rsquo;Heure espagnole &amp; L&rsquo;Enfant et les <b>sortileges</b></span>\
		<span class=\"h2\">Four shows. Opens Wed., March 14, 2012 &#124; 8 p.m.</span>\
		",
	cl: "ot" 
	},
	
	wedding: {
	image_url:"banners/wedding.jpg",
	link_url:"http://oberlin.edu/artsguide/opera-theater/wedding.shtml",
	html: "\
		<span class=\"h1\">A <b>Wedding</b></span>\
		<span class=\"h2\">Four shows. Opens Nov. 16, <br />2011 &#124; 8 p.m.</span>\
		<span class=\"blockquote\">&ldquo;Based on Robert Altman&rsquo;s 1978 witty and satirical film, A Wedding depicts the comedic drama of two hilariously dysfunctional families during a couple&rsquo;s wedding.&rdquo;</span>\
		",
	cl: "ot" 
	},

	// Theater and Dance

	collaboration: {
	image_url:"banners/mcintyre.jpg",
	link_url:"http://oberlin.edu/artsguide/theater-dance/collaboration.shtml",
	html: "\
		<span class=\"h1\">why i had to dance</span>\
		<span class=\"h2\">Thurs. to Sat., Feb. 9-11, 2012 &#124; 8 p.m.</span>\
		<span class=\"blockquote\">Experience the world premiere of this animated journey of dance through time, over generations and across geography brought to life on stage. </span>\
		",
	cl: "td" 
	},

	compromise: {
	image_url:"banners/compromise.jpg",
	link_url:"http://oberlin.edu/artsguide/theater-dance/compromise.shtml",
	html: "\
	<span class=\"h1\">The <b>Compromise</b>: 1895</span>\
		<span class=\"h2\">Thurs. to Sat., April 19-21, 2012 &#124; <br />8 p.m.</span>\
		<span class=\"blockquote\"><em>The Compromise: 1895</em>, a new play by Gabriel Emeka, explores the emergence of a prominent black college and its dynamic founder whose words and works come to capture the attention of the entire nation.</span>\
		",
	cl: "td" 
	},

	eightlines: {
	image_url:"banners/eightlines.jpg",
	link_url:"http://oberlin.edu/artsguide/theater-dance/eightlines.shtml",
	html: "\
	<span class=\"h1\">Eight <b>Lines</b></span>\
		<span class=\"h2\">Fri., May 11 &amp; Sat, May 12, 2012 &#124; <br />8 p.m. </span>\
		<span class=\"blockquote\"><em>Reich&rsquo;s <em>Eight Lines</em> requires the orchestra to break with tradition and move about the stage as they perform on their instruments.</span>\
		",
	cl: "td" 
	},		  

	honey: {
	image_url:"banners/honey.jpg",
	link_url:"http://oberlin.edu/artsguide/theater-dance/honey.shtml",
	html: "\
	<span class=\"h1\"><b>Honey</b> on My Lips</span>\
		<span class=\"h2\">Fri., May 11 &amp; Sat., May 12, 2012 &#124; <br />8 p.m. </span>\
		<span class=\"blockquote\"><em><em>Honey on My Lips</em>, featuring Cleveland Arts Prize winner and Visiting Professor of Percussion Jamey Haddad, is choreographed for 12 dancers and is set to music by four African composers.</span>\
		",
	cl: "td" 
	},		  	
	
	tommy: {
	image_url:"banners/tommy.jpg",
	link_url:"http://oberlin.edu/artsguide/theater-dance/tommy.shtml",
	html: "\
		<span class=\"h1\">Where Has <b>Tommy Flowers</b> Gone?</span>\
		<span class=\"h2\">Thurs, to Sat., Dec. 8-10, 2011 &#124; 8 p.m.</span>\
		<span class=\"blockquote\">Presented as a series of skits, Terrence McNally&rsquo;s biting, hilarious, touching, and totally original play captures the essence of the &rsquo;60s &ldquo;now-generation&rdquo; through the life and attitude of one Tommy Flowers.</span>\
		",
	cl: "td" 
	},
	
    // Artist Recital Series

	apollosfire: {
		image_url:"banners/apollosfire.jpg",
		link_url:"http://oberlin.edu/artsguide/artist-recital-series/apollosfire.shtml",
		html: "\
			<span class=\"h1\">Apollo&rsquo;s <b>Fire</b></span>\
			<span class=\"h2\">Fri., Jan. 20, 2012	&#124; 8 p.m.</span>\
			<span class=\"blockquote\">&ldquo;Apollo&rsquo;s Fire is one of the brightest lights of period-instrument playing in the United States&hellip; arguably the most distinctive in sound and memorable in style. Its trademark qualities:  expressive subtlety, exuberance and passion.&rdquo;</span>\
			<cite>&ndash;<em>Classical Music Magazine</em>, London</cite>\
			",
		cl: "ar"
	},	

	cleorch: {
		image_url:"banners/cleorch.jpg",
		link_url:"http://oberlin.edu/artsguide/artist-recital-series/cleorch.shtml",
		html: "\
			<span class=\"h1\">The Cleveland <b>Orchestra</b></span>\
			<span class=\"h2\">Wed., Jan. 18, 2012 &#124; 8 p.m.</span>\
			<span class=\"blockquote\">&ldquo;No other American orchestra can rival its combination of virtuosic technique, consummate ensemble playing, and rich, burnished tone&hellip;&rdquo;</span>\
			<cite>&ndash;<em>Time</em></cite>\
			",
		cl: "ar"
	},
	
	denk: {
		image_url:"banners/denk.jpg",
		link_url:"http://oberlin.edu/artsguide/artist-recital-series/denk.shtml",
		html: "\
			<span class=\"h1\">Jeremy <b>Denk</b> &rsquo;90 piano</span>\
			<span class=\"h2\">Thurs., Jan. 19, 2012 &#124; 8 p.m.</span>\
			<span class=\"blockquote\">&ldquo;Bracing, effortlessly virtuosic, and utterly joyous.&rdquo;</span>\
			<cite>&ndash;<em>New York Times</em></cite>\
			",
		cl: "ar"
	},	
	
	hancock: {
		image_url:"banners/hancock.jpg",
		link_url:"http://oberlin.edu/artsguide/artist-recital-series/hancock.shtml",
		html: "\
			<span class=\"h1\">Herbie <b>Hancock</b></span>\
			<span class=\"h2\">Tues., March 13, 2012 &#124; 8 p.m.</span>\
			<span class=\"blockquote\">&ldquo;Herbie was the step after Bud Powell and Thelonious Monk, and I haven&rsquo;t heard anybody yet who has come after him.&rdquo;</span>\
			<cite>&ndash; Miles Davis</cite>\
			",
		cl: "ar"
	},			

   	horne: {
	image_url:"banners/horne.jpg",
	link_url:"http://oberlin.edu/artsguide/artist-recital-series/bonus.shtml",
	html: "\
		<span class=\"h1\">Marilyn <b>Horne</b></span>\
		<span class=\"h2\">Fri., Feb. 24, 2012 &#124; 8 p.m.<br>\
		Sun., Feb. 26, 2012 &bull; 2 p.m.</span>\
		<span class=\"blockquote\">One of the greatest operatic mezzo-sopranos in history, Marilyn Horne returns to the Oberlin Conservatory of Music this fall for a residency as Distinguished Professor of Voice.</span>\
		",
	cl: "ar" 
	},

	ice: {
		image_url:"banners/ice.jpg",
		link_url:"http://oberlin.edu/artsguide/artist-recital-series/ice.shtml",
		html: "\
			<span class=\"h1\">International Contemporary <b>Ensemble</b></span>\
			<span class=\"h2\">Sat., Jan. 21, 2012 &#124; 8 p.m.</span>\
			<span class=\"blockquote\">&ldquo;&hellip;the International Contemporary Ensemble has proved itself one of the most adventurous and accomplished groups in new music.&rdquo;</span>\
			<cite>&ndash; New York Times</cite>\
			",
		cl: "ar"
	},	
	
	perlman: {
		image_url:"banners/perlman.jpg",
		link_url:"http://oberlin.edu/artsguide/artist-recital-series/perlman.shtml",
		html: "\
			<span class=\"h1\">Itzhak <b>Perlman</b> violin</span>\
			<span class=\"h2\">Sun., Sept. 11, 2011 &#124; 8 p.m.</span>\
			<span class=\"blockquote\">&ldquo;Perlman&rsquo;s playing&hellip; displayed the knowing maturity of a convincing artist&hellip; [his] dulcet sound soared by way of far-reaching songlike phrases; technical feats flickered with jesterlike confidence.&rdquo;</span>\
			<cite>&ndash;<em>Washington Post</em></cite>\
			",
		cl: "ar"
	},
	
	tallis: {
		image_url:"banners/tallis.jpg",
		link_url:"http://oberlin.edu/artsguide/artist-recital-series/tallis.shtml",
		html: "\
			<span class=\"h1\">The <b>Tallis</b> Scholars</span>\
			<span class=\"h2\">Wed., Feb. 15, 2012 &#124; 8 p.m.</span>\
			<span class=\"blockquote\">&ldquo;Anyone familiar with Renaissance music knows that this group has attained superstardom among its ilk.&rdquo;</span>\
			<cite>&ndash;<em>Boston Globe</em></cite>\
			",
		cl: "ar"
	},		
	
    // Convocation Series

 	alter: {
		image_url:"banners/alter.jpg",
		link_url:"http://oberlin.edu/artsguide/convocation-series/alter.shtml",
		html: "\
			<span class=\"h1\">Jonathan <b>Alter</b> &#124; Ross Douthat</span>\
			<span class=\"h2\">Wed., March 7, 2012	&bull; 7:30 p.m.</span>\
			<span class=\"blockquote\">&ldquo;Jonathan Alter is a diligent political reporter with more sources than the Mississippi.&rdquo;</span>\
			<cite>&ndash;<em>Chicago Sun-Times</em></cite>\
			",
		cl: "cs"
	},	    

 	danticat: {
		image_url:"banners/danticat.jpg",
		link_url:"http://oberlin.edu/artsguide/convocation-series/danticat.shtml",
		html: "\
			<span class=\"h1\">Edwidge <b>Danticat</b></span>\
			<span class=\"h2\">Thurs., April 19, 2012 &#124; 7:30 p.m.</span>\
			<span class=\"blockquote\">&ldquo;Danticat is a marvelous writer, blending personal anecdotes, history, and larger reflections without turning the immigrant writer into a victim, misunderstood by all.&rdquo;</span>\
			<cite>&ndash;<em>San Francisco Chronicle</em></cite>\
			",
		cl: "cs"
	},		
    
 	douthat: {
		image_url:"banners/douthat.jpg",
		link_url:"http://oberlin.edu/artsguide/convocation-series/douthat.shtml",
		html: "\
			<span class=\"h1\">Jonathan Alter &amp; Ross <b>Douthat</b></span>\
			<span class=\"h2\">Wed., March 7, 2012 &#124; 7:30 p.m.</span>\
			<span class=\"blockquote\">&ldquo;Mr. Douthat writes beautifully, with a rare lyricism.&rdquo;</span>\
			<cite>&ndash;<em>Wall Street Journal</em></cite>\
			",
		cl: "cs"
	},	

 	fenty: {
		image_url:"banners/fenty.jpg",
		link_url:"http://oberlin.edu/artsguide/convocation-series/fenty.shtml",
		html: "\
			<span class=\"h1\">Adrian <b>Fenty</b></span>\
			<span class=\"h2\">Tues., Sept. 13, 2011 &#124; <br />7:30 p.m.</span>\
			<span class=\"blockquote\">&ldquo;Politicians are going to have to make tough decisions and risk their political future because it&rsquo;s the right thing to do.&rdquo;</span>\
			<cite>&ndash; Adrian Fenty</cite>\
			",
		cl: "cs"
	},

 	glass: {
		image_url:"banners/glass.jpg",
		link_url:"http://oberlin.edu/artsguide/convocation-series/glass.shtml",
		html: "\
			<span class=\"h1\">Ira <b>Glass</b></span>\
			<span class=\"h2\">Sat., Sept. 24, 2011 &#124; 8 p.m.</span>\
			<span class=\"blockquote\">&ldquo;Mr. Glass is a journalist but also a storyteller who filters his interviews and impressions through a distinctive literary imagination, an eccentric intelligence, and a sympathetic heart.&rdquo;</span>\
			<cite>&ndash;<em>New York Times</em></cite>\
			",
		cl: "cs"
	},

 	lanier: {
		image_url:"banners/lanier.jpg",
		link_url:"http://oberlin.edu/artsguide/convocation-series/lanier.shtml",
		html: "\
			<span class=\"h1\">Jaron <b>Lanier</b></span>\
			<span class=\"h2\">Wed., Nov. 9, 2011 &#124; 7:30 p.m.</span>\
			<span class=\"blockquote\">&ldquo;At the bottom of Lanier&rsquo;s cyber-tinkering is a fundamentally humanist faith in technology&hellip; His mind is a fascinating place to hang out.&rdquo;</span>\
			<cite>&ndash;<em>Los Angeles Times</em></cite>\
			",
		cl: "cs"
	},		
	
 	rushdie: {
		image_url:"banners/rushdie.jpg",
		link_url:"http://oberlin.edu/artsguide/convocation-series/rushdie.shtml",
		html: "\
			<span class=\"h1\">Salman <b>Rushdie</b></span>\
			<span class=\"h2\">Wed., Oct. 12, 2011 &#124; 7:30 p.m.</span>\
			<span class=\"blockquote\">&ldquo;Rushdie helps us escape from the present into a dreamlike past that ultimately makes us more aware of the dangers and illusions of our everyday lives.&rdquo;</span>\
			<cite>&ndash;<em>Chicago Tribune</em></cite>\
			",
		cl: "cs"
	},		

 	soweto: {
		image_url:"banners/soweto.jpg",
		link_url:"http://oberlin.edu/artsguide/convocation-series/soweto.shtml",
		html: "\
			<span class=\"h1\"><b>Soweto</b> Gospel Choir</span>\
			<span class=\"h2\">Tues., Feb. 21, 2012 &#124; 7:30 p.m.</span>\
			<span class=\"blockquote\">&ldquo;&hellip;a cornucopia of remarkable voices: sharp, sweet, kindly, raspy and incantatory leads above a magnificently velvety blend&hellip; the music was both meticulous and unstoppable&hellip; the songs were both spirited and spectacular.&rdquo;</span>\
			<cite>&ndash;<em>The New York Times</em></cite>\
			",
		cl: "cs"
	}				

}

Cufon.replace('.ban_text .h1');
Cufon.replace('.ban_text .blockquote');
Cufon.replace('.ban_text cite');
Cufon.replace('.ban_text .h2', { fontFamily: 'Clarendon' });
