
/***********************************************
* AnyLink Vertical 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.centralhobbies.com/building_materials/adhesives/adhesive.htm">Glue & Epoxy</a>'
menu1[1]='<a href="http://www.centralhobbies.com/miscellaneous/Bviolet.html">Hatch Latch & Pins</a>'
menu1[2]='<a href="http://www.centralhobbies.com/spinners/spin00.htm">Tru-Turn Spinners</a>'
menu1[3]='<a href="http://www.centralhobbies.com/Tools/tool00.html">Tools & Gadgets</a>'
menu1[4]='<a href="http://www.centralhobbies.com/landing_gear/tailwheel.html">Tail Wheel Assemblies</a>'
menu1[5]='<a href="http://www.centralhobbies.com/Electrical/starters/starter.html">Pattern Plane Starters</a>'
menu1[6]='<a href="http://www.centralhobbies.com/Engines/gaskets.html">Gaskets</a>'
menu1[7]='<a href="http://www.centralhobbies.com/glow/glow_drivers/prodriver.html">Glow Drivers</a>'
menu1[8]='<a href="http://www.centralhobbies.com/landing_gear/wheels.html">Pattern Plane Wheels</a>'
menu1[9]='<a href="http://www.centralhobbies.com/Tools/perma-00.html">Permagrit Tools</a>'
menu1[10]='<a href="http://www.centralhobbies.com/accessories.html">Accessories Page</a>'


//Contents for menu 2
var menu2=new Array()
menu2[0]='<a href="http://www.centralhobbies.com/ARF/arf_00.html">ARF Planes Page</a>'
menu2[1]='<a href="http://www.centralhobbies.com/PatternKits/yak73.htm">73" YAK 54 ARF</a>'
menu2[2]='<a href="http://www.centralhobbies.com/ARF/pinn00.html">Pinnacle ARF Kit</a>'
menu2[3]='<a href="http://www.centralhobbies.com/PatternKits/focus2.htm">Focus-2 Pattern Plane</a>'


//Contents for menu 3
var menu3=new Array()
menu3[0]='<a href="http://www.centralhobbies.com/control_linkage/pushrod.html">Carbon Fiber Push Rods</a>'
menu3[1]='<a href="http://www.centralhobbies.com/control_linkage/control_horns/horns00.html">Control Horns</a>'
menu3[2]='<a href="http://www.centralhobbies.com/control_linkage/adjustable_stab/stable.html">Adjustable Stab</a>'
menu3[3]='<a href="http://www.centralhobbies.com/control_linkage/pullpull/tet2204.htm">Tettra Pull-Pull</a>'
menu3[4]='<a href="http://www.centralhobbies.com/radiosNservos/Servoarms.html">Optional Servo Arms</a>'
menu3[5]='<a href="http://www.centralhobbies.com/control_linkage/deps1.html">D.E.P.S. System</a>'
menu3[6]='<a href="http://www.centralhobbies.com/control_linkage/clevis/tettra.html">Tettra Clevis</a>'
menu3[7]='<a href="http://www.centralhobbies.com/control_linkage/rod_ends.htm">Dual Axis Rod Ends</a>'
menu3[8]='<a href="http://www.centralhobbies.com/control_linkage/link00.htm">Control Linkage Products</a>'


//Contents for menu 4
var menu4=new Array()
menu4[0]='<a href="http://www.centralhobbies.com/Electrical/starters/starter.html">Pattern Plane Starters</a>'
menu4[1]='<a href="http://www.centralhobbies.com/Electrical/Batteries/batt00.htm">Battery Packs</a>'
menu4[2]='<a href="http://www.centralhobbies.com/Electrical/chargers/Chargers.html">Battery Chargers</a>'
menu4[3]='<a href="http://www.centralhobbies.com/Electrical/battery_testers/vltmtr.html">Voltmeters, Testers</a>'
menu4[4]='<a href="http://www.centralhobbies.com/Electrical/LED/index.htm">Power Monitors</a>'
menu4[5]='<a href="http://www.centralhobbies.com/Electrical/power_panels/powerpanel.htm">Hobbico Power Panel</a>'
menu4[6]='<a href="http://www.centralhobbies.com/Electrical/charge_jack/chargjk.html">Charge Jack</a>'
menu4[7]='<a href="http://www.centralhobbies.com/Electrical/switch_harness/Switchhar.html">Switch Harnesses</a>'
menu4[8]='<a href="http://www.centralhobbies.com/Electrical/voltage_regulator/Perfectstch.html">Voltage Regulator</a>'
menu4[8]='<a href="http://www.centralhobbies.com/Electrical/LED/etkpil.html">Power Indicator Light</a>'
menu4[9]='<a href="http://www.centralhobbies.com/Electrical/elect00.htm">Electrical Equipment</a>'


//Contents for menu 5
var menu5=new Array()
menu5[0]='<a href="http://www.centralhobbies.com/Electrical/starters/compact.htm">Compact 12V Starter</a>'
menu5[1]='<a href="http://www.centralhobbies.com/Electrical/starters/starter.html#Hobbico">Hobbico 12V Starter</a>'
menu5[2]='<a href="http://www.centralhobbies.com/Electrical/starters/starter.html#Sullivan">Sullivan Deluxe Hi-Tork</a>'
menu5[3]='<a href="http://www.centralhobbies.com/Electrical/starters/bigcone.html">BIG CONE Starter Cone</a>'
menu5[4]='<a href="http://www.centralhobbies.com/Electrical/starters/starter.html">Starter Selection page</a>'


//Contents for menu 6
var menu6=new Array()
menu6[0]='<a href="http://www.centralhobbies.com/Engines/ys/ysengines.htm">YS Engines</a>'
menu6[1]='<a href="http://www.centralhobbies.com/Engines/parts/ysparts.htm">YS Engine Parts</a>'
menu6[2]='<a href="http://www.centralhobbies.com/Engines/os/os00.htm">OS 140-RX Engine</a>'
menu6[3]='<a href="http://www.centralhobbies.com/Engines/parts/webra160.html">Webra 160-XP Engine Parts</a>'
menu6[4]='<a href="http://www.centralhobbies.com/Engines/mounts/mnt00.htm">Engine Mounts</a>'
menu6[5]='<a href="http://www.centralhobbies.com/Engines/nose_rings.html">Nose Rings</a>'
menu6[6]='<a href="http://www.centralhobbies.com/Engines/ys/biggrip.html">Big Grip Thrust Washer</a>'
menu6[7]='<a href="http://www.centralhobbies.com/Engines/gaskets.html">Engine Gaskets</a>'
menu6[8]='<a href="http://www.centralhobbies.com/Engines/air_filters.html">Air Intake Filters</a>'
menu6[9]='<a href="http://www.centralhobbies.com/Engines/power/velocity.htm">NMP Velocity Stack</a>'
menu6[10]='<a href="http://www.centralhobbies.com/Exhaust/index.htm">Exhaust Systems</a>'
menu6[11]='<a href="http://www.centralhobbies.com/Engines/engin00.htm">Engine Products Page</a>'


//Contents for menu 7
var menu7=new Array()
menu7[0]='<a href="http://www.centralhobbies.com/Exhaust/Exhaust.html">Headers</a>'
menu7[1]='<a href="http://www.centralhobbies.com/Exhaust/mufflers.html">Mufflers & Tune Pipes</a>'
menu7[2]='<a href="http://www.centralhobbies.com/Exhaust/clamps.html">Clamps & Mounting</a>'
menu7[3]='<a href="http://www.centralhobbies.com/Exhaust/adapters.html">Exhaust Adapters</a>'
menu7[4]='<a href="http://www.centralhobbies.com/Exhaust/index.htm">Exhaust Products Page</a>'


//Contents for menu 8
var menu8=new Array()
menu8[0]='<a href="http://www.centralhobbies.com/Fuel/fuel00.htm">Fuel Products Page</a>'
menu8[1]='<a href="http://www.centralhobbies.com/Fuel/Fueltnk.html">Tettra Fuel Tanks</a>'
menu8[2]='<a href="http://www.centralhobbies.com/Fuel/fuel_tanks/dubrotnk.html">Du-Bro Fuel Tanks</a>'
menu8[3]='<a href="http://www.centralhobbies.com/Fuel/flpmp.htm">Pattern Fuel Pumps</a>'
menu8[4]='<a href="http://www.centralhobbies.com/Fuel/flines.htm">Pattern Fuel Lines</a>'
menu8[5]='<a href="http://www.centralhobbies.com/Fuel/fittings.htm">Fuel Line Fittings</a>'
menu8[6]='<a href="http://www.centralhobbies.com/Fuel/shutoff.html">Ball Cock Shut-Off Valve</a>'
menu8[7]='<a href="http://www.centralhobbies.com/Fuel/fuel_fittings/TET4432.html">Filtered Fuel Nozzle</a>'
menu8[8]='<a href="http://www.centralhobbies.com/instructional/lines.html">Chart: Fuel Connections</a>'


//Contents for menu 9
var menu9=new Array()
menu9[0]='<a href="http://www.centralhobbies.com/glow/gloplug.html">YS & OS Glow Plugs</a>'
menu9[1]='<a href="http://www.centralhobbies.com/glow/glow_drivers/prodriver.html">Glow Drivers</a>'
menu9[2]='<a href="http://www.centralhobbies.com/glow/headlock.htm">Headlocks & Glo Plug Caps</a>'
menu9[3]='<a href="http://www.centralhobbies.com/glow/glo00.htm">Glow Plug Products Page</a>'


//Contents for menu 10
var menu10=new Array()
menu10[0]='<a href="http://www.centralhobbies.com/buildingtips/mkhorns/mkhornsinst.html">MK Control Horn Installation</a>'
menu10[1]='<a href="http://www.centralhobbies.com/buildingtips/nosering/nr1.html">Install a Nose Ring</a>'
menu10[2]='<a href="http://www.centralhobbies.com/instructional/deps/depsinst.html">The D.E.P.S. System</a>'
menu10[3]='<a href="http://www.centralhobbies.com/instructional/linkages1/link01.html">Improving Linkages, Part 1</a>'
menu10[4]='<a href="http://www.centralhobbies.com/instructional/linkage2/link21.html">Improving Linkages, Part 2</a>'
menu10[5]='<a href="http://www.centralhobbies.com/instructional/pattern.html">What is Pattern Flying?</a>'
menu10[6]='<a href="http://www.centralhobbies.com/instructional/lithium.html">Lithium Battery Use & Care</a>'
menu10[7]='<a href="http://www.centralhobbies.com/instructional/basics.html">Model Airplane Terms & Parts</a>'
menu10[8]='<a href="http://www.centralhobbies.com/instructional/lines.html">Fuel Line Connections</a>'
menu10[9]='<a href="http://www.centralhobbies.com/instructional/nelinfo.htm">Using Bigger Servo Arms</a>'
menu10[10]='<a href="http://www.centralhobbies.com/instructional/instrct.htm">Instruction & Tips Page</a>'


//Contents for menu 11
var menu11=new Array()
menu11[0]='<a href="http://www.centralhobbies.com/landing_gear/Axles.html">Axles for Pattern Planes</a>'
menu11[1]='<a href="http://www.centralhobbies.com/landing_gear/esdflg.html">Fixed Gear - Carbon Fiber</a>'
menu11[2]='<a href="http://www.centralhobbies.com/landing_gear/tailwheel.html">Tailwheel Assemblies</a>'
menu11[3]='<a href="http://www.centralhobbies.com/landing_gear/wheels.html">Wheels for R/C Planes</a>'
menu11[4]='<a href="http://www.centralhobbies.com/landing_gear/dubrow.htm">Dubro Wheels</a>'
menu11[5]='<a href="http://www.centralhobbies.com/landing_gear/landing_gear.htm">Landing Gear Products Page</a>'


//Contents for menu 12
var menu12=new Array()
menu12[0]='<a href="http://www.centralhobbies.com/props/apc_props.htm">APC Props</a>'
menu12[1]='<a href="http://www.centralhobbies.com/props/props1.htm">2-Blade Props</a>'
menu12[2]='<a href="http://www.centralhobbies.com/props/3-blade.htm">3-Blade Props</a>'
menu12[3]='<a href="http://www.centralhobbies.com/props/4-blade.htm">4-Blade Props</a>'
menu12[4]='<a href="http://www.centralhobbies.com/props/balancer.htm">Precision Prop Balancer</a>'
menu12[5]='<a href="http://www.centralhobbies.com/Engines/ys/biggrip.html">Big Grip Drive Washer</a>'
menu12[6]='<a href="http://www.centralhobbies.com/Engines/ys/biggrip.html#prop">Prop Washer for Large Props</a>'



//Contents for menu 13
var menu13=new Array()
menu13[0]='<a href="http://www.centralhobbies.com/radiosNservos/JR/JRradios/JRradio.html">JR Radio Systems</a>'
menu13[1]='<a href="http://www.centralhobbies.com/radiosNservos/JR/servos/JRservos.html">JR Servos</a>'
menu13[2]='<a href="http://www.centralhobbies.com/radiosNservos/Futaba/Radio.html">Futaba Radio Systems</a>'
menu13[3]='<a href="http://www.centralhobbies.com/radiosNservos/Futaba/servos.html">Futaba Servos</a>'
menu13[4]='<a href="http://www.centralhobbies.com/radiosNservos/Servoarms.html">Heavy Duty Servo Arms</a>'
menu13[5]='<a href="http://www.centralhobbies.com/radiosNservos/hitec/hitec00.html">Hitec Servos</a>'
menu13[6]='<a href="http://www.centralhobbies.com/radiosNservos/Spektrum/spektrum_radios.htm">Spektrum Radios</a>'
menu13[7]='<a href="http://www.centralhobbies.com/radiosNservos/rad00.htm">Radio & Servo Page</a>'


//Contents for menu 14
var menu14=new Array()
menu14[0]='<a href="http://www.centralhobbies.com/spinners/truturn.htm">Tru-Turn Spinners</a>'
menu14[1]='<a href="http://www.centralhobbies.com/spinners/dbrown/dbrown.htm">Dave Brown Spinners</a>'
menu14[2]='<a href="http://www.centralhobbies.com/spinners/truadapt.htm">Tru-Turn Adapter Kits</a>'
menu14[3]='<a href="http://www.centralhobbies.com/spinners/dubro/dubro.htm">Dubro Spinners</a>'
menu14[4]='<a href="http://www.centralhobbies.com/spinners/dbrown/dbadapt.htm">Dave Brown Adapters</a>'
menu14[5]='<a href="http://www.centralhobbies.com/spinners/spin00.htm">Spinner Products Page</a>'


//Contents for menu 15
var menu15=new Array()
menu15[0]='<a href="http://www.centralhobbies.com/Tools/tool1.html#DRIVE WASHER PULLER">Drive Washer Puller</a>'
menu15[1]='<a href="http://www.centralhobbies.com/Tools/tool1.html#THROW">CRC Throw Meter</a>'
menu15[2]='<a href="http://www.centralhobbies.com/Tools/tool1.html">Heavy Duty Pressure Gauge</a>'
menu15[3]='<a href="http://www.centralhobbies.com/Tools/alignment.html#Dead Center">Dead Center Locator</a>'
menu15[4]='<a href="http://www.centralhobbies.com/Tools/alignment.html#Taper">Taper Hinge Guide</a>'
menu15[5]='<a href="http://www.centralhobbies.com/Tools/alignment.html#CG machine">CG Machine</a>'
menu15[6]='<a href="http://www.centralhobbies.com/Tools/sealingirons.html">Sealing Irons</a>'
menu15[7]='<a href="http://www.centralhobbies.com/Tools/alignment.html#Robarts">Incidence Meter</a>'
menu15[8]='<a href="http://www.centralhobbies.com/Tools/jis.html">Japanese Precision Screwdrivers</a>'
menu15[9]='<a href="http://www.centralhobbies.com/Tools/cutting.html#Hinge Slot Cutter">Slot Cutter</a>'
menu15[10]='<a href="http://www.centralhobbies.com/Tools/cutting.html">Micro Hand Saw</a>'
menu15[11]='<a href="http://www.centralhobbies.com/Tools/hobbico.html">Ultra-Tote Field Box</a>'
menu15[12]='<a href="http://www.centralhobbies.com/Tools/hexdriv.html">Metric Hex Drivers</a>'
menu15[13]='<a href="http://www.centralhobbies.com/Electrical/battery_testers/vltmtr.html">Expanded Scale Voltmeter</a>'
menu15[14]='<a href="http://www.centralhobbies.com/Electrical/battery_testers/mrk3.html">Mark III Digital Voltmeter</a>'
menu15[15]='<a href="http://www.centralhobbies.com/Tools/perma-00.html">PermaGrit Tools</a>'
menu15[16]='<a href="http://www.centralhobbies.com/Tools/heatguns.html">Deluxe Heat Gun</a>'
menu15[17]='<a href="http://www.centralhobbies.com/Tools/tachs.html">Digital Tachs</a>'
menu15[18]='<a href="http://www.centralhobbies.com/Tools/freque.html">72MGz Frequency Checker</a>'
menu15[19]='<a href="http://www.centralhobbies.com/Tools/tool00.html">Tools & Gadgets Page</a>'


//Contents for menu 16
var menu16=new Array()
menu16[0]='<a href="http://www.centralhobbies.com/building_materials/fasteners/fastnr.htm">Fasteners Page</a>'
menu16[1]='<a href="http://www.centralhobbies.com/building_materials/paint/index.htm">Heat Shield Coating</a>'
menu16[2]='<a href="http://www.centralhobbies.com/building_materials/adhesives/adhesive.htm#adhesive">Adhesives Usage Chart</a>'
menu16[3]='<a href="http://www.centralhobbies.com/building_materials/adhesives/5min.html">5-Minute Cure Epoxy</a>'
menu16[4]='<a href="http://www.centralhobbies.com/building_materials/adhesives/midcur.html">15-Minute Cure Epoxy</a>'
menu16[5]='<a href="http://www.centralhobbies.com/building_materials/adhesives/20min.html">20-Minute Cure Epoxy</a>'
menu16[6]='<a href="http://www.centralhobbies.com/building_materials/adhesives/slwcure.html">30-Minute Cure Epoxy</a>'
menu16[7]='<a href="http://www.centralhobbies.com/building_materials/adhesives/CAbsi102.html">Instant CA Adhesive</a>'
menu16[8]='<a href="http://www.centralhobbies.com/building_materials/adhesives/sprgld.html">Super Gold CA Odorless</a>'
menu16[9]='<a href="http://www.centralhobbies.com/building_materials/adhesives/Maxicur.html">Maxi-Cure CA Extra Thick</a>'
menu16[10]='<a href="http://www.centralhobbies.com/building_materials/adhesives/cagpfl.html">CA Gap-Filling</a>'
menu16[11]='<a href="http://www.centralhobbies.com/building_materials/adhesives/sprgld00.html">CA Odorless Gap-Filling</a>'
menu16[12]='<a href="http://www.centralhobbies.com/building_materials/adhesives/acclrtr.html">CA Accelerator Refill</a>'
menu16[13]='<a href="http://www.centralhobbies.com/building_materials/adhesives/zpgp.html">Pacer Zap-A-Gap CA</a>'
menu16[14]='<a href="http://www.centralhobbies.com/building_materials/adhesives/Hinglu.html">Pacer Hinge Glue</a>'
menu16[15]='<a href="http://www.centralhobbies.com/building_materials/adhesives/suprwld.html">SIG-BOND™ SuperWeld White</a>'
menu16[16]='<a href="http://www.centralhobbies.com/building_materials/adhesives/SIGSB002.html">SIG-BOND™ Aliphatic Resin</a>'
menu16[17]='<a href="http://www.centralhobbies.com/building_materials/adhesives/sigmnt.html">SIGBOND™ SIG-MENT</a>'
menu16[18]='<a href="http://www.centralhobbies.com/building_materials/adhesives/mercury.html">Mercury CA Adhesives</a>'
menu16[19]='<a href="http://www.centralhobbies.com/building_materials/adhesives/JBwld.html">J-B Weld™ Cold Weld</a>'
menu16[20]='<a href="http://www.centralhobbies.com/building_materials/adhesives/adhesive.htm">R/C Adhesive Products</a>'
menu16[21]='<a href="http://www.centralhobbies.com/building_materials/build00.htm">Building Materials Page</a>'

//Contents for menu 17
var menu17=new Array()
menu17[0]='<a href="http://www.centralhobbies.com/Engines/ys/ysengines.htm">YS Engines Summary Page</a>'
menu17[1]='<a href="http://www.centralhobbies.com/Engines/parts/ysparts.htm">YS Engine Parts Page</a>'

//Contents for menu 18
var menu18=new Array()
menu18[0]='<a href="http://www.centralhobbies.com/electric_flight/electric_planes.html">Electric Flight Main Page</a>'
menu18[1]='<a href="http://www.centralhobbies.com/dubro/dubro01.htm">Du-Bro Micro RC Airplane Parts</a>'
menu18[2]='<a href="http://www.centralhobbies.com/electric_flight/powerch.html">Electric Flight Power Chart</a>'
menu18[3]='<a href="http://www.centralhobbies.com/electric_flight/extreme/planes/ext300.htm">Extra 300-E Aerobatic ARF</a>'
menu18[4]='<a href="http://www.centralhobbies.com/electric_flight/yuntong/ytacdcch.html">YUNTONG Intelligent Li-Po Charger</a>'
menu18[5]='<a href="http://www.centralhobbies.com/electric_flight/fedg540/edge540m.htm">Fliton Edge 540 Mini ARF</a>'
menu18[6]='<a href="http://www.centralhobbies.com/electric_flight/fex330/extra330.htm"> Fliton Extra 330 Mini ARF</a>'
menu18[7]='<a href="http://www.centralhobbies.com/electric_flight/yuntong/ytbacr.html">YUNTONG Smart Battery Balancer</a>'
menu18[8]='<a href="http://www.centralhobbies.com/electric_flight/motors/park/park7.html">E-Flite Outrunner Motors</a>'
menu18[9]='<a href="http://www.centralhobbies.com/electric_flight/yuntong/yuntong.html"> YUNTONG 11.1V 20C Li-Po Battery</a>'
menu18[10]='<a href="http://www.centralhobbies.com/electric_flight/motors/hacker/hka3012m.html">Hacker A30-12M Outrunner</a>'
menu18[11]='<a href="http://www.centralhobbies.com/electric_flight/motors/hacker/hka2022l.html">Hacker A20-22L Outrunner</a>'
menu18[12]='<a href="http://www.centralhobbies.com/electric_flight/connectr.html">Connectors for Electric RC Aircraft</a>'
menu18[13]='<a href="http://www.centralhobbies.com/electric_flight/tp/tp001.html">ThunderPower 11.1V 13C Li-Po Battery</a>'
menu18[14]='<a href="http://www.centralhobbies.com/electric_flight/tp/tp001.html#2">ThunderPower 11.1V 15C Li-Po Battery</a>'
menu18[15]='<a href="http://www.centralhobbies.com/electric_flight/esc/phoenix.html#10">Phoenix Speed Controllers</a>'
menu18[16]='<a href="http://www.centralhobbies.com/electric_flight/extreme/controlr/aboss35.htm">AIRBOSS 35 AMP SPEED CONTROLLER</a>'
menu18[17]='<a href="http://www.centralhobbies.com/electric_flight/extreme/motors/ef2830.htm">TORQUE 2830/1095 Outrunner</a>'
menu18[18]='<a href="http://www.centralhobbies.com/electric_flight/lipo-chr/celectra.html">Celectra 1-3 Cell Li-Po DC Charger</a>'

		
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var horizontaloffset=2 //horizontal offset of menu from default location. (0-5 is a good value)

/////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: 160px" 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=-500
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-obj.offsetWidth < 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 menu up?
edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either? (position at top of viewable window then)
edgeoffset=dropmenuobj.y
}
}
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")+obj.offsetWidth+horizontaloffset+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+"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)
}
