<!-- Variables LE ROLLOVER DES PRODUITS--> 
var fam_on='#1E5B21'; <!-- rollout famille de produits --> 
var fam='#27782C';   <!-- rollover famille de produits -->
var sfam='#04AA34';   <!-- rollout sfamille de produits -->
var sfam_on='#F0F0F0'; // #78AED3 008CD2   D0E3FF<!-- rollout sfamille de produits -->
<!-- Variables LE ROLLOVER DirecteMAG--> 
var fdm_on='#F3AA42'; <!-- rollout famille de produits --> 
var fdm='#F78600';   <!-- rollover famille de produits -->
var sfdm='#FBEDD1';   <!-- rollout sfamille de produits -->
var sfdm_on='#E8BD80'; // #78AED3 008CD2   D0E3FF<!-- rollout sfamille de produits -->
<!------------------------------->
var bV=parseInt(navigator.appVersion);
NS4=(document.layers) ? true : false;
IE4=((document.all)&&(bV>=4))?true:false;
ver4 = (NS4 || IE4) ? true : false;
var NS6=(document.getElementById) ? true : false;
if (NS6) {NS4=false;};
if (IE4) {NS6=false;};
DHTML=NS4 || NS6 || IE4;
initboolNS4=false; 
h1="carre_plus.gif";
b1="carre_moins.gif";
h1on="carre_plus.gif";
b1on="carre_moins.gif";

ChildIsExpanded=new Array();
var N1Expanded="";
var N2Expanded="";
function expandIt(){return}
function expandAll(){return}
 
