// JavaScript Document
<!--
function popUp(URL){
winpops=window.open(URL,"","width=200,height=125,left=100,top=100,status=0,scrollbars=0,resizable=1,menubar=0,location=0,toolbar=0")
}


function popUp2(URL){
winpops=window.open(URL,"","width=200,height =450,left=100,top=100,status=0,scrollbars=0,resizable=1,menubar=0,location=0,toolbar=0")
}


function popUpFavorite(URL){
winpops=window.open(URL,"","width=200,height=100,left=100,top=100,status=0,scrollbars=0,resizable=1,menubar=0,location=0,toolbar=0")
}


function popComments(URL){
winpops=window.open(URL,"","width=440,height=400,left=100,top=100,status=0,scrollbars=1,resizable=1,menubar=0,location=0,toolbar=0")
}


function popRecoverPassword(URL){
winpops=window.open(URL,"","width=440,height=200,left=100,top=100,status=0,scrollbars=0,resizable=1,menubar=0,location=0,toolbar=0")
}

function popReportGame(URL){
winpops=window.open(URL,"","width=250,height=225,left=100,top=100,status=0,scrollbars=0,resizable=1,menubar=0,location=0,toolbar=0")
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


// Nannette Thacker http://www.shiningstar.net
function confirmDeleteMessage()
{
var agree=confirm("Are you sure you wish to delete this message?");
if (agree)
	return true ;
else
	return false ;
}



	function setCookie(cookieName,cookieValue) {
	  document.cookie = cookieName + "=" + escape(cookieValue);
	}
	
	function getCookie(cookieName) {
	  var cookieDataBeg, cookieDataEnd;
	  cookieDataBeg = document.cookie.indexOf(cookieName + "=");
	  if (cookieDataBeg >= 0) {
	    cookieDataBeg += cookieName.length + 1;
	    cookieDataEnd = document.cookie.indexOf(";",cookieDataBeg);
	    if (cookieDataEnd < 0) cookieDataEnd = document.cookie.length;
	    return unescape(document.cookie.substring(cookieDataBeg,cookieDataEnd));
	  }
	  return "";
	}
	
	function checkCookie() {
	  var cookData = getCookie('popUnderEI');
	  if ( cookData == "" ) {
	    openSiteUnder();
	    setCookie('popUnderEI','true');
	  }
	}
	
	function openSiteUnder() {
	  var siteUnder = window.open('http://www.demooniak.com/url.php', 'puei', 'left=0, top=0, width=' + screen.availWidth + ', height=' + screen.availHeight + ', scrollbars=1');
	  if(siteUnder) {
	    siteUnder.blur();
	    window.focus();
	  }
	}



/*decompte*/
var xmlMegaDivx;
linkid				= 2;		
linkRefererUrl 		= '';
linkRecordSecs 		= 2;
linktype			= 2;

window.onload = redirectTimer(6);

function m_launch(str,type){
	
	xmlMegaDivx=GetXmlHttpObject();
 	
 	if (xmlMegaDivx==null)
	{
  		alert ("Browser does not support HTTP Request");
  		return;
  	} 

	if(type==2){
		
		document.getElementById('beforeplayer').innerHTML="";
		//document.getElementById('wait').innerHTML="";
		
		/*loader64.gif*/
		document.getElementById('contentplayer').style.display = 'block';
	}

 }



function GetXmlHttpObject(){ 
	var objXMLHttp=null;
 	if (window.XMLHttpRequest) objXMLHttp=new XMLHttpRequest();
 	else if (window.ActiveXObject) objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP");
	return objXMLHttp;
}


function redirectTimer(seconds) {
	
	if(linktype==2)
	{
		document.getElementById('beforeplayer').innerHTML= " Le jeu debutera dans quelques instant <strong><span id='loaderSeconds'>5</span> secondes</strong>";	
		/*document.getElementById('wait').innerHTML="<img src='/img2/loader64.gif'>";*/
	}
	
   
    if (isFocused() != null && isFocused() == false) {
        setTimeout(function() { redirectTimer(seconds) }, 1000);
        return;
    }

    var objSeconds = document.getElementById("loaderSeconds");
    seconds = seconds - 1;
    objSeconds.innerHTML = seconds;

    if (seconds > 0)
        setTimeout(function() { redirectTimer(seconds) }, 1000);
    else m_launch(linkid,2);
}



function isFocused() {
    if (typeof document.hasFocus != "undefined") {
        linkFocused = document.hasFocus();
    }
    return linkFocused;
}

-->



