// JavaScript Document
//Contents for VERTICALS

var Dogs=new Array()
  Dogs[1]='<a href="c-566-dog-coats.aspx">Dog Coats</a>'
  Dogs[2]='<a href="c-1261-dog-crates-and-carriers.aspx">Dog Crates and Carriers</a>'
  Dogs[3]='<a href="c-371-dog-doors.aspx">Dog Doors</a>'
  Dogs[4]='<a href="c-1362-dog-flea-treatments.aspx">Dog Flea Treatments</a>'
  Dogs[5]='<a href="c-17-dog-food.aspx">Dog Food</a>'
  Dogs[6]='<a href="c-559-dog-id-tags.aspx">Dog ID Tags</a>'
  Dogs[7]='<a href="c-188-puppy-products.aspx">Puppy Products</a>'
  Dogs[8]='<a href="c-38-dog-treats-and-chews.aspx">Dog Treats and Chews</a>'
  Dogs[9]='<a href="c-999-dog-collars.aspx">Dog Collars</a>'
  Dogs[10]='<a href="c-1008-dog-leads.aspx">Dog Leads</a>'
  Dogs[11]='<a href="c-56-dog-beds.aspx">Dog Beds</a>'
  Dogs[12]='<a href="c-23-dog-bowls-and-feeders.aspx">Dog Bowls and Feeders</a>'
  Dogs[13]='<a href="c-93-dog-books-and-videos.aspx">Dog Books and DVDs</a>'
  // Dogs[14]='<a href="c-52-dog-clothing.aspx">Dog Clothing</a>'
  Dogs[15]='<a href="c-25-dog-gift-ideas.aspx">Dog Gift Ideas</a>'
  Dogs[16]='<a href="c-24-dog-grooming.aspx">Dog Grooming</a>'
  Dogs[17]='<a href="c-40-dog-harnesses.aspx">Dog Harnesses</a>'
  Dogs[18]='<a href="c-53-dog-health.aspx">Dog Health</a>'
  Dogs[19]='<a href="c-16-dog-household.aspx">Dog Household</a>'
  Dogs[20]='<a href="c-15-dog-toys.aspx">Dog Toys</a>'
  Dogs[21]='<a href="c-39-dog-muzzles.aspx">Dog Muzzles</a>'
//Dogs[21]='<a href="c-64-dog-safety.aspx">Dog Safety</a>'
  Dogs[22]='<a href="c-94-dog-innovations.aspx">Dog Innovations</a>'
  Dogs[23]='<a href="c-41-dog-training-aids.aspx">Dog Training Aids</a>'
  Dogs[24]='<a href="c-5-dog-travel-accessories.aspx">Dog Travel Accessories</a>'


var Cats=new Array()
  Cats[0]='<a href="c-725-cat-books.aspx">Cat Books</a>'
  Cats[1]='<a href="c-71-cat-food.aspx">Cat Food</a>'
  Cats[2]='<a href="c-1266-cat-id-tags.aspx">Cat ID Tags</a>'
  Cats[3]='<a href="c-186-kitten-products.aspx">Kitten Products</a>'
  Cats[4]='<a href="c-18-cat-flaps.aspx">Cat Flaps</a>'
  Cats[5]='<a href="c-81-cat-beds.aspx">Cat Beds</a>'
  Cats[6]='<a href="c-68-cat-activity-centres.aspx">Cat Activity Centres</a>'
  Cats[7]='<a href="c-63-cat-flea-treatments.aspx">Cat Flea Treatments</a>'
  Cats[8]='<a href="c-80-cat-grooming.aspx">Cat Grooming</a>'
  Cats[9]='<a href="c-67-cat-scratching-posts.aspx">Cat Scratching Posts</a>'
  Cats[10]='<a href="c-7-cat-toys.aspx">Cat Toys</a>'
  Cats[11]='<a href="c-77-cat-treats.aspx">Cat Treats</a>'
  Cats[12]='<a href="c-10-cat-litter-trays.aspx">Cat Litter Trays</a>'
  Cats[13]='<a href="c-36-cat-litter.aspx">Cat Litter</a>'
  Cats[14]='<a href="c-70-cat-health.aspx">Cat Health</a>'
  Cats[15]='<a href="c-26-cat-household.aspx">Cat Household</a>'
  Cats[16]='<a href="c-3-cat-collars-and-harnesses.aspx">Cat Collars and Harnesses</a>'
  Cats[17]='<a href="c-6-catnip-and-catnip-toys.aspx">Catnip and Catnip Toys</a>'
  Cats[18]='<a href="c-28-carriers-and-travel-eqt.aspx">Carriers and Travel</a>'
  Cats[19]='<a href="c-19-cat-bowls-and-feeders.aspx">Cat Bowls and Feeders</a>'
  Cats[20]='<a href="c-78-cat-innovations.aspx">Cat Innovations</a>'
  Cats[21]='<a href="c-1046-cat-gift-ideas.aspx">Cat Gift Ideas</a>'


