//var html = document.childNodes[1].nodeName;

var browserVer=parseInt(navigator.appVersion); 
var browserName=navigator.appName;
var browserPlatform = navigator.platform;

var sUrl = new String(window.location);
//alert(sUrl.indexOf('/admin/'));
if(sUrl.indexOf('/admin/')!=(-1))
{
}
else if(navigator.platform.indexOf('Mac')==(0) && navigator.appName.indexOf('Internet Explorer')>(-1))
{
}
else
{
	document.write('<style type="text/css">');
	document.write('html{overflow:hidden;}');
	document.write('body{overflow:hidden;height:100%;}');
	document.write('#content{overflow:auto;}');
	document.write('</style>');
		
	var resize = function()
	{
		var winW = 630, winH = 460;
		if (parseInt(navigator.appVersion)>3) {
	 		if (navigator.appName=="Netscape") {
	  			winW = window.innerWidth;
	  			winH = window.innerHeight;
	  			document.getElementById('content').style.height = (winH-105) + 'px';
				document.getElementById('content').style.width = (winW - 161) + 'px';
				document.getElementById('content').style.marginLeft = '140px';
	 		}
	 		if (navigator.appName.indexOf("Microsoft")!=-1) {
	  			winW = document.body.offsetWidth;
	  			winH = document.body.offsetHeight;
	 			document.getElementById('content').style.height = (winH - 89) + 'px';
				document.getElementById('content').style.width = (winW - 145) + 'px';
				document.getElementById('content').style.marginLeft = '140px';
	 		}
			document.getElementById('content').style.paddingLeft = '10px';
		}
		
	};


	if (window.attachEvent) 
	{
		window.attachEvent("onload",resize);	
		window.attachEvent("onresize",resize);	
	}
	else
	{
		window.onload = resize;		
		window.onresize = resize;
	}
}
