Cufon('#slideshow h1, #home-topics h1', { fontFamily: 'Optima' });
Cufon('#content > header h1', { fontFamily: 'Trade Gothic Condensed Bold' });
Cufon('#current-section span, #content h2, #content h3, #news article header h1, #publication-search .header', { fontFamily: 'Optima' });
Cufon('#yahoo_menu_bar > .bd > ul > li > a', { fontFamily: 'Optima', hover: 'true' });

$(function() {
    // load the yui menus
    var oMenuBar = new YAHOO.widget.MenuBar("yahoo_menu_bar", {
    	autosubmenudisplay: true,
		zindex: 1000
	});
	var oMenu = new YAHOO.widget.Menu("sub-navigation", {
	    zindex: 1000
	});
    oMenuBar.render();
	oMenu.render();
	
	// home page slideshow
	$('body.home #slideshow').anythingFader({
		autoPlay: true,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not.
		delay: 5000,                    // How long between slide transitions in AutoPlay mode
		startStopped: false,            // If autoPlay is on, this can force it to start stopped
		animationTime: 500,             // How long the slide transition takes
		hashTags: true,                 // Should links change the hashtag in the URL?
		buildNavigation: false,          // If true, builds and list of anchor links to link to each slide
		pauseOnHover: false,             // If true, and autoPlay is enabled, the show will pause on hover
		startText: "Go",                // Start text
		stopText: "Stop"               // Stop text
	});
});
