document.js=true;
var _rootsite='http://www.sensofashion.com'
var _templateX=750;
var _templateY=550;
var IE=(document.all)?1: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( typeof( window.innerWidth ) == 'number' )
				{	//Non-IE
					_winX = window.innerWidth;
					_winY = window.innerHeight;
				} 
			else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) )
				{	//IE 6+ in 'standards compliant mode'
					_winX = document.documentElement.clientWidth;
					_winY = document.documentElement.clientHeight;
				}
			else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) )
				{	//IE 4 compatible
					_winX = document.body.clientWidth;
					_winY = 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/pixel.gif" width="'+_adjX+'" height="'+_adjY+'" />');
//				document.write('<img src="fileadmin/templates/images/pixel.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();
	}

