// Copyright QScend 2010
/*
this file controls the hover elements for the main nav of QScend's site
6-3-2010 TL
*/
jQuery(document).ready(function (){
	jQuery("#anchor").hover(
		function(){
			hideAllHeaders();
			//mouseover /enable the what we do div
			jQuery(".bg_box_what_we_do").css("display","inline");
		}, 
		function(){
	});
	jQuery("#anchor2").hover(
		function(){
			hideAllHeaders();
			//mouseover /enable the what we do div
			jQuery(".bg_box_why_qscend").css("display","inline");
		}, 
		function(){
			//mouseout
			jQuery(".bg_box_why_qscend").css("display","none");
			//restore the what we do
			jQuery(".bg_box_what_we_do").css("display","inline");
	});
	jQuery("#anchor4").hover(
		function(){
			hideAllHeaders();
			//mouseover /enable the what we do div
			jQuery(".bg_box_get_started").css("display","inline");
		}, 
		function(){
			//mouseout
			jQuery(".bg_box_get_started").css("display","none");
			//restore the what we do
			jQuery(".bg_box_what_we_do").css("display","inline");
	});
	jQuery("#anchor3").hover(
		function(){
			hideAllHeaders();
			//mouseover /enable the what we do div
			jQuery(".bg_box_training").css("display","inline");
		}, 
		function(){
			//mouseout
			jQuery(".bg_box_training").css("display","none");
			//restore the what we do
			jQuery(".bg_box_what_we_do").css("display","inline");
	});
});
function hideAllHeaders(){
	var headerNames = ["bg_box_what_we_do","bg_box_why_qscend","bg_box_get_started","bg_box_training"];
	for (idx=0; idx < headerNames.length;idx++){
		var thisHeader = "."+headerNames[idx];
		jQuery(thisHeader).css("display","none");
	}
}
