var A_MENUS=[],menuCount=0,isFirstMenu=true,mi=0,loaded_menus=[];function menu(a,b){if(document.body&&document.body.style){this.a_config=a;this.a_tpl=b;this.n_id=A_MENUS.length;this.a_index=[];this.a_children=[];this.expand=menu_expand;this.collapse=menu_collapse;this.onclick=menu_onclick;this.onmouseout=menu_onmouseout;this.onmouseover=menu_onmouseover;this.onmousedown=menu_onmousedown;this.a_tpl_def={block_top:16,block_left:16,top:20,left:4,width:120,height:50,hide_delay:0,expd_delay:0,css:{inner:"",outer:""}};this.getprop=function(c){return this.a_tpl_def[c]};this.o_root=this;this.n_depth=-1;this.n_y=this.n_x=0;menuCount=a.length;for(b=0;b<a.length;b++)if(a.length==b+1)new menu_item(this,b,true);else new menu_item(this,b,false);A_MENUS[this.n_id]=this;for(b=0;b<this.a_children.length;b++)this.a_children[b].e_oelement.style.visibility="visible"}}function menu_collapse(a){clearTimeout(this.o_showtimer);var b=a?this.a_index[a].n_depth:0;for(a=0;a<this.a_index.length;a++){var c=this.a_index[a];if(c.n_depth>b&&c.b_visible){c.e_oelement.style.visibility="hidden";c.b_visible=false}}if(!a)this.o_current=null}function menu_expand(a){if(!this.o_hidetimer){a=this.a_index[a];this.o_current&&this.o_current.n_depth>=a.n_depth&&this.collapse(a.n_id);this.o_current=a;if(a.a_children)for(var b=0;b<a.a_children.length;b++){var c=a.a_children[b];c.e_oelement.style.visibility="visible";c.b_visible=true}}}function menu_onclick(a){a=this.a_index[a];var b=a.a_config[1];if(!b)return true;if(String(b).toLowerCase().indexOf("javascript:")==0)return eval(b);if(a.a_config[2]&&a.a_config[2].tw)window.open(b,a.a_config[2].tw);else window.location=b;return true}function menu_onmouseout(a){a=this.a_index[a];a.e_oelement.className=a.getstyle(0,0);a.e_ielement.className=a.getstyle(1,0);a.upstatus(7);this.o_hidetimer=setTimeout("A_MENUS["+this.n_id+"].collapse();",a.getprop("hide_delay"))}function menu_onmouseover(a){clearTimeout(this.o_hidetimer);this.o_hidetimer=null;clearTimeout(this.o_showtimer);var b=this.a_index[a];b.upstatus();b.e_oelement.className=b.getstyle(0,1);b.e_ielement.className=b.getstyle(1,1);if(!(b.getprop("expd_delay")<0))this.o_showtimer=setTimeout("A_MENUS["+this.n_id+"].expand("+a+");",b.getprop("expd_delay"))}function menu_onmousedown(a){var b=this.a_index[a];b.e_oelement.className=b.getstyle(0,2);b.e_ielement.className=b.getstyle(1,2);this.expand(a)}function menu_item(a,b,c){this.n_depth=a.n_depth+1;if(this.a_config=a.a_config[b+(this.n_depth?3:0)]){this.o_root=a.o_root;this.o_parent=a;this.n_order=b;this.n_id=this.o_root.a_index.length;this.o_root.a_index[this.n_id]=this;a.a_children[b]=this;var d=this.o_root,e=this.o_root.a_tpl;this.getprop=mitem_getprop;this.getstyle=mitem_getstyle;this.upstatus=mitem_upstatus;this.n_x=b?a.a_children[b-1].n_x+this.getprop("left"):a.n_x+this.getprop("block_left");this.n_y=b?a.a_children[b-1].n_y+this.getprop("top"):a.n_y+this.getprop("block_top");b=this.getstyle(0,0);b="";e=this.n_x;var f="30px",g=this.getprop("width"),h=this.getprop("height");if(this.a_config[0].length<=16&&this.n_depth==0){b="padding-top:8px;";f="23px"}if(this.n_depth!=0){g++;f=h-5}e+=30;if(menuCount==7)e+=40;if(isFirstMenu){isFirstMenu=false;mi=0}else mi+=2;e-=12;loaded_menus[mi]="e"+d.n_id+"_"+this.n_id+"o";loaded_menus[mi+1]=e;document.write('<div id="e',d.n_id,"_",this.n_id,'o" class="',this.getstyle(0,0),'"',this.a_config[2]&&this.a_config[2].tt?' title="'+this.a_config[2].tt+'"':"",' align="right" style="position:absolute; text-align:left; top: ',this.n_y,"px;left:",e,"px;width:",g,"px;height:",f,"px;visibility:hidden;"," z-index: ",this.n_depth,';cursor:pointer" ','onclick="return A_MENUS[',d.n_id,"].onclick(",this.n_id,');" onmouseout="A_MENUS[',d.n_id,"].onmouseout(",this.n_id,');" onmouseover="A_MENUS[',d.n_id,"].onmouseover(",this.n_id,');" onmousedown="A_MENUS[',d.n_id,"].onmousedown(",this.n_id,');"> <div id="e',d.n_id,"_",this.n_id,'i" class="',this.getstyle(1,0),'" style="position:relative;height:',f,";",b,"",'" >',this.a_config[0],"</div>");a.n_depth+1==0&&c==false&&document.write("<div class='seperator' ></div>");document.write("</div>");this.e_ielement=document.getElementById("e"+d.n_id+"_"+this.n_id+"i");this.e_oelement=document.getElementById("e"+d.n_id+"_"+this.n_id+"o");this.b_visible=!this.n_depth;if(!(this.a_config.length<4)){this.a_children=[];for(b=0;b<this.a_config.length-3;b++)new menu_item(this,b,false)}}}function mitem_getprop(a){var b=null,c=this.o_root.a_tpl[this.n_depth];if(c)b=c[a];return b==null?this.o_parent.getprop(a):b}function mitem_getstyle(a,b){a=this.getprop("css")[a?"inner":"outer"];if(typeof a=="string")return a;for(b=b;b>=0;b--)if(a[b])return a[b]}function mitem_upstatus(a){window.setTimeout("window.status=unescape('"+(a?"":this.a_config[2]&&this.a_config[2].sb?escape(this.a_config[2].sb):escape(this.a_config[0])+(this.a_config[1]?" ("+escape(this.a_config[1])+")":""))+"')",10)}function reloadMenu(){var a=document.getElementById("e0_0o");a=findPosX(document.getElementById("topYellow"));view_screenwidth=screen.width-(screen.width-document.body.scrollWidth);firstmenupos=findPosX(document.getElementById(loaded_menus[0]));for(i=0;i<loaded_menus.length;i+=2)if(document.getElementById("TXTprevleft").value>a){movepos=document.getElementById("TXTprevleft").value-a;document.getElementById(loaded_menus[i]).style.left=loaded_menus[i+1]-movepos+"px"}else if(document.getElementById("TXTprevleft").value>0){movepos=a-document.getElementById("TXTprevleft").value;document.getElementById(loaded_menus[i]).style.left=loaded_menus[i+1]+movepos+"px"}else document.getElementById(loaded_menus[i]).style.left=loaded_menus[i+1]+a+"px"}function findPosX(a){var b=0;if(a.offsetParent)for(;;){b+=a.offsetLeft;if(!a.offsetParent)break;a=a.offsetParent}else if(a.x)b+=a.x;return b}function setleft(){yellowleftpos=findPosX(document.getElementById("topYellow"));document.getElementById("TXTprevleft").value=yellowleftpos};var MENU_ITEMS = [['Electronics','http://www.aroxo.com/Electronics/5/c',null,['MP3 Players','http://www.aroxo.com/MP3-Players/10/c',null],['Digital cameras','http://www.aroxo.com/Digital-cameras/11/c',null],['Video cameras','http://www.aroxo.com/Video-cameras/13/c',null],['Sat navs','http://www.aroxo.com/Sat-navs/12/c',null],['Games consoles','http://www.aroxo.com/Games-consoles/18/c',null],['Games','http://www.aroxo.com/Games/19/c',null]],['Home audio and video','http://www.aroxo.com/Home-audio-and-video/8/c',null,['TVs','http://www.aroxo.com/TVs/20/c',null],['DVD and Bluray players','http://www.aroxo.com/DVD-and-Bluray-players/22/c',null]],['Computing','http://www.aroxo.com/Computing/6/c',null,['Notebooks and laptops','http://www.aroxo.com/Notebooks-and-laptops/14/c',null],['PCs and desktops','http://www.aroxo.com/PCs-and-desktops/15/c',null],['Netbooks','http://www.aroxo.com/Netbooks/16/c',null],['Inkjet and photo printers','http://www.aroxo.com/Inkjet-and-photo-printers/34/c',null],['Laser printers','http://www.aroxo.com/Laser-printers/43/c',null],['Scanners','http://www.aroxo.com/Scanners/44/c',null]],['Kitchen and home','http://www.aroxo.com/Kitchen-and-home/9/c',null,['Coffee makers','http://www.aroxo.com/Coffee-makers/25/c',null],['Cookers','http://www.aroxo.com/Cookers/26/c',null],['Dishwashers','http://www.aroxo.com/Dishwashers/27/c',null],['Freezers','http://www.aroxo.com/Freezers/28/c',null],['Microwaves','http://www.aroxo.com/Microwaves/29/c',null],['Refrigerators','http://www.aroxo.com/Refrigerators/30/c',null],['Washing machines','http://www.aroxo.com/Washing-machines/31/c',null],['Tumble dryers','http://www.aroxo.com/Tumble-dryers/32/c',null]],['Other Items','http://www.aroxo.com/Other-Items/45/c',null,['Watches','http://www.aroxo.com/Watches/48/c',null]]];
TheLayId=document.getElementById("topYellow");TheWidth=TheLayId.offsetWidth;if(TheLayId.offsetParent)for(var posX=-1,posY=-10;TheLayId.offsetParent;TheLayId=TheLayId.offsetParent){posX+=TheLayId.offsetLeft;posY+=TheLayId.offsetTop}if(navigator.appVersion.indexOf("MSIE")==-1)posX-=5;posY+=10;var MENU_TPL=[{height:20,width:129,block_top:posY,block_left:posX,top:0,left:131,hide_delay:200,expd_delay:200,css:{outer:["m0l0oout","m0l0oover"],inner:["m0l0iout","m0l0iover"]}},{height:20,width:250,block_top:30,block_left:0,top:24,left:0,css:{outer:["m0l1oout","m0l1oover"],inner:["m0l1iout","m0l1iover"]}},{block_top:5,block_left:250}];