var IB=new Object;
var posX=0;
var posY=0;
var xOffset=10;
var yOffset=10;

function InitInfo(){
	IB.ColTexte="#000000";
	IB.ColFond="#FFFFFF";
	IB.ColContour="#000099";
	IB.NbPixel=2;
	if( document.layers){
		window.captureEvents( Event.MOUSEMOVE);
		window.onMouseMove=getMousePos;
		document.write("<layer name='infobulle' top=0 left=0 visibility='hide'></layer>");
	}
	if (document.all)
	{
		document.write("<div id='infobulle' style='position:absolute;top:0;left:0;visibility:hidden'></div>");
		document.onmousemove=getMousePos;
	}
	else if( document.getElementById)
	{
	        document.onmousemove=getMousePos;
	        document.write("<div id='infobulle' style='position:absolute;top:0;left:0;visibility:hidden'></div>");
	}
}

function AfficheInfo( texte){
  contenu="<TABLE border=0 cellspacing=0 cellpadding="+IB.NbPixel+"><TR bgcolor='"+IB.ColContour+"'><TD><TABLE border=0 cellpadding=2 cellspacing=0 bgcolor='"+IB.ColFond+"'><TR><TD><FONT size='-1' face='arial' color='"+IB.ColTexte+"'>"+texte+"</FONT></TD></TR></TABLE></TD></TR></TABLE>&nbsp;";
  var finalPosX=posX-xOffset;
  if( finalPosX<0) finalPosX=0;
  if( document.layers)
  {
	document.layers["infobulle"].document.write(contenu);
	document.layers["infobulle"].document.close();
	document.layers["infobulle"].top=posY+yOffset;
	document.layers["infobulle"].left=finalPosX;
	document.layers["infobulle"].visibility="show";
  }
  if( document.all)
  {
    infobulle.innerHTML=contenu;
    document.all["infobulle"].style.top=posY+yOffset;
    document.all["infobulle"].style.left=finalPosX;//f.x-xOffset;
    document.all["infobulle"].style.visibility="visible";
  }
  else if( document.getElementById)
  {
    document.getElementById("infobulle").innerHTML=contenu;
    document.getElementById("infobulle").style.top=posY+yOffset;
    document.getElementById("infobulle").style.left=finalPosX;
    document.getElementById("infobulle").style.visibility="visible";
  }
}
function getMousePos(e) {
  if( document.all)
  {
    posX=event.x+document.body.scrollLeft;
    posY=event.y+document.body.scrollTop;
  }
  else
  {
    posX=e.pageX;
    posY=e.pageY; 
  }
}
function HideInfo() {
	if (document.layers) {document.layers["infobulle"].visibility="hide";}
	if (document.all) {document.all["infobulle"].style.visibility="hidden";}
	else if (document.getElementById){document.getElementById("infobulle").style.visibility="hidden";}
}

