function cm_bwcheck(){
	this.ver=navigator.appVersion
	this.agent=navigator.userAgent.toLowerCase()
	this.dom=document.getElementById?1:0
	this.op5=(this.agent.indexOf("opera 5")>-1 || this.agent.indexOf("opera/5")>-1) && window.opera 
  this.op6=(this.agent.indexOf("opera 6")>-1 || this.agent.indexOf("opera/6")>-1) && window.opera   
  this.ie5 = (this.agent.indexOf("msie 5")>-1 && !this.op5 && !this.op6)
  this.ie55 = (this.ie5 && this.agent.indexOf("msie 5.5")>-1)
  this.ie6 = (this.agent.indexOf("msie 6")>-1 && !this.op5 && !this.op6)
	this.ie4=(this.agent.indexOf("msie")>-1 && document.all &&!this.op5 &&!this.op6 &&!this.ie5&&!this.ie6)
  this.ie = (this.ie4 || this.ie5 || this.ie6)
	this.mac=(this.agent.indexOf("mac")>-1)
	this.ns6=(this.agent.indexOf("gecko")>-1 || window.sidebar)
	this.ns7=(this.agent.indexOf("netscape/7")>-1 || this.agent.indexOf("netscape7")>-1)
	this.ns4=(!this.dom && document.layers)?1:0;
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.op5 || this.op6)
  this.usedom= this.ns6//Use dom creation
  this.reuse = this.ie||this.usedom //Reuse layers
  this.px=this.dom&&!this.op5?"px":""
	return this
}
var bw=new cm_bwcheck()



//oCMenu.fromLeft= off.x;
//oCMenu.fromTop= off.y;
function xyOff(){
	var menuWidths= [160];
	var obj= (bw.ns4)?document.images.rtImg:(bw.ie4)?document.all.rtImg:document.getElementById('rtImg');
	if(bw.ns4){this.x= obj.x+160; this.y= obj.y}
	else if(bw.ns7){this.x= obj.x+160; this.y= obj.y}
	else if(bw.ns5){this.x= obj.offsetLeft+160; this.y= obj.offsetTop}
	else if(bw.ns6){this.x= obj.offsetLeft+160; this.y= obj.offsetTop}
	else {
		this.x= obj.offsetLeft+160;
		this.prnt= obj;
		while((this.prnt=this.prnt.offsetParent)){
			this.x+= this.prnt.offsetLeft;
		}
		this.y= obj.offsetTop;
		this.prnt= obj;
		while((this.prnt=this.prnt.offsetParent)){
			this.y+= this.prnt.offsetTop;
		} 
	}
/*	var mw=0;
	for(var i=0;i<menuWidths.length;i++){
		mw+= menuWidths[i]+oCMenu.pxBetween;
	}
	mw-=oCMenu.pxBetween;
	this.x= this.x-mw;
	this.src = obj.src;*/
}
off= new xyOff();

MenuX = off.x-161
MenuY = off.y+24

//alert("y=" + off.y + " x= " + off.x);
var staticTip = new TipObj('staticTip');
with (staticTip)
{
  tips.links1 = new Array('MenuX','MenuY', 161,'Entête non utilisé<br />','<a href="produits/produits.htm" onFocus="if(this.blur)this.blur()" onMouseOver="MM_swapImage(&#39imgSM1&#39,&#39&#39,&#39images/btn_evaporateur_r.gif&#39,0)" onMouseOut="MM_swapImgRestore()"><IMG SRC="images/btn_evaporateur.gif" ALT="&#201;vaporateur" name="imgSM1" WIDTH=161 HEIGHT=17 border="0" id="imgSM1"></a><br />' +
											'<a href="produits/reservoir.htm" onFocus="if(this.blur)this.blur()" onMouseOver="MM_swapImage(&#39imgSM2&#39,&#39&#39,&#39images/btn_reservoir_r.gif&#39,0)" onMouseOut="MM_swapImgRestore()"><IMG SRC="images/btn_reservoir.gif" ALT="R&#233;servoir" name="imgSM2" WIDTH=161 HEIGHT=17 border="0" id="imgSM2"></a><br />' +
											'<a href="produits/tube.htm" onFocus="if(this.blur)this.blur()" onMouseOver="MM_swapImage(&#39imgSM3&#39,&#39&#39,&#39images/btn_tube_r.gif&#39,0)" onMouseOut="MM_swapImgRestore()"><IMG SRC="images/btn_tube.gif" ALT="Tube Implusinox" name="imgSM3" WIDTH=161 HEIGHT=17 border="0" id="imgSM3"></a><br />' +
											'<a href="produits/equip_erab.htm" onFocus="if(this.blur)this.blur()" onMouseOver="MM_swapImage(&#39imgSM4&#39,&#39&#39,&#39images/btn_equip_erable_r.gif&#39,0)" onMouseOut="MM_swapImgRestore()"><IMG SRC="images/btn_equip_erable.gif" ALT="&#201;quipement - &#233;rabli&#232;re" name="imgSM4" WIDTH=161 HEIGHT=17 border="0" id="imgSM4"></a><br />' +
											'<a href="produits/equip_ferme.htm" onFocus="if(this.blur)this.blur()" onMouseOver="MM_swapImage(&#39imgSM5&#39,&#39&#39,&#39images/btn_equip_ferme_r.gif&#39,0)" onMouseOut="MM_swapImgRestore()"><IMG SRC="images/btn_equip_ferme.gif" ALT="&#201;quipement -  veau de lait" name="imgSM5" WIDTH=161 HEIGHT=17 border="0" id="imgSM5"></a><br />' +
											'<a href="produits/autres.htm" onFocus="if(this.blur)this.blur()" onMouseOver="MM_swapImage(&#39imgSM6&#39,&#39&#39,&#39images/btn_autres_r.gif&#39,0)" onMouseOut="MM_swapImgRestore()"><IMG SRC="images/btn_autres.gif" ALT="Autres" name="imgSM6" WIDTH=161 HEIGHT=17 border="0" id="imgSM6"></a>');


											

 template = '<TABLE WIDTH="%2%" BORDER="0" CELLPADDING="0" CELLSPACING="0"><TR><TD>' +
 '%4%</TD></TR></TABLE>'		
		
/* template = '<table bgcolor="#000000" cellpadding="0" cellspacing="0" width="%2%" border="0">' +
  '<tr><td><table cellpadding="3" cellspacing="1" width="100%" border="0">' +
  '<tr><td bgcolor="#C0D0D8" align="center" height="*" class="menuEnteteClass">%3%</td></tr>' +
  '<tr><td bgcolor="#D8E0E8" align="left" height="*" class="menuClass">%4%</td></tr>' +
  '</table></td></tr></table>';*/
 
 showDelay = 40;
 hideDelay = 400;
 doFades = true;
 minAlpha = 00;
 maxAlpha = 92;
 fadeSpeed = 40;
 tipStick = 0;
}



if (isNS4) document.captureEvents(Event.MOUSEMOVE);
document.onmousemove = function(evt)
{

 staticTip.track(evt);

 if (isNS4) return document.routeEvent(evt);
}


var nsWinW = window.innerWidth, nsWinH = window.innerHeight;
function ns4BugCheck()
{
 if (isNS4 && (nsWinW!=innerWidth || nsWinH!=innerHeight)) location.reload()
}

/*window.onresize = function()
{
 //ns4BugCheck();
 document.location.href=document.location.href;
}*/