$(document).ready(function(){
	$(".navcell").hover(
		function(){
		$(this).find(".nav").css({color:"#FFFFFF"}); 
	},
		function(){
		$(this).find(".nav").css({color:"#99CCFF"}); 
	});

	$("#logo").hover(
		function(){
		$(this).find(".nav").css({color:"#FFFFFF"}); 
	},
		function(){
		$(this).find(".nav").css({color:"#99CCFF"}); 
	});



$(".rollover").hover(
 function() {
  curr = $(this).find("img").attr("src");
  overlen = curr.length;
  over = curr.substr(0, overlen-4);
  over = over+'_o.png';
  $(this).find("img").attr({ src: over});
 },
 function() {
  $(this).find("img").attr({ src: curr});
 }
)

$(".rollover").find("img").each(function(i) {
  temp = this.src;
  prelen = temp.length;
  pre = temp.substr(0, prelen-4);
  pre = pre+'_o.png';
  preload_image_object = new Image();
  preload_image_object.src = pre;
});

$(".more").hover(
 function() {
  curr = $(this).find("img").attr("src");
  overlen = curr.length;
  over = curr.substr(0, overlen-4);
  over = over+'_o.png';
  $(this).find("img").attr({ src: over});
 },
 function() {
  $(this).find("img").attr({ src: curr});
 }
)

$(".more").find("img").each(function(i) {
  temp = this.src;
  prelen = temp.length;
  pre = temp.substr(0, prelen-4);
  pre = pre+'_o.png';
  preload_image_object = new Image();
  preload_image_object.src = pre;
});



function equalHeight(group) {
	tallest = 90;
	group.each(function() {
		thisHeight = $(this).height();
		if(thisHeight > tallest) {
			tallest = thisHeight;
		}
	});
	group.height(tallest);
}
$(document).ready(function() {
	equalHeight($(".column"));
	equalHeight($(".column1"));
	equalHeight($(".column2"));
	equalHeight($(".logos"));
	equalHeight($(".benefit"));
});



$(".learn").hover(
 function() {
  curr = $(this).find("img").attr("src");
  overlen = curr.length;
  over = curr.substr(0, overlen-4);
  over = over+'_o.png';
  $(this).find("img").attr({ src: over});
 },
 function() {
  $(this).find("img").attr({ src: curr});
 }
)

$(".learn").find("img").each(function(i) {
  temp = this.src;
  prelen = temp.length;
  pre = temp.substr(0, prelen-4);
  pre = pre+'_o.png';
  preload_image_object = new Image();
  preload_image_object.src = pre;
});

$(".Login").hover(
 function() {
  curr = $(this).find("img").attr("src");
  overlen = curr.length;
  over = curr.substr(0, overlen-4);
  over = over+'_o.png';
  $(this).find("img").attr({ src: over});
 },
 function() {
  $(this).find("img").attr({ src: curr});
 }
)

$(".Login").find("img").each(function(i) {
  temp = this.src;
  prelen = temp.length;
  pre = temp.substr(0, prelen-4);
  pre = pre+'_o.png';
  preload_image_object = new Image();
  preload_image_object.src = pre;
});


}); 