function InfoIngressProtection(){
	AfficheInfo('<p class="text_aide"><strong>IP: </strong><strong>I</strong>ngress <strong>P</strong>rotection rating.<br>The IP Code defined the degrees of protection provided against the intrusion <br>of solid objects and water.<br></p>'
				+'<p align="center" class="text_aide">It consists of the letters <b>IP</b> and 2 digits like: <strong>IP XY</strong>.<br></p>'
				+'<table class="text_aide"><tr><td class="td_a_0">&nbsp;<br>&nbsp;Indice&nbsp;</td><td class="td_a_0"><div align="center">X<br>Hazardous parts protection</div></td><td class="td_a_0"><div align="center">Y<br>Water protection</div></td></tr>'
				+'<tr><td class="td_a_2"><div align="center">0</div></td><td class="td_a_2">No protection.<br>&nbsp;</td><td class="td_a_2">No protection.<br>&nbsp;</td></tr>'
				+'<tr><td class="td_a_1"><div align="center">1</div></td><td class="td_a_1">Protected against the solid body<br>higher than 50 mm</td><td class="td_a_1">Dripping water.<br>&nbsp;</td></tr>'
				+'<tr><td class="td_a_2"><div align="center">2</div></td><td class="td_a_2"><span class="td_a_1">Protected against the solid body<br>higher than</span> 12 mm.&nbsp;</td><td class="td_a_2">Dripping water when tilted up to 15&deg;.<br>&nbsp;</td></tr>'
				+'<tr><td class="td_a_1"><div align="center">3</div></td><td class="td_a_1">Protected against the solid body<br>higher than 2,5 mm.&nbsp;</td><td class="td_a_1">Spraying water.<br>&nbsp;</td></tr>'
				+'<tr><td class="td_a_2"><div align="center">4</div></td><td class="td_a_2"><span class="td_a_1">Protected against the solid body<br>higher than</span> 1 mm.</td><td class="td_a_2">Splashing water.<br>&nbsp;</td></tr>'
				+'<tr><td class="td_a_1"><div align="center">5</div></td><td class="td_a_1">Dust&nbsp;protected.<br>&nbsp;</td><td class="td_a_1">Water jets.<br>&nbsp;</td></tr>'
				+'<tr><td class="td_a_2"><div align="center">6</div></td><td class="td_a_2">Dust tight.<br>&nbsp;</td><td class="td_a_2">Powerful water jets.<br>&nbsp;</td></tr>'
				+'<tr><td class="td_a_1"><div align="center">7</div></td><td class="td_a_1"><br></td><td class="td_a_1">Immersion up to 1 m.<br>&nbsp;</td></tr>'
				+'<tr><td class="td_a_2"><div align="center">8</div></td><td class="td_a_2"><br></td><td class="td_a_2">Immersion beyond 1 m.<br>&nbsp;</td></tr></table>');
}

function InfoAutonomy(){
	AfficheInfo('<table width="500"><tr><td align="justify" class="text_aide"><strong>Autonomy:</strong> DIOPTASE carried out tests making it possible to compare the autonomy of the apparatuses of changing. For these tests, we prepare the mobile devices in an identical way '
				+'(screen extinction duration adjustment, bluetooth activation,  back lighting keyboard desactivation, using new batteries&hellip;) and let us install Quartz software. Periodic seizures are simulated by an automatic routine which makes it possible to make a meter reading every two minutes.<br>'
    			+'<strong>Technical details:</strong> During these 2 minutes, the seizure lasts 30 seconds and back screen lighting remains lit during 1 minute. This test continues until the portable is not any more battery or it puts itself in safe mode.</td></tr></table>');
}

function InfoMemory(){
	AfficheInfo('<table width="500"><tr><td align="justify" class="text_aide"><strong>Memory Capacity:</strong> We express the mobile devices memory size in customer files number. This figure corresponds to the customers numbers whom the device can contain. It depends on the mobile device and the removable memory card containing the software.<br></td></tr></table>');
}

function InfoAMR(){
	AfficheInfo('<table width="500"><tr><td align="justify" class="text_aide"><strong>Remote Reading or AMR:</strong> Automatic Meter Reading. This technology allows the index reading by radio waves. The main advantage of these solutions is to be able to obtain information on remote meters.</td></tr></table>');
}

function InfoBluetooth(){
	AfficheInfo('<table width="500"><tr><td valign="top"><img src="images_remote_meter_reading/bluetooth_communication.gif"></td><td align="justify" class="text_aide"><strong>Bluetooth</strong> is a  telecommunications industry specification. It uses a  short distance radio technology  intended to replace connections cables  between electronic devices.</td></tr></table>');
}

function InfoSerialPort(){
	AfficheInfo('<table width="500"><tr><td align="justify" class="text_aide"><strong>RS-232</strong> makes it possible to standardize a communication port of serial type. It is commonly called the serial port COM. On the operating systems, the RS-232 ports are often indicated by COM1, COM2,&hellip;</td></tr></table>');
}