$(document).ready(function () {	
	$('li.mainMenu').hoverIntent(
		function() { $('.subMenuContainer', this).slideDown('fast'); },					   
		function() { $('.subMenuContainer', this).slideUp('fast'); }
	).css('height','33px');

	$('li.mainMenu').hover(
		function() { $(this).addClass('mainMenuHover'); },					   
		function() { $(this).removeClass('mainMenuHover'); }					   
	).css('height','33px');
			
	$("#biosContainer").jCarouselLite({
        btnNext: ".next",
        btnPrev: ".prev",
		circular: true,
		scroll: 3, //1
		auto: 5000,
		speed: 1200 // 600
		});

	$("#biosContainer a.tooltip").tooltip({ 
		bodyHandler: function() { 
			return $($(this).attr("rel")).html(); 
		}, 
		track: true, 
		delay: 0, 
		showURL: false, 
		opacity: 1, 
		fixPNG: true, 
		left: -10,
		top: -180
	});
	
	$(".colorbox").colorbox();
	
	var randomNum = Math.floor(Math.random()*14);
	$('div#callouts div.callout:eq(' + randomNum + ')').css("display", "block");


});

var flashvars = false;
var params = { wmode: "transparent", scale: "noscale", bgcolor: "#343434" };
swfobject.embedSWF("flash/ARDH_flashBg.swf", "flashMovie", "100%", "695", "9.0.0","flash/expressInstall.swf", flashvars, params);

