//Contents for menu 1
var menuBusinessService=new Array()
var menuProducts=new Array()

function SetRoot(MyRoot) {
// imposta root dei collegamenti //

// menuBusinessService
if (MyRoot != '') {
menuBusinessService[0]='<a href="' + MyRoot + '/business_service.php#esse3-main">Esse3</a>'
menuBusinessService[1]='<a href="' + MyRoot + '/business_service.php#marketing">Responsable marketing</a>'
menuBusinessService[2]='<a href="' + MyRoot + '/business_service.php#sales">Responsable ventes</a>'
menuBusinessService[3]='<a href="' + MyRoot + '/business_service.php#french-dept">Departement pays francophones</a>'
menuBusinessService[4]='<a href="' + MyRoot + '/business_service.php#english-dept">Departement pays anglophones</a>'
menuBusinessService[5]='<a href="' + MyRoot + '/business_service.php#west-african">Filiale afrique de l\'Ouest</a>'
}
else {
menuBusinessService[0]='<a href="business_service.php#esse3-main">Esse3</a>'
menuBusinessService[1]='<a href="business_service.php#marketing">Responsable marketing</a>'
menuBusinessService[2]='<a href="business_service.php#sales">Responsable ventes</a>'
menuBusinessService[3]='<a href="business_service.php#french-dept">Departement pays francophones</a>'
menuBusinessService[4]='<a href="business_service.php#english-dept">Departement pays anglophones</a>'
menuBusinessService[5]='<a href="business_service.php#west-african">Filiale afrique de l\'Ouest</a>'
}

// menuProducts
if (MyRoot != '') {
menuProducts[0]='<a href="' + MyRoot + '/endoscope.php">endoscopie</a>'
menuProducts[1]='<a href="' + MyRoot + '/operating_theatre.php">bloc operatoire</a>'
menuProducts[2]='<a href="' + MyRoot + '/intensive_cares.php">soins intensif - monitorage</a>'
menuProducts[3]='<a href="' + MyRoot + '/contents.php?url=http://www.4ci.com/Ventilat.htm">respirateurs automatiques de r&eacute;animation</a>'
menuProducts[4]='<a href="' + MyRoot + '/sterilisation.php">sterilisation</a>'
menuProducts[5]='<a href="' + MyRoot + '/cardiology.php">cardiologie</a>'
menuProducts[6]='<a href="' + MyRoot + '/dentistry.php">dentisterie</a>'
menuProducts[7]='<a href="' + MyRoot + '/contents.php?url=http://www.4ci.com/Analab.htm">laboratoire d\'analysis</a>'
menuProducts[8]='<a href="' + MyRoot + '/blood_bank.php">banque du sang</a>'
menuProducts[9]='<a href="' + MyRoot + '/contents.php?url=http://www.4ci.com/Radiol.htm">radiologie</a>'
menuProducts[10]='<a href="' + MyRoot + '/medical_furniture.php">mobilier medical</a>'
menuProducts[11]='<a href="' + MyRoot + '/contents.php?url=http://www.4ci.com/Refrigerat.htm&title=Mobilier medical">refrigeration medical </a>'
menuProducts[12]='<a href="' + MyRoot + '/contents.php?url=http://www.4ci.com/Diagnostic.htm&title=Diagnostique">diagnostique</a>'
menuProducts[13]='<a href="' + MyRoot + '/contents.php?url=http://www.4ci.com/Balance.htm&title=Balances">balances</a>'
menuProducts[14]='<a href="' + MyRoot + '/contents.php?url=http://www.4ci.com/Ophtalm.htm&title=Orl / Ophtalmologie">orl / ophtalmologie</a>'
menuProducts[15]='<a href="' + MyRoot + '/contents.php?url=http://www.4ci.com/Imager.htm&title=Imagerie Ultrason">imagerie ultrason</a>'
menuProducts[16]='<a href="' + MyRoot + '/products.php#other">plus</a>'
}
else {
menuProducts[0]='<a href="endoscope.php">endoscopie</a>'
menuProducts[1]='<a href="operating_theatre.php">bloc operatoire</a>'
menuProducts[2]='<a href="intensive_cares.php">soins intensif - monitorage</a>'
menuProducts[3]='<a href="contents.php?url=http://www.4ci.com/Ventilat.htm">respirateurs automatiques de r&eacute;animation</a>'
menuProducts[4]='<a href="sterilisation.php">sterilisation</a>'
menuProducts[5]='<a href="cardiology.php">cardiologie</a>'
menuProducts[6]='<a href="dentistry.php">dentisterie</a>'
menuProducts[7]='<a href="contents.php?url=http://www.4ci.com/Analab.htm">laboratoire d\'analysis</a>'
menuProducts[8]='<a href="blood_bank.php">banque du sang</a>'
menuProducts[9]='<a href="contents.php?url=http://www.4ci.com/Radiol.htm">radiologie</a>'
menuProducts[10]='<a href="medical_furniture.php">mobilier medical</a>'
menuProducts[11]='<a href="contents.php?url=http://www.4ci.com/Refrigerat.htm&title=Mobilier medical">refrigeration medical </a>'
menuProducts[12]='<a href="contents.php?url=http://www.4ci.com/Diagnostic.htm&title=Diagnostique">diagnostique</a>'
menuProducts[13]='<a href="contents.php?url=http://www.4ci.com/Balance.htm&title=Balances">balances</a>'
menuProducts[14]='<a href="contents.php?url=http://www.4ci.com/Ophtalm.htm&title=Orl / Ophtalmologie">orl / ophtalmologie</a>'
menuProducts[15]='<a href="contents.php?url=http://www.4ci.com/Imager.htm&title=Imagerie Ultrason">imagerie ultrason</a>'
menuProducts[16]='<a href="products.php#other">plus</a>'
}
}

// ================ FINE MENUS ================
// ================  SETTINGS  ================	
var menuwidth='165px' //default menu width
var menubgcolor='#eeeeee'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenuH_onclick="yes" //hide menu when user clicks within menu?



// ============================================
/////No further editting needed
// ============================================

var ie4=document.all
var ns6=document.getElementById&&!document.all


if (ie4||ns6)
document.write('<div id="dropmenudivH" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenuH()" onMouseout="dynamichideH(event)"></div>')


function getposOffsetH(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhideH(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattestH(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredgeH(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattestH().scrollLeft+iecompattestH().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattestH().scrollTop : window.pageYOffset
windowedge=ie4 && !window.opera? iecompattestH().scrollTop+iecompattestH().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenuH(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenuH(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenuH()
dropmenuobj=document.getElementById? document.getElementById("dropmenudivH") : dropmenudiv
populatemenuH(menucontents)

if (ie4||ns6){
showhideH(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffsetH(obj, "left")
dropmenuobj.y=getposOffsetH(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredgeH(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredgeH(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalueH()
}

function clickreturnvalueH(){
if (ie4||ns6) return false
else return true
}

function contains_ns6H(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichideH(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenuH()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6H(e.currentTarget, e.relatedTarget))
delayhidemenuH()
}

function hidemenuH(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenuH(){
if (ie4||ns6)
delayhide=setTimeout("hidemenuH()",disappeardelay)
}

function clearhidemenuH(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenuH_onclick=="yes")
document.onclick=hidemenuH

