function FixSize() {

	var myWidth = 0, myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
	//Non-IE
	//  --> document.all('theBody') for firefox use <--

		myWidth = window.innerWidth; myHeight = window.innerHeight;

		var Head=55;
		var Footer=80;
		var Status=110;
		var BodyHeight = myHeight - Head - Status - 3 - Footer;
		var TreeHeight = myHeight - Head - Status - 3;
		var TreeWidth = (myWidth * 0.25) - 4;
		var SideBarWidth = myWidth * 0.22;
		var BodyWidth = myWidth - TreeWidth - 7;

		document.getElementById('bodyDiv').style.height=BodyHeight+'px';
		document.getElementById('bodyDiv').style.width=BodyWidth+'px';
		
		document.getElementById('treeDiv').style.height=TreeHeight+'px';
		document.getElementById('treeDiv').style.width=TreeWidth+'px';
		
		ResizeSiteTree(TreeWidth);

	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'

		myWidth = document.documentElement.clientWidth; 
		myHeight = document.documentElement.clientHeight;

		var Head=55;
		var Footer=80;
		var Status=110;
		var BodyHeight = myHeight - Head - Status - 7 - Footer;
		var TreeHeight = myHeight - Head - Status - 7;
		var TreeWidth = (myWidth * 0.25) - 4;
		var SideBarWidth = myWidth * 0.22;
		var BodyWidth = myWidth - TreeWidth - 7;

		document.getElementById('bodyDiv').style.height=BodyHeight+'px';
		document.getElementById('bodyDiv').style.width=BodyWidth+'px';
		
		document.getElementById('treeDiv').style.height=TreeHeight+'px';
		document.getElementById('treeDiv').style.width=TreeWidth+'px';
		
		ResizeSiteTree(TreeWidth);

	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4

		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
		//var Head=(document.getElementById('tblHeader').height);
		//var Status=(document.getElementById('StatusBox').height);

		var Head=55;
		var Footer=80;
		var Status=110;
		var BodyHeight = myHeight - Head - Status - 5 - Footer;
		var TreeHeight = myHeight - Head - Status - 5;
		var TreeWidth = myWidth * 0.25 - 15 - 4;
		var SideBarWidth = myWidth * 0.22;
		document.getElementById('bodyDiv').style.height=BodyHeight+'px';
		document.getElementById('treeDiv').style.height=TreeHeight+'px';
		document.getElementById('treeDiv').style.width=TreeWidth+'px';
		
		ResizeSiteTree(TreeWidth);
	}
	onload=FixSize;
	onresize=FixSize;
}

//document.getElementById("creditslayer").innerHTML = "<font class='credits'>" +top.ycredits+ "CR</font>" ;
//document.layers["creditslayer"].document.open(); 
//else if (document.all) { creditslayer.innerHTML = "<font class='credits'>" +top.ycredits+ "CR</font>" ; }

function ResizeSiteTree(newTreeWidth)
{
    $("table.rootNode").css("width", newTreeWidth-56);
    $("table.productGroupNode").css("width", newTreeWidth-56-16);
    $("table.productNode").css("width", newTreeWidth-56-16-13);
}