$(function() {
	$("div.navmodels").css({position: "absolute", zIndex: "20"});
	$("li.make")
		.mouseover(function() {
			$li = $(this);
			$div = $li.find("div.navmodels");
			var l = $li.position().left + $li.width();
			var t = $li.position().top;
			var h = $div.height();
			if ($.browser.msie) {
				h = h / $div.find("ul").length;
			}
			if (t + h - $(window).scrollTop() > $(window).height()) {
				t = $(window).height() - h - 4 + $(window).scrollTop();
			}

			$div.css({left: l-10, top: t-5}).show();
		})
		.mouseout(function() {
			$(this).find("div.navmodels").hide();
		})
	;

	$(".btn_nav .visual img:first").not(".active").mouseover(function(){
		$(this).attr("src","/images/visualcapacity_btn_over.gif");
	}).mouseout(function(){
		$(this).attr("src","/images/visualcapacity_btn.gif");
	});

	$(".btn_nav .easy img:first").not(".active").mouseover(function(){
		$(this).attr("src","/images/easyinstall_btn_over.gif");
	}).mouseout(function(){
		$(this).attr("src","/images/easyinstall_btn.gif");
	});

	$(".btn_nav .enhance img:first").not(".active").mouseover(function(){
		$(this).attr("src","/images/enhanceappeal_btn_over.gif");
	}).mouseout(function(){
		$(this).attr("src","/images/enhanceappeal_btn.gif");
	});
});