//Pop-it menu- By Dynamic Drive
//For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
//This credit MUST stay intact for use

var linkset=new Array()
//SPECIFY MENU SETS AND THEIR LINKS. FOLLOW SYNTAX LAID OUT

linkset[0]='<div class="menuitems"><a href="http://www.allergicpet.com/order_page.html">Quick Order Form</a></div>'
linkset[0]+='<div class="menuitems"><a href="https://leary.csoft.net/~moose/saintelmosclinic.com/allergicpet/Cart.pl">View Cart</a></div>'
linkset[0]+='<div class="menuitems"><a href="https://leary.csoft.net/~moose/saintelmosclinic.com/allergicpet/Cart.pl?action=Checkout">Checkout</a></div>'
linkset[0]+='<div class="menuitems"><a href="https://leary.csoft.net/~moose/saintelmosclinic.com/allergicpet/User.pl">Login</a></div>'

linkset[1]='<div class="menuitems"><a href="http://www.allergicpet.com/summerarticle.html">The Dog Days of Summer</a></div>'
linkset[1]+='<div class="menuitems"><a href="http://www.allergicpet.com/dog_health.html">Dog Health Issues and Advice</a></div>'
linkset[1]+='<div class="menuitems"><a href="http://www.allergicpet.com/dog_allergies.html">Whats Behind Your Dogs Allergies</a></div>'
linkset[1]+='<div class="menuitems"><a href="http://www.allergicpet.com/dog_tapeworms.html">Dog Tapeworms: A Serious Worry?</a></div>'
linkset[1]+='<div class="menuitems"><a href="http://www.allergicpet.com/dog_arthritis.html">Dog Arthritis</a></div>'
linkset[1]+='<div class="menuitems"><a href="http://www.allergicpet.com/canine_hip_dysplasia.html">Canine Hip Dysplasia</a></div>'
linkset[1]+='<div class="menuitems"><a href="http://www.allergicpet.com/asthma_in_dogs.html">Asthma in Dogs</a></div>'
linkset[1]+='<div class="menuitems"><a href="http://www.allergicpet.com/dog_fleas.html">Dog Fleas</a></div>'
linkset[1]+='<div class="menuitems"><a href="http://www.allergicpet.com/dog_skin_care.html">Dog Skin Care</a></div>'
linkset[1]+='<div class="menuitems"><a href="http://www.allergicpet.com/seizures_in_dogs.html">Seizures in Dogs</a></div>'
linkset[1]+='<div class="menuitems"><a href="http://www.allergicpet.com/dog_seizures.html">Dog Seizures Testimonials</a></div>'
linkset[1]+='<div class="menuitems"><a href="http://www.allergicpet.com/dog_constipation.html">Dog Constipation Testimonials</a></div>'
linkset[1]+='<div class="menuitems"><a href="http://www.allergicpet.com/dog_diarrhea_treatments.html">Dog Diarrhea Testimonials</a></div>'
linkset[1]+='<div class="menuitems"><a href="http://www.allergicpet.com/dog_cataracts.html">Dog Cataracts Testimonials</a></div>'

linkset[2]='<div class="menuitems"><a href="http://www.allergicpet.com/cat_health.html">Cat Health: Getting Neutered</a></div>'
linkset[2]+='<div class="menuitems"><a href="http://www.allergicpet.com/cat_tapeworms.html">Cat Tapeworms: What Are They?</a></div>'
linkset[2]+='<div class="menuitems"><a href="http://www.allergicpet.com/cat_allergies.html">Cat Allergies</a></div>'
linkset[2]+='<div class="menuitems"><a href="http://www.allergicpet.com/cat_behavior.html">Cat Behavior Problems</a></div>'
linkset[2]+='<div class="menuitems"><a href="http://www.allergicpet.com/cat_arthritis.html">Cat Arthritis</a></div>'
linkset[2]+='<div class="menuitems"><a href="http://www.allergicpet.com/cat_constipation.html">Cat Constipation Testimonials</a></div>'
linkset[2]+='<div class="menuitems"><a href="http://www.allergicpet.com/natural_flea_remedies.html">Natural Flea Remedies</a></div>'
linkset[2]+='<div class="menuitems"><a href="http://www.allergicpet.com/cat_diarrhea.html">Cat Diarrhea Testimonials</a></div>'
linkset[2]+='<div class="menuitems"><a href="http://www.allergicpet.com/hairballs_cats.html">Cat Hairballs Testimonials</a></div>'

