document.js=true;
var _rootsite=''
var _templateX=900;
var _templateY=400;


var IE=(document.all)?1:0;
var IE4=(!document.getElementById&&document.all)?1:0;
var IE55=(document.getElementById&&document.all)?1:0;
var NS4=(document.layers)?1:0; 
var NS6=(document.getElementById&&!document.all)?1:0;
var DHTML=(IE||NS4||NS6)?1:0;
var MAC=(navigator.userAgent.indexOf('Mac')!=-1)?1:0;
var IEMAC=(MAC&&IE)?1:0;


var  _navX=0, _navY=0;
var _winX=0, _winY=0, _adjX=0, _adjY=0, _currX=0, _currY=0;

function getScreen()
	{	_winX=(IE)?document.body.clientWidth:window.innerWidth; 
		_winY=(IE)?document.body.clientHeight:window.innerHeight;
		if (_winY == 0)
		{_winY =(document.compatMode=="CSS1Compat")?document.documentElement.clientHeight :document.body.clientHeight;}

	}

function winAdjust() 
	{
			getScreen(); 
		_adjX=parseInt((_winX-_templateX-8)/2); 
		if (_adjX<=15) _adjX=15; 
			_adjY=parseInt((_winY-_templateY)/2);
//			_adjY=parseInt((_winY-_templateY-8)/2);
			//alert(_adjY);
			if (_adjY<=15) _adjY=15; 
				document.write('<img src="images/blank.gif" width="'+_adjX+'" height="'+_adjY+'" />');
//				document.write('<img src="' + _rootsite + '/i/s.gif" width="'+_adjX+'" height="'+_adjY+'" />');
	}
	
function checkScreen()
	{ 
		_currX=_winX; _currY=_winY;
		getScreen(); 
		if ((_currX!=_winX)||(_currY!=_winY)) location.reload();
	}

function newWin(n,wn,w,h,t,l,s)
	{ new_window=window.open(n, wn, 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars='+s+',resizable=1,width='+w+',height=' + h + ((t)?',screenX='+t+',top='+t:'') + ((l)?',screenY='+l+',left='+l:''));
		if (new_window.opener==null) 
			{ new_window.opener=self; } 
				if (window.focus) new_window.focus(); 
	}


