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="company_history.htm">Company History</a>'
linkset[0]+='<a href="our_staff.htm">Our Staff</a>'
linkset[0]+='<a href="recruitment.htm">Careers @ MC Ware</a>'
linkset[0]+='<a href="accreditations.htm">Accreditations</a>'
linkset[0]+='<a href="our_partners.php">Our Partners</a>'
linkset[0]+='<a href="sponsorship.htm">Sponsorship</a>'
linkset[0]+='<a href="http://www.stokesley.biz" target="_blank">Stokesley Business Club</a>'

linkset[1]='<a href="anti_spam_services.php">Anti-Spam</a>'
linkset[1]+='<a href="content_filtering_services.php">Content Filtering</a>'
linkset[1]+='<a href="crm_and_erp_services.php">CRM and ERP Solutions</a>'
linkset[1]+='<a href="disaster_recovery_services.php">Disaster Recovery</a>'
linkset[1]+='<a href="iso_27001_services.php">ISO 27001 Accreditation</a>'
linkset[1]+='<a href="it_service_contracts_services.php">IT Service Contracts</a>'
linkset[1]+='<a href="marine_installation.htm">Marine Installation</a>'
linkset[1]+='<a href="password_recovery_services.php">Password Recovery</a>'
linkset[1]+='<a href="payment_plan_services.php">MC Ware Payment Plan</a>'
linkset[1]+='<a href="search_engine_optimisation_services.php">Search Engine Optimisation</a>'
linkset[1]+='<a href="software_training_services.php">Software Training</a>'
linkset[1]+='<a href="telephone_systems_services.php">Telephone Systems</a>'
linkset[1]+='<a href="virtual_tour_services.php">Virtual Tours</a>'
linkset[1]+='<a href="vmware_services.php">VMware</a>'
linkset[1]+='<a href="web_intranet_design_services.php">Web and Intranet Design</a>'

linkset[2]='<a href="downloads.htm">Downloads</a>'
linkset[2]+='<a href="links.htm">Links</a>'
linkset[2]+='<a href="fraud_prevention.php">Fraud Prevention</a>'
linkset[2]+='<a href="reciprocal_linking.htm">Reciprocal Linking</a>'
linkset[2]+='<a href="promotional_video.php">Promotional Video</a>'
linkset[2]+='<a href="/press/">Press</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 showmenuabout(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
menuobj.style.left=307+"px"
menuobj.style.top=97+"px"
menuobj.style.visibility="visible"
return false
}

function showmenuserv(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
menuobj.style.left=366+"px"
menuobj.style.top=97+"px"
menuobj.style.visibility="visible"
return false
}

function showmenuresource(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
menuobj.style.left=439+"px"
menuobj.style.top=97+"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