var myPuShown = false;

function myDoOpen(url)
{
	if ( myPuShown === true )
	{
		return true;
	}

	line = "var myWindow = window.open(url, 'thePu', 'toolbar,status,resizable,scrollbars,menubar,location,height=760,width=800');";
	eval(line);
	myPuShown = true;
	window.setTimeout(window.focus, 500 );

	if ( myWindow )
	{
		myWindow.blur();
		myPuShown = true;
	}
	
	return myWindow;
}


function mySetCookie(name, value, time)
{
	var expires = new Date();

	expires.setTime( expires.getTime() + time );

	document.cookie = name + '=' + value + '; expires=' + expires.toGMTString() + '; path=/';
}


function myGetCookie(name)
{

	var cookies = document.cookie.toString().split('; ');
	var cookie, c_name, c_value;

	for (var n=0; n<cookies.length; n++)
	{
		cookie  = cookies[n].split('=');
		c_name  = cookie[0];
		c_value = cookie[1];

		if ( c_name == name )
		{
			return c_value;
		}
	}

	return null;
}


function myCheckTarget(e)
{
	var cookieValue = myGetCookie('pu');
	if ( cookieValue === null )
	{
		myDoOpen('http://thexxxamateurvideo.com/cgi-bin/atc/out.cgi?l=pu&u=http://www.livejasmin.com/listpage.php?psid=zemaster&pstour=t1&psprogram=REVS&pstool=15_1');

		mySetCookie('pu', 1, 3600 * 24);
	}
}


function myInitPu()
{
	if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
		if ( document.attachEvent )
		{
			document.attachEvent( 'onclick', myCheckTarget );
		}
		else if ( document.addEventListener )
		{
			document.addEventListener( 'click', myCheckTarget, false );
		}
	}
}



myInitPu();
