




jQuery(document).ready(function(){
	
	jQuery("#primaryNav li:last").addClass("last_item");
	
	
	jQuery(".float_followUs").hover(
		function(){ jQuery(this).toggleClass("followIsOpen").animate({left: 0}, 150); },
		function(){ jQuery(this).toggleClass("followIsOpen").delay(1000).animate({left: 70}, 150); }
	);
	
	if(document.getElementById("divImages"))
	{
	    jQuery("#divImages a").lightBox();
	}
	

	jQuery(".sidebar").height() > jQuery(".maincontent").height() ? jQuery(".maincontent").height(jQuery(".sidebar").height()-5) : null;
	
	jQuery(".fadeHover").hover(
		function(){ jQuery(this).fadeTo("fast", 0.5);	},
		function(){ jQuery(this).fadeTo("fast", 1.0); }
	);
	
	if(document.getElementById("homepage_flash"))
	{
		var so = new SWFObject("flash/home_banner_phase2.swf", "flash_area", "540", "240", "8", "#ffffff");
		so.addParam("wmode", "transparent");
		so.addVariable("xmlFile", "/flash/banners.xml");
		so.write("homepage_flash");  
	}

	// =========================================== ASSIGN ZEBRA CLASSES TO EVERY SECOND ITEM 
	var i = 0;
	jQuery(".side_whitePapers li").each( function(i){
		i % 2 == 0 ? jQuery(this).addClass("zebra_row_0") : jQuery(this).addClass("zebra_row_1");
		i++;
	})
	i=0;
	jQuery(".side_coursesSearch li").each( function(i){
		i % 2 == 0 ? jQuery(this).addClass("zebra_row_0") : jQuery(this).addClass("zebra_row_1");
		i++;
	})
	i=0;
	jQuery(".formRowWrapper").each( function(i){
		i % 2 == 0 ? jQuery(this).addClass("zebra_row_0") : jQuery(this).addClass("zebra_row_1");
		i++;
	})
	
	
	
	
	
	
	
});