var SmallPets=new Array()
   SmallPets[0]='<a  href="c-285-bedding-nesting-and-hay.aspx">Small Pet Bedding</a>'
    SmallPets[1]='<a  href="c-251-books.aspx">Small Pet Books  </a>'
    SmallPets[2]='<a  href="c-297-bowls-and-feeders.aspx">Small Pet Bowls</a>'
    SmallPets[3]='<a  href="c-288-cage-accessories.aspx">Cage Accessories</a>'
    SmallPets[4]='<a  href="c-290-cages.aspx">Small Pet Cages</a>'
    SmallPets[5]='<a  href="c-293-carriers.aspx">Small Pet Carriers </a>'
    SmallPets[6]='<a  href="c-283-food.aspx">Small Pet Food</a>'
    SmallPets[7]='<a  href="c-287-grooming.aspx">Small Pet Grooming</a>'
    SmallPets[8]='<a  href="c-291-health.aspx">Small Pet Health</a>'
    SmallPets[9]='<a  href="c-296-hutches-and-runs.aspx">Hutches and Runs  </a>'
    SmallPets[10]='<a  href="c-289-leads-and-harnesses.aspx">Leads and Harnesses  </a>'
    SmallPets[11]='<a  href="c-300-litter-and-dust-baths.aspx">Litter and Dust Baths   </a>'
    SmallPets[12]='<a  href="c-802-small-pet-beds.aspx">Small Pet Beds   </a>'
    SmallPets[13]='<a  href="c-292-toys.aspx">Small Pet Toys</a>'
    SmallPets[14]='<a  href="c-641-treats.aspx">Small Pet Treats</a>'


var Aquatics=new Array() 
   Aquatics[0]='<a href="c-66-aquarium-accessories.aspx" title="Aquarium Accessories" alt="Aquarium Accessories">Aquarium Accessories</a>'
   Aquatics[1]='<a href="c-85-aquarium-air-pumps.aspx" title="Aquarium Air Pumps" alt="Aquarium Air Pumps">Aquarium Air Pumps</a>'
   Aquatics[2]='<a href="c-102-aquarium-books.aspx" title="Aquarium Books" alt="Aquarium Books">Aquarium Books</a>'
   Aquatics[3]='<a href="c-82-aquarium-decoration.aspx" title="Aquarium Decoration" alt="Aquarium Decoration">Aquarium Decoration</a>'
   Aquatics[4]='<a href="c-1347-aquarium-filters.aspx" title="Aquarium Filters" alt="Aquarium Filters">Aquarium Filters</a>'
   Aquatics[5]='<a href="c-1342-aquarium-gravel.aspx" title="Aquarium Gravel" alt="Aquarium Gravel">Aquarium Gravel</a>'
   Aquatics[6]='<a href="c-32-aquarium-heaters.aspx" title="Aquarium Heaters" alt="Aquarium Heaters">Aquarium Heaters</a>'
   Aquatics[7]='<a href="c-1351-aquarium-lighting.aspx" title="Aquarium Lighting" alt="Aquarium Lighting">Aquarium Lighting</a>'
   Aquatics[8]='<a href="c-31-aquarium-ornaments.aspx" title="Aquarium Ornaments" alt="Aquarium Ornaments">Aquarium Ornaments</a>'
   Aquatics[9]='<a href="c-1346-aquarium-plants.aspx" title="Aquarium Plants" alt="Aquarium Plants">Aquarium Plants</a>'
   Aquatics[10]='<a href="c-14-biorb.aspx" title="Biorb" alt="Biorb">Biorb</a>'
   Aquatics[11]='<a href="c-37-fish-food.aspx" title="Fish Food" alt="Fish Food">Fish Food</a>'
   Aquatics[12]='<a href="c-1350-fish-tank-cleaning.aspx" title="Fish Tank Cleaning" alt="Fish Tank Cleaning">Fish Tank Cleaning</a>'
   Aquatics[13]='<a href="c-33-fish-tanks.aspx" title="Fish Tanks" alt="Fish Tanks">Fish Tanks</a>'
   Aquatics[14]='<a href="c-69-fish-water-treatments.aspx" title="Fish Water Treatments" alt="Fish Water Treatments">Fish Water Treatments</a>'


