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()",60000);*/
		CreationCookie("megabanner",false);
		location= "stylechanger.php?style=iperbole";
	}
}

function closeSup()	{
	if(document.getElementById)
		{
		document.getElementById("pub").style.width = 1;
		document.getElementById("pub").style.height = 1;
		document.getElementById("pub").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(1990,11,11);
		dateExp = dateExp.toGMTString();
		ifpermanent = '; expires=' + dateExp + ';';
	}else
		ifpermanent = '';
		document.cookie = nom + '=' + escape(valeur) + ifpermanent;
	}

	if(document.all)
	{
		larg = document.body.clientWidth;
		haut = document.body.clientHeight;
	}else{
		larg = screen.width;
		haut = screen.height;
	}
	
html_haut = "<TABLE WIDTH="+larg+" HEIGHT="+haut+"><TR><TD ALIGN=center>";
html_bas = "</TD></TR></TABLE>";

html_mil = "<TABLE WIDTH=500 HEIGHT=250 CELLPADDING=10 CELLSPACING=1 class=tabella  background='bg.gif'>";
html_mil += "<TR>";
html_mil += "<TD>";
html_mil += "<p style='font-size:10pt;'>Per utilizzare <strong>\"La Mia Iperbole\"</strong> &egrave; ";
html_mil += "necessario avere i cookie abilitati nel browser.</p>";
html_mil += "<p style='font-size:10pt;'>Vengono utilizzati soltanto per garantire le funzionalit&agrave; della pagina.</p>";
html_mil += "<p style='font-size:10pt;'>La pagina non sostituisce la homepage attuale ";
html_mil += "e non aggiunge nulla rispetto a quanto gi&agrave; pubblicato.</p>";
html_mil += "<p style='font-size:10pt; font-weight: bold;'>Selezionate un colore dal box in basso ";
html_mil += "'Scegli i colori'</p>";
html_mil += "<p style='font-size:10pt; text-align:center;'><a href=\"index.php\">CHIUDI</a></p>";
html_mil += "</TD>";
html_mil += "</TR>";
html_mil += "</TABLE>";
//onClick=\"closeSup();return(false)\"
//window.onload = showsup;
