var hilite_color = "#cc4411";
var topHeight = 8;
var botHeight = 24;
var stageWidth;
var stageHeight;
var contentWidth=944;
var minHeight = 500;
var minWidth = contentWidth+30;
var platform;
var browser;


function kwSetup() 
{
	var a, b, x;
	var trace = "";
	if(navigator.appName == "Microsoft Internet Explorer"){
		browser = "IE";
	}
	if(navigator.appName == "Netscape"){
		browser = "NS";
	}
	if(navigator.appName == "Opera"){
		browser = "OP";
	}
	
	//
	if (this.innerWidth){
		stageWidth = parent.innerWidth;
		stageHeight = parent.innerHeight;
		
	}  else if (document.body.offsetWidth){
		stageWidth =  document.body.offsetWidth;
		if (document.body.offsetHeight){
			stageHeight =  document.body.offsetHeight;
			
		} else if(document.documentElement.clientHeight)
		{
			stageHeight = document.documentElement.clientHeight;
			
		}
		
	}
	else if(document.documentElement.clientWidth)
	{
		stageWidth = document.documentElement.clientWidth;
	}
	var c = document.getElementById('all');
	var a = document.getElementById('all_cnt');
	var b = document.getElementById('page');
	if(document.getElementById('frame')){
		alert("frame height: ");
	}
	b.style.overflow = "auto";
	
	if(stageHeight > minHeight && stageWidth > minWidth ){
		
		var val = stageHeight- botHeight - topHeight;
		c.style.height = stageHeight + "px";
		c.style.overflow = "hidden";
		a.style.height = (val -9) +"px";
		b.style.height = (val -210) +"px";
		a.style.overflow = "hidden";
	} else {
		//
		a.style.height = "auto";
		b.style.height = "auto";
		c.style.overflow = "visible";
	} 
	//			//CONTENT
	if(browser == "IE"){
		
	}
	if(browser == "OP"){
		
		
	}
	
}
//


function activeMenueItem(argstr)
{
	var a = document.getElementById(argstr);
	a.className = "active";
}