//Contents for CASE STUDIES
var Birds=new Array()
  	  Birds[0]='<a href="c-1142-bird-and-parrot-toys.aspx" title="Bird and Parrot Toys">Bird and Parrot Toys</a>'
      Birds[1]='<a href="c-1141-bird-cage-accessories.aspx" title="Bird Cage Accessories">Bird Cage Accessories</a>'
      Birds[2]='<a href="c-1147-bird-cages.aspx" title="Bird Cages">Bird Cages</a>'
      Birds[3]='<a href="c-1143-bird-food.aspx" title="Bird Food">Bird Food</a>'
      Birds[4]='<a href="c-1145-bird-heath-care.aspx" title="Bird Heath Care">Bird Heath Care</a>'
      Birds[5]='<a href="c-1148-bird-perches.aspx" title="Bird Perches">Bird Perches</a>'                    
      Birds[6]='<a href="c-1149-bird-sand-and-grit.aspx" title="Bird Sand and Grit">Bird Sand and Grit</a>'
      Birds[7]='<a href="c-1144-bird-treats.aspx" title="Bird Treats">Bird Treats</a>'
      Birds[8]='<a href="c-1161-caged-bird-baths.aspx" title="Caged Bird Baths">Caged Bird Baths</a>'
      Birds[9]='<a href="c-1146-caged-bird-feeders.aspx" title="Caged Bird Feeders">Caged Bird Feeders</a>'
      Birds[10]='<a href="c-1150-caged-bird-nest-boxes.aspx" title="Caged Bird Nest Boxes">Caged Bird Nest Boxes</a>'
      Birds[11]='<a href="c-360-pigeon-and-poultry.aspx" title="Pigeon and Poultry">Pigeon and Poultry</a>'

//    Birds[2]='<a href="c-83-wild-birds.aspx">Wild Birds</a>'

