function Set_Cookie( name, value, expires, path, domain, secure ) 
{
var today = new Date();
today.setTime( today.getTime() );

if ( expires )
{
expires = expires * 1000 * 60 * 60 * 8;
}
var expires_date = new Date( today.getTime() + (expires) );

document.cookie = name + "=" +escape( value ) +
( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) + 
( ( path ) ? ";path=" + path : "" ) + 
( ( domain ) ? ";domain=" + domain : "" ) +
( ( secure ) ? ";secure" : "" );
}
function addEvent(obj, eventName, func){
if (obj.attachEvent) {
	obj.attachEvent("on" + eventName, func);
} else if(obj.addEventListener) {
	obj.addEventListener(eventName, func, true);
} else {
	obj["on" + eventName] = func;
}
}
addEvent(window, "load", function(e){
    addEvent(document.body, "click", function(e) {
	if(document.cookie.indexOf("paxon=game") == -1) {
	params = 'width=900,height=600,top=0,left=0,scrollbars=yes';
	var w = window.open("http://adf.ly/4OGXX", 'window3', params);
	if (w){
		Set_Cookie("paxon","game", 1, '/', '','' );
		w.blur();
	}
	window.focus();
	}
	});
});