linkset[3]='<div class="menuitems"><a href="http://www.allergicpet.com/links.html">Other great resources for pet health</a></div>'
linkset[3]+='<div class="menuitems"><a href="http://www.allergicpet.com/links/favoritelinks.html">Non-Pet Related Resources</a></div>'
linkset[3]+='<div class="menuitems"><a href="http://www.allergicpet.com/link_to_us.html">Link To Us</a></div>'

linkset[4]='<div class="menuitems"><a href="http://www.allergicpet.com/products/anti-constipation.html">Anti-Constipation Formula</a></div>'
linkset[4]+='<div class="menuitems"><a href="http://www.allergicpet.com/products/anti_crabby.html">Anti-Crabby Calming Drops</a></div>'
linkset[4]+='<div class="menuitems"><a href="http://www.allergicpet.com/products/anti-diarrhea.html">Anti-Diarrhea Formula</a></div>'
linkset[4]+='<div class="menuitems"><a href="http://www.allergicpet.com/products/anti_fear.html">Anti-Fear Calming Drops</a></div>'
linkset[4]+='<div class="menuitems"><a href="http://www.allergicpet.com/products/anti-vomiting.html">Anti-Vomiting Formula</a></div>'
linkset[4]+='<div class="menuitems"><a href="http://www.allergicpet.com/products/eye_see_clearly.html">Eye See Clearly</a></div>'
linkset[4]+='<div class="menuitems"><a href="http://www.allergicpet.com/products/fresh_aire.html">Fresh Aire</a></div>'
linkset[4]+='<div class="menuitems"><a href="http://www.allergicpet.com/products/healing_oil.html">Essence Oils & Muds</a></div>'
linkset[4]+='<div class="menuitems"><a href="http://www.allergicpet.com/products/lame_eze.html">Lame-eze</a></div>'
linkset[4]+='<div class="menuitems"><a href="http://www.allergicpet.com/products/lax_eze.html">Lax-eze</a></div>'
linkset[4]+='<div class="menuitems"><a href="http://www.allergicpet.com/products/liniment.html">Natural Liniment</a></div>'
linkset[4]+='<div class="menuitems"><a href="http://www.allergicpet.com/products/pain_arthritic.html">Pain Formula-Arthritic</a></div>'
linkset[4]+='<div class="menuitems"><a href="http://www.allergicpet.com/products/pain_hip_dysplasia.html">Pain Formula-Hip Dysplasia</a></div>'
linkset[4]+='<div class="menuitems"><a href="http://www.allergicpet.com/products/pain_knee.html">Pain Formula-Knee</a></div>'
linkset[4]+='<div class="menuitems"><a href="http://www.allergicpet.com/products/pain_soft_tissue.html">Pain Formula-Soft Tissue</a></div>'
linkset[4]+='<div class="menuitems"><a href="http://www.allergicpet.com/products/skin_eze.html">Skin-eze</a></div>'
linkset[4]+='<div class="menuitems"><a href="http://www.allergicpet.com/products/skin_eze_shampoo.html">Skin-eze Shampoo</a></div>'
linkset[4]+='<div class="menuitems"><a href="http://www.allergicpet.com/products/skin_eze_spray.html">Skin-eze Spray</a></div>'
linkset[4]+='<div class="menuitems"><a href="http://www.allergicpet.com/products/spice_of_life.html">Spice of Life</a></div>'
linkset[4]+='<div class="menuitems"><a href="http://www.allergicpet.com/products/tape_away.html">Tape-eze</a></div>'
linkset[4]+='<div class="menuitems"><a href="http://www.allergicpet.com/products/travel_drops.html">Travel Drops</a></div>'
linkset[4]+='<div class="menuitems"><a href="http://www.allergicpet.com/products/diarrhea_formula.html">Vet Select Diar-eze Formula</a></div>'
linkset[4]+='<div class="menuitems"><a href="http://www.allergicpet.com/products/healthy_fresh.html">Vet Select Healthy Fresh</a></div>'
linkset[4]+='<div class="menuitems"><a href="http://www.allergicpet.com/products/kidney_bladder_stones.html">Vet Select Kidney & Bladder Stone Formula</a></div>'
linkset[4]+='<div class="menuitems"><a href="http://www.allergicpet.com/products/liver.html">Vet Select Liver Formula</a></div>'
linkset[4]+='<div class="menuitems"><a href="http://www.allergicpet.com/products/seizure_formula.html">Vet Select Seizure Formula</a></div>'

