function agent(v) 
{
	return(Math.max(navigator.userAgent.toLowerCase().indexOf(v),0)); 
}

function isset(v) 
{ 
	return((typeof(v)=='undefined' || v.length==0)?false:true); 
}
function XYwin(v) 
{ 
	var z=agent('msie')?Array(document.body.clientHeight,document.body.clientWidth):Array(window.innerHeight,window.innerWidth); 
	return(isset(v)?z[v]:z); 
}

function showSexyBox(box_width) {
	bgElem 	= document.getElementById('sexyBG');
	boxElem	= document.getElementById('sexyBOX');
	 
	bgElem.style.height= '2000px';/*XYwin(0)+'px';*/ 
	bgElem.style.display='block'; 
	boxElem.style.top=Math.round(XYwin(0)/2)+'px';	
	boxElem.style.left=Math.round((XYwin(1)-box_width)/2)+'px'; 
	boxElem.style.width=box_width+'px'; 
	boxElem.style.display='block'; 
}

function hideSexyBox(){
	bgElem 	= document.getElementById('sexyBG');
	boxElem	= document.getElementById('sexyBOX');
	
	bgElem.style.display='none';
	boxElem.style.display='none';
}