//Contents for Reptiles
var Reptiles=new Array()
// Reptiles[0]='<a href="c-712-feeding-and-water-bowls.aspx">Feeding and Water Bowls</a>'
// Reptiles[1]='<a href="c-726-heating-equipment.aspx">Heating Equipment</a>'
   Reptiles[2]='<a href="c-338-reptile-accessories.aspx">Reptile Accessories</a>'
   Reptiles[3]='<a href="c-345-reptile-books.aspx">Reptile Books</a>'
   Reptiles[4]='<a href="c-325-reptile-decoration.aspx">Reptile Decoration</a>'
   Reptiles[5]='<a href="c-316-reptile-feeding.aspx">Reptile Feeding</a>'
   Reptiles[6]='<a href="c-329-reptile-food.aspx">Reptile Food</a>'
   Reptiles[7]='<a href="c-721-reptile-health-care.aspx">Reptile Health Care</a>'
   Reptiles[8]='<a href="c-333-reptile-heating-equipment.aspx">Reptile Heating Equipment</a>'
   Reptiles[9]='<a href="c-336-reptile-housing.aspx">Reptile Housing</a>'
   Reptiles[10]='<a href="c-332-reptile-humidity.aspx">Reptile Humidity</a>'
   Reptiles[11]='<a href="c-330-reptile-lighting.aspx">Reptile Lighting</a>'
   Reptiles[12]='<a href="c-1379-reptile-frozen-food.aspx">Reptile Frozen Food</a>'
   Reptiles[13]='<a href="c-324-reptile-livefood.aspx">Reptile LiveFood</a>'
   Reptiles[14]='<a href="c-323-reptile-starter-kits.aspx">Reptile Starter Kits</a>'
   Reptiles[15]='<a href="c-328-reptile-substrates.aspx">Reptile Substrates</a>'
   Reptiles[16]='<a href="c-317-reptile-supplements.aspx">Reptile Supplements</a>'
   Reptiles[17]='<a href="c-722-terrariums.aspx">Terrariums</a>'
   Reptiles[18]='<a href="c-720-vivariums.aspx">Vivariums</a>'
   Reptiles[19]='<a href="t-reptilecare.aspx">Reptile Help and Info</a>'
 
 var Wildlife=new Array()
   Wildlife[0]='<a  href="c-861-bird-feeder-accessories.aspx">Bird Feeder Accessories</a>'
   Wildlife[1]='<a  href="c-854-wild-bird-nest-boxes.aspx">Wild Bird Nest Boxes</a>'
   Wildlife[2]='<a  href="c-862-wild-bird-niger-seed.aspx">Wild Bird Niger Seed</a>'
   Wildlife[3]='<a  href="c-856-wild-bird-peanut-feeders.aspx">Wild Bird Peanut Feeders</a>'
   Wildlife[4]='<a  href="c-849-wild-bird-peanuts.aspx">Wild Bird Peanuts</a>'
   Wildlife[5]='<a  href="c-851-wild-bird-seed.aspx">Wild Bird Seed</a>'
   Wildlife[6]='<a  href="c-853-wild-bird-seed-feeders.aspx">Wild Bird Seed Feeders</a>'
   Wildlife[7]='<a  href="c-855-wild-bird-suet-feeders.aspx">Wild Bird Suet Feeders</a>'
   Wildlife[8]='<a  href="c-850-wild-bird-sunflower-seed.aspx">Wild Bird Sunflower Seed</a>'
   Wildlife[9]='<a  href="c-858-wild-bird-tables.aspx">Wild Bird Tables</a>'
   Wildlife[10]='<a  href="c-852-wild-bird-treats.aspx">Wild Bird Treats</a>'
   Wildlife[11]='<a  href="c-860-wild-bird-water-and-baths.aspx">Wild Bird Water & Baths</a>'
   Wildlife[12]='<a  href="c-857-wildlife-food.aspx">Wildlife Food</a>'
   Wildlife[13]='<a  href="c-859-wildlife-nest-boxes.aspx">Wildlife Nest Boxes</a>'
   
var Ponds=new Array()
  Ponds[0]='<a  href="c-1269-pond-supplies.aspx" alt="Pond Products" title="Pond Products">Pond Products</a>'
  Ponds[1]='<a  href="c-1282-pond-accessories.aspx" alt="Pond Accessories" title="Pond Accessories">Pond Accessories</a>'
  Ponds[2]='<a  href="c-1285-pond-air-pumps-and-spares.aspx" alt="Pond Air Pumps and Spares" title="Pond Air Pumps and Spares">Pond Air Pumps and Spares</a>'
  Ponds[3]='<a  href="c-1283-pond-filters.aspx" alt="Pond Filters" title="Pond Filters">Pond Filters</a>'
  Ponds[4]='<a  href="c-1281-pond-fish-food.aspx" alt="Pond Fish Food" title="Pond Fish Food">Pond Fish Food</a>'
  Ponds[5]='<a  href="c-1284-pond-lighting.aspx" alt="Pond Lighting" title="Pond Lighting">Pond Lighting</a>'
  Ponds[6]='<a  href="c-1286-pond-pumps.aspx" alt="Pond Pumps" title="Pond Pumps">Pond Pumps</a>'
  Ponds[7]='<a  href="c-1270-pond-water-treatment.aspx" alt="Pond Water Treatment" title="Pond Water Treatment">Pond Water Treatment</a>'
  /*Ponds[5]='<a href="c-739-other-pet-meds.aspx">Pond Lighting</a>'
  Ponds[6]='<a href="c-724-panacur-wormers.aspx">Pond Pumps </a>'
  Ponds[7]='<a href="c-729-plerion-dog-wormers.aspx">Pond Vacuums</a>'

   Ponds[1]='<a href="c-723-drontal-wormers.aspx">Pond Air Pumps & Spares</a>'
  Ponds[2]='<a href="c-822-eukanuba-veterinary-diets.aspx">Pond Electricals</a>'*/
  
  
