<!--
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_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_jumpMenu(targ,selObj,restore)
{ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

var browser;

function popupcentree(page,largeur,hauteur,options)
{
var top=(screen.height-hauteur)/2;
var left=(screen.width-largeur)/2;
window.open(page,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);
}

function PopUp(src)
	{
	size=",width=500,height=700"
    	browser=window.open(src, "","scrollbars=no,resizable=yes,toolbar=no,status=no,menubar=no,location=no,directories=no"+size)
	}

function PopUpSpe(src,name,w,h)
{
	size=",width="+w+",height="+h
	browser=window.open(src, name,"scrollbars=yes,resizable=no,toolbar=no,status=no,menubar=no,location=no,directories=no"+size)
}

	

function PopupImage(img) {
	titre="AGRANDISSEMENT";
	w=open("",'image','width=400,height=400,toolbar=no,scrollbars=no,resizable=no');	
	w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE></HEAD>");
	w.document.write("<SCRIPT language=javascript>function checksize()  { if (document.images[0].complete) {  window.resizeTo(document.images[0].width+15,document.images[0].height+100); window.focus();} else { setTimeout('check()',250) } }</"+"SCRIPT>");
	w.document.write("<BODY onload='checksize()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0>");
	w.document.write("<link rel='stylesheet' href='../style.css' type='text/css'>");
	w.document.write("<Table><tr><td>");
	w.document.write("<IMG src='"+img+"' border=0>");
	w.document.write("</td></tr>");
	w.document.write("<tr><td align='right'>");
	w.document.write("<b>Définissez votre itinéraire avec mappy : <a href='http://www.mappy.fr' target='_blank'>www.mappy.fr</A></b>&nbsp;&nbsp;");
	w.document.write("</td></tr></Table>");
	w.document.write("</BODY></HTML>");
	w.document.close();
}

function PopupImageSpe(img) {
	titre="AGRANDISSEMENT";
	w=open("",'image','width=250,height=187,toolbar=no,scrollbars=no,resizable=no');	
	w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE></HEAD>");
	w.document.write("<SCRIPT language=javascript>function checksize()  { if (document.images[0].complete) {  window.resizeTo(document.images[0].width+12,document.images[0].height+30); window.focus();} else { setTimeout('check()',250) } }</"+"SCRIPT>");
	w.document.write("<BODY onload='checksize()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0><IMG src='"+img+"' width='250' height='187' border=0>");
	w.document.write("");
	w.document.write("</BODY></HTML>");
	w.document.close();
}

var browser_type=navigator.appName
function Printbutton(message){
	if (browser_type=="Netscape"){
		window.print();
	}
else 
	if ( self.print ){
		self.print();
	}
else{
		alert(message);
	}
}

function RunSwf(chemin,width,height,transparence,boucle,variable)
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="0" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="'+width+'" height="'+height+'"> \n');
    document.write('<param name="movie" value="'+chemin+'" />\n');
    document.write('<param name="allowScriptAccess" value="always" />\n');
    document.write('<param name="quality" value="High" />\n');
    document.write('<param name="flashvars" value="'+variable+'" />');
    document.write('<param name="wmode" value="'+transparence+'" />\n');
    document.write('<param name="loop" value="'+boucle+'" />\n');
    document.write('<embed src="'+chemin+'" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" wmode="'+transparence+'" width="'+width+'" height="'+height+'" flashvars="'+variable+'" quality="High" />\n');
    document.write('</object>');
}

function trim(stringToTrim) 
{
	return stringToTrim.replace(/^\s+|\s+$/g,"");
}
function ltrim(stringToTrim) 
{
	return stringToTrim.replace(/^\s+/,"");
}
function rtrim(stringToTrim) 
{
	return stringToTrim.replace(/\s+$/,"");
}

function check_email(id)
{
	adresse_email = document.getElementById(id).value;
	arobase = adresse_email.indexOf("@");
	point = adresse_email.indexOf(".",arobase);
	mauvais_endroit_point = arobase+1;
	double_point = adresse_email.indexOf("..",arobase);
	nbre_carac = adresse_email.length - point;
	double_arobase = adresse_email.indexOf("@",arobase+1);
   
	if ((arobase < 1) || (point <= mauvais_endroit_point) || (adresse_email.length < 5) || 
    (double_point >= 0) || (nbre_carac < 3) || (double_arobase >= 0))
    	return false;
    else
    	return true;
}

function preloadImages()
{
	return false;
}

NbProduit = new Array();

function plus() 
{
	if (document.getElementById)
    {
    	document.getElementById("NbProduit").value = parseInt(document.getElementById("NbProduit").value)+1;
    	NbProduit[0]=document.getElementById("NbProduit").value
    }
  else if (document.all) 
    {
	    document.all["NbProduit"].value = parseInt(document.all["NbProduit"].value)-1;
	    NbProduit[0]=document.all["NbProduit"].value
    }

}
function moins() 
{
	  if (document.getElementById)
    {
    if (parseInt(document.getElementById("NbProduit").value)>1){
    	document.getElementById("NbProduit").value = parseInt(document.getElementById("NbProduit").value)-1;
    	NbProduit[0]=document.getElementById("NbProduit").value
    	}
    }
  else if (document.all) 
    {
    if (parseInt(document.all["NbProduit"].value)>1){
	    document.all["NbProduit"].value = parseInt(document.all["NbProduit"].value)+1;
	    NbProduit[0]=document.all["NbProduit"].value
	    }
    }

}


//-->