  function newPopupConditions(url,popup_name,parametres){
    pop = window.open(url,popup_name,parametres);
  }



  function newPopupImage(url_img,popup_name, width, height, border) {
		pop = window.open(url_img,"_blank","scrollbars=no,resizable=no,status=no,menu=no,width=" + (width+(border*2)) + ",height=" + (height+(border*2)+ 45) + ",top=75,left=200");
    pop.document.write("<html>");
    pop.document.write("<head>");
    pop.document.write("<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=ISO-8859-1\">");
    pop.document.write("<Title>"+popup_name+"</Title>");
    pop.document.write("</head>");
    pop.document.write("<body marginwidth='"+border+"' marginheight='"+border+"' topmargin='"+border+"' bottommargin='"+border+"' leftmargin='"+border+"' rightmargin='"+border+"'>");
    pop.document.write("<center><img src='"+url_img+"' width='"+width+"' height='"+height+"'  vspace=0>");
    pop.document.write('<br/><img class="img" src="/images/pixel_trans.gif"  border="0" alt="" width="3" height="10"><br/><a href="JavaScript:self.close()"><img class="img" src="/images/languages/french/buttons_new/btn_fermer_fenetre.gif"  border="0" alt="Fermer la fenêtre" vspace="0"></a>');
    pop.document.write("</center></BODY>");
    pop.document.write("</HTML>");
    pop.document.close();
  }

	function newPopupImageProduct(url,popup_name, width, height,border) {
			pop = window.open(url,"_blank","scrollbars=no,resizable=no,status=no,menu=no,width=" + (width+(border*2)) + ",height=" + (height+(border*2)+ 45) + ",top=75,left=200");
			pop.document.close();
	}


  function enableTooltips(id){

  var links,i,h;
  if(!document.getElementById || !document.getElementsByTagName) return;

  if(id==null) links=document.getElementsByTagName("a");
  else links=document.getElementById(id).getElementsByTagName("a");
  for(i=0;i<links.length;i++){
	  if(links[i].getAttribute("class")=='overPanneau') continue;
      Prepare(links[i]);
      }
  }


  function Prepare(el){
		var tooltip,s,test;

		tempString=el.getAttribute("title");

		if (tempString!=null && tempString.length>0) {
			el.removeAttribute("title");
			blocktitle 	= tempString.substring(0, tempString.indexOf('->'));
			blockdesc 	= tempString.substring(tempString.indexOf('->') + 2 ,tempString.length);
			//blockdesc=el.getAttribute("desc");
			if(blocktitle!=null && blocktitle.length>0) {
				tooltip=CreateEl("span","tooltip");
				test=CreateEl("span","titre");
				test.appendChild(document.createTextNode(blocktitle));
				tooltip.appendChild(test);
				s=CreateEl("span","desc");
				s.innerHTML=blockdesc;
				tooltip.appendChild(s);
				setOpacity(tooltip);
				el.tooltip=tooltip;
				el.onmouseover=showTooltip;
				el.onmouseout=hideTooltip;
				el.onmousemove=Locate;
			}
		}
  }



  function showTooltip(e){
	  document.getElementById("btc").appendChild(this.tooltip);
	  Locate(e);
  }

  function hideTooltip(e){
  var d=document.getElementById("btc");
  if(d.childNodes.length>0) d.removeChild(d.firstChild);
  }

  function setOpacity(el){
  el.style.filter="alpha(opacity:98)";
  el.style.KHTMLOpacity="0.98";
  el.style.MozOpacity="0.98";
  el.style.opacity="0.98";
  }

  function CreateEl(t,c){
  var x=document.createElement(t);
  x.className=c;
  x.style.display="block";
  return(x);
  }



  function Locate(e){
  var posx=0,posy=0;
  if(e==null) e=window.event;
  if(e.pageX || e.pageY){
      posx=e.pageX; posy=e.pageY;
      }
  else if(e.clientX || e.clientY){
      if(document.documentElement.scrollTop){
          posx=e.clientX+document.documentElement.scrollLeft;
          posy=e.clientY+document.documentElement.scrollTop;
          }
      else{
          posx=e.clientX+document.body.scrollLeft;
          posy=e.clientY+document.body.scrollTop;
          }
      }
  document.getElementById("btc").style.top=(posy+5)+"px";
  document.getElementById("btc").style.left=(posx-215)+"px";
  }
	/*
	function ShowHide(block){
		//alert(document.getElementById(block).style.display);
		if (document.getElementById(block).style.display == 'block'){
			document.getElementById(block).style.visibility = 'hidden';
			document.getElementById(block).style.display = 'none';
		}
		else {
			document.getElementById(block).style.visibility = 'visible';
			document.getElementById(block).style.display = 'block';
		}
		return false;
	}*/




	function scrambleJS(urlscrambled, mode) {
		var l  = '';
		l = urlscrambled.replace(/\|/g,'/').replace(/@/g,'.');
		if (mode == 'new_window') {
			pop = window.open(l,"_blank","directories=yes,location=yes,scrollbars=yes,resizable=yes,status=yes,menubar=yes,toolbar=yes,,width=1024,height=700,top=30,left=30");
		}
		else {
			window.location.href=l;
		}
	}