// pacth if javascript up main background to -44px on top
document.write("<lin" + "k type=\"text/css\" rel=\"stylesheet\" href=\"/css/common/js.css\" media=\"screen\" />");

function popit(type,page,largeur,hauteur,popupname){
	if(!popupname || popupname ==''){
		popupname = "pop_up"
	}
	var top		= (screen.height-hauteur)/2;
	var left	= (screen.width-largeur)/2;
	switch(type){
		case 1 :
			var fenetre = window.open(page,popupname,"top="+top+",left="+left+",width="+largeur+", height="+hauteur+",resizable=yes,scrollbars=yes");
			break;
		case 2 :
			var fenetre = window.open(page,popupname+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");
			break;
		case 3 :
			var fenetre = window.open(page,popupname+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");
			break;
		case 4 :
			var fenetre = window.open(page,popupname+Math.round((Math.random()*10000000000000)),"top="+top+",left="+left+",width="+largeur+", height="+hauteur+",scrollbars=yes,status=no,toolbar=no,resizable=yes,menubar=no,location=no");
			break;
		default :
			var fenetre = window.open(page,popupname+Math.round((Math.random()*10000000000000)),"top="+top+",left="+left+",width="+largeur+", height="+hauteur+",resizable=yes,scrollbars=yes");
	}
	fenetre.focus();
}

function timerRedirect(temps,myUrl){
	counter=setTimeout("redirect('"+myUrl+"')", temps*1000);
}

function redirect(myUrl){
	document.location.href = myUrl;
}