function BrowserCheck() 
{
var b = navigator.appName
//alert(b);
    if (b=="Netscape") this.b = "ns"
    else 
       if (b=="Microsoft Internet Explorer") 
          this.b = "ie"
       else 
          this.b = b
    this.v    = parseInt(navigator.appVersion)
    this.ns   = (this.b=="ns" && this.v>=4)
    this.ns4  = (this.b=="ns" && this.v==4)
    this.ns5  = (this.b=="ns" && this.v==5)
    this.ie   = (this.b=="ie" && this.v>=4)
    this.ie4  = (navigator.userAgent.indexOf('MSIE 4')>0)
    this.ie5  = (navigator.userAgent.indexOf('MSIE 5.0')>0)
    this.ie55 = (navigator.userAgent.indexOf('MSIE 5.5')>0)
    this.ns6 =  (navigator.userAgent.indexOf('Netscape6')>0)
    if (this.ie5) this.v = 5
       this.min = (this.ns||this.ie)
}


function IsIE() 
{
  return is.ie;
}

function fixSize()
{
	is = new BrowserCheck()

	document.body.style.marginTop = "0";
	document.body.style.marginBottom = "0";
	if (IsIE())
		document.body.style.marginRight = "0";

	document.body.style.overflow = "hidden";

	var w = document.body.clientWidth;
	var h = document.body.clientHeight;

	if (IsIE())
	{
		var divw = w - 190;
		var divh = h - 155;
		var divhmenu = h - 155;
	}
	else
	{
		divw = w - 210;
		var divh = h - 215;
		var divhmenu = h - 195;
	}

	

	try
  	{
  	if (pic)
		{
			divw = divw - picwidth;
		}
  	}
	catch(err)
  	{
  	}

	document.getElementById('mainContent').style.width= divw +"px";
	document.getElementById('mainContent').style.height= divh +"px";
	document.getElementById('LHMenu').style.height= divhmenu +"px";
}

onload=function()
{
	fixSize();
}

onresize=function()
{
	fixSize();
}

