
var ie = document.all ? 1 : 0
var ns = document.layers ? 1 : 0

if(ns){doc = "document."; sty = ""}
if(ie){doc = "document.all."; sty = ".style"}



var initialize = 0
var Ex, Ey, topColor, subColor, ContentInfo


if(ie){
Ex = "event.x"
Ey = "event.y"

topColor = "#808080"
subColor = "#C0C0C0"
}

if(ns){
Ex = "e.pageX"
Ey = "e.pageY"
window.captureEvents(Event.MOUSEMOVE)
window.onmousemove=overhere

topColor = "#808080"
subColor = "#C0C0C0"
}



function MoveToolTip(layerName, FromTop, FromLeft, e){
if(ie){eval(doc + layerName + sty + ".top = "  + (eval(FromTop) + document.body.scrollTop - 100))}
if(ns){eval(doc + layerName + sty + ".top = "  +  eval(FromTop) - 100)}
eval(doc + layerName + sty + ".left = " + (eval(FromLeft) - 74))
}


function ReplaceContent(layerName){

if(ie){document.all[layerName].innerHTML = ContentInfo}


if(ns){

with(document.layers[layerName].document) 
{ 
   open(); 
   write(ContentInfo); 
   close(); 
}

}


}



function Activate(){initialize=1}
function deActivate(){initialize=0}


function overhere(e){
if(initialize){

MoveToolTip("ToolTip", Ey, Ex, e)
eval(doc + "ToolTip" + sty + ".visibility = 'visible'")
}

else{
MoveToolTip("ToolTip", 0, 0)
eval(doc + "ToolTip" + sty + ".visibility = 'hidden'")
}


}

function EnterContent(layerName, TTitle, TContent){

if (TContent == 'brine'){
ContentInfo = '<table width="158" border="0" cellspacing="0" cellpadding="0" valign="top">  <tr>    <td colspan="3"><img src="../images_carrier_climatisation_chauffage/help_top.gif" width="157" height="18"></td>  </tr>   <tr>   <td width="157" background="../images_carrier_climatisation_chauffage/help_bas.gif" align="center"><font size="2" face="Arial, Helvetica, sans-serif" color="#666666"><b>Basse température d\'eau jusqu\'à -10°C</b></font></td>  </tr>  <tr>    <td colspan="3"><img src="../images_carrier_climatisation_chauffage/help_bottom.gif" width="157" height="41"></td>  </tr></table>';
}

else if (TContent == 'recup_chaleur'){
ContentInfo = '<table width="158" border="0" cellspacing="0" cellpadding="0" valign="top">  <tr>    <td colspan="3"><img src="../images_carrier_climatisation_chauffage/help_top.gif" width="157" height="18"></td>  </tr>  <tr>  <td width="148" background="../images_carrier_climatisation_chauffage/help_bas.gif"  align="center"><font size="2" face="Arial, Helvetica, sans-serif" color="#666666"><b>Récupération de chaleur</b></font></td>  </tr>  <tr>    <td colspan="3"><img src="../images_carrier_climatisation_chauffage/help_bottom.gif" width="157" height="41"></td>  </tr></table>';
}

else if (TContent == 'free_cooling'){
ContentInfo = '<table width="158" border="0" cellspacing="0" cellpadding="0" valign="top">  <tr>    <td colspan="3"><img src="../images_carrier_climatisation_chauffage/help_top.gif" width="157" height="18"></td>  </tr>  <tr>  <td width="148" background="../images_carrier_climatisation_chauffage/help_bas.gif"  align="center"><font size="2" face="Arial, Helvetica, sans-serif" color="#666666"><b>Free-cooling</b></font></td>  </tr>  <tr>    <td colspan="3"><img src="../images_carrier_climatisation_chauffage/help_bottom.gif" width="157" height="41"></td>  </tr></table>';
}

else if (TContent == 'pression_dispo'){
ContentInfo = '<table width="158" border="0" cellspacing="0" cellpadding="0" valign="top">  <tr>    <td colspan="3"><img src="../images_carrier_climatisation_chauffage/help_top.gif" width="157" height="18"></td>  </tr>  <tr>  <td width="148" background="../images_carrier_climatisation_chauffage/help_bas.gif"  align="center"><font size="2" face="Arial, Helvetica, sans-serif" color="#666666"><b>Forte pression disponible</b></font></td>   </tr>  <tr>    <td colspan="3"><img src="../images_carrier_climatisation_chauffage/help_bottom.gif" width="157" height="41"></td>  </tr></table>';
}



ReplaceContent(layerName)

}

