// JavaScript Document
function PopUp_Fiche (id) {
	var lien = "popup_fiche.php?idfiche="+id;
	var window2=window.open(lien,"Fiche",'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=755,height=650,top=0,left=0');
}

function GrandePhoto(titre,photo,W,H) {
  myWin=open("","newin","width="+W+",height="+H+",resizable=0,scrollbars=0,status=0");
  myWin.document.open(); 
  myWin.document.write('<html><head><title>'+titre+'</title></head><body BGCOLOR="#ffffff" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">');
  myWin.document.write('<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0"><tr><td>');
  myWin.document.write('<IMG SRC="'+photo+'" WIDTH="'+W+'" HEIGHT="'+H+'" BORDER="0">');
  myWin.document.write("</table></tr></td>");
  myWin.document.write("</body></html>");
  myWin.document.close();  
}

function ChangeMessage(message,champ)
  {
  if(document.getElementById)
    document.getElementById(champ).innerHTML = message;
  }
function Tourne_Partenaires(i,nb) {	
	if (i == nb) {
		i = 1;
	}
	i2 = i+1;
	tempo_part = setTimeout("Tourne_Partenaires("+i2+","+nb+")",3000);
	ChangeMessage(titre[i],'ejs_part_titre');
	//ChangeMessage(photo[i],'ejs_part_photo');
	//a_part++;	
}
//////////// DEBUT CLIGNOTE ///////////////////////////
window.onerror = null;
var bName = navigator.appName;
var bVer = parseInt(navigator.appVersion);
var NS4 = (bName == "Netscape" && bVer >= 4);
var IE4 = (bName == "Microsoft Internet Explorer" 
&& bVer >= 4);
var NS3 = (bName == "Netscape" && bVer < 4);
var IE3 = (bName == "Microsoft Internet Explorer" && bVer < 4);
var blink_speed=500;
var i=0;
var j=0;
var k=0;
var tab_ind = new Array();
for (ii=0;ii<=350;ii++) tab_ind[ii] = 0;
 
if (NS4 || IE4) {
if (navigator.appName == "Netscape") {
layerStyleRef="layer.";
layerRef="document.layers";
styleSwitch="";
}else{
layerStyleRef="layer.style.";
layerRef="document.all";
styleSwitch=".style";
}
}

// Clignotement
function Blink_Calque(layerName,ind){
if (NS4 || IE4) { 
if(tab_ind[ind]%2==0)
{
eval(layerRef+'["'+layerName+'"]'+
styleSwitch+'.visibility="visible"');
}
else
{
eval(layerRef+'["'+layerName+'"]'+
styleSwitch+'.visibility="hidden"');
}
} 
if(tab_ind[ind]<1)
{
tab_ind[ind]++;
} 
else
{
tab_ind[ind]--
}
setTimeout("Blink_Calque('"+layerName+"','"+tab_ind[ind]+"')",blink_speed);
}

