if ( document.body ) {
	larg = document.body.clientWidth;
	haut = document.body.clientHeight;
	}
	else
	{
	larg = screen.width;
	haut = screen.height;
	};

function affichePub() {
	if( document.getElementById && cookieScan("cookiePub")==0 ) {	
	//if( document.getElementById  ) {	
		document.getElementById("pub_snt").style.width = larg;
		document.getElementById("pub_snt").style.height = haut;
		document.getElementById("pub_snt").innerHTML = html_haut + html_contenu + html_bas;
		document.getElementById("pub_snt").style.visibility = "visible";
		setTimeout("masquePub()",30000);
		cookieCreate("cookiePub",1,true);
		};
	};

function masquePub() {
	if( document.getElementById ) {
		document.getElementById("pub_snt").style.width = 1;
		document.getElementById("pub_snt").style.height = 1;
		document.getElementById("pub_snt").innerHTML = "";
		document.getElementById("pub_snt").style.visibility = "hidden";
		};
	};

function cookieScan(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 cookieCreate(nom,valeur,isPermanent) {
	if (isPermanent) {
		dateExp = new Date(2020,11,11);
		dateExp = dateExp.toGMTString();
		ifisPermanent = "; expires=" + dateExp + ";";
		}
		else ifisPermanent = "";
	document.cookie = nom + "=" + escape(valeur) + ifisPermanent;
	};

html_haut = "<table width="+larg+" height="+haut+"><tr><td valign='top' align='center' background='/img/grille.gif'>";
html_bas = "</td></tr></table>";
html_contenu = "<br /><br /><br /><br /><br /><br /><br />";
html_contenu += "<table width=600 cellpadding=4 cellspacing=4 align='center' bgcolor='#FFFFFF' style='border: 1px solid #000000'>";
html_contenu += "<tr><td align='center' class='pub_texte'>";
html_contenu += "<span class='pub_titre'>INFORMATION !</span><br /><br />";
html_contenu += "<img src='/img/cardinale-ouest.gif' alt='W' align='left'>";
html_contenu += "<img src='/img/cardinale-est.gif' alt='E' align='right'>";
html_contenu += "Nous vous rappelons que la S.N.T. organise une session de <b>permis mer hauturier</b><br />au mois de décembre 2006 à la Trinité sur Mer.";
html_contenu += "<br />Cette extension du permis côtier vous permet une navigation<br />de jour comme de nuit sans aucune limitation de distance.<br /><br />";
html_contenu += "La date limite d'inscription est fixée au 30 novembre, <a href='/permis-mer.html#hauturier'><b>cliquez ici pour connaitre les détails</b></a>.";
html_contenu += "<br /><br />";
html_contenu += "<img src='/img/boue-babord-small.gif' alt='Babord' align='absmiddle'>&nbsp;&nbsp;";
html_contenu += "<a href='#' onClick='masquePub();return(false)' class='pub_texte'>Fermer</a>";
html_contenu += "<img src='/img/boue-tribord-small.gif' alt='Tribord' align='absmiddle'>&nbsp;&nbsp;";
html_contenu += "</td></tr></table><br /><br />";
