/***********************************************
* 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_our_company
var menu_our_company=new Array()
menu_our_company[0]='<img src="img/submenu_top.png">'
menu_our_company[1]='<a href="history.htm"><img src="img/submenu_arrow.png" border="0"> Our History</a>'
menu_our_company[2]='<a href="employees.htm"><img src="img/submenu_arrow.png" border="0"> Our Employees</a>'
menu_our_company[3]='<a href="career_opportunities.htm"><img src="img/submenu_arrow.png" border="0"> Our Career Opportunites</a>'
menu_our_company[4]='<a href="organizations.htm"><img src="img/submenu_arrow.png" border="0"> Organizations</a>'
menu_our_company[5]='<a href="certifications.htm"><img src="img/submenu_arrow.png" border="0"> Certifications</a>'
menu_our_company[6]='<a href="news.htm"><img src="img/submenu_arrow.png" border="0"> Our News</a>'
menu_our_company[7]='<img src="img/submenu_bottom.png">'

//Contents for menu_our_products
var menu_our_products=new Array()
menu_our_products[0]='<img src="img/submenu_top.png">'
menu_our_products[1]='<a href="allergy_encasements.htm"><img src="img/submenu_arrow.png" border="0"> Allergy Encasements</a>'
menu_our_products[2]='<a href="mattress_protectors.htm"><img src="img/submenu_arrow.png" border="0"> Mattress Protectors</a>'
menu_our_products[3]='<a href="pillow_protectors.htm"><img src="img/submenu_arrow.png" border="0"> Pillow Protectors</a>'
menu_our_products[4]='<a href="sheet_sets.htm"><img src="img/submenu_arrow.png" border="0"> Sheet Sets</a>'
menu_our_products[5]='<a href="blanket_bed_packs.htm"><img src="img/submenu_arrow.png" border="0"> Blanket Bed Packs</a>'
menu_our_products[6]='<a href="pillow_packs.htm"><img src="img/submenu_arrow.png" border="0"> Pillow Packs</a>'
menu_our_products[7]='<a href="pillows.htm"><img src="img/submenu_arrow.png" border="0"> Pillows</a>'
menu_our_products[8]='<img src="img/submenu_line.png">'
menu_our_products[9]='<a href="fulfillment.htm"><img src="img/submenu_arrow.png" border="0"> Fulfillment</a>'
menu_our_products[10]='<img src="img/submenu_bottom.png">'

//Contents for menu_the_facts
var menu_the_facts=new Array()
menu_the_facts[0]='<img src="img/submenu_top_wide.png">'
menu_the_facts[1]='<a href="bed_bug_facts.htm"><img src="img/submenu_arrow.png" border="0"> Bed Bug Facts</a>'
menu_the_facts[2]='<a href="compression_test.htm"><img src="img/submenu_arrow.png" border="0"> Compression Testing Report</a>'
menu_the_facts[3]='<a href="faq.htm"><img src="img/submenu_arrow.png" border="0"> FAQ</a>'
menu_the_facts[4]='<a href="health_facts.htm"><img src="img/submenu_arrow.png" border="0"> Health Facts</a>'
menu_the_facts[5]='<img src="img/submenu_bottom_wide.png">'

//Contents for menu_our_warranty
var menu_our_warranty=new Array()
menu_our_warranty[0]='<img src="img/submenu_top.png">'
menu_our_warranty[1]='<a href="warranty.htm"><img src="img/submenu_arrow.png" border="0"> How it Works</a>'
menu_our_warranty[2]='<a href="register_warranty.htm"><img src="img/submenu_arrow.png" border="0"> Register Your Warranty</a>'
menu_our_warranty[3]='<a href="warranty_claim.htm"><img src="img/submenu_arrow.png" border="0"> File a Claim</a>'
menu_our_warranty[4]='<img src="img/submenu_bottom.png">'

//Contents for menu_our_commitment
var menu_our_commitment=new Array()
menu_our_commitment[0]='<img src="img/submenu_top_wide.png">'
menu_our_commitment[1]='<a href="rfkc.htm"><img src="img/submenu_arrow.png" border="0"> Caring for Others - RFKC</a>'
menu_our_commitment[2]='<a href="tanzania.htm"><img src="img/submenu_arrow.png" border="0"> Caring for Others - Tanzania</a>'
menu_our_commitment[3]='<a href="homeless_veterans.htm"><img src="img/submenu_arrow.png" border="0"> Caring for Others - Veterans</a>'
menu_our_commitment[4]='<a href="environment.htm"><img src="img/submenu_arrow.png" border="0"> Caring for the Environment</a>'
menu_our_commitment[5]='<img src="img/submenu_bottom_wide.png">'

//Contents for menu_my_account_out
var menu_my_account_out=new Array()
menu_my_account_out[0]='<img src="img/submenu_top.png">'
menu_my_account_out[1]='<a href="login.htm"><img src="img/submenu_arrow.png" border="0"> Login</a>'
menu_my_account_out[2]='<a href="create_account.htm"><img src="img/submenu_arrow.png" border="0"> Create an Account</a>'
menu_my_account_out[3]='<img src="img/submenu_bottom.png">'

//Contents for menu_my_account_in
var menu_my_account_in=new Array()
menu_my_account_in[0]='<img src="img/submenu_top.png">'
menu_my_account_in[1]='<a href="edit_account.htm"><img src="img/submenu_arrow.png" border="0"> Edit Account Info</a>'
menu_my_account_in[2]='<a href="change_password.htm"><img src="img/submenu_arrow.png" border="0"> Change Password</a>'
menu_my_account_in[3]='<a href="logout.htm"><img src="img/submenu_arrow.png" border="0"> Logout</a>'
menu_my_account_in[4]='<img src="img/submenu_bottom.png">'

//Contents for menu_retailer_training
var menu_retailer_training=new Array()
menu_retailer_training[0]='<img src="img/submenu_top.png">'
menu_retailer_training[1]='<a href="retailer-training_video.htm"><img src="img/submenu_arrow.png" border="0"> Training Video</a>'
menu_retailer_training[2]='<a href="retailer-training_aids.htm"><img src="img/submenu_arrow.png" border="0"> Printable Training Aids</a>'
menu_retailer_training[3]='<a href="retailer-training_presentation.htm"><img src="img/submenu_arrow.png" border="0"> Schedule a Presentation</a>'
menu_retailer_training[4]='<a href="retailer-webcast_register.htm"><img src="img/submenu_arrow.png" border="0"> Webcast Training</a>'
menu_retailer_training[5]='<a href="retailer-training_staff.htm"><img src="img/submenu_arrow.png" border="0"> Meet Our Training Staff</a>'
menu_retailer_training[6]='<img src="img/submenu_bottom.png">'

//Contents for menu_customer_carbonfree
var menu_customer_carbonfree=new Array()
menu_customer_carbonfree[0]='<img src="img/submenu_top.png">'
menu_customer_carbonfree[1]='<a href="prospective_retailer-carbonfree_1.htm"><img src="img/submenu_arrow.png" border="0"> Phase I</a>'
menu_customer_carbonfree[2]='<a href="prospective_retailer-carbonfree_2.htm"><img src="img/submenu_arrow.png" border="0"> Phase II</a>'
menu_customer_carbonfree[3]='<img src="img/submenu_bottom.png">'

//Contents for menu_admin_warranties
var menu_admin_warranties=new Array()
menu_admin_warranties[0]='<img src="img/submenu_top.png">'
menu_admin_warranties[1]='<a href="register_warranty.htm"><img src="img/submenu_arrow.png" border="0"> Insert New</a>'
menu_admin_warranties[2]='<a href="admin-warranties.htm"><img src="img/submenu_arrow.png" border="0"> Query</a>'
menu_admin_warranties[3]='<a href="all,admin-warranties.htm"><img src="img/submenu_arrow.png" border="0"> View All</a>'
menu_admin_warranties[4]='<img src="img/submenu_bottom.png">'

//Contents for menu_admin_claims
var menu_admin_claims=new Array()
menu_admin_claims[0]='<img src="img/submenu_top.png">'
menu_admin_claims[1]='<a href="admin-claims.htm"><img src="img/submenu_arrow.png" border="0"> Insert New</a>'
menu_admin_claims[2]='<a href="query,admin-claims.htm"><img src="img/submenu_arrow.png" border="0"> Query</a>'
menu_admin_claims[3]='<a href="open,admin-claims.htm"><img src="img/submenu_arrow.png" border="0"> Open Claims</a>'
menu_admin_claims[4]='<a href="closed,admin-claims.htm"><img src="img/submenu_arrow.png" border="0"> Closed Claims</a>'
menu_admin_claims[5]='<img src="img/submenu_bottom.png">'

var menuwidth='170px' //default menu width
var disappeardelay=500  //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+'" 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=5+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