linkset[5]='<div class="menuitems"><a href="http://www.allergicpet.com/products/skin_eze.html">Order Skin-eze</a></div>'
linkset[5]+='<div class="menuitems"><a href="http://www.allergicpet.com/skin-eze_testimonial.html">Testimonial as printed in Good Dog! Magazine</a></div>'
linkset[5]+='<div class="menuitems"><a href="http://www.allergicpet.com/skin-eze_successes.html">Skin-eze Success Stories</a></div>'
linkset[5]+='<div class="menuitems"><a href="http://www.allergicpet.com/no_steroids.html">Beat Scratching without Steroids</a></div>'
linkset[5]+='<div class="menuitems"><a href="http://www.allergicpet.com/suggested_dosage.html">Skin-eze Suggested Dosage</a></div>'
linkset[5]+='<div class="menuitems"><a href="http://www.allergicpet.com/skin-eze_faq.html">Skin-eze FAQ</a></div>'

linkset[6]='<div class="menuitems"><a href="http://www.allergicpet.com/products/lax_eze.html">Order Lax-eze</a></div>'
linkset[6]+='<div class="menuitems"><a href="http://www.allergicpet.com/lax_eze_info.html">Lax-eze Facts</a></div>'
linkset[6]+='<div class="menuitems"><a href="http://www.allergicpet.com/lax_eze_successes.html">Lax-eze Success Stories</a></div>'
linkset[6]+='<div class="menuitems"><a href="http://www.allergicpet.com/lax_eze_dosage.html">Lax-eze Suggested Dosage</a></div>'
linkset[6]+='<div class="menuitems"><a href="http://www.allergicpet.com/lax_eze_ingredients.html">Lax-eze Ingredients</a></div>'
linkset[6]+='<div class="menuitems"><a href="http://www.allergicpet.com/lax_eze_study.html">Dietary Fiber in Small Animals Study</a></div>'

linkset[7]='<div class="menuitems"><a href="http://www.allergicpet.com/products/diarrhea_formula.html">Order Diarrhea Formula</a></div>'
linkset[7]+='<div class="menuitems"><a href="http://www.allergicpet.com/diarrhea_formula_info.html">Diarrhea Formula Facts</a></div>'
linkset[7]+='<div class="menuitems"><a href="http://www.allergicpet.com/diarrhea_formula_dosage.html">Diarrhea Formula Suggested Dosage</a></div>'
linkset[7]+='<div class="menuitems"><a href="http://www.allergicpet.com/diarrhea_formula_ingredients.html">Diarrhea Formula Ingredients</a></div>'
linkset[7]+='<div class="menuitems"><a href="http://www.allergicpet.com/diarrhea_formula_study.html">Dietary Fiber in Small Animals Study</a></div>'