var PetMeds=new Array()
  PetMeds[0]='<a  href="c-736-coat-and-skin.aspx">Coat and Skin</a>'
  PetMeds[1]='<a href="c-723-drontal-wormers.aspx">Drontal Wormers</a>'
  PetMeds[2]='<a href="c-822-eukanuba-veterinary-diets.aspx">Eukanuba Veterinary Diets</a>'
  PetMeds[3]='<a href="c-700-frontline-flea-treatment.aspx">Frontline Flea Treatment</a>'
  PetMeds[4]='<a href="c-752-hills-prescription-diets.aspx">Hills Prescription Diets</a>'
  PetMeds[5]='<a href="c-739-other-pet-meds.aspx">Other Pet Meds</a>'
  PetMeds[6]='<a href="c-724-panacur-wormers.aspx">Panacur Wormers</a>'
  PetMeds[7]='<a href="c-729-plerion-dog-wormers.aspx">Plerion Dog Wormers</a>'
  PetMeds[8]='<a href="c-823-purina-veterinary-diets.aspx">Purina Veterinary Diets</a>'
  PetMeds[9]='<a href="c-821-royal-canin-vet-diets.aspx">Royal Canin Vet Diets</a>'
  PetMeds[10]='<a href="c-731-stress.aspx">Pet Stress Treament</a>'
  
var Offers=new Array()
  Offers[0]='<a href="c-1240-dog-special-offers.aspx">Dog Supplies Offers</a>'
  Offers[1]='<a href="c-17-dog-food.aspx">Dog Food Offers</a>'
  Offers[2]='<a href="c-1257-cat-special-offers.aspx">Cat Supplies Offers</a>'
  Offers[3]='<a href="c-1259-cat-food-special-offers.aspx">Cat Food Offers</a>'
  Offers[4]='<a href="c-1255-small-pet-special-offers.aspx">Small Pet Supplies Offers</a>'
  Offers[5]='<a href="c-1260-reptile-special-offers.aspx">Reptile Supplies Offers</a>'
  Offers[6]='<a href="c-1258-aquatics-special-offers.aspx">Aquatics Supplies Offers</a>'
  Offers[7]='<a href="c-1256-bird-special-offers.aspx">Bird Supplies Offfers</a>'
  Offers[8]='<a href="c-1239-wildlife-special-offers.aspx">Wildlife Supplies Offers</a>'
    
  
var menuwidth='445px' //default menu width
var menubgcolor='#cc0000'  //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="-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=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



// Marrid JScript File

function clearElement(element)
{
  element.value = '';
}
function validateForm(theForm)
                {
                    if (theForm.SearchTerm.value.length < 3);
                    {
                    alert('Please enter at least 3 characters in the Search For field.');
                    theForm.SearchTerm.focus();
                    return (false);
                    }
                    return (true);
                    }

function clearElement(element)
{
  element.value = '';
}

function subcat(pr)
{

 //document.write(document.getElementById('8').style.display);
 if(document.getElementById(pr).style.display=='none')
 {

					for(var i=32;i<=38;i++)
					{
					if(i==pr)
					{
					document.getElementById(i).style.display='';
					}
					else
					{
					document.getElementById(i).style.display='none';
					}
//document.write(document.getElementById(pr).style.display);

					}
			return false;	
			}
			else
			return true;	
}



