function $ss(v) {

if(document.getElementById(v) != null)return(document.getElementById(v)); 

}

function $S(v) { return($ss(v).style); }
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 sexyTOG() { 
	document.onclick=function(){
		 $S('sexyBG').display='none'; $S('sexyBOX').display='none'; 
		document.onclick=function(){};
		window.location.reload();
	 }; 
}


function sexyBOX(v,b) { 

setTimeout("sexyTOG()",100); 
$S('sexyBG').height=XYwin(0)+'px';
$S('sexyBG').display='block';
$ss('sexyBOX').innerHTML=v+'<div class="sexyX" id="sexyX" onclick="javascript:popUpPage(\'basketGuide.php\',\'BasketGuide\')">Your 5 minutes to purchase these items has now expired. If you wish to find out more about buying from Visual Impact please click on this box.'+"<\/div>"; 
$S('sexyBOX').left=Math.round((XYwin(1)-b)/2)+'px'; 

  
$S('sexyBOX').top=Math.round((document.documentElement.clientHeight/2)-80+document.documentElement.scrollTop)+'px';//Math.round((scrOfY+800)/2)+'px'; 
//$S('sexyBOX').top=Math.round((XYwin(0)-b)/2)+'px'; 
$S('sexyBOX').width=b+'px';
$S('sexyBOX').display='block';

}