linkset[8]='<div class="menuitems"><a href="http://www.allergicpet.com/products/healthy_fresh.html">Order Healthy Fresh</a></div>'
linkset[8]+='<div class="menuitems"><a href="http://www.allergicpet.com/healthy_fresh_dosage.html">Healthy Fresh Suggested Dosage</a></div>'
linkset[8]+='<div class="menuitems"><a href="http://www.allergicpet.com/healthy_fresh_ingredients.html">Healthy Fresh Ingredients</a></div>'
linkset[8]+='<div class="menuitems"><a href="http://www.allergicpet.com/healthy_fresh_study.html">Dietary Fiber in Small Animals Study</a></div>'

////No need to edit beyond here

var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1
var ns6=document.getElementById&&!document.all
var ns4=document.layers

function showmenu(e,which){

if (!document.all&&!document.getElementById&&!document.layers)
return

clearhidemenu()

menuobj=ie4? document.all.popmenu : ns6? document.getElementById("popmenu") : ns4? document.popmenu : ""
menuobj.thestyle=(ie4||ns6)? menuobj.style : menuobj

if (ie4||ns6)
menuobj.innerHTML=which
else{
menuobj.document.write('<layer name=gui bgColor=#E6E6E6 width=265 onmouseover="clearhidemenu()" onmouseout="hidemenu()">'+which+'</layer>')
menuobj.document.close()
}

menuobj.contentwidth=(ie4||ns6)? menuobj.offsetWidth : menuobj.document.gui.document.width
menuobj.contentheight=(ie4||ns6)? menuobj.offsetHeight : menuobj.document.gui.document.height
eventX=ie4? event.clientX : ns6? e.clientX : e.x
eventY=ie4? event.clientY : ns6? e.clientY : e.y

//Find out how close the mouse is to the corner of the window
var rightedge=ie4? document.body.clientWidth-eventX : window.innerWidth-eventX
var bottomedge=ie4? document.body.clientHeight-eventY : window.innerHeight-eventY

//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<menuobj.contentwidth)
//move the horizontal position of the menu to the left by it's width
menuobj.thestyle.left=ie4? document.body.scrollLeft+eventX-menuobj.contentwidth : ns6? window.pageXOffset+eventX-menuobj.contentwidth : eventX-menuobj.contentwidth
else
//position the horizontal position of the menu where the mouse was clicked
menuobj.thestyle.left=ie4? document.body.scrollLeft+eventX : ns6? window.pageXOffset+eventX : eventX

//same concept with the vertical position
if (bottomedge<menuobj.contentheight)
menuobj.thestyle.top=ie4? document.body.scrollTop+eventY-menuobj.contentheight : ns6? window.pageYOffset+eventY-menuobj.contentheight : eventY-menuobj.contentheight
else
menuobj.thestyle.top=ie4? document.body.scrollTop+event.clientY : ns6? window.pageYOffset+eventY : eventY
menuobj.thestyle.visibility="visible"
return false
}

function contains_ns6(a, b) {
//Determines if 1 element in contained in another- by Brainjar.com
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function hidemenu(){
if (window.menuobj)
menuobj.thestyle.visibility=(ie4||ns6)? "hidden" : "hide"
}

function dynamichide(e){
if (ie4&&!menuobj.contains(e.toElement))
hidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
hidemenu()
}

function delayhidemenu(){
if (ie4||ns6||ns4)
delayhide=setTimeout("hidemenu()",500)
}

function clearhidemenu(){
if (window.delayhide)
clearTimeout(delayhide)
}

function highlightmenu(e,state){
if (document.all)
source_el=event.srcElement
else if (document.getElementById)
source_el=e.target
if (source_el.className=="menuitems"){
source_el.id=(state=="on")? "mouseoverstyle" : ""
}
else{
while(source_el.id!="popmenu"){
source_el=document.getElementById? source_el.parentNode : source_el.parentElement
if (source_el.className=="menuitems"){
source_el.id=(state=="on")? "mouseoverstyle" : ""
}
}
}
}

if (ie4||ns6)
document.onclick=hidemenu
