/*window.onresize = setClient;

var selectedId = -1;
var stop = false;


function onBodyLoad()
{
	setClient();
}

function setClient()
{	
	var windowHeight = getWindowHeight();
	var windowWidth = getWindowWidth();
	
	var top_container = $("top_container"); //      106 px
	var menu_container = $("menu_container"); //     33 px
	var middle_container = $("middle_container");	
	var bottom_container = $("bottom_container"); // 20 px + 18px(submenu)	+ = 176 px += 20px padding = 157
	var module_holder = $("module_holder");
	
	middle_container.style.height = (windowHeight - 177) + 'px';
	module_holder.style.height = (windowHeight - 177 - 20) + 'px';
	top_container.style.width = windowWidth + 'px';
	menu_container.style.width = (windowWidth - 10) + 'px';	
	middle_container.style.width = windowWidth + 'px';
	bottom_container.style.width = windowWidth + 'px';
	module_holder.style.width = (windowWidth - 20) + 'px';	
}

function showMenu(id, position)
{
	$('subdiv').style.top = '100px';
	$('subdiv').style.left = calcMenuLeft(position) + 'px';
	$('subdiv').style.display = 'block';
}

function calcMenuLeft(id)
{
	return $('rootmenu_'+id).offsetLeft;
}

function OldsetClient()
{	
	var windowHeight = getWindowHeight();
	var divmenu = document.getElementById("divMenu");
	var divcontent = document.getElementById("divContent");
	var divBottomContainer = document.getElementById("divBottomContainer");
	
	var browser=navigator.appName
	var b_version=navigator.appVersion
	var version=parseFloat(b_version)
	
	if(getBrowser() == 'MSIE 6.0')
	{
		divmenu.style.height = "0px";
		divcontent.style.height = "0px";
	}
	else if(getBrowser() == 'MSIE 7.0')
	{
		divmenu.style.height = "0px";
		divcontent.style.height = "0px";		
	}
	else
	{
		divmenu.style.height = "";
		divcontent.style.height = "";		
	}
	
	if((divmenu.offsetHeight > windowHeight) || (divcontent.offsetHeight > windowHeight))
	{
		if(divmenu.offsetHeight > divcontent.offsetHeight)
		{
			divmenu.style.height = divmenu.offsetHeight+10+'px';
			divcontent.style.height = divmenu.offsetHeight+'px';
		}
		else
		{
			divmenu.style.height = divcontent.offsetHeight+10+'px';
			divcontent.style.height = divcontent.offsetHeight+'px';
		}			
	}
	else
	{
		divmenu.style.height = windowHeight-129+'px';
		divcontent.style.height = windowHeight-139+'px';
	}
}

function loadPage(btnId,header)
{
	document.getElementById(selectedId).className = "divMenuBtn";
	selectedId = btnId;
	document.getElementById(selectedId).className = "divMenuBtnSel";
	document.getElementById("ContentHeader").innerHTML = header;							
}

function btnFocus(id)
{
	if(selectedId != id) document.getElementById(id).className = "divMenuBtnOver";
}

function btnLostFocus(id)
{
	if(selectedId != id) document.getElementById(id).className = "divMenuBtn";
}	

*/


