var $j = jQuery.noConflict();
$j(function(){
	 $j(".mainMenu ul > li").hover(function () {
	   $j(this).addClass("DDhover");
       }, 
      function () {
	   $j(this).removeClass("DDhover");
	   }  
    );
   $j(".mainMenu ul > li:first-child").hover( function () {	  	
		$j(this).addClass("DDOpen");
      }, 
      function () {
	  	$j(this).removeClass("DDOpen");
	   }  
    );
  
  $j('.sidebarContent ul ul.quickLinks li a:even').css({'background-color':'#ececec'});
  $j('.contentWH div.contentW:first-child').css({'margin-left':'0px'});	
   var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
   var is_safari = navigator.userAgent.toLowerCase().indexOf('safari') > -1;
   if (is_chrome == true || is_safari == true){
		$j('.quick').css({'margin-top':'18px'});
	}
});



$j(window).load(function() {
  var maxHeight = 0;
   // assuming each div has a class of project
	$j(".contentWIT").each(function(){
		 // if height of current is bigger than
		  // the largest height encountered thus far,
		  // set maxHeight equal to this height.
		  
		  if ($j(this).height() > maxHeight) {
				maxHeight = $j(this).height();
		} 
	});
   // set height of all elements with class of project to maxHeight.
   $j(".contentWIT").height(maxHeight);
});


