function fixIETransparency() {
	if ($.browser.msie && $.browser.version < 7) {
		$(".hovertext").pngfix().css("zoom", 1);
	}
}

//when the dom has loaded
$(function () {
fixIETransparency();
	//display the hover div
	$("div.hoverBtn").show("fast", function () {
	});
});

var hoverColour = "#FFF";
//when the dom has loaded
$(function () {
	
	//display the hover div
	$("div.hoverBtn").show("fast", function () {
		
		//on link hover
		$(this).children("div").hover(function () {
			//store initial link colour
			/*
			if ($(this).attr("rel") == "") {
			$(this).attr("rel", $(this).css("color"));
			}*/
			//fade in the background
			$(this).parent().children("div").children("div, a")
			.stop()
			.css({
				"display": "none", "display": "block"
			});
			//.fadeIn("fast");
			
			//change image
			$(this).parent().children("div").children("img:eq(1)")
			.stop()
			.css({
				"display": "block"
			});
			
			$(this).parent().children("div").children("img:eq(0)")
			.stop()
			.css({
				"display": "none"
			});
			/*
			//fade the colour
			$(this) .stop()
			.css({
				"color": $(this).attr("rel")
			})
			.animate({
				"color": hoverColour
			},
			350);*/
		},
		function () {
			//fade out the background
			$(this).parent().children("div").children("div, a")
			.stop()
			.css({
				"display": "none"
			});
			//.fadeOut("slow");
			
			//fade images
			$(this).parent().children("div").children("img:eq(1)")
			.stop()
			.css({
				"display": "none"
			});
			
			$(this).parent().children("div").children("img:eq(0)")
			.stop()
			.css({
				"display": "block"
			});
			
			//fade the colour
			//$(this) .stop()
			//.animate({"color": $(this).attr("rel")},250);
		});
	});
});
