jQuery(document).ready(function() {
	// do something here
	
	/*
   $("#mainnav li a").hover(function(){
   	//alert("Howdy!");
	$(this).animate({  
		"height" : "100%"  
		}, 1).animate({
		"height" : "100%"  
		}, 1000);  
   },function(){
	$(this).animate({  
		"height" : "0px"  
		}, 1000);  
   });
   
   $("#mainnav li").hover(
			function() { 
				//$(this).stop().animate({ "background-image":"url(images/rollover_gradient.jpg)", "background-repeat":"repeat-x","text-decoration":"none", "color":"#3e5da7","background-color":"#fff","border-bottom":"8px solid #f7941e","padding":"2px 10px 15px 10px","overflow":"hidden"}, 1000); },
				//$(this).stop().animate({"height":"15px"},1).animate({ "height":"40px"}, 1000); },
				$(this.childNodes[0]).stop().animate({ "height":"20px"}, 1000); },
				//},
			function() { 
				$(this.childNodes[0]).stop().animate({"height":"15px"}, 1000,"",function(){}) }
		);
  
    */
   
	$("#mainnav li").mouseover(function(){
   		//alert($(this).attr("class"));  
   		if($(this).attr("class")!='nav_highlight') {  
			$(this.childNodes[0]).css({color:"#3e5da7"});
			//$(this).css({'height':"40px",backgroundImage:"url(../images/rollover_gradient.jpg)",'backgroundRepeat':"repeat-x",'border-bottom':"8px solid #f7941e"})
			$(this).css({backgroundImage:"url(images/rollover_gradient.jpg)",'border-bottom':"8px solid #f7941e"})
        	//$(this).stop().animate({height:'40px'},{queue:false, duration:600, easing: 'easeOutBounce'});
        	$(this).stop().animate({height:'40px'},400);
    	}   
    });   

    $("#mainnav li").mouseout(function(){   
   		if($(this).attr("class")!='nav_highlight') {  
			$(this.childNodes[0]).css({color:"#3e5da7"});
			//$(this.childNodes[0]).animate({color:"#ffffff"},400);
			//$(this.find('a')).css({color:"#3e5da7"});
			//$(this).css({height:"40px",'background-image':"url(../images/rollover_gradient.jpg)",'background-repeat':"repeat-x",'border-bottom':"8px solid #f7941e"})
			//$(this).stop().animate({height:'20px'},{queue:false, duration:600, easing: 'easeOutBounce'},"",function(){ alert("Howdy!");});
			$(this).stop().animate({height:'18px'},400,"",function(){ 
					$(this).css({backgroundImage:"",'border-bottom':"0px solid #f7941e"});
					$(this.childNodes[0]).css({color:"#fff"});
				});
			//$(this).css({'border-bottom':"0px solid #f7941e"})
		}  
    });   
   
	$("td input[type='text']").change( function() {
		var a = $("#a").attr("value");
		var b = $("#b").attr("value");
		var c = $("#c").attr("value");
		var d = $("#d").attr("value");
		var e = $("#e").attr("value");
		var total = (2*a)/(b+c)
		//alert("a: " + a);
		$("#totalValue").html(total);
	});
});