version = parseFloat(navigator.appVersion.split("MSIE")[1]); // not used but keeping for refrence

interval = setInterval("skinFix()",'100')

function skinFix()
{	
	if (version == 7 || version == 6)
	{	
		iSlice = (getHeight("contentPanesWrap") - 27);
	}
	else 
	{
		iSlice = (getHeight("contentPanesWrap") - 27);
	}
	iThirtyLeftPane = getHeight("dnn_ThirtyLeftPane");
	iSeventyRightPane = getHeight("dnn_SeventyRightPane");
	document.getElementById("bodyBackgroundSlice").style.height = iSlice + "px";
	if (version == 7 || version == 6)
	{	
		document.getElementById("bodyBackgroundBottomIEFix").style.marginTop = iSlice + "px";
	}
	if (0 == getHeight("dnn_ThirtyLeftPane"))
	{
		document.getElementById("thirtyLeftPaneWrap").style.display = "none";
	} 
	if (0 == getHeight("dnn_ButtonsPane"))
	{
		document.getElementById("buttonsPaneWrap").style.display = "none";
		if (0 == getHeight("dnn_ImagePane"))
		{
			document.getElementById("separator").style.display = "none";
		}
	}
	if((iThirtyLeftPane != 0) && (iSeventyRightPane != 0) && (iThirtyLeftPane < (iSeventyRightPane - 26))) /* 26 is margin top and bottom total
		for .thirtyLeftPane */
	{
		//alert(iSeventyRightPane);
		document.getElementById("brownBoxRound_bl").style.height = iSeventyRightPane + "px";
	}
}

function getHeight(sID) 
{
	var iReturnValue = 0;
	if(sID != null) 
	{	
		iReturnValue = parseInt(document.getElementById(sID).offsetHeight); // removes the "px" at the end
	}
	return iReturnValue;
}
