// JavaScript Document
/* LAISSER CES LIGNES */
function showsup()
	{
	if(document.getElementById && ScanCookie("supersticiel")==0)
		{
		document.getElementById("pub1").style.width = larg;
		document.getElementById("pub1").style.height = haut;
		document.getElementById("pub1").innerHTML = html_haut+html_mil+html_bas;
		setTimeout("closeSup()",20000);
		
		CreationCookie("supersticiel",false);
		}
	}

function closeSup()
	{
	if(document.getElementById)
		{
		document.getElementById("pub1").style.width = 1;
		document.getElementById("pub1").style.height = 1;
		document.getElementById("pub1").innerHTML = '';
		}
	}

function ScanCookie(variable)
	{
	cook = document.cookie;
	variable += "=";
	place = cook.indexOf(variable,0);
	if (place <= -1)
		return("0");
	else
		{
		end = cook.indexOf(";",place)
		if (end <= -1)
			return(unescape(cook.substring(place+variable.length,cook.length)));
		else
			return(unescape(cook.substring(place+variable.length,end)));
		}
	}

function CreationCookie(nom,valeur,permanent)
	{
	if(permanent)
		{
		dateExp = new Date(2020,11,11);
		dateExp = dateExp.toGMTString();
		ifpermanent = '; expires=' + dateExp + ';';
		}
	else
		ifpermanent = '';
	document.cookie = nom + '=' + escape(valeur) + ifpermanent;
	}


if(document.all)
	{
	larg = (document.body.clientWidth) - 17;
	haut = document.body.clientHeight;
	}
else
	{
	larg = (document.body.offsetWidth) - 17;
	haut = document.body.offsetHeight;
	}
	
html_haut = "<TABLE WIDTH="+larg+" HEIGHT="+haut+"><TR><TD VALIGN=middle ALIGN=center BACKGROUND=grille.gif>";
html_bas = "</TD></TR></TABLE>";

/* 
A VOUS DE MODIFER CES LIGNES 
N'OUBLIEZ UN LIEN DE CE TYPE :
<A HREF=# onClick="closeSup();return(false)">texte ou image</A>
POUR POUVOIR REFERMER LA FENETRE SI LE VISITEUR N'EST PAS INTERESSE
*/
html_mil = "<MAP NAME=kitgrafik>  <AREA SHAPE=rect COORDS=98,516,513,98 HREF=# onClick=\"closeSup();return(false)\"> </MAP><TABLE WIDTH=600 CELLPADDING=0 CELLSPACING=180 BORDER=0>";
html_mil += "	<TR>";
html_mil += "<TD><IMG SRC=superpub.gif BORDER=0 WIDTH=600 HEIGHT=379 HSPACE=0 VSPACE=0 USEMAP=#kitgrafik><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/></TD>";
html_mil += "</TR>";
html_mil += "</TABLE>";
window.onload = showsup;
