var current_banners = ['bell', 'astronomy', 'cosi', 'mambazo'];

$(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
	
	astronomy: {
		image_url:"banners/astronomy.jpg",
		link_url:"http://oberlin.edu/artsguide/art-exhibitions/astronomy.shtml",
		html: "\
			<span class=\"h1\"><b>Astronomy</b> in Art</span>\
			<span class=\"h2\">August 31, 2009 &#8212;<br />December 20, 2009</span>\
			<span class=\"blockquote\">This year marks the International Year of Astronomy. Explore how the celestial bodies have inspired visual artists in this exhibit at the Allen Memorial Art Museum.</span>\
			",
		cl: "ae"
	},
	
	// Opera Theater
	
	cosi: {
		image_url:"banners/OT-cosi.jpg",
		link_url:"http://oberlin.edu/artsguide/opera-theater/cosi.shtml",
		html: "\
			<span class=\"h1\">Così fan tutte</span>\
			<span class=\"h2\">Wednesday, November 18, 2009, 8 p.m. &#8212; <br>\
			Sunday, November 22, 2009, 2 p.m. </span>\
			<span class=\"blockquote\">&ldquo;A faithful woman is like a phoenix: all believe in it, but no one has seen it.&rdquo;</span>\
			<cite>&#8212; Così fan tutte</cite>\
			",
		cl: "ot" 
	},

	candide: {
		image_url:"banners/OT-candide.jpg",
		link_url:"http://oberlin.edu/artsguide/opera-theater/candide.shtml",
		html: "\
			<span class=\"h1\">Candide</span>\
			<span class=\"h2\">Wednesday, March 17, 2010, 8 p.m. &#8212; <br>\
			Sunday, March 21, 2010, 2 p.m. </span>\
			<span class=\"blockquote\">&ldquo;Once one dismisses the rest of all possible worlds, one finds that this is the best of all possible worlds!&rdquo;</span>\
			<cite>&#8212;Candide</cite>\
			",
		cl: "ot" 
	},
	
    // Artist Recital Series

    graves: {
        image_url: "banners/graves.jpg",
        link_url: "http://oberlin.edu/artsguide/artist-recital-series/graves.shtml",
        html: "\
			<span class=\"h1\">Denyce <b>Graves</b></span>\
			<span class=\"h2\">October 11, 2009, 4 p.m.</span>\
			<span class=\"blockquote\">&ldquo;Put simply: if the human voice has the power to move you, you will be touched by Denyce Graves.&rdquo;</span>\
			<cite>&ndash; Atlanta Journal-Constitution</cite>\
			",
        cl: "ar"
    },

    bell: {
        image_url: "banners/AR-bell.jpg",
        link_url: "http://oberlin.edu/artsguide/artist-recital-series/bell.shtml",
        html: "\
		<span class=\"h1\">Joshua <b>Bell</b></span>\
		<span class=\"h1\"><b>Jeremy</b> Denk</span>\
		<span class=\"h2\">Wednesday, February 3, 2010, 8 p.m.</span>\
		<span class=\"blockquote\">&ldquo;These two musicians are an ideally matched duo, with Mr. Denk’s fiery playing complementing Mr. Bell’s luxuriant singing tone.&rdquo;</span>\
		<cite>&#8212; The New York Times</cite>\
		",
        cl: "ar"
    },

    brass: {
        image_url: "banners/AR-brass.jpg",
        link_url: "http://oberlin.edu/artsguide/artist-recital-series/brass.shtml",
        html: "\
		<span class=\"h1\">American Brass Quintet</span>\
		<span class=\"h2\">Sunday, April 11, 2010, 8 p.m.</span>\
		<span class=\"blockquote\">&ldquo;A staggering display of technical virtuosity and musical sophistication.&rdquo;</span>\
		<cite>&#8212; The New York Times</cite>\
		",
        cl: "ar"
    },

    co: {
        image_url: "banners/AR-CO.jpg",
        link_url: "http://oberlin.edu/artsguide/artist-recital-series/CO.shtml",
        html: "\
		<span class=\"h1\">The <b>Cleveland</b> Orchestra</span>\
		<span class=\"h2\">Friday, April 9, 2010, 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 …&rdquo;</span>\
		<cite>&#8212; Time</cite>\
		",
        cl: "ar"
    },

    horne: {
        image_url: "banners/AR-horne.jpg",
        link_url: "http://oberlin.edu/artsguide/artist-recital-series/bonus.shtml",
        html: "\
		<span class=\"h1\">Marylin <b>Horne</b></span>\
		<span class=\"h2\">Friday, October 30, 2009, 8 p.m. <br> Sunday, November 1, 2009, 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"
    },

    koh: {
        image_url: "banners/AR-koh.jpg",
        link_url: "http://oberlin.edu/artsguide/artist-recital-series/koh.shtml",
        html: "\
		<span class=\"h1\"><b>Jennifer</b> Koh</span>\
		<span class=\"h2\">October 29, 2009, 8 p.m.</span>\
		<span class=\"blockquote\">&ldquo;… a risk-taking, high-octane player of the kind who grabs the listener by the ears and refuses to let go.&rdquo;</span>\
		<cite>&#8212; The Strad</cite>\
		",
        cl: "ar"
    },

    lynch: {
        image_url: "banners/AR-lynch.jpg",
        link_url: "http://oberlin.edu/artsguide/artist-recital-series/bonus.shtml",
        html: "\
		<span class=\"h1\">Lester <b>Lynch</b></span>\
		<span class=\"h2\">Wednesday, December 2, 2009, 7 p.m.</span>\
		<span class=\"blockquote\">A prominent Verdi baritone known for his rich, commanding voice, Elyria native Lester Lynch has performed in operas and concerts throughout the U.S.</span>\
		",
        cl: "ar"
    },

    sphinx: {
        image_url: "banners/AR-sphinx.jpg",
        link_url: "http://oberlin.edu/artsguide/artist-recital-series/sphinx.shtml",
        html: "\
		<span class=\"h1\"><b>Sphinx</b> Chamber Orchestra</span>\
		<span class=\"h2\">Sunday, September 20, 2009, 3 p.m.</span>\
		<span class=\"blockquote\">&ldquo;Classical music is an art form that thrives on new interpretations and cultural influences.&rdquo;</span>\
		<cite>&#8212; Aaron Dworkin, Founder and President, The Sphinx Organization</cite>\
		",
        cl: "ar"
    },

    takacs: {
        image_url: "banners/AR-takacs.jpg",
        link_url: "http://oberlin.edu/artsguide/artist-recital-series/takacs.shtml",
        html: "\
		<span class=\"h1\"><b>Takàcs</b> String Quartet</span>\
		<span class=\"h2\">Thursday, March 18, 2010, 8 p.m.</span>\
		<span class=\"blockquote\">&ldquo;The Takács might play this repertoire [Beethoven] better than any other quartet in the past or present.&rdquo;</span>\
		<cite>&#8212; The Plain Dealer</cite>\
		",
        cl: "ar"
    },

    // Convocation Series

    amory: {
        image_url: "banners/amory.jpg",
        link_url: "http://oberlin.edu/artsguide/convocation-series/lovins.shtml",
        html: "\
			<span class=\"h1\">Amory <b>Lovins</b></span>\
			<span class=\"h2\">September 3, 2009</span>\
			<span class=\"blockquote\">&ldquo;Public discourse about climate change has resulted in the erroneous idea that it&#8217;s all about cost, burden, and sacrifice.&rdquo;</span>\
			<cite>&ndash; Amory Lovins</cite>\
			",
        cl: "cs"
    },

    brown: {
        image_url: "banners/CS-brown.jpg",
        link_url: "http://oberlin.edu/artsguide/convocation-series/brown.shtml",
        html: "\
		<span class=\"h1\">Sherrod <b>Brown</b></span>\
		<span class=\"h2\">October 4, 2009, 4 p.m.</span>\
		<span class=\"blockquote\">&ldquo;Most of America recognizes that health care reform is not just a moral imperative, it’s become an economic imperative. There’s no way to fix our economy without fixing our health care system.&rdquo;</span>\
		<cite>&#8212; Sherrod Brown</cite>\
		",
        cl: "cs"
    },

    diaz: {
        image_url: "banners/CS-diaz.jpg",
        link_url: "http://oberlin.edu/artsguide/convocation-series/diaz.shtml",
        html: "\
		<span class=\"h1\"><b>Junot</b> Dìaz</span>\
		<span class=\"h2\">Wednesday, September 23, 2009 8 p.m.</span>\
		<span class=\"blockquote\">&ldquo;You really want to know what being an X-Man feels like? Just be a smart bookish boy of color in a contemporary U.S. ghetto. Mamma mia! Like having bat wings or a pair of tentacles growing out of your chest.&rdquo;</span>\
		<cite>&#8212; Junot Dìaz, The Brief Wondrous Life of Oscar Wao</cite>\
		",
        cl: "cs"
    },

    helms: {
        image_url: "banners/CS-helms.jpg",
        link_url: "http://oberlin.edu/artsguide/convocation-series/helms.shtml",
        html: "\
		<span class=\"h1\">Ed <b>Helms</b></span>\
		<span class=\"h2\">Saturday, September 12, 2009 8 p.m.</span>\
		<span class=\"blockquote\">&ldquo;College made me realize that I have no patience for arrogant, dogmatic people and that I must therefore devote my life to undermining and satirizing those people.&rdquo;</span>\
		<cite>&#8212; Ed Helms</cite>\
		",
        cl: "cs"
    },

    kuttner: {
        image_url: "banners/CS-kuttner.jpg",
        link_url: "http://oberlin.edu/artsguide/convocation-series/kuttner.shtml",
        html: "\
		<span class=\"h1\">Robert <b>Kuttner</b></span>\
		<span class=\"h2\">Tuesday, March 9, 2010 8 p.m.</span>\
		<span class=\"blockquote\">&ldquo;Barack Obama … will be a great president — or a failed one.&rdquo;</span>\
		<cite>&#8212; Robert Kuttner, Obama's Challenge</cite>\
		",
        cl: "cs"
    },

    mambazo: {
        image_url: "banners/CS-mambazo.jpg",
        link_url: "http://oberlin.edu/artsguide/convocation-series/mambazo.shtml",
        html: "\
		<span class=\"h1\"><b>Ladysmith</b> Black Mambazo</span>\
		<span class=\"h2\">Tuesday, February 23, 2010 8 p.m.</span>\
		<span class=\"blockquote\">&ldquo;… the spiritual and musical energy was palpable among the sold-out crowd.&rdquo;</span>\
		<cite>&#8212; The Philadelphia Inquirer</cite>\
		",
        cl: "cs"
    },

    sapolsky: {
        image_url: "banners/CS-sapolsky.jpg",
        link_url: "http://oberlin.edu/artsguide/convocation-series/sapolsky.shtml",
        html: "\
		<span class=\"h1\">Robert <b>Sapolsky</b></span>\
		<span class=\"h2\">Thursday, April 8, 2010 8 p.m.</span>\
		<span class=\"blockquote\">&ldquo;How many hippos worry about whether Social Security is going to last as long as they will, or what they are going to say on a first date? Viewed from the perspective of the evolution of the animal kingdom, sustained psychological stress is a recent invention.&rdquo;</span>\
		<cite>&#8212; Robert Sapolsky, Why Zebras Don't Get Ulcers</cite>\
		",
        cl: "cs"
    },

    // Theater & Dance

    seagull: {
        image_url: "banners/TD-seagull.jpg",
        link_url: "http://oberlin.edu/artsguide/theater-dance/seagull.shtml",
        html: "\
			<span class=\"h1\">The <b>Seagull</b></span>\
			<span class=\"h2\">Thursday, December 10, 2009, 8 p.m. &#8212; <br>\
			Saturday, December 12, 2009, 8 p.m. </span>\
			<span class=\"blockquote\">The Seagull, Anton ChekhovÕs masterpiece, explores the suffering and torment of a young artist, a man in the throes of unrequited love and surrounded by family and friends whose own ruined hopes and dreams drag him down.</span>\
			",
        cl: "td"
    },

    apparel: {
        image_url: "banners/TD-apparel.jpg",
        link_url: "http://oberlin.edu/artsguide/theater-dance/apparel.shtml",
        html: "\
			<span class=\"h1\">Intimate <b>Apparel</b></span>\
			<span class=\"h2\">Thursday, February 11, 2010, 8 p.m. &#8212; <br>\
			Saturday, February 13, 2010, 8 p.m. </span>\
			<span class=\"blockquote\">Set in New York at the turn of the last century, Intimate Apparel tells the story of Esther, an African American seamstress who makes her living creating beautiful lingerie for wealthy women on both sides of the social divide, from socialites to ÒfallenÓ women. A 2009 Pulitzer Prize winner, Lynn Nottage is a rising star; Intimate Apparel has won five national awards for best play.</span>\
			",
        cl: "td"
    },

    beautiful: {
        image_url: "banners/TD-beautiful.jpg",
        link_url: "http://oberlin.edu/artsguide/theater-dance/beautiful.shtml",
        html: "\
			<span class=\"h1\"><b>Beautiful</b> Thing</span>\
			<span class=\"h2\">Thursday, April 22, 2010, 8 p.m. &#8212; <br>\
			Saturday, April 24, 2010, 8 p.m. </span>\
			<span class=\"blockquote\">É seldom has there been a play which so exquisitely and joyously depicts what itÕs like to be 16, in the first flush of love and full of optimism.</span>\
			<cite>&#8212; The Guardian</cite>\
			",
        cl: "td"
    },

    dance: {
        image_url: "banners/TD-dance.jpg",
        link_url: "http://oberlin.edu/artsguide/theater-dance/dance.shtml",
        html: "\
			<span class=\"h1\">Oberlin <b>Dance</b></span>\
			<span class=\"h2\">Friday, May 7, 2010, 8 p.m.<br>\
			Saturday, May 8, 2010, 8 p.m. </span>\
			<span class=\"blockquote\">Focused on the experience of coming of age in different times and under different circumstances, this concert features dances by students and faculty. The performance is a dialogue that springs from the dance-making experience. </span>\
			",
        cl: "td"
    }
}

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