isExpanded = false;
function getIndex(el) {
	ind = null;
	for (i=0; i<document.positionmenu.document.layers.length; i++) {
		whichEl = document.positionmenu.document.layers[i];
		if (whichEl.id == el) {	ind = i;break;}
	} return ind;
}
function arrange() {
	nextY = document.positionmenu.document.layers[firstInd].pageY + document.positionmenu.document.layers[firstInd].document.height;
	for (i=firstInd+1; i<document.positionmenu.document.layers.length; i++) {
		whichEl = document.positionmenu.document.layers[i];
		if (whichEl.visibility != "hide") {	whichEl.pageY = nextY;	nextY += whichEl.document.height;}
	}
}
function initIt(){
	if (NS6) {
	for (i=0; i<document.getElementsByTagName('div').length; i++) {
		if (document.getElementsByTagName('div')[i].className=="invisible")
		{document.getElementsByTagName('div')[i].style.display = "none";
		 } else {
				if (document.getElementsByTagName('div')[i].id.length==3){N1Expanded=document.getElementsByTagName('div')[i].id.substr(0,2);}
				if (document.getElementsByTagName('div')[i].id.length==4){N2Expanded=document.getElementsByTagName('div')[i].id.substr(0,3);}
				}
	}
	}else
	{if (NS4) {
	initboolNS4=true;
	firstEl = "m1";	firstInd = getIndex(firstEl); arrange();
	document.layers["positionmenu"].moveTo(0,65);
		for (i=0; i<document.positionmenu.document.layers.length; i++) {
			whichEl = document.positionmenu.document.layers[i];
			if (whichEl.visibility == "show") {
					if (whichEl.id.length==3){N1Expanded=whichEl.id.substr(0,2);}
					if (whichEl.id.length==4){N2Expanded=whichEl.id.substr(0,3);}
					}else{}
		}
	}else {
		tempColl = document.all.tags("DIV");
		for (i=0; i<tempColl.length; i++) {
			if (tempColl(i).className == "invisible") {
					tempColl(i).style.display = "none";
				} else {if (tempColl(i).id.length==3){N1Expanded=tempColl(i).id.substr(0,2);}
						if (tempColl(i).id.length==4){N2Expanded=tempColl(i).id.substr(0,3);}
				}
			}
		}
	}
}
function expandIt(el) {	if (!DHTML) return;	if (NS6) {expandNS6(el)} else {if (IE4) {expandIE(el)} else {expandNS(el)}}}
function expandNS6(el) { 
	isExpanding=-1;
	for (i=0; i<document.getElementsByTagName('div').length; i++) {
	if (document.getElementsByTagName('div')[i].id.indexOf(el)==0 && document.getElementsByTagName('div')[i].id.length==el.length+1)
		{
		if (document.getElementsByTagName('div')[i].style.display == "none") {
			isExpanding=1;
			document.getElementsByTagName('div')[i].style.display = "block";
			a = document.getElementsByName('f'+el)[0];
			a.setAttribute('src','/Design_v2/carre_moins.gif');
			}
				else {
				isExpanding=0;
				document.getElementsByTagName('div')[i].style.display = "none";
				a = document.getElementsByName('f'+el)[0];
				a.setAttribute('src','/Design_v2/carre_plus.gif');
				for (j=0; j<document.getElementsByTagName('div').length; j++) {
					if (document.getElementsByTagName('div')[j].id.indexOf(document.getElementsByTagName('div')[i].id)==0 && document.getElementsByTagName('div')[j].id.length==document.getElementsByTagName('div')[i].id.length+1)
						{
						document.getElementsByTagName('div')[j].style.display = "none";
						a = document.getElementsByName('f'+document.getElementsByTagName('div')[i].id)[0];
						a.setAttribute('src','/Design_v2/carre_plus.gif');
						}
					}
				}
		}
	}
if (isExpanding==1){
				if (el.length==2 && N1Expanded!="") {expandNS6(N1Expanded);}
				if (el.length==3 && N2Expanded!="") {expandNS6(N2Expanded);}
				if (el.length==2){	N1Expanded=el;}
				if (el.length==3){	N2Expanded=el;}
	}else{
			if (el.length==2){N1Expanded="";N2Expanded="";}
				if (el.length==3){N2Expanded="";}
		}
}
function expandIE(el) { 
	isExpanding=-1;
	tempColl = document.all.tags("DIV");
	for (i=0; i<tempColl.length; i++) {
		if (tempColl(i).id.indexOf(el)==0 && tempColl(i).id.length==el.length+1) {
			if (tempColl(i).style.display == "none") {
				isExpanding=1;tempColl(i).style.display = "block";
				eval("document.all.f"+el+".src='/Design_v2/carre_moins.gif';")
				}else {
				isExpanding=0;tempColl(i).style.display = "none";
				eval("document.all.f"+el+".src='/Design_v2/carre_plus.gif';")
				for (j=0; j<tempColl.length; j++) {
				if (tempColl(j).id.indexOf(tempColl(i).id)==0 && tempColl(j).id.length>=tempColl(i).id.length+1) {
					tempColl(j).style.display = "none";
					eval("document.all.f"+tempColl(i).id+".src='/Design_v2/carre_plus.gif';")
					}
				}
				}
		}
	}
 if (isExpanding==1){
				if (el.length==2 && N1Expanded!="") {expandIE(N1Expanded);}
				if (el.length==3 && N2Expanded!="") {expandIE(N2Expanded);}
				if (el.length==2){N1Expanded=el;}
				if (el.length==3){N2Expanded=el;}
	}else{		if (el.length==2){N1Expanded="";N2Expanded="";}
				if (el.length==3){N2Expanded="";}
		}
}

function expandNS(el) {
	for (i=0; i<document.positionmenu.document.layers.length; i++) {
		whichEl = document.positionmenu.document.layers[i];
		if ((whichEl.id.indexOf(el)==0)&&(whichEl.id.length==el.length+1))
			{	if (whichEl.visibility == "hide") {
				isExpanding=1;whichEl.visibility = "show";
				ChildIsExpanded[i]=1;
				eval("document.positionmenu.document."+el+".document.images[\'f"+el+"\'].src=\'/Design_v2/carre_moins.gif\';");
			}
			else {
				isExpanding=0;whichEl.visibility = "hide";
				ChildIsExpanded[i]=0;
				eval("document.positionmenu.document."+el+".document.images[\'f"+el+"\'].src=\'/Design_v2/carre_plus.gif\';");
				for (j=0; j<document.positionmenu.document.layers.length; j++) {
					whichEl2 = document.positionmenu.document.layers[j];
					if ((whichEl2.id.indexOf(whichEl.id)==0)&&(whichEl2.id.length>=whichEl.id.length+1))
					 	{ whichEl2.visibility = "hide";
						   ChildIsExpanded[j]=0;
						 eval("document.positionmenu.document."+whichEl.id+".document.images[\'f"+whichEl.id+"\'].src=\'/Design_v2/carre_plus.gif\';");
						}
					}
			}
			}
	}

if (isExpanding==1){
				if (el.length==2 && N1Expanded!="") {expandNS(N1Expanded);}
				if (el.length==3 && N2Expanded!="") {expandNS(N2Expanded);}
				if (el.length==2){	N1Expanded=el;} 
				if (el.length==3){N2Expanded=el;}
	}else{		if (el.length==2){N1Expanded="";N2Expanded="";}
				if (el.length==3){N2Expanded="";}
		} arrange();
}

