// JavaScript Document





$(document).ready(function() {


    $(".singleColumnh400, .singleColumn2h400").hover(
		function() {
		$(this).css({"cursor": "pointer"});
		 $(this).animate( { backgroundColor: "#ebf7fa" }, 150);

		//$(this).find('span').css({'background':'url("images/green-arrow-graphic.gif") right bottom no-repeat'});		

		}, 
		function(){ 
		//$(this).css("background-color","#fff");
		$(this).animate( { backgroundColor: "#fff" }, 150);

	//	$(this).find('span').css({'background':'url("images/green-arrow-graphic.gif") -15px bottom no-repeat'});		

		});
		
	$(".home-page .singleColumnh400").click(function() {
		window.location = $(this).find('a').attr('href');
		
	});
	
	$(".navigation li").hover (
	function() {
	if($(this).is('.greybox')) {
		$(this).addClass('greyover');
	} else if($(this).is('.bluebox')) {
		$(this).addClass('blueover');
	} else if($(this).is('.greenbox')) {
		$(this).addClass('greenover');
	} else if($(this).is('contact-us')) {
		$(this).css({'color': '#f00'});	
	}
	
	$(this).find('a').addClass('over');
	$(this).css('cursor', 'pointer');
	}, function() {
	$(this).find('a').removeClass('over');
	$(this).css('cursor', 'default');
	if($(this).is('.greybox')) {
	$(this).removeClass('greyover');
	} else if($(this).is('.bluebox')) {
	$(this).removeClass('blueover');
	} else if($(this).is('.greenbox')) {
	$(this).removeClass('greenover');
	}
	}
	)
	
	$(".navigation li").click (
	function() {
		window.location = $(this).find('a').attr('href');
	}
	)

	
});


window.onload = function() {
	$currentHeight = 0;

	$(".home-page").find('.singleColumn').each(function(){
		if ($(this).height() > $currentHeight) { 
			$currentHeight = $(this).height();
		}
		
	});
	
	
	$(".home-page").find('.singleColumn').each(function(){
	$(this).css({'min-height': $currentHeight});	
		//$(this).css({'display':'none'});	

		if ($.browser.msie && $.browser.version == 6.0) { 
			$(this).css({'height': $currentHeight}); 
		}
	 });
	
}
