


/***********************************************
* Pop-it menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var defaultMenuWidth="150px" //set default menu width.

var linkset=new Array()
//SPECIFY MENU SETS AND THEIR LINKS. FOLLOW SYNTAX LAID OUT

// exemple
linkset[0]='<a href="http://dynamicdrive.com">Dynamic Drive</a>'
linkset[0]+='<hr>' //Optional Separator
linkset[0]+='<a href="http://www.javascriptkit.com">JavaScript Kit</a>'
linkset[0]+='<a href="http://www.codingforums.com">Coding Forums</a>'
linkset[0]+='<a href="http://www.cssdrive.com">CSS Drive</a>'
linkset[0]+='<a href="http://freewarejava.com">Freewarejava</a>'

// division
linkset[1]='<a href="index.php?page=elevator">Elevators</a>'
linkset[1]+='<a href="index.php?page=industrial">Industrial</a>'
linkset[1]+='<a href="index.php?page=robotics">Robotics</a>'
linkset[1]+='<a href="index.php?page=distribution">Distribution</a>'
linkset[1]+='<a href="index.php?page=computing">Industrial computing</a>'

// ??????????????????????
linkset[2]='<a href="index.php?page=crp2000">CRP 2000</a>'


// computing
linkset[3]='<a href=index.php?page=muni_computing>Solutions for municipalities</a>'
linkset[3]+='<a href=index.php?page=elev_computing>Elevators monitoring software</a>'
linkset[3]+='<a href=index.php?page=refrig_computing>Cooling systems</a>'
linkset[3]+='<a href=index.php?page=tele_computing>Paging systems</a>'
linkset[3]+='<a href=index.php?page=mach_computing>Specialised machinery</a>'

// elevator
linkset[4]='<a href="index.php?page=jha">Handicap lifts (JHA series)</a>'
linkset[4]+='<a href="index.php?page=jwd">Dumbwaiter (JDW series)</a>'
linkset[4]+='<a href="index.php?page=jrd">Residential (JRD series)</a>'
linkset[4]+='<a href="index.php?page=jhd-1000">Hydraulic (JHD series)</a>'
linkset[4]+='<a href="index.php?page=jrescu">RescuPower (J-RESCU series)</a>'
linkset[4]+='<a href="index.php?page=j12">1-2 AC speeds (J12 series)</a>'
linkset[4]+='<a href="index.php?page=jvv">VV motor-generator MGset (JVV series)</a>'
linkset[4]+='<a href="index.php?page=jvf">VVVF AC variable frequency (JVF series)</a>'
linkset[4]+='<a href="index.php?page=jsc">SCR DC variable speed (JSC series)</a>'
linkset[4]+='<a href="index.php?page=jdp">Dispatcher (JDP series)</a>'
linkset[4]+='<a href="index.php?page=jec">Escalator (JEC series)</a>'
linkset[4]+='<a href="index.php?page=j-mon">Monitoring screen (J-MON series)</a>'
linkset[4]+='<a href="index.php?page=jov">Overlay temporary control (JOV series)</a>'
linkset[4]+='<a href="index.php?page=systpesage">Load weight devices (Micelect)</a>'
linkset[4]+='<a href="index.php?page=j-link">Serial communication board for remote I/O (J-LINK series)</a>'
linkset[4]+='<a href="index.php?page=posi-1000">Posi-1000</a>'

linkset[5]='<a href="doc/elevator/brochure_2005_en.pdf">Elevator control catalog</a>'
linkset[5]+='<a href="index.php?page=elevator_manuals_request">Manuals</a>'
linkset[5]+='<a href="doc/elevator/quotation_form_elevator_en.doc">Quotation form Elevator</a>'
linkset[5]+='<a href="doc/elevator/quotation_form_escalator_en.doc">Quotation form Escalator</a>'
linkset[5]+='<a href="doc/elevator/quotation_form_handicap_en.doc">Quotation form Lift for persons with physical disabilities</a>'
linkset[5]+='<a href="doc/elevator/order_data_form_elevator_en.xls">Order form Elevator</a>'
linkset[5]+='<a href="doc/corpo.pdf">Corporate profile</a>'

// industriel
linkset[6]='<a href="index.php?page=#">Contrôle handicapé</a>'
linkset[6]+='<a href="index.php?page=#">Contrôle monte-plât</a>'
linkset[7]='<a href="doc/data2000.pdf">Catalogue des controles d\'ascenseur</a>'
linkset[7]+='<a href="doc/fransoum.doc">Formulaire de soumission</a>'
linkset[7]+='<a href="doc/francomm.doc">Formulaire de commande</a>'
linkset[7]+='<a href="doc/corpo.pdf">Profile corporatif</a>'

// distribution
linkset[8]='<a href="index.php?page=carteproduits">Our products</a>'
linkset[8]+='<a href="index.php?page=lamicoides_distribution">Name plates</a>'


linkset[9]='<a href="doc/distribution/bon_de_commande_ABCDXY_V3.pdf">Purchase order ABCDXY</a>'
linkset[9]+='<a href="doc/distribution/bon_de_commande_EFGHI_V3.pdf">Purchase order EFGHI</a>'
linkset[9]+='<A HREF="index.php?page=docrequest_distribution">Online documentation form</A>'
linkset[9]+='<A HREF="index.php?page=quoterequest_distribution">Online quote form</A>'
linkset[9]+='<a href="doc/corpo.pdf">Corporative profile</a>'


////No need to edit beyond here

var ie5=document.all && !window.opera
var ns6=document.getElementById

if (ie5||ns6)
document.write('<div id="popitmenu" onMouseover="clearhidemenu();" onMouseout="dynamichide(event)"></div>')

function iecompattest(){
return (document.compatMode && document.compatMode.indexOf("CSS")!=-1)? document.documentElement : document.body
}

function showmenu(e, which, optWidth){
if (!document.all&&!document.getElementById)
return
clearhidemenu()
menuobj=ie5? document.all.popitmenu : document.getElementById("popitmenu")
menuobj.innerHTML=which
menuobj.style.width=(typeof optWidth!="undefined")? optWidth : defaultMenuWidth
menuobj.contentwidth=menuobj.offsetWidth
menuobj.contentheight=menuobj.offsetHeight
eventX=ie5? event.clientX : e.clientX + 10 -50
eventY=ie5? event.clientY + 10 : e.clientY+10
//Find out how close the mouse is to the corner of the window
var rightedge=ie5? iecompattest().clientWidth-eventX : window.innerWidth-eventX
var bottomedge=ie5? iecompattest().clientHeight-eventY : window.innerHeight-eventY
//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<menuobj.contentwidth)
//move the horizontal position of the menu to the left by it's width
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX-menuobj.contentwidth+"px" : window.pageXOffset+eventX-menuobj.contentwidth+"px"
else
//position the horizontal position of the menu where the mouse was clicked
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX+"px" : window.pageXOffset+eventX+"px"
//same concept with the vertical position
if (bottomedge<menuobj.contentheight)
menuobj.style.top=ie5? iecompattest().scrollTop+eventY+10-menuobj.contentheight+"px" : window.pageYOffset+eventY+10-menuobj.contentheight+"px"
else
menuobj.style.top=ie5? iecompattest().scrollTop+event.clientY+"px" : window.pageYOffset+eventY+"px"
menuobj.style.visibility="visible"
return false
}

function contains_ns6(a, b) {
//Determines if 1 element in contained in another- by Brainjar.com
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function hidemenu(){
if (window.menuobj)
menuobj.style.visibility="hidden"
}

function dynamichide(e){
if (ie5&&!menuobj.contains(e.toElement))
hidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
hidemenu()
}

function delayhidemenu(){
delayhide=setTimeout("hidemenu()",500)
}

function clearhidemenu(){
if (window.delayhide)
clearTimeout(delayhide)
}

if (ie5||ns6)
document.onclick=hidemenu