if (DHTML) {
with (document) {
	write("<STYLE TYPE='text/css'>");
	if (NS4) {write(".visible {position : absolute; visibility : show}");write(".invisible {position : absolute; visibility : hidden}");}
	else {write(".invisible {display : none}")}	write("</STYLE>");
  }
}

function resizeNS4()
{
if (NS4&&navigator.appVersion.indexOf("Mac")!=-1){ location.reload(); } else {
if (NS4&&initboolNS4==true) {	firstEl = "m1";
		firstInd = getIndex(firstEl);arrange();document.layers["positionmenu"].moveTo(0,65);
		for (i=0; i<document.positionmenu.document.layers.length; i++) {
			whichEl = document.positionmenu.document.layers[i];
			if (whichEl.visibility != "show") {
						if (whichEl.id.length==3){eval("document.positionmenu.document."+whichEl.id.substr(0,2)+".document.images[\'f"+whichEl.id.substr(0,2)+"\'].src=\'/Design_v2/carre_plus.gif\';");}
						if (whichEl.id.length==4){eval("document.positionmenu.document."+whichEl.id.substr(0,3)+".document.images[\'f"+whichEl.id.substr(0,3)+"\'].src=\'/Design_v2/carre_plus.gif\';");}
						}
		}
	}
}
}
function Rollon(nom)
{
lh1=h1.length;lb1=b1.length;fe="";
if (IE4) {fs=eval("document.all.f"+nom+".src");} if (NS4) {fs=eval("document.positionmenu.document."+nom+".document.images[\'f"+nom+"\'].src");}
if (NS6) {a = document.getElementsByName('f'+nom)[0]; fs=a.getAttribute('src');} lfs=fs.length;
if (fs.substring(lfs-lh1,lfs)==h1) {fe=h1on;}
if (fs.substring(lfs-lb1,lfs)==b1) {fe=b1on;}
if (fe!=""){
if (IE4) {eval("document.all.f"+nom+".src=\'/Design_v2/"+fe+"\'");}
if (NS4) {eval("document.positionmenu.document."+nom+".document.images[\'f"+nom+"\'].src=\'/Design_v2/"+fe+"\'");}
if (NS6) {a = document.getElementsByName('f'+nom)[0]; a.setAttribute('src','/Design_v2/'+fe);}
 }
}
function Rollout(nom)
{lh1on=h1on.length;lb1on=b1on.length;fe="";
if (IE4) {fs=eval("document.all.f"+nom+".src");}
if (NS4) {fs=eval("document.positionmenu.document."+nom+".document.images[\'f"+nom+"\'].src");}
if (NS6) {a = document.getElementsByName('f'+nom)[0]; fs=a.getAttribute('src');}
lfs=fs.length;
if (fs.substring(lfs-lh1on,lfs)==h1on) {fe=h1;}
if (fs.substring(lfs-lb1on,lfs)==b1on) {fe=b1;}
if (fe!=""){
if (IE4) {eval("document.all.f"+nom+".src=\'/Design_v2/"+fe+"\'");}
if (NS4) {eval("document.positionmenu.document."+nom+".document.images[\'f"+nom+"\'].src=\'/Design_v2/"+fe+"\'");}
if (NS6) {a = document.getElementsByName('f'+nom)[0]; a.setAttribute('src','/Design_v2/'+fe);}
 }
}

function am(m,css)
{ return "<a  href=\"#\" CLASS="+ css +" onMouseOver=\"Rollon(\'"+m+"\');\" onMouseOut=\"Rollout(\'"+m+"\');\" onClick=\"expandIt(\'"+m+"\'); return false;\">";}