// JavaScript Document


// Javascript opacité
 
nereidFadeObjects = new Object();
nereidFadeTimers = new Object();

function nereidFade(object, destOp, rate, delta){
if (!document.all)
return
    if (object != "[object]"){  //do this so I can take a string too
        setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);
        return;
    }
        
    clearTimeout(nereidFadeTimers[object.sourceIndex]);
    
    diff = destOp-object.filters.alpha.opacity;
    direction = 1;
    if (object.filters.alpha.opacity > destOp){
        direction = -1;
    }
    delta=Math.min(direction*diff,delta);
    object.filters.alpha.opacity+=direction*delta;

    if (object.filters.alpha.opacity != destOp){
        nereidFadeObjects[object.sourceIndex]=object;
        nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
    }
}

// Javascript opacité fin
// Javascript open Window
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
// Javascript open Window fin
// Javascript rollover
function MM_swapImgRestore() { //v3.0
  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_preloadImages() { //v3.0
  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_findObj(n, d) { //v4.01
  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() { //v3.0
  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];}
}
// Javascript rollover fin
// Javascript nul
function nul(){
}
// Javascript nul fin


// Javascript onchange menu...
function ChangeUrl(formulaire)
	{
	if (formulaire.ListeUrl.selectedIndex != 0)
		{
		location.href = formulaire.ListeUrl.options[formulaire.ListeUrl.selectedIndex].value;
	 	}
	else 
		{
		alert('Veuillez choisir une destination.');
		}
	}
// Javascript onchange menu... fin
// pour revenir en haut de page
  function navToNamedAnchor(anchorName) {
    location = "#"+anchorName
  }
// pour revenir en haut de page fin


function PopupShoes(modele)
{
	if (typeof(fenPopupShoes)=="object" && fenPopupShoes.closed==false)fenPopupShoes.close();
	fenPopupShoes = window.open ("envoyerAmiShoes.php?modele="+modele,"fenPopupShoes","width=500,height=350,screenX=400,screenY=200,top=0,left=0,alwaysRaised=1,scrollbars=1,toolbar=0,menubar=0,location=0,directories=0,status=0");
}
function PopupShoesCaract(modele)
{
	if (typeof(fenPopupShoesCaracteristique)=="object" && fenPopupShoesCaracteristique.closed==false)fenPopupShoesCaracteristique.close();
	fenPopupShoesCaracteristique = window.open ("shoesDetailCaract.php?modele="+modele,"fenPopupShoesCaracteristique","width=250,height=200,screenX=400,screenY=200,top=0,left=0,alwaysRaised=1,scrollbars=1,toolbar=0,menubar=0,location=0,directories=0,status=0");
}
function PopupShoesTechno()
{
	if (typeof(fenPopupShoesTechnologies)=="object" && fenPopupShoesTechnologies.closed==false)fenPopupShoesTechnologies.close();
	fenPopupShoesTechnologies = window.open ("Technologie.php","fenPopupShoesTechnologies","width=650,height=400,screenX=400,screenY=200,top=0,left=0,alwaysRaised=1,scrollbars=1,toolbar=0,menubar=0,location=0,directories=0,status=0");
}
function PopupJeu()
{
	if (typeof(fenPopupJeu)=="object" && fenPopupJeu.closed==false)fenPopupJeu.close();
	fenPopupJeu = window.open ("envoyerAmiJeu.php","fenPopupJeu","width=500,height=350,screenX=400,screenY=200,top=0,left=0,alwaysRaised=1,scrollbars=1,toolbar=0,menubar=0,location=0,directories=0,status=0");
}
function PopupPub(lien)
{
	if (typeof(fenPopupPub)=="object" && fenPopupPub.closed==false)fenPopupPub.close();
	fenPopupPub = window.open (lien,"fenPopupPub","width=750,height=600,screenX=400,screenY=200,top=0,left=0,alwaysRaised=1,scrollbars=1,toolbar=0,menubar=0,location=0,directories=0,status=0");
}
function PopupShop(lien)
{
	if (typeof(fenPopupShop)=="object" && fenPopupShop.closed==false)fenPopupShop.close();
	fenPopupShop = window.open (lien,"fenPopupShop","width=300,height=400,screenX=400,screenY=200,top=0,left=500,alwaysRaised=1,scrollbars=1,toolbar=0,menubar=0,location=0,directories=0,status=0");
}
function PopupNewsletter()
{
	email=document.form1.emailNewsletter.value;	
	if (typeof(fenPopupNewsletter)=="object" && fenPopupNewsletter.closed==false)fenPopupNewsletter.close();
	fenPopupNewsletter = window.open ("../web/inscription_newsletter.php?email="+email,"fenPopupNewsletter","width=400,height=300,screenX=400,screenY=200,top=0,left=0,alwaysRaised=1,scrollbars=1,toolbar=0,menubar=0,location=0,directories=0,status=0");
}
function PopupPassword()
{
	id=document.form1.login.value;	
	if (typeof(fenPopupPassword)=="object" && fenPopupPassword.closed==false)fenPopupPassword.close();
	fenPopupPassword = window.open ("../web/password_oublie.php?id="+id,"fenPopupPassword","width=400,height=300,screenX=400,screenY=200,top=0,left=0,alwaysRaised=1,scrollbars=1,toolbar=0,menubar=0,location=0,directories=0,status=0");
}
//focus !!
function PrendreFocus()
	{
	self.focus();
	tempoAnimEtat2 = setTimeout("PrendreFocus()",1000)
	}
//focusfin
function envoi() 
{
	document.form1.submit();
}
//génération des stats estat
function spc(_serial, _page, _class)
{
        document.write('<IMG src="http://prof.estat.com/cgi-bin/ft/'+
        _serial+ '?'+
        '&n='+ Math.round (Math.random () * 1000000000000000)+
        '&page='+ _page+
        '&class='+ _class+
        '&referer='+ escape(document.referrer) +'" border=0>' );
}

