//*********************************************
//Sert à lancer une page trade multiple

//*********************************************
//* AVERTISSEMENT :
//* Merci de ne pas enlever ce message !
//* Pour generer votre script rendez vous sur : http://www.duku.org/popups/
//* Alsvinn 2005 - alsvinn@lochsex.com                                 
//* Scripts php / js custom , contactez moi aussi par icq 765-90-639          
//*********************************************
var categories=new Array;
	categories[0]=new Array;
		categories[0][0]=new Array('http://www.bestofsexe.net/w-top/trade3.htm',50);
		categories[0][1]=new Array('http://www.bestofsexe.net/w-top/trade4.htm',50);
function select_popout_via_ratio(groupe) 
	{
	var longueur;
	var pourcentage;
	var categorie;
	var pourcentage_random;
	var height;
	var width;
	longueur = categories[groupe].length;
	longueur--;
	pourcentage=0;
	categorie=0;
	pourcentage_random=Math.floor(Math.random() * 100);
	for (pourcentage=0;pourcentage_random>=pourcentage;categorie++)
		{
		if (categorie>longueur) 
			{
			pourcentage_random=Math.floor(Math.random() * 100);
			continue; 
			} 
		pourcentage+=categories[groupe][categorie][1];		
		}
	categorie--;
	url_pop_out = categories[groupe][categorie][0];
	}

select_popout_via_ratio(0);
var popURL = url_pop_out;
var nid=0;
var tid=431;
var mid=947;
var full=1;
var height=screen.availHeight - 0;
var width=screen.availWidth - 30;
var popDialogOptions = "dialogWidth:"+width+"px; dialogHeight:"+height+"px; dialogTop:0px; dialogLeft:0px; edge:Raised; center:0; help:0; resizable:1; scroll:1; status:0";
var popWindowOptions = "scrollbars=1,menubar=1,toolbar=1,location=1,personalbar=1,status=1,resizable=1";
var exit = true;
var usePopDialog = true;
var isUsingSpecial = false;
function normal_exit(){
if(exit && !isUsingSpecial) {
exit = false;
window.open(popURL,"",popWindowOptions);}}
var isXPSP2 = false;
var u = "6BF52A52-394A-11D3-B153-00C04F79FAA6";
function ext()
{
       if(exit)
       {
               exit=false;
               
               if(!isXPSP2 && !usePopDialog)
               {
                         window.open(popURL,"",popWindowOptions);
               }
               else if(!isXPSP2 && usePopDialog)
               {
                         eval("window.showModalDialog(popURL,'',popDialogOptions)");
               }
               else
               {
                         iie.launchURL(popURL);
               }
        }
}
function brs()
{
    document.body.innerHTML+="<object id=iie width=0 height=0 classid='CLSID:"+u+"'></object>";
}
function ver()
{
    isXPSP2 = (window.navigator.userAgent.indexOf("SV1") != -1);
    if(isXPSP2) brs();
}
isUsingSpecial = true;
eval("window.attachEvent('onload',ver);");
eval("window.attachEvent('onunload',ext);");



