if (!inter) var inter=false;

function popclick()
{
	inter=true;	
}

function exitpop()
{
	if (!window.attachEvent) return true;	
	if (inter) return true;
	if(document.cookie.indexOf("REDIR")!=-1){if (document.cookie.indexOf("-p:1")!=-1) return true;}	
	if(checkpopblock()) return true;	
	
	
	try{hidebox();}catch(err){}
	if(confirm("Find out why everyone is playing at PartyPoker"))
	{		
		window.open('http://www.partypoker.com/?wm=3065773');		
	}

}

if (window.attachEvent)
{

	for (i=0; i < document.links.length; i++)
	{		
		document.links[i].attachEvent('onclick',popclick);		
	}
	self.attachEvent('onunload',exitpop);
}

function checkpopblock() 
{	
	var win = window.open("http://www.partycasino.com/test.htm","canpop","width=100,height=50,top=5000,left=5000");
	if (win==null || typeof(win)=="undefined") 
		return true;
	else 
	{
		win.close();
		return false;
	}
}