// JavaScript Document

/***********************************************
* 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 Automatic Coffee Centers
var menu1=new Array()
menu1[0]='<a href="automatic-coffee-centers.shtml">The JURA-Capresso Story / Overview</a>'
menu1[1]='<a href="http://www.us.jura.com/home_us_x/products_home_use/z_line/impressa_z7_alu_ul.htm">IMPRESSA Z7 One Touch</a>'
menu1[2]='<a href="http://www.us.jura.com/home_us_x/products_home_use/s_line/impressa_s9_ot-cappuccino.htm">IMPRESSA S9 One Touch</a>'
menu1[3]='<a href="http://www.us.jura.com/home_us_x/products_home_use/c_line/impressa_c9_eu.htm">IMPRESSA C9 One Touch</a>'
menu1[4]='<a href="http://www.us.jura.com/home_us_x/products_home_use/z_line/impressa_z5_chrome.htm">IMPRESSA Z6</a>'
menu1[5]='<a href="http://www.us.jura.com/home_us_x/products_home_use/z_line/impressa_z5_alu.htm">IMPRESSA Z5</a>'
menu1[6]='<a href="http://www.us.jura.com/home_us_x/products_home_use/j_line/impressa_j6.htm">IMPRESSA J6</a>'
menu1[7]='<a href="http://www.us.jura.com/home_us_x/products_home_use/j_line/impressa_j5_pl-bl.htm">IMPRESSA J5</a>'
menu1[8]='<a href="http://www.us.jura.com/home_us_x/products_home_use/j_line/impressa_j9.3">IMPRESSA J9 One Touch TFT</a>'
menu1[9]='<a href="http://www.us.jura.com/home_us_x/products_home_use/c_line/impressa_c5_ul.htm">IMPRESSA C5</a>'
menu1[10]='<a href="automatic-coffee-centers-ena.shtml">ENA Overview</a>'
menu1[11]='<a href="http://www.us.jura.com/home_us_x/products_home_use/ena_line/ena9.htm">ENA 9 One Touch</a>'
menu1[12]='<a href="http://www.us.jura.com/home_us_x/products_home_use/ena_line/ena5_ul.htm">ENA 5</a>'
menu1[13]='<a href="http://www.us.jura.com/home_us_x/products_home_use/ena_line/ena4_ul_black.htm">ENA 4</a>'
menu1[14]='<a href="http://www.us.jura.com/home_development_x/products_home_use/ena_line/ena3.htm">ENA 3</a>'
menu1[15]='<a href="http://www.us.jura.com/home_us_x/products_home_use/products_home_use_accessoires.htm">JURA Accessories</a>'
menu1[16]='<a href="http://www.us.jura.com/home_us_x/products_commercial_use2.htm">JURA Commercial</a>'

//Contents for Espresso Machines
var menu2=new Array()
menu2[0]='<a href="espresso-machines.shtml">Overview</a>'
menu2[1]='<a href="espresso-machines-ec100.shtml">EC100</a>'
menu2[2]='<a href="espresso-machines-4cup.shtml">4-Cup Espresso & Cappuccino Machine</a>'
menu2[3]='<a href="espresso-machines-cafe.shtml">Capresso Café</a>'

//Contents for Coffee Makers
var menu3=new Array()
menu3[0]='<a href="coffee-makers.shtml">Overview</a>'
menu3[1]='<a href="coffee-makers-coffee-team-gs.shtml">CoffeeTEAM GS</a>'
menu3[2]='<a href="coffee-makers-coffee-team-ts.shtml">CoffeeTEAM TS</a>'
menu3[3]='<a href="coffee-makers-mt600.shtml">MT600 PLUS</a>'
menu3[4]='<a href="coffee-makers-mg600plus.shtml">MG600 PLUS</a>'
menu3[5]='<a href="coffee-makers-cm200.shtml">CM200</a>'

//Contents for Coffee Grinders & Coffee Beans
var menu4=new Array()
menu4[0]='<a href="coffee-grinders.shtml">Overview</a>'
menu4[1]='<a href="coffee-grinders-burr-infinity.shtml">Infinity, conical burr</a>'
menu4[2]='<a href="coffee-grinders-burr-stainless-steel.shtml">Burr Grinder, stainless steel</a>'
menu4[3]='<a href="coffee-grinders-cool-grind.shtml">Cool Grind, blade grinder</a>'
menu4[4]='<a href="coffee-burr-grinder.shtml">Coffee Burr Grinder</a>'
menu4[5]='<a href="coffee-grinders-beans.shtml">Grand Aroma Coffee Beans</a>'

//Contents for Water Kettle
var menu5=new Array()
menu5[0]='<a href="water-kettle.shtml">Overview</a>'
/* menu5[1]='<a href="water-kettle-frother-perfectea.shtml">PerfecTea, Water Kettle</a>' */
menu5[1]='<a href="water-kettle-frother-teaC100.shtml">teaC100, Water Kettle</a>'
menu5[2]='<a href="water-kettle-frother-h20-plus.shtml">H2O PLUS, Water Kettle</a>'
menu5[3]='<a href="water-kettle-frother-h20-pro.shtml">H2O PRO, Water Kettle</a>'

//Contents for Milk Frothers
var menu6=new Array()
menu6[0]='<a href="frother.shtml">Overview</a>'
menu6[1]='<a href="water-kettle-frother-frothpro.shtml">Capresso frothPRO</a>'
menu6[2]='<a href="water-kettle-frother-frothplus.shtml">Capresso frothPLUS</a>'


//Contents for Store Locator & Purchase
var menu9=new Array()
menu9[0]='<a href="store-locator-purchase.shtml">Overview</a>'
menu9[1]='<a href="store-locator-purchase.shtml">Retailers near you</a>'
menu9[2]='<a href="store-locator-purchase.shtml">Website retailers</a>'
menu9[3]='<a href="search.asp">Capresso Online</a>'
menu9[4]='<a href="parts-accessories.shtml">Products, Parts and Accessories</a>'
menu9[5]='<a href="factory-serviced-products.shtml">Factory Serviced Products</a>'

//Contents for Customer Care
var menu10=new Array()
menu10[0]='<a href="customer-care.shtml">Service Hotline</a>'
menu10[1]='<a href="customer-care-comments-questions.shtml">Comments/Questions</a>'
menu10[2]='<a href="customer-care-comparison-charts.shtml">Comparison Charts</a>'
menu10[3]='<a href="customer-care-instruction-booklets.shtml">Instruction Booklets</a>'
menu10[4]='<a href="customer-care-reference-guides.shtml">Reference Guides</a>'
menu10[5]='<a href="customer-care-mail-order-forms.shtml">Mail Order Forms</a>'
menu10[6]='<a href="customer-care-warranty.shtml">Warranty</a>'
menu10[7]='<a href="customer-care-authorized-resellers.shtml">Authorized Resellers</a>'
menu10[8]='<a href="customer-care-privacy-policy.shtml">Privacy Policy</a>'
menu10[9]='<a href="customer-care-returns.shtml">Returns</a>'
menu10[10]='<a href="customer-care-product-registration.shtml">Product Registration</a>'
menu10[11]='<a href="customer-care-shipping.shtml">Shipping/Handling Charges</a>'
		
var menuwidth='165px' //default menu width
var menubgcolor='#CC6633'  //menu bgcolor
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=-500
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
