$(document).ready(function(){ 
/* Scoller */	
	$(".scroll").scrollable({size: 1, clickable: false}).circular().autoscroll({ 
		steps: 1, 
		interval: 10000,
		autopause: true
	});

/* News Scroller */	
	$('#newsscroller').innerfade({ 
		animationtype: 'slide',
		speed: 1000, 
		timeout: 5500, 
		type: 'sequence',
		containerheight: '17px' 
	}); 

/* Main Nav  */	
     $("ul#mainnav").supersubs({ 
 	    minWidth: 15, // minimum width of sub-menus in em units 
 	    maxWidth: 27, // maximum width of sub-menus in em units 
 	    extraWidth: 1 // extra width can ensure lines don't sometimes turn over 
 	    // due to slight rounding differences and font-family 
     })
     .superfish({ 
	     delay: 750, // one second delay on mouseout 
	     speed: 'fast', // faster animation speed 
	     autoArrows: true, // disable generation of arrow mark-up 
	     dropShadows: false // disable drop shadows 
     }); 	

/* Tables */
	$('table#presstable tr:even, table.documents tr:even').addClass('even');
	$('table#presstable td:last-child').addClass('download');

// Colorbox	
	$("#gallery a").colorbox();

/* Flowplayer */
	$("a[rel*='overlay']").overlay({
		onBeforeLoad: function() {
			this.expose();	
		},				
		onLoad: function(content) {
			this.getContent().find("a.player").flowplayer(0).load();
		},
		onClose: function(content) {
			$f().unload();
			$.expose.close();
		}
	});				
	$("a.player").flowplayer("media/swf/flowplayer-3.1.1.swf"); 

/* News Display */
$("ul#years").tabs("div#panels > div.yeargroup",{current: 'selected'});


});

