
$(function(){

	// Accordion
	$("#accordion").accordion({ header: "h3" });
	$("#news_accordion").accordion({ header: "h3", autoHeight: false });
	
	//hover states on the static widgets
	$('#dialog_link, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	


		$("div#results div").each(function(){  
		var percentage = $(this).text();  
		$(this).css({width: "0%"}).animate({  
		width: percentage}, 2000);  
	});

	if ($('#didyouknow').length)
	{
		$('#didyouknow').hide();
		$('#didyouknow').fadeIn(3000);
	}
	
});


$('#indexImage').cycle({ 
fx:    'fade', 
pause:  1 ,
random: 1
});


$(document).ready(   function () {  
// #flashTest1 is the selector   
	$('#logosFlash').flash( {  
		//wmode: "transparent"
		swf: 'public/swf/logos.swf', 
		width: 883,
		height: 134});   
		});  
		
$(document).ready(   function () {  
// #flashTest1 is the selector   
	$('#areamap').flash( {  
		//wmode: "transparent"
		swf: 'public/swf/area-map.swf', 
		width: 480,
		height: 570});   
		});  
		
$(document).ready(   function () {  
// #flashTest1 is the selector   
	$('#countdown').flash( {  
		//wmode: "transparent"
		swf: 'public/swf/countdown-wosrsf.swf', 
		width: 160,
		height: 110});   
		});  
		
/*$(document).ready(function(){
	$('div#middle div#news_accordion div > h3:odd').css("background-color", "#FFFBBF");
});*/
