// JavaScript Document
/*
Tabs Menu (mouseover)- By Dynamic Drive
For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
This credit MUST stay intact for use
*/

var navSub=new Array()

//Set submenu contents. Expand as needed. For each content, make sure everything exists on ONE LINE. Otherwise, there will be JS errors.
 
navSub[0]='<a href="/about/irs.php">About IRS</a> | <a href="/about/ems.php">About EMS</a> | <a href="/about/testimonials.php">Testimonials</a> | <a href="/about/benefits.php">Benefits of IRS</a> | <a href="http://emotors.co.nz">EMS the parent company of IRS</a>'
navSub[1]='<a href="/reliability/">Reliability</a> | <a href="/reliability/understanding.php">Recognising Failure Patterns</a> | <a href="/reliability/ultrasonic.php">Ultrasonics</a><!-- | <a href="/reliability/vibration.php">Vibration Analysis</a> | <a href="/reliability/oil.php">Oil analysis</a> | <a href="/reliability/insulation.php">Insulation analysis</a>--> | <a href="/reliability/thermography.php">Thermography</a>'
navSub[2]='<a href="/breakdowns/onsite.php">On site</a> | <a href="/breakdowns/workshop.php">Workshop</a> | <a href="/breakdowns/electricMotors.php">Electric motors</a> | <a href="/breakdowns/pumps.php">Pumps, Gearboxes, Fans</a> | <a href="/breakdowns/power.php">Power supplies</a>'
navSub[3]='<a href="/insurance/">Insurance and Reliability Cover</a> | <a href="/insurance/breakdown.php">Breakdown Cover</a> | <a href="/insurance/trends.php">Modern Insurance Trends</a> | <a href="/insurance/underwritersPartners.php">Underwriters and Partners</a>'
navSub[4]='<a href="/survey/#account">Account analysis</a> | <a href="/survey/#tariff">Tariff checking</a> | <a href="/survey/#metering">Metering checks</a> | <a href="/survey/#process">Process and Plant</a> | <a href="/survey/#lighting">Lighting</a> | <a href="/survey/#audit">Level 2 Audit</a>'
navSub[5]='<span style="padding-left: 350px; padding-right: 0px; margin: 0px;"></span><a href="/login/demo.php">Demo of the Maintenance Programme</a> | <a href="/login/">Login to Maintenance Programme</a>'
navSub[6]=''

//Set delay before navSub disappears after mouse moves out of it (in milliseconds)
var delay_hide=150000000

/////No need to edit beyond here

var menuobj=document.getElementById? document.getElementById("navSub") : document.all? document.all.describe : document.layers? document.dep1.document.dep2 : ""

function showit(which){
clear_delayhide()
thecontent=(which==-1)? "" : navSub[which]
if (document.getElementById||document.all)
menuobj.innerHTML=thecontent
else if (document.layers){
menuobj.document.write(thecontent)
menuobj.document.close()
}
}

function resetit(e){
if (document.all&&!menuobj.contains(e.toElement))
delayhide=setTimeout("showit(-1)",delay_hide)
else if (document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhide=setTimeout("showit(-1)",delay_hide)
}

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

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}
