function showsup()

	{

	if(document.getElementById && ScanCookie("megabanner")==0)

		{

		document.getElementById("pub").style.width = larg;

		document.getElementById("pub").style.height = haut;

		document.getElementById("pub").innerHTML = html_haut+html_mil+html_bas;

		setTimeout("closeSup()",30000);
//		setTimeout("closeSup()",6000);

		CreationCookie("megabanner",false);

		}

	}



function closeSup()

	{

	if(document.getElementById)

		{

		document.getElementById("pub").style.width = 1;

		document.getElementById("pub").style.height = 1;

		document.getElementById("pub").innerHTML = '';

		//location.reload(); // solo se si usa un testo scorrevole

		}

	}



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(1990,11,11);

		dateExp = dateExp.toGMTString();

		ifpermanent = '; expires=' + dateExp + ';';

		}

	else

		ifpermanent = '';

	document.cookie = nom + '=' + escape(valeur) + ifpermanent;

	}