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://www.mcware.co.uk/company_history.php">Company History</a>'
linkset[0]+='<a href="http://www.mcware.co.uk/our_staff.php">Our Staff</a>'
linkset[0]+='<a href="http://www.mcware.co.uk/recruitment.php">Careers @ MC Ware</a>'
linkset[0]+='<a href="http://www.mcware.co.uk/accreditations.php">Accreditations</a>'
linkset[0]+='<a href="http://www.mcware.co.uk/our_partners.php">Our Partners</a>'
linkset[0]+='<a href="http://www.mcware.co.uk/news.php">Latest News</a>'

linkset[1]='<a href="http://www.mcware.co.uk/anti_spam.php">Anti-Spam</a>'
linkset[1]+='<a href="http://www.mcware.co.uk/content_filtering.php">Content Filtering</a>'
linkset[1]+='<a href="http://www.mcware.co.uk/crm_and_erp.php">CRM and ERP Solutions</a>'
linkset[1]+='<a href="http://www.mcware.co.uk/digital_services.php">Digital Services</a>'
linkset[1]+='<a href="http://www.mcware.co.uk/disaster_recovery.php">Disaster Recovery</a>'
linkset[1]+='<a href="http://www.mcware.co.uk/iso_27001.php">ISO 27001 Accreditation</a>'
linkset[1]+='<a href="http://www.mcware.co.uk/it_service_contracts.php">IT Service Contracts</a>'
linkset[1]+='<a href="http://www.mcware.co.uk/marine_installation.php">Marine Installation</a>'
linkset[1]+='<a href="http://www.mcware.co.uk/password_recovery.php">Password Recovery</a>'
linkset[1]+='<a href="http://www.mcware.co.uk/payment_plan.php">MC Ware Payment Plan</a>'
linkset[1]+='<a href="http://www.mcware.co.uk/search_engine_optimisation.php">Search Engine Optimisation</a>'
linkset[1]+='<a href="http://www.mcware.co.uk/sharepoint_2010.php">SharePoint 2010 Solutions</a>'
linkset[1]+='<a href="http://www.mcware.co.uk/software_training.php">Software Training</a>'
linkset[1]+='<a href="http://www.mcware.co.uk/telephone_systems.php">Telephone Systems</a>'
linkset[1]+='<a href="http://www.mcware.co.uk/vmware.php">VMware</a>'
linkset[1]+='<a href="http://www.mcware.co.uk/web_intranet_design.php">Web and Intranet Design</a>'

linkset[2]='<a href="http://www.mcware.co.uk/downloads.php">Downloads</a>'
linkset[2]+='<a href="http://www.mcware.co.uk/fraud_prevention.php">Fraud Prevention</a>'
linkset[2]+='<a href="http://www.mcware.co.uk/links.php">Useful Links</a>'
linkset[2]+='<a href="http://www.mcware.co.uk/press/">Press</a>'
linkset[2]+='<a href="http://www.mcware.co.uk/promotional_video.php">Promotional Video</a>'
linkset[2]+='<a href="http://www.mcware.co.uk/reciprocal_linking.php">Reciprocal Linking</a>'
linkset[2]+='<a href="http://www.mcware.co.uk/tutorials.php">Tutorials</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=205+"px"
menuobj.style.top=65+"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=255+"px"
menuobj.style.top=65+"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=323+"px"
menuobj.style.top=65+"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
