/***********************************************
* 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 rex
var menurex=new Array()
menurex[0]='<a href="http://www.hyquip.co.uk/bosch_rexroth/index.jsp#11">Pumps</a>'
menurex[1]='<a href="http://www.hyquip.co.uk/bosch_rexroth/index.jsp#21">Motors</a>'
menurex[2]='<a href="http://www.hyquip.co.uk/bosch_rexroth/index.jsp#31">Cylinders</a>'
menurex[3]='<a href="http://www.hyquip.co.uk/bosch_rexroth/index.jsp#41">On / Off Valves</a>'
menurex[4]='<a href="http://www.hyquip.co.uk/bosch_rexroth/index.jsp#51">Proportional, High-response and Servo-valves</a>'
menurex[5]='<a href="http://www.hyquip.co.uk/bosch_rexroth/index.jsp#61">Electronics</a>'
menurex[6]='<a href="http://www.hyquip.co.uk/bosch_rexroth/index.jsp#71">Simulation Technology</a>'
menurex[7]='<a href="http://www.hyquip.co.uk/bosch_rexroth/index.jsp#81">Control Blocks / Plates</a>'
menurex[8]='<a href="http://www.hyquip.co.uk/bosch_rexroth/index.jsp#91">Accumulators and Accessories</a>'
menurex[9]='<a href="http://www.hyquip.co.uk/bosch_rexroth/index.jsp#101">Power Units and Accessories</a>'

//Contents for menu rexpum
var menurexpum=new Array()
menurexpum[0]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_pumps/bosch_rexroth_axial_piston_pumps.jsp">Axial Piston Pumps</a>'
menurexpum[1]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_pumps/bosch_rexroth_external_gear_pumps.jsp">External Gear Pumps</a>'
menurexpum[2]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_pumps/bosch_rexroth_internal_gear_pumps.jsp">Internal Gear Pumps</a>'
menurexpum[3]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_pumps/bosch_rexroth_vane_pumps.jsp">Vane Pumps</a>'
menurexpum[4]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_pumps/bosch_rexroth_radial_piston_pumps.jsp">Radial Piston Pumps</a>'
menurexpum[5]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_pumps/bosch_rexroth_combination_pumps.jsp">Combination Pumps</a>'

//Contents for menu rexapp
var menurexapp=new Array()
menurexapp[0]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_pumps/bosch_rexroth_axial_piston_pumps/bosch_rexroth_fixed_displacement_pumps.jsp">Fixed Displacement Pumps</a>'
menurexapp[1]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_pumps/bosch_rexroth_axial_piston_pumps/bosch_rexroth_variable_displacement_pumps.jsp">Variable Displacement Pumps</a>'
menurexapp[2]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_pumps/bosch_rexroth_axial_piston_pumps/bosch_rexroth_electronics_axial_piston_units.jsp">Electronics for Axial Piston Units</a>'
	
//Contents for menu rexoov
var menurexoov=new Array()
menurexoov[0]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_on_off_valves/bosch_rexroth_isolator_valves.jsp">Isolator Valves</a>'
menurexoov[1]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_on_off_valves/bosch_rexroth_flow_valves.jsp">Flow Valves</a>'
menurexoov[2]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_on_off_valves/bosch_rexroth_directional_valves.jsp">Directional Valves</a>'
menurexoov[3]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_on_off_valves/bosch_rexroth_2_way_cartridge_valves.jsp">2-way Cartridge Valves</a>'
menurexoov[4]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_on_off_valves/bosch_rexroth_pressure_valves.jsp">Pressure Valves</a>'
menurexoov[5]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_on_off_valves/bosch_rexroth_atex_on_off_valves.jsp">ATEX On / Off Valves</a>'

//Contents for menu rexflv
var menurexflv=new Array()
menurexflv[0]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_on_off_valves/bosch_rexroth_flow_valves/bosch_rexroth_throttle_valves_throttle_check_valves.jsp">Throttle Valves and Throttle Check Valves</a>'
menurexflv[1]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_on_off_valves/bosch_rexroth_flow_valves/bosch_rexroth_flow_control_valves.jsp">Flow Control Valves</a>'
menurexflv[2]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_on_off_valves/bosch_rexroth_flow_valves/bosch_rexroth_rectifier_sandwich_plates.jsp">Rectifier Sandwich Plates</a>'

//Contents for menu rexisv
var menurexisv=new Array()
menurexisv[0]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_on_off_valves/bosch_rexroth_isolator_valves/bosch_rexroth_check_valves.jsp">Check Valves</a>'
menurexisv[1]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_on_off_valves/bosch_rexroth_isolator_valves/bosch_rexroth_shut_off_valves.jsp">Shut-off Valves</a>'
menurexisv[2]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_on_off_valves/bosch_rexroth_isolator_valves/bosch_rexroth_pre_fill_valves.jsp">Pre-fill Valves</a>'

//Contents for menu rexisv
var menurexdrv=new Array()
menurexdrv[0]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_on_off_valves/bosch_rexroth_directional_valves/bosch_rexroth_directional_poppet_valves_direct_operated.jsp">Directional Poppet Valves, Direct Operated</a>'
menurexdrv[1]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_on_off_valves/bosch_rexroth_directional_valves/bosch_rexroth_directional_poppet_valves_pilot_operated.jsp">Directional Poppet Valves, Pilot Operated</a>'
menurexdrv[2]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_on_off_valves/bosch_rexroth_directional_valves/bosch_rexroth_directional_spool_valves_direct_operated.jsp">Directional Spool Valves, Direct Operated</a>'
menurexdrv[3]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_on_off_valves/bosch_rexroth_directional_valves/bosch_rexroth_directional_spool_valves_pilot_operated.jsp">Directional Spool Valves, Pilot Operated</a>'
menurexdrv[4]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_on_off_valves/bosch_rexroth_directional_valves/bosch_rexroth_accessories_directional_spool_valves.jsp">Accessories for Directional Spool Valves</a>'

//Contents for menu rex2wy
var menurex2wy=new Array()
menurex2wy[0]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_on_off_valves/bosch_rexroth_2_way_cartridge_valves/bosch_rexroth_directional_function.jsp">Directional Function</a>'
menurex2wy[1]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_on_off_valves/bosch_rexroth_2_way_cartridge_valves/bosch_rexroth_pressure_relief_function.jsp">Pressure Relief Function</a>'
menurex2wy[2]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_on_off_valves/bosch_rexroth_2_way_cartridge_valves/bosch_rexroth_pressure_reducing_function.jsp">Pressure Reducing Function</a>'
menurex2wy[3]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_on_off_valves/bosch_rexroth_2_way_cartridge_valves/bosch_rexroth_pressure_sequencing_function.jsp">Pressure Sequencing Function</a>'

//Contents for menu rexaoo
var menurexaoo=new Array()
menurexaoo[0]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_on_off_valves/bosch_rexroth_atex_on_off_valves/bosch_rexroth_directional_poppet_valves.jsp">Directional Poppet Valves</a>'
menurexaoo[1]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_on_off_valves/bosch_rexroth_atex_on_off_valves/bosch_rexroth_directional_spool_valves_direct_operated.jsp">Directional Spool Valves, Direct Operated</a>'
menurexaoo[2]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_on_off_valves/bosch_rexroth_atex_on_off_valves/bosch_rexroth_directional_spool_valves_pilot_operated.jsp">Directional Spool Valves, Pilot Operated</a>'
menurexaoo[3]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_on_off_valves/bosch_rexroth_atex_on_off_valves/bosch_rexroth_pressure_reducing_valves.jsp">Pressure Reducing Valves</a>'

var menurexprv=new Array()
menurexprv[0]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_on_off_valves/bosch_rexroth_pressure_valves/bosch_rexroth_pressure_relief_valves_direct_operated.jsp">Pressure Relief Valves, Direct Operated</a>'
menurexprv[1]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_on_off_valves/bosch_rexroth_pressure_valves/bosch_rexroth_pressure_relief_valves_pilot_operated.jsp">Pressure Relief Valves, Pilot Operated</a>'
menurexprv[2]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_on_off_valves/bosch_rexroth_pressure_valves/bosch_rexroth_pressure_reducing_valves_direct_operated.jsp">Pressure Reducing Valves, Direct Operated</a>'
menurexprv[3]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_on_off_valves/bosch_rexroth_pressure_valves/bosch_rexroth_pressure_reducing_valves_pilot_operated.jsp">Pressure Reducing Valves, Pilot Operated</a>'
menurexprv[4]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_on_off_valves/bosch_rexroth_pressure_valves/bosch_rexroth_pressure_sequencing_valves.jsp">Pressure Sequencing Valves</a>'
menurexprv[5]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_on_off_valves/bosch_rexroth_pressure_valves/bosch_rexroth_pressure_cut_off_valves.jsp">Pressure Cut-off Valves</a>'

//Contents for menu rexmot
var menurexmot=new Array()
menurexmot[0]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_motors/bosch_rexroth_axial_piston_motors.jsp">Axial Piston Motors</a>'
menurexmot[1]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_motors/bosch_rexroth_external_gear_motors.jsp">External Gear Motors</a>'
menurexmot[2]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_motors/bosch_rexroth_radial_piston_motors.jsp">Radial Piston Motors</a>'

//Contents for menu rexapm
var menurexapm=new Array()
menurexapm[0]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_motors/bosch_rexroth_axial_piston_motors/bosch_rexroth_fixed_displacement_motors.jsp">Fixed Displacement Motors</a>'
menurexapm[1]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_motors/bosch_rexroth_axial_piston_motors/bosch_rexroth_variable_displacement_motors.jsp">Variable Displacement Motors</a>'
menurexapm[2]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_motors/bosch_rexroth_axial_piston_motors/bosch_rexroth_two_speed_motors.jsp">Two-speed Motors</a>'

//Contents for menu rexcyl
var menurexcyl=new Array()
menurexcyl[0]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_cylinders/bosch_rexroth_tie_rod_cylinders.jsp">Tie Rod Cylinders</a>'
menurexcyl[1]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_cylinders/bosch_rexroth_mill_type_cylinders.jsp">Mill Type Cylinders</a>'
menurexcyl[2]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_cylinders/bosch_rexroth_atex_cylinders.jsp">ATEX Cylinders</a>'

//Contents for menu rexsim
var menurexsim=new Array()
menurexsim[0]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_simulation_technology/bosch_rexroth_technical_calculation.jsp">Technical Calculation</a>'
menurexsim[1]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_simulation_technology/bosch_rexroth_simulation_software.jsp">Simulation Software</a>'
menurexsim[2]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_simulation_technology/bosch_rexroth_animation_presentation.jsp">Animation Presentation</a>'

//Contents for menu rexcbp
var menurexcbp=new Array()
menurexcbp[0]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_control_blocks_plates/bosch_rexroth_manifold_plates.jsp">Manifold Plates</a>'
menurexcbp[1]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_control_blocks_plates/bosch_rexroth_control_modules.jsp">Control Modules</a>'
menurexcbp[2]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_control_blocks_plates/bosch_rexroth_modular_plate_systems.jsp">Modular Plate Systems</a>'
menurexcbp[3]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_control_blocks_plates/bosch_rexroth_control_blocks.jsp">Control Blocks</a>'

//Contents for menu rexaaa
var menurexaaa=new Array()
menurexaaa[0]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_accumulators_accessories/bosch_rexroth_accumulator_assemblies.jsp">Accumulator Assemblies</a>'
menurexaaa[1]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_accumulators_accessories/bosch_rexroth_accumulators.jsp">Accumulators</a>'
menurexaaa[2]='<a href="http://www.hyquip.co.uk/bosch_rexroth/bosch_rexroth_accumulators_accessories/bosch_rexroth_accumulator_safety_blocks.jsp">Accumulator Safety Blocks</a>'


var menuwidth='165px' //default menu width
var menubgcolor='lightyellow'  //menu bgcolor
var disappeardelay=100  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editing 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 showhidesc(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 dropdownmenusc(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){
showhidesc(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


