addEventListener("load", function() { setTimeout(HideURLbar, 0); }, false);

function HideURLbar() {
	if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)))
	{
		window.scrollTo(0, 1);
	}
}

function MM_preloadImages() {
	var d=document;
	if(d.images)
	{
		if(!d.MM_p)
			d.MM_p=new Array();
		var i,j=d.MM_p.length,a=MM_preloadImages.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 MM_swapImgRestore() {
	var i,x,a=document.MM_sr;
	for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)
		x.src=x.oSrc;
}

function MM_findObj(n, d) {
	var p,i,x;
	if(!d)
		d=document;
	if((p=n.indexOf("?"))>0&&parent.frames.length)
	{
		d=parent.frames[n.substring(p+1)].document;
		n=n.substring(0,p);
	}
	if(!(x=d[n])&&d.all)
		x=d.all[n];
	for (i=0;!x&&i<d.forms.length;i++)
		x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++)
		x=MM_findObj(n,d.layers[i].document);
	if(!x && d.getElementById)
		x=d.getElementById(n);
	return x;
}

function MM_swapImage() {
  	var i,j=0,x,a=MM_swapImage.arguments;
  	document.MM_sr=new Array;
  	for(i=0;i<(a.length-2);i+=3)
	{
   		if ((x=MM_findObj(a[i]))!=null)
		{
			document.MM_sr[j++]=x;
			if(!x.oSrc)
				x.oSrc=x.src; x.src=a[i+2];
		}
	}
}

function MailTo(nom, domaine, sujet) {
	var adresse = nom + "@" + domaine;
	var chaineMail = "mailto:" + adresse + "?subject=" + sujet;
	location.href = chaineMail;
}

function InitPublicite() {
	imgPath = new Array;
	SiClickGoTo = new Array;
	a = 0;
}
	
function AddPublicite(i,image,lien) {
	version = navigator.appVersion.substring(0,1);
	if (version >= 3)
	{
		SiClickGoTo[i] = lien;
		imgPath[i] = image;
	}
	a = i;
}

function StartPublicite() {
	if (version >= 3)
	{
		document.write('<a href="#" onClick="DestImg();return(false)"><img src='+imgPath[a-1]+' border=0 alt="Publicite" name=defil></a>');
		DefilImg();
	}
	else
	{
		document.write('<a href="http://www.ailp.me"><img src="/publicite/ailp.me.png" border=0 alt="Publicite"></a>');
	}
}

function DestImg() {
	window.open(SiClickGoTo[a-1],'_blank');
}

function DefilImg() {
	if (a == imgPath.length)
	{
		a = 0;
	}
	if (version >= 3)
	{
		document.defil.src = imgPath[a];
		tempo3 = setTimeout("DefilImg()",4000);
		a++;
	}
}

function Xiti(page) {
	document.write('<a href="http://www.xiti.com/xiti.asp?s=437672" title="WebAnalytics">');
	Xt_param = 's=437672&p='+page;
	try { Xt_r = top.document.referrer; }
	catch(e) { Xt_r = document.referrer; }
	Xt_h = new Date();
	Xt_i = '<img width="80" height="15" border="0" ';
	Xt_i += 'src="http://logv10.xiti.com/g.xiti?'+Xt_param;
	Xt_i += '&hl='+Xt_h.getHours()+'x'+Xt_h.getMinutes()+'x'+Xt_h.getSeconds();
	if(parseFloat(navigator.appVersion)>=4)
	{
		Xt_s=screen;Xt_i+='&r='+Xt_s.width+'x'+Xt_s.height+'x'+Xt_s.pixelDepth+'x'+Xt_s.colorDepth;
	}
	document.write(Xt_i+'&ref='+Xt_r.replace(/[<>"]/g, '').replace(/&/g, '$')+'"></a>');
}