                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 img_num=0;
	LesPublicites=new Array();
	for(var i=0;i<=1;i++)
	{
	   LesPublicites[i]=new Image();
	   LesPublicites[i].src="croix" +i+".gif";
	 }
	function animer()
	{
	  if(img_num>=1)
	     img_num=0;
	   else
	      img_num++;
	
	 window.document.croix.src=LesPublicites[img_num].src;
	 }
	

function remplaceStr(chaine1,chaine2,chaine3)
{
  if ((chaine1 == "") || (chaine2 == "")) return false;
  valeur = chaine1.indexOf(chaine2);
  if (valeur == -1) return chaine1;
  strFinale = "";
  strTmp = chaine1;
  while (valeur != -1)
  {
    strFinale = strFinale.concat(strTmp.substring(0,valeur)).concat(chaine3);
    strTmp = strTmp.substr(valeur+chaine2.length);
    valeur = strTmp.indexOf(chaine2);
  }
  strFinale = strFinale.concat(strTmp);
  return strFinale;
}
function ecritCalque(idCalque,texte)
{
  if (document.all) document.all[idCalque].innerHTML = texte;
  if (document.layers)
  {
    document.layers[idCalque].document.open();
    document.layers[idCalque].document.write(texte);
    document.layers[idCalque].document.close();
  }
  if (document.getElementById)
  document.getElementById(idCalque).innerHTML = texte;
}
function styleCalque(idCalque)
{
  if (document.all) calqueStyle = document.all[idCalque].style;
  if (document.layers) calqueStyle = document.layers[idCalque];
  if (document.getElementById) calqueStyle =
  document.getElementById(idCalque).style;
  return calqueStyle;
}
indScrollH = 0;
function scrollH(idCalque,taille,classe)
{
  strTmp = "";
  while (strTmp.length < taille)
  {
    strTmp = strTmp + " ";
  }
  strFin = strTmp + messageScrollH;
  strAff = strFin.substr(indScrollH,taille);
  if (strAff.length < taille) strAff = strAff +
  strTmp.substr(0,taille-strAff.length);
  strAff = remplaceStr(strAff," ","&nbsp;");
  strAff = "<SPAN CLASS='" + classe + "'>" + strAff + "</SPAN>";
  ecritCalque(idCalque,strAff);
  if (indScrollH < strFin.length-1) indScrollH++;
  else indScrollH = 0;
  setTimeout("scrollH('"+idCalque+"',"+taille+",'"+classe+"')",250);
}
messageScrollH = "Pharmasoins est un service 7 jours sur 7 , et 24 heures sur 24";

function styleCalque(idCalque)
{
  if (document.all) calqueStyle = document.all[idCalque].style;
  if (document.layers) calqueStyle = document.layers[idCalque];
  if (document.getElementById)
  calqueStyle = document.getElementById(idCalque).style;
  return calqueStyle;
}
function deplaceCalque(idCalque,posX,posY)
{
  calqueStyle = styleCalque(idCalque);
  calqueStyle.left = posX;
  calqueStyle.top = posY;
}
function cacheBulle()
{
  styleCalque("infobulle").visibility = "hidden";
}

function infoBulle(e,texte,classe)
{
  if (document.all) deplaceCalque('infobulle',event.x,event.y);
  if ((document.layers) || ((document.getElementById) && (!document.all)))
  deplaceCalque('infobulle',e.pageX,e.pageY);
  base = "<TABLE><TR><TD CLASS='" + classe + "'>";
  fin = "</TD></TR></TABLE>";
  if (document.all) infobulle.innerHTML = base + texte + fin;
  if (document.layers)
  {
    document.layers["infobulle"].document.open();
    document.layers["infobulle"].document.write(base + texte + fin);
    document.layers["infobulle"].document.close();
  }
  if (document.getElementById)
  document.getElementById("infobulle").innerHTML = base + texte + fin;
  styleCalque("infobulle").visibility = "visible";
}

