

function fixHigth(){
	//This is the div that shall have the largest height
	var height=document.getElementById('mainPageDiv').clientHeight;

	var arVersion = navigator.appVersion.split("MSIE");
	var version   = parseFloat(arVersion[1]);

	var left   = document.getElementById('leftShadow');
	var right  = document.getElementById('rightShadow');
	var bottom = document.getElementById('bottomShadow');
	
	//If we have a IE 6 user fix the PNG file
	if ((version >= 5.5 &&  version<7.0) && document.body.filters)
	{ 
		//If left is a img run script if the user have IE
		//If left is not a IMG tag then we only wont to change hieght
		//Sins all PNG elemnt(left,right,bottom) shall have been changed we only cheeck one
		if(left.tagName=='IMG'){
			replaceAlpha(left, 52, height);
			replaceAlpha(right, 52, height);
			replaceAlpha(bottom, 906, 53);
		}
		else{
			left.style.height=height;			
			right.style.height=height;
		}
	}
	else{
		left.height=height;
		left.width=52;
		
		right.height=height;
		right.width=52;
		
		bottom.height=53;
		bottom.width=906;
	}
}

//Fix Alpha for ie usesers
/*
Correctly handle PNG transparency in Win IE 5.5 & 6.
http://homepage.ntlworld.com/bobosola. Updated 18-Jan-2006.
*/
function replaceAlpha(img, w, h){
	var imgID = (img.id) ? "id='" + img.id + "' " : ""
	var imgClass = (img.className) ? "class='" + img.className + "' " : ""
	var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
	var imgStyle = "display:inline-block;" + img.style.cssText 
	if (img.align == "left") imgStyle = "float:left;" + imgStyle
	if (img.align == "right") imgStyle = "float:right;" + imgStyle
	if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle	    
    
    var strNewHTML = "<span " + imgID + imgClass + imgTitle
    + " style=\"" + "width:" + w + "px; height:" + h + "px;" + imgStyle + ";"
    + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
    + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
    img.outerHTML = strNewHTML;
}