﻿function pop(page,largeur,hauteur){
	var top		= (screen.height-hauteur)/2;
	var left	= (screen.width-largeur)/2;
	var fenetre = window.open(page,"pop_up"+Math.round((Math.random()*10000000000000)),"top="+top+",left="+left+",width="+largeur+", height="+hauteur+", resizable=yes,scrollbars=yes");
	fenetre.focus();
}
function pop2(page,largeur,hauteur){
	var top		= (screen.height-hauteur)/2;
	var left	= (screen.width-largeur)/2;
	var fenetre = window.open(page,"pop_up"+Math.round((Math.random()*10000000000000)),"top="+top+",left="+left+",width="+largeur+", height="+hauteur+",scrollbars=yes,status=yes,toolbar=yes,resizable=yes,menubar=yes,location=yes");
	fenetre.focus();
}
function pop3(page,largeur,hauteur){
	var top		= (screen.height-hauteur)/2;
	var left	= (screen.width-largeur)/2;
	var fenetre = window.open(page,"pop_up"+Math.round((Math.random()*10000000000000)),"top="+top+",left="+left+",width="+largeur+", height="+hauteur+",scrollbars=no,status=no,toolbar=no,resizable=no,menubar=no,location=no");
	fenetre.focus();
}
function timerRedirect(temps,myUrl){counter=setTimeout("redirect('"+myUrl+"')", temps*1000);}
function redirect(myUrl){document.location.href = myUrl;}

function setClassName(oElm,className){oElm.className = className;}

function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function'){
		window.onload = func;
	}else{
		window.onload = function(){
			if (oldonload){oldonload();}
	      	func();
	    }
	}
}
// addLoadEvent(nameOfSomeFunctionToRunOnPageLoad);
addLoadEvent(function(){setClassName(document.body,'');});

function doubleClickTag(floodlightTag) {
	//alert("--> "+floodlightTag);
	if(document.getElementById("DCLK_FLDiv")){
		var flDiv=document.getElementById("DCLK_FLDiv");
	} else {
		var flDiv = document.body.appendChild(document.createElement("div"));
		void(flDiv.setAttribute("id","DCLK_FLDiv"));
		void(flDiv.style.position="absolute");
		void(flDiv.style.visibility="hidden");
		void(flDiv.style.top="0px");
	}
	void(flDiv.innerHTML='<iframe id="DCLK_FLIframe" src="'+floodlightTag+';ord='+Math.floor(Math.random()*100000000)+'?"></iframe>');
}
function bsk_flash(num){
	bsk_img = new Image();
	if (num==1) { bsk_i = 'http://s0b.bluestreak.com/ix.e?bb&t=36618'; }
	if (num==2) { bsk_i = 'http://s0b.bluestreak.com/ix.e?bb&t=36619'; }
	if (num==3) { bsk_i = 'http://s0b.bluestreak.com/ix.e?bb&t=36687'; }
	if (num==4) { bsk_i = 'http://s0b.bluestreak.com/ix.e?bb&t=36730'; }
	if (num==5) { bsk_i = 'http://s0b.bluestreak.com/ix.e?bb&t=37885'; }
	if (num==6) { bsk_i = 'http://s0b.bluestreak.com/ix.e?bb&t=37886'; }
	bsk_img.src = bsk_i;
	return;
}
