/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//Contents for menu 1
/*var menu1=new Array();
menu1[0]='<a href="http://www.arbico.co.uk/Value-p-1-c-336.html">Value</a>';
menu1[1]='<a href="http://www.arbico.co.uk/Performance-p-1-c-333.html">Performance</a>';
menu1[2]='<a href="http://www.arbico.co.uk/Pro-p-1-c-334.html">Pro</a>';
menu1[3]='<a href="http://www.arbico.co.uk/Extreme-p-1-c-337.html">Extreme</a>';
menu1[4]='<a href="http://www.arbico.co.uk/PC-Packages-p-1-c-323.html">All PC Packages</a>';*/

//Contents for menu 2, and so on
var menu2=new Array()
menu2[0]='<a href="http://www.arbico.co.uk/Value-p-1-c-335.html">Value</a>';
menu2[1]='<a href="http://www.arbico.co.uk/Performance-p-1-c-330.html">Performance</a>';
menu2[2]='<a href="http://www.arbico.co.uk/Pro-p-1-c-332.html">Pro</a>';
menu2[3]='<a href="http://www.arbico.co.uk/Extreme-p-1-c-331.html">Extreme</a>';
//menu2[4]='<a href="http://www.arbico.co.uk/Base-Units-p-1-c-329.html">All Packages</a>';

/*var menu3=new Array();
menu3[0]='<a href="http://www.arbico.co.uk/Laptops-For-Professionals-p-1-c-314.html">For Professionals</a>';
menu3[1]='<a href="http://www.arbico.co.uk/Laptops-For-Home-Theater--Family-p-1-c-315.html">Home theater family</a>';
menu3[2]='<a href="http://www.arbico.co.uk/Laptops-For-Small-Office--Home-Office-p-1-c-312.html">Small office & Home office</a>';
menu3[3]='<a href="http://www.arbico.co.uk/Thin-and-light-laptops-p-1-c-341.html">Thin and light laptops</a>';
menu3[4]='<a href="http://www.arbico.co.uk/Laptops-p-1-c-311.html">All Laptops</a>';*/


var menu4=new Array();
menu4[0]='<a href="http://www.arbico.co.uk/About-Us-sp-7.html" style="height:14px;padding-top:5px">About Us</a>';
menu4[1]='<a href="http://www.arbico.co.uk/Customer-Testimonials-sp-5.html" style="height:14px;padding-top:5px">Customer Testimonials</a>';
menu4[2]='<a href="http://www.arbico.co.uk/Why-buy-from-arbico-sp-4.html" style="height:14px;padding-top:5px">Why buy from Arbico</a>';
menu4[3]='<a href="http://www.arbico.co.uk/Comments-and-Feedback-sp-411.html" style="height:14px;padding-top:5px">Comments and Feedback</a>';
menu4[4]='<a href="http://www.arbico.co.uk/Reviews-and-Articles-sp-17.html" style="height:14px;padding-top:5px">Reviews and Articles</a>';
menu4[5]='<a href="http://www.arbico.co.uk/FAQ-sp-11.html" style="height:14px;padding-top:5px">FAQs</a>';
menu4[6]='<a href="http://www.arbico.co.uk/Computers-News-sp-15.php" style="height:14px;padding-top:5px">News</a>';

var menu5=new Array();
menu5[0]='<a href="http://www.arbico.co.uk/Help.php?section=contactus&mode=update" style="height:14px;padding-top:5px">Contact Us</a>';
menu5[1]='<a href="http://www.arbico.co.uk/Address-and-Map-sp-1103.html" style="height:14px;padding-top:5px">Address and Map</a>';
menu5[2]='<a href="http://www.arbico.co.uk/Terms-amp-Conditions-sp-8.html" style="height:14px;padding-top:5px">Terms and Conditions</a>';
menu5[3]='<a href="http://www.arbico.co.uk/Privacy-Policy-sp-9.html" style="height:14px;padding-top:5px">Privacy Policy</a>';
<!--menu5[3]='<a href="Build-Your-Own-Computer-sp-13.html">Learn to Build PC</a>';//-->
<!--menu5[4]='<a href="How-to-build-a-gaming-PC-sp-27.html">Learn to Build Gaming PC</a>';
//-->
menu5[5]='<a href="http://www.arbico.co.uk/TFT-Dead-Pixel-Allowances-sp-14.html" style="height:14px;padding-top:5px">TFT Dead Pixel Policy</a>';
menu5[6]='<a href="http://www.arbico.co.uk/Arbico-WEEE-Compliance-sp-408.html" style="height:14px;padding-top:5px">Arbico WEEE Compliance</a>';

var menu6=new Array();

menu6[0]='<a href="http://www.arbico.co.uk/Processors-p-1-c-342.html">Processors</a>';
menu6[1]='<a href="http://www.arbico.co.uk/Memory-p-1-c-347.html">Memory</a>';
menu6[2]='<a href="http://www.arbico.co.uk/Graphic-Cards-p-1-c-343.html">Graphic Cards</a>';
menu6[3]='<a href="http://www.arbico.co.uk/Hard-Drives-p-1-c-344.html">Hard Drives</a>';
menu6[4]='<a href="http://www.arbico.co.uk/Optical-Drives-p-1-c-345.html">Optical Drives</a>';
menu6[5]='<a href="http://www.arbico.co.uk/TFT-Monitors-p-1-c-346.html">TFT Monitor</a>';
menu6[6]='<a href="http://www.arbico.co.uk/Input-Devices-p-1-c-348.html">Input Devices</a>';
menu6[7]='<a href="http://www.arbico.co.uk/Motherboards-p-1-c-349.html">Motherboards</a>';
menu6[8]='<a href="http://www.arbico.co.uk/Speakers-p-1-c-350.html">Speakers</a>';
menu6[9]='<a href="http://www.arbico.co.uk/PC-Cases-p-1-c-351.html">PC Cases</a>';
menu6[10]='<a href="http://www.arbico.co.uk/Sound-Cards-p-1-c-352.html">Sound Cards</a>';
menu6[11]='<a href="http://www.arbico.co.uk/Misc-Parts-p-1-c-353.html">Misc. Parts</a>';
menu6[12]='<a href="http://www.arbico.co.uk/Components-p-1-c-339.html">All Components</a>';
menu6[13]='<a href="http://www.arbico.co.uk/Component-Specials-p-1-c-340.html">Component Specials</a>';

var menuwidth='200px' //default menu width
var menubgcolor='#393939'  // original blue color menu bgcolor
//var menubgcolor='#f45e9b'  //menu bgcolor   // for valentine day
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)

dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

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

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu