﻿
//function blockError(){return true;}
//window.onerror = blockError;

//if (parent.location.href == self.location.href){window.location.href = 'index.php' } // use comment in local use

function context()  {alert('© Initiativeweb'); return(false); }
document.oncontextmenu = context;
 
function loading() {
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=loading.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} }

function pop_img(Width,Height,img) { winpop=open("",'popup','width='+Width+',height='+Height+',top=0,left=100,toolbar=no,scrollbars=no,resizable=yes,title=no');
	winpop.document.write("<html>\n<head>\n<title>pop-up image</title>\n</head>\n<body>\n<center>\n<img src="+img);
	winpop.document.write("\n<br><br>\n<font size='2'><a href='javascript:window.close();'>Fermer la fenêtre</a></font>\n</center>\n</body>\n</html>"); }

var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=0,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}
// -->
	
function pop_up(theURL,winName,features) {window.open(theURL,winName,features);}

function mesure(_MesurePro, _page) {scr_w = screen.width; scr_h = screen.height; color = screen.colorDepth; ref = escape(window.document.referrer);
document.write("<IMG src='http://www.direct-stats.com/cgi-bin/pro/stats/absolutic/marqueur.pl/"+ "?page="+ _page+ "&n="+ Math.round (Math.random () * 1000000000000000)+ "&reso_w="+ scr_w+ "&reso_h="+ scr_h+ "&color="+ color+ "&referer="+ ref+"' border=0>"); }

function datedmy() {
	var jour,mois;
	var temps = new Date();
	var jours=temps.getDay()+1 ;
	
	if (jours == 1) jour = "Dimanche";
		else if (jours == 2) jour = "Lundi";
		else if (jours == 3) jour = "Mardi";
		else if (jours == 4) jour = "Mercredi";
		else if (jours == 5) jour = "Jeudi";
		else if (jours == 6) jour = "Vendredi";
		else if (jours == 7) jour = "Samedi";

	var moisa=temps.getMonth()+1 ;
	if (moisa == 1) mois = " Janvier";
		else if (moisa == 2) mois = " Février";
		else if (moisa == 3) mois = " Mars";
		else if (moisa == 4) mois = " Avril";
		else if (moisa == 5) mois = " Mai";
		else if (moisa == 6) mois = " Juin";
		else if (moisa == 7) mois = " Juillet";
		else if (moisa == 8) mois = " Août";
		else if (moisa == 9) mois = " Septembre";
		else if (moisa == 10) mois = " Octobre";
		else if (moisa == 11) mois = " Novembre";
		else if (moisa == 12) mois = " Décembre";

	var annee=temps.getYear();
	if ( annee < 2000 )
		annee=annee+1900;

	var texte = "<span class='date'> "+jour+" "+temps.getDate()+" "+mois+" "+annee+"&nbsp;</span>";
	document.write(texte); }
//-->
