// variable de l'url finale
var urlF = new String();

// tableau des différentes url possibles
var pop = new Array();

// nombre aléatoire
var resultat = 0;

/*
 * Ici les différentes urls possibles
 * Complétez le tableau en suivant le schéma apparant
 */
pop[1] = "http://outils.yesmessenger.com/pdv30.php?id=45952&e=1&w=0";
pop[2] = "http://media.carpediem.fr/promo_fr/gratuit/hd/005/index.html?id=45952&e=1&w=0&id_facturation=200";
pop[3] = "http://media.monliveshow.com/pdvs/fr/pdv2.html?id=45952&e=1&w=0";
pop[4] = "http://www.myxfantasies.com/promos/fr/pdv01/index.html?id=45952&e=1&w=0&mode=cb&prod=4";
pop[5] = "http://www.yes-messenger.com/?id=45952&e=1&w=0&content_niche=";

pop[0] = "out.php";

// dimension du tableau pop
var tabdim = pop.length-1;

// numéro au hasard -> case du tableau
resultat = Math.round(Math.random()*tabdim);

// on recupère l'url choisie  
urlF = pop[resultat];

function rPop(urlF,l,h) 
{
	info = null;
	//l = Math.ceil(screen.width * (l/100)*(1024/screen.width));
	//h = Math.ceil(screen.height * (h/100));
	l = 1000;
	h = 700;
	
	if(info) 
	{
		info.close();
		info = window.open(urlF,"","scrollbars=yes,menubar=yes,resizable=yes,width="+ l +"px,height="+ h +"px,outerwidth="+ l +"px,outerheight="+ h +"px,top=5,left=5,screenX=5,screenY=5");
		info.focus();
	}
	else 
	{
		info = window.open(urlF,"","scrollbars=yes,menubar=yes,resizable=yes,width="+ l +"px,height="+ h +"px,outerwidth="+ l +"px,outerheight="+ h +"px,top=5,left=5,screenX=5,screenY=5");
		info.focus();
	}
}
