// POP-UPS
//////////////////////
function popUp(URL, width, height) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=" + width + ",height=" + height + "');");
}

/* Inbox adult content warning */
function $(v) { return(document.getElementById(v)); }
function $S(v) { return($(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(){}; }; }
function sexyBOX(v,b) { 
	document.getElementById('wrap').style.display='block';
	document.getElementById('loading').style.display='none';
	setTimeout("sexyTOG()",100); 
	$S('sexyBG').height=XYwin(0)+'px'; 
	$S('sexyBG').display='block'; 
	$('sexyBOX').innerHTML=v+'<div class="sexyX"><img src="http://www.hustler3d.com/images/hustler_logo.png" alt="Hustler 3D" width="330" height="67" style="float:left;" /><h1>Hustler 3D Game</h1><img src="images/legal_01.gif" alt="HUSTLER Sexual Content Warning" width="650" height="334" /><br /><br /><input id="Exit" name="Exit" type="button" value="EXIT" onclick="javascript:window.location=\'http://news.google.com\';" style="margin-right:30px; padding:7px; font-size:110%;" /><input id="Continue" name="Continue" type="button" class="green" value="I AGREE AND WISH TO ENTER" onclick="sexyTOG();" /><br /><br />'+"<\/div>"; 
	$S('sexyBOX').left=Math.round((XYwin(1)-b)/2)+'px'; 
	$S('sexyBOX').width=b+'px'; 
	$S('sexyBOX').display='block'; 
}