


$(document).ready(

// /* height solver  */
	function() {
		var normalHeight = $("#normalCol").height();		
		var rightColCont = $("#rightColCont").height();
		var bottomRightImgLink = $("#bottomRightImgLink").height();
		var rightHeightSum = rightColCont + bottomRightImgLink;

var rightHeight = rightColCont;
	
		//when the rightColCont + bottomRightImgLink got longer in height than the normalHeight
//		if(normalHeight < rightHeightSum){
//			$("#normalCol").height(rightHeightSum);
//			$("#rightCol").height(rightHeightSum);
//		}else{
		    //making the rightCol's height equal to normalCol Height
//		    $("#rightCol").height(normalHeight);
//		}			

$("#rightCol").height(rightHeight);

	
// solving the fe background issue
		var bodyHeight = $("body").height();
		var contentRow2Height = $("#contentRow2").height();
        if(contentRow2Height <= 400){
        	//$("body").css("background-color","#f2f3f6");
        }else{
        	$("#outsideCont").css("padding-bottom","23px");
        	//$("body").css("background-color","#f2f3f6");
		}		
// menu text bolding  on hover event 

		$(".nav2 li a").hover (
			function(){
				$(this).css("font-weight","bold");
				$(this).css("color","#ffffff");				
				
				
				
			},function(){
		  		$(this).css("font-weight","normal");
				$(this).css("color","#4B5061");				
				
			} 			
		);		

        
		$(".nav2").each(function(i){
			var width = $(this).width() + 35;
			$(this).children("li").css("width",width+"px");
		});
		
		$(".nav3").hover(
			function(){
				$(this).siblings("a").css("font-weight","bold");
				$(this).css("color","#ffffff");
			},
			function(){
				$(this).siblings("a").css("font-weight","normal");
			}	
		);		
		
        //$(".nav2").css("margin-top","28px");		
		
   }
);


// script for the sucker fish menu 
sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" over";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" over\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);



// mailform - radio issue on borders
$(document).ready(function() {
  	$(".csc-mailform input[@type=radio]").css('border','none').css('width','auto');
  	$(".csc-mailform input[@type=checkbox]").css('width','auto').css('border','none');
	
	//$(".searchBox").val($('.tx-indexedsearch-sw').text());
});



