var xmenu_correct = 118;

function Popup(page,largeur,hauteur,options) {
  var jour= new Date();
  var hh=jour.getHours();
  var mn=jour.getMinutes();
  var onoff="on"
function openpopup()
	{
	if (hh<05)
		{ var popurl="http://www.yalho.com/top/entree.php?id=10" }
	else if (hh==99)
		{ var popurl="http://www.toutgratuit.com/top.phtml?id=3511" }
	else
		{
		if (mn==1) { var popurl="http://www.kazaroumba.com/top/in.php3?id=2" }
		else if (mn==2) { var popurl="http://www.kazaroumba.com/top/in.php3?id=2" }
		else if (mn==3) { var popurl="http://www.desvideos.com/top/in.php3?id=74" }
		else if (mn==4) { var popurl="http://www.desvideos.com/top/in.php3?id=74" }
		else if (mn==5) { var popurl="http://www.umour.com/umourletop/entree.php?id=12" }
		else if (mn==6) { var popurl="http://www.umour.com/umourletop/entree.php?id=12" }
		else if (mn==7) { var popurl="http://www.umour.com/umourletop/entree.php?id=12" }
		else if (mn==8) { var popurl="http://www.umour.com/umourletop/entree.php?id=12" }
		else if (mn==9) { var popurl="http://www.umour.com/umourletop/entree.php?id=12" }
		else if (mn==10) { var popurl="http://www.umour.com/umourletop/entree.php?id=12" }
		else if (mn==11) { var popurl="http://www.umour.com/umourletop/entree.php?id=12" }
		else if (mn==12) { var popurl="http://www.umour.com/umourletop/entree.php?id=12" }
		else if (mn==13) { var popurl="http://www.umour.com/umourletop/entree.php?id=12" }
		else if (mn==14) { var popurl="http://www.cefoo.net/top/in.php3?id=291" }
		else if (mn==15) { var popurl="http://www.cefoo.net/top/in.php3?id=291" }
		else if (mn==16) { var popurl="http://www.cefoo.net/top/in.php3?id=291" }
		else if (mn==17) { var popurl="http://www.cefoo.net/top/in.php3?id=291" }
		else if (mn==18) { var popurl="http://www.cefoo.net/top/in.php3?id=291" }
		else if (mn==19) { var popurl="http://www.cefoo.net/top/in.php3?id=291" }
		else if (mn==20) { var popurl="http://www.funhumour.com/topsite/vote.php?id=8" }
		else if (mn==21) { var popurl="http://www.funhumour.com/topsite/vote.php?id=8" }
		else if (mn==22) { var popurl="http://www.topsitelists.com/topsites.cgi?ID=160&user=humour&area=bestsites" }
		else if (mn==23) { var popurl="http://www.donfblagues.net/donfblagues.php?id=11" }
		else if (mn==24) { var popurl="http://www.umour.com/umourletop/entree.php?id=12" }
		else if (mn==25) { var popurl="http://www.umour.com/umourletop/entree.php?id=12" }
		else if (mn==26) { var popurl="http://www.umour.com/umourletop/entree.php?id=12" }
		else if (mn==27) { var popurl="http://www.cefoo.net/top/in.php3?id=291" }
		else if (mn==28) { var popurl="http://www.cefoo.net/top/in.php3?id=291" }
		else if (mn==29) { var popurl="http://www.cefoo.net/top/in.php3?id=291" }
		else if (mn==30) { var popurl="http://www.desvideos.com/top/in.php3?id=74" }
		else if (mn==31) { var popurl="http://www.desvideos.com/top/in.php3?id=74" }
		else if (mn==32) { var popurl="http://www.desvideos.com/top/in.php3?id=74" }
		else if (mn==33) { var popurl="http://www.yalho.com/top/entree.php?id=10" }
		else if (mn==34) { var popurl="http://www.cefoo.net/top/in.php3?id=291" }
		else if (mn==35) { var popurl="http://www.cefoo.net/top/in.php3?id=291" }
		else if (mn==36) { var popurl="http://www.cefoo.net/top/in.php3?id=291" }
		else if (mn==37) { var popurl="http://www.cefoo.net/top/in.php3?id=291" }
		else if (mn==38) { var popurl="http://www.cefoo.net/top/in.php3?id=291" }
		else if (mn==39) { var popurl="http://www.cefoo.net/top/in.php3?id=291" }
		else if (mn==40) { var popurl="http://www.cefoo.net/top/in.php3?id=291" }
		else if (mn==41) { var popurl="http://www.cefoo.net/top/in.php3?id=291" }
		else if (mn==42) { var popurl="http://www.cefoo.net/top/in.php3?id=291" }
		else if (mn==43) { var popurl="http://www.humourzone.com/cgi-bin/top100/rankem.cgi?id=gerardgg" }
		else if (mn==44) { var popurl="http://www.humourzone.com/cgi-bin/top100/rankem.cgi?id=gerardgg" }
		else if (mn==45) { var popurl="http://www.humourzone.com/cgi-bin/top100/rankem.cgi?id=gerardgg" }
		else if (mn==46) { var popurl="http://www.humourzone.com/cgi-bin/top100/rankem.cgi?id=gerardgg" }
		else if (mn==47) { var popurl="http://www.humourzone.com/cgi-bin/top100/rankem.cgi?id=gerardgg" }
		else if (mn==48) { var popurl="http://www.humourzone.com/cgi-bin/top100/rankem.cgi?id=gerardgg" }
		else if (mn==49) { var popurl="http://www.humourzone.com/cgi-bin/top100/rankem.cgi?id=gerardgg" }
		else if (mn==50) { var popurl="http://www.humourzone.com/cgi-bin/top100/rankem.cgi?id=gerardgg" }
		else if (mn==51) { var popurl="http://www.humourzone.com/cgi-bin/top100/rankem.cgi?id=gerardgg" }
		else if (mn==52) { var popurl="http://www.humourzone.com/cgi-bin/top100/rankem.cgi?id=gerardgg" }
		else if (mn==53) { var popurl="http://www.humourzone.com/cgi-bin/top100/rankem.cgi?id=gerardgg" }
		else if (mn==54) { var popurl="http://www.humourzone.com/cgi-bin/top100/rankem.cgi?id=gerardgg" }
		else if (mn==55) { var popurl="http://www.umour.com/umourletop/entree.php?id=12" }
		else if (mn==56) { var popurl="http://www.umour.com/umourletop/entree.php?id=12" }
		else if (mn==57) { var popurl="http://www.umour.com/umourletop/entree.php?id=12" }
		else if (mn==58) { var popurl="http://www.umour.com/umourletop/entree.php?id=12" }
		else if (mn==59) { var popurl="http://www.humourzone.com/cgi-bin/top100/rankem.cgi?id=gerardgg" }
		else { var popurl="http://www.rigolus.net/php/top/in.php?id=gerardg" }
		}
	winpops=window.open(popurl,"rigolus","location=1,directories=1,scrollbars=1,resizable=1,menuBar=1,width=570,height=270",''); self.focus();
	}
	
function get_cookie(Name)
	{
//this function is used only if you had selected popup to load ONCE per session
//You may remove this function if variable "onoff" above is set to "off"
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
		offset = document.cookie.indexOf(search)
		if (offset != -1) { // if cookie exists
			offset += search.length
			// set index of beginning of value
			end = document.cookie.indexOf(";", offset);
		// set index of end of cookie value
			if (end == -1)
				end = document.cookie.length;
				returnvalue=unescape(document.cookie.substring(offset, end))
			}
	}
	return returnvalue;
	}
function loadpopup()
	{
	if (onoff=="on"){
		if (get_cookie('alreadypopped')==''){
			openpopup()
			document.cookie="alreadypopped=yes"
			}
	}
else
		openpopup()
	}
loadpopup()
}
function StartTimer(delai) {
	// Déclenche le timer à la fin du chargement de la page (delai est en secondes)
	setTimeout("Popup()",delai*1000);
}



