

var defaultMenuWidth="150px" //set default menu width.

var linkset=new Array()
//SPECIFY MENU SETS AND THEIR LINKS. FOLLOW SYNTAX LAID OUT

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>'

linkset[1]='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/853">About Ellis Whittam</a>'
linkset[1]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/853/902">Our Services</a>'
linkset[1]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/853/850">Client Satisfaction Ratings</a>'
linkset[1]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/853/851">Client Testimonials</a>'
linkset[1]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/853/849">History, Mission & Values</a>'
linkset[1]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/853/903">Operating Board</a>'
linkset[1]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/853/856">Contact Us</a>'
linkset[1]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/853/789">Download Brochure</a>'

linkset[2]='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/383">HR & Employment Law Services</a>'
linkset[2]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/383/858">Retained / Fixed Fee Support</a>'
linkset[3]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/383/904">Legal Expenses Insurance</a>'
linkset[2]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/383/862">HR Consultancy</a>'
linkset[2]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/835">Training & Seminars</a>'
linkset[2]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/835/919">Employment Law Webinars</a>'
linkset[2]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/383/860">Mediation & Investigations</a>'
linkset[2]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/383/838">Payroll Services</a>'
linkset[2]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/845">News & Articles</a>'
linkset[2]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/383/394">Employment Law Guide</a>'

linkset[3]='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/385">Health & Safety Services</a>'
linkset[3]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/385/859">Retained / Fixed Fee Support</a>'
linkset[3]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/385/905">Legal Expenses Insurance</a>'
linkset[3]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/385/863">Health & Safety Audits</a>'
linkset[3]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/385/864">Health & Safety Inspections</a>'
linkset[3]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/385/906">Health & Safety Consultancy</a>'
linkset[3]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/383/844">14001 Environmental Certification</a>'
linkset[3]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/385/908">18001 Certification</a>'
linkset[3]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/835">Training & Seminars</a>'
linkset[3]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/835/919">H&S Webinars</a>'
linkset[3]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/385/866">Health & Safety Resource</a>'

linkset[4]='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/835">Training & E-Learning</a>'
linkset[4]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/835/919">Webinars</a>'
linkset[4]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/835/909">Health & Safety E-Learning</a>'
linkset[4]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/835/910">Health & Safety: Public Courses</a>'
linkset[4]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/835/711">Health & Safety: In house Training</a>'
linkset[4]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/835/911">Employment Law & HR: Public Courses</a>'
linkset[4]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/835/710">Employment Law & HR: In house Training</a>'
linkset[4]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/835/694">Training Testimonials</a>'

linkset[5]='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/912">Recruitment</a>'

linkset[6]='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/845">Legal Updates, News & Articles</a>'

linkset[7]='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/857">HR & Absence Management Software</a>'

linkset[8]='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/880">Occupational Health & Hygiene Services</a>'
linkset[8]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/880/881">Pre-employment health questionnaires</a>'
linkset[8]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/880/882">Fit to work/sickness absence management</a>'
linkset[8]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/880/890">Stress management</a>'
linkset[8]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/880/891">Drug and alcohol testing</a>'
linkset[8]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/880/892">COSHH assessments</a>'
linkset[8]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/880">More...</a>'

linkset[9]='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/852">Working at Ellis Whittam</a>'
linkset[9]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/852/913">Life at Ellis Whittam</a>'
linkset[9]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/852/914">Benefits</a>'
linkset[9]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/852/915">Current Vacancies</a>'

linkset[10]='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/786">Mark Ellis Blog</a>'

linkset[11]='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/916">Partnerships & Affiliations</a>'

linkset[12]='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/440">Client Login</a>'
linkset[12]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/440/649">Your Employment System</a>'
linkset[12]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/440/428">Your Health & Safety Documents</a>'
linkset[12]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/440/799">Your Client Files </a>'
linkset[12]+='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/440/439">Your Compliance Logo</a>'

linkset[13]='<a href="http://www.elliswhittam.com/public/control.php?_path=/381/387">Contact Us</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
eventY=ie5? event.clientY : e.clientY
//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-menuobj.contentheight+"px" : window.pageYOffset+eventY-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


