var ie55 = (navigator.appName == "Microsoft Internet Explorer" && 
					parseInt(navigator.appVersion) == 4 && navigator.appVersion.indexOf("MSIE 5.5") != -1);
var ie6 = (navigator.appName == "Microsoft Internet Explorer" && 
			   		parseInt(navigator.appVersion) == 4 && navigator.appVersion.indexOf("MSIE 6.0") != -1);

$(document).ready(function(){
	$(document).pngFix(); 
	resizeDS();
	setTimeout("resizeDS()",2000);
	if($("#home-pg-btns").length > 0){
		$("#home-pg-btns li a img").hover(
			function(){ $(this).attr("src",$(this).attr("src").replace(".jpg","-hover.jpg")); },
			function(){ $(this).attr("src",$(this).attr("src").replace("-hover.jpg",".jpg")); }
		);
	}
});  

function resizeDS(){
	var h = $("#ds-pg-wrap-mid-mid").height();//
	var ex = 4;

	if (jQuery.browser.msie && (ie55 || ie6)) {
			ex = 0;
	}
	$("#ds-pg-wrap-mid-left").height(h+ex);
	$("#ds-pg-wrap-mid-right").height(h+ex);
}
  
