	$(document).ready(function(){
		overLi("#576B8A", "#feature-1");
		$("li.hoverli").hover(function(){
			overLi("#576B8A", this);
		}, function(){
		});
		
	});
	$(window).load(function(){
		for(i= 0;i<$("#bannerImages img").length;i++){
			featureImageAdjust($("#bannerImages img")[i],317,223);
		}
	})
	function featureImageAdjust(image,box_w,box_h){		
		if(!box_w || !box_h) box_h = 0;
		div= 0;
		if(image.width > 50){
			orig_w= image.width;
			orig_h= image.height;
			if(box_h == 0){
				image.width = "100%";
			}else{
				div= (orig_w > orig_h)? orig_h / box_h : orig_w / box_w;
				new_w= Math.ceil(orig_w / div);
				new_h= Math.ceil(orig_h / div);
				$(image).css({"width" : new_w+"px","height" : new_h+"px"});
				h_marg= Math.ceil((box_w - new_w) / 2);
				v_marg= Math.ceil((box_h - new_h) / 2);
				if(h_marg != 1) $(image).css("margin-left",h_marg+"px");
				if(v_marg != 1) $(image).css("margin-top",v_marg+"px");
			}
		}
	}
