//
// User configuration
// Customize your menu below.
//
// You may copy and use this script for free, but if you like it
// please go to http://www.wiltech.net/downloads/menuj/create.htm and donate
// just $1.
//
// Thanks!
//
// coderunner (Joseph Sullivan)
//	
var mainMenuColor="#000000";
var menuItemColor="e0e0e0";
var highlightColor="#0099cc";
var highlightTextColor="#ffffff";
var borderWidth=1;
var borderHeight=1;
var paddingWidth=3;
var paddingHeight=3;
var itemWidth=168;
var itemHeight=20;
var hAlign="left";
var vAlign="middle";
var anchorClass="menuAnchor";
var itemTagsOpen="<font class='menuAnchor' face='Arial' size='2' color='#000000'>";
var itemTagsClose="</font>";
var menuDelay=0.3; 	





//	
// Do not change anything below this line
// ######################################
//
// Revision 1.5: Added support for getElementById() compliant (modern) browsers.
//		   this fixed compatability issues with Netscape 7.1
//


var lockArray=new Array();
var clrByJump = false;

	// Added 3/27/01 JS
	// For OK Farm site
function getLock(name){
	if(lockArray[name]!=true)
		return false;
	else    return true;
}

function clearLock(name){
	lockArray[name]=false;
}

function setLock(name){
	lockArray[name]=true;
}

function clearLocks() {
	for (a=0; a<lockArray.length;a++)
		lockArray[a]=false;
}

function clearByJump() {
	// Image restore goes here
	clrByJump = true;
}


	// Variable (and "constant") declaration:
	var TYPE_NONE = 0;
	var TYPE_IE4 = 1;
	var TYPE_NS4=2;
	var TYPE_COMPLIANT=4;
	function menu (left,top) { this.childMenuOpen=-1; this.parentMenuIndex=-1; this.hasMouse=false; this.left=left; this.top=top; this.childCount=0; this.children=new Array; this.url="";}
	function menuItem (contents,url,background) { this.transparent=false; this.childMenuIndex=-1; this.background=background; this.image=""; this.html=contents; this.url=url;}
	var menus=new Array();
	var menuCount=0;

	// Browser detection:
	var type= TYPE_NONE;
	if (document.layers) type = TYPE_NS4;
	if (document.all) type=TYPE_IE4;
	if (document.getElementById) type=TYPE_COMPLIANT;


function menuOn (index) {
	
	setLock(index);	
	 
	showMenu(index);
	menus[index].hasMouse=true;

	// If this menu has a parent, turn the parent on, too:
	var parentIndex=menus[index].parentMenuIndex;
	if (parentIndex > -1 ) {
	   menus[parentIndex].childMenuOpen=index;
		showMenu(parentIndex);
//		menus[parentIndex].hasMouse=true;
	}
	
	if (index == 0) {
	  event.srcElement.src = "http://www.home-n-gifts.com/images/shopping_btn_ro.gif";
	}
	 else if (index == 1) {
	  event.srcElement.src = "http://www.home-n-gifts.com/images/house_home_btn_ro.gif";
	} else if (index == 2) {
	  event.srcElement.src = "http://www.home-n-gifts.com/images/garden_patio_btn_ro.gif";
	} else if (index == 3) {
	  event.srcElement.src = "http://www.home-n-gifts.com/images/health_beauty_btn_ro.gif";
	} else if (index == 4) {
	  event.srcElement.src = "http://www.home-n-gifts.com/images/food_entertainment_btn_ro.gif";
	} else if (index == 5) {
	  event.srcElement.src = "http://www.home-n-gifts.com/images/holidays_events_btn_ro.gif";
	} else if (index == 6) {
	  event.srcElement.src = "http://www.home-n-gifts.com/images/family_crafts_btn_ro.gif";
	} else if (index == 7) {
	  event.srcElement.src = "http://www.home-n-gifts.com/images/hobbies_interests_btn_ro.gif";
	}
}

function menuOff(index,buttonName) {

		menus[index].hasMouse=false;

		// If this menu has a child open with the mouse, don't close: 
		if ((menus[index].childMenuOpen > -1)&&(menus[menus[index].childMenuOpen].hasMouse)) return;
		
		// If this is a child menu, close the parent too if the parent doesn't have the mouse:
		if (menus[index].parentMenuIndex > -1) {
		   if (menus[menus[index].parentMenuIndex].hasMouse==false)
		   this.timer=setTimeout(("hideMenu('"+menus[index].parentMenuIndex+"')"),1000*menuDelay);
		   menus[menus[index].parentMenuIndex].childMenuOpen=-1;  // We closed the child.
		}	
		
		// If this menu has an open child that doesn't have the mouse, close them both:
//		if(menus[index].childMenuOpen > -1){
	//		if((menus[index].hasMouse==false)&&(menus[(menus[index].childMenuOpen)].hasMouse==false))	;					  		
			//	this.timer=setTimeout(("hideMenu('"+menus[index].childMenuOpen+"')"),1000*menuDelay);
		//}	
		
		this.timer=setTimeout(("hideMenu('"+index+"')"),1000*menuDelay);
}


// Shows a menu...
function showMenu(index) {

	var parentIndex=menus[index].parentMenuIndex;
	var childIndex=menus[index].childMenuOpen;
	
	if (type==TYPE_NS4) {		// For Netscape browsers
	  // Hide all menus, except 1) This menu, 2) it's parent, and 3) any open child menu.
	   for (var n=0; n<menuCount; n++) if((n!=index)&&(n!=parentIndex)&&(n!=childIndex)) {	document.layers[n].visibility="hidden"; }
	   // Show this menu.
		document.layers[index].visibility="show";
	} else if (type==TYPE_IE4) {	// For IE browsers
	  // Hide all menus, except 1) This menu, 2) it's parent, and 3) any open child menu.
 	  for (var n=0; n<menuCount; n++) if((n!=index)&&(n!=parentIndex)&&(n!=childIndex)) { document.all("menu"+n+"d").style.visibility="hidden"; }    
	   // Show this menu.
		document.all("menu"+index+"d").style.visibility="visible";
	} else if (type==TYPE_COMPLIANT) {
	  // Hide all menus, except 1) This menu, 2) it's parent, and 3) any open child menu.
 	  for (var n=0; n<menuCount; n++) if((n!=index)&&(n!=parentIndex)&&(n!=childIndex)) { document.getElementById("menu"+n+"d").style.visibility="hidden"; }    
	   // Show this menu.
		document.getElementById("menu"+index+"d").style.visibility="visible";

	}

}


// Hides a menu...
function hideMenu(index) {

	// Just leave alone if this menu still has mouse over it, or has an open child with the mouse.
	if(menus[index].hasMouse) return;	
	if(menus[index].childMenuOpen > -1) {
		if (menus[menus[index].childMenuOpen].hasMouse) return;
	}
	
	// If this window has an open child, shut it down, too:
	if (menus[index].childMenuOpen > -1){
	   hideMenu(menus[index].childMenuOpen);  // Recursive call!
	   menus[index].childMenuOpen =-1;
	}
	
	if (type==TYPE_NS4) {		// For Netscape browsers
		document.layers[index].visibility="hidden";
	} else if (type==TYPE_IE4) {	// For IE browsers
		document.all("menu"+index+"d").style.visibility="hidden";
	} else if (type==TYPE_COMPLIANT) {
		document.getElementById("menu"+index+"d").style.visibility="hidden";
	}

	if ((getLock(index) == true)&&(menus[index].parentMenuIndex==-1)){	// Clear lock for root menus only
		// Image restore goes here
		clearLock(index);
	}

    if (index == 0) {
        document.getElementById("a").src = "http://www.home-n-gifts.com/images/shopping_btn.gif";
	} else if (index == 1) {
        document.getElementById("b").src = "http://www.home-n-gifts.com/images/house_home_btn.gif";
	} else if (index == 2) {
        document.getElementById("c").src = "http://www.home-n-gifts.com/images/garden_patio_btn.gif";
   	} else if (index == 3) {
        document.getElementById("d").src = "http://www.home-n-gifts.com/images/health_beauty_btn.gif";
	} else if (index == 4) {
        document.getElementById("e").src = "http://www.home-n-gifts.com/images/food_entertainment_btn.gif";
	} else if (index == 5) {
        document.getElementById("f").src = "http://www.home-n-gifts.com/images/holidays_events_btn.gif";
	} else if (index == 6) {
        document.getElementById("g").src = "http://www.home-n-gifts.com/images/family_crafts_btn.gif";
	} else if (index == 7) {
        document.getElementById("h").src = "http://www.home-n-gifts.com/images/hobbies_interests_btn.gif";
        }
}

function onMouseOverItem (index1, index2) {
		 
	// Highlight the menu:
	if (type==TYPE_NS4) {
		document.layers[index1].layers[index2].bgColor=highlightColor;
	} else if (type==TYPE_IE4) {
		document.all("menu"+index1+index2).style.background=highlightColor;
	} else if (type==TYPE_COMPLIANT){
	    if (index1 == 0) {
	    	document.getElementById("menu"+index1+index2).style.background="#cc3333";
	    } else if (index1 == 1) {
	    	document.getElementById("menu"+index1+index2).style.background="#00c6c6";
	    } else if (index1 == 2) {
	    	document.getElementById("menu"+index1+index2).style.background="#00ae04";
	    } else if (index1 == 3) {
	    	document.getElementById("menu"+index1+index2).style.background="#d200d5";
	    } else if (index1 == 4) {
	    	document.getElementById("menu"+index1+index2).style.background="#ff8000";
	    } else if (index1 == 5) {
	    	document.getElementById("menu"+index1+index2).style.background="#7c3384";
	    } else if (index1 == 6) {
	    	document.getElementById("menu"+index1+index2).style.background="#927241";
	    } else if (index1 == 7) {
	    	document.getElementById("menu"+index1+index2).style.background="#b2b2b2";
	    } else if (index1 == 8) {
	    	document.getElementById("menu"+index1+index2).style.background="#cc3333";
	    } else if (index1 == 9) {       //animal figurines
	    	document.getElementById("menu"+index1+index2).style.background="#cc3333";
	    } else if (index1 == 10) {      //aquatic figurines
	    	document.getElementById("menu"+index1+index2).style.background="#cc3333";
	    } else if (index1 == 11) {      //bird figurines
	    	document.getElementById("menu"+index1+index2).style.background="#cc3333";
	    } else if (index1 == 12) {
	    	document.getElementById("menu"+index1+index2).style.background="#cc3333";
	    } else if (index1 == 13) {
	    	document.getElementById("menu"+index1+index2).style.background="#cc3333";
	    } else if (index1 == 14) {
	    	document.getElementById("menu"+index1+index2).style.background="#cc3333";
	    } else if (index1 == 15) {
	    	document.getElementById("menu"+index1+index2).style.background="#cc3333";
	    } else if (index1 == 16) {
	    	document.getElementById("menu"+index1+index2).style.background="#cc3333";
       }
	}

	// Hide any popout (children) menus that may be visible from previously:
	if(menus[index1].childMenuOpen > -1)
			hideMenu(menus[index1].childMenuOpen);
								   
	// If this item has a popout child, show the child:
	if ((menus[index1].children[index2].childMenuIndex) > -1){			   	  	   // Do we have a child menu?
	   menus[index1].childMenuOpen=menus[index1].children[index2].childMenuIndex;  // Remember which child is open
	   showMenu(menus[index1].children[index2].childMenuIndex);					   // Open the child	  
	   }
}

function onMouseOutItem (index1, index2) {

	if(menus[index1].children[index2].transparent) itemColor="";
	else    itemColor=menuItemColor;												

	if (type==TYPE_NS4) {
		document.layers[index1].layers[index2].bgColor=menuItemColor;
	} else if (type==TYPE_IE4) {
		document.all("menu"+index1+index2).style.background=itemColor;
	} else if (type==TYPE_COMPLIANT) {
		document.getElementById("menu"+index1+index2).style.background=itemColor;
	}
}

// Draws the menus.
function drawMenus () {
	
addMenu(11,197);
addExpandableMenuItem("Home Furnishings","http://www.thehomefurnishingstore.com/","http://www.home-n-gifts.com/images/arrow_bg.jpg",8);
addExpandableMenuItem("Home Decor","http://www.ourhomedecorstore.com/","http://www.home-n-gifts.com/images/arrow_bg.jpg",9);
addExpandableMenuItem("Gifts","http://gifts.ourhomedecorstore.com/","http://www.home-n-gifts.com/images/arrow_bg.jpg",10);
addExpandableMenuItem("Garden Decor","http://www.thegardendecorstore.com/","http://www.home-n-gifts.com/images/arrow_bg.jpg",11);
addExpandableMenuItem("Figurines","http://figurines.home-n-gifts.com/","http://www.home-n-gifts.com/images/arrow_bg.jpg",12);
addExpandableMenuItem("Aromatherapy","http://aromatherapy.home-n-gifts.com/","http://www.home-n-gifts.com/images/arrow_bg.jpg",13);
addExpandableMenuItem("Kitchenware","http://kitchenware.home-n-gifts.com/","http://www.home-n-gifts.com/images/arrow_bg.jpg",14);
addExpandableMenuItem("Collectibles","http://collectibles.ourhomedecorstore.com/","http://www.home-n-gifts.com/images/arrow_bg.jpg",15);
addExpandableMenuItem("Jewelry","http://jewelry.home-n-gifts.com/","http://www.home-n-gifts.com/images/arrow_bg.jpg",16);
addMenu(88,197);
addMenuItem("Flooring","http://area-rugs.ourhomedecorstore.com/wood_flooring.html","");
addMenuItem("Foreclosures","http://www.home-n-gifts.com/foreclosures.html","");
addMenuItem("Home Improvement","http://www.home-n-gifts.com/home_repair.html","");
addMenu(165,197);
addMenuItem("Hot Tubs","http://www.thegardendecorstore.com/hot_tubs.html","");
addMenuItem("Landscaping","http://www.thegardendecorstore.com/landscaping.html","");
addMenuItem("Saunas","http://www.thegardendecorstore.com/saunas.html","");
addMenu(242,197);
addMenuItem("Aerobics","http://www.home-n-gifts.com/aerobics.html","");
addMenuItem("Perfume","http://bath-beauty.home-n-gifts.com/perfume.html","");
addMenuItem("Skin Care","http://bath-and-body.home-n-gifts.com/skin_care.html","");
addMenu(319,197);
addMenuItem("Cooking","http://cookware.home-n-gifts.com/cooking.html","");
addMenuItem("Satellite TV","http://media-cabinets.thehomefurnishingstore.com/satellite_tv.html","");
addMenuItem("Vacations","http://www.home-n-gifts.com/vacation_deal.html","");
addMenu(396,197);
addMenuItem("Birthday Gift Ideas","http://birthday-gifts.home-n-gifts.com/birthday_gift_ideas.html","");
addMenuItem("Valentine's Day","http://romantic-gifts.home-n-gifts.com/romantic_gift_basket.html","");
addMenuItem("Wedding Planning","http://wedding-decor.ourhomedecorstore.com/wedding_planning.html","");
addMenu(473,197);
addMenuItem("Genealogy","http://family-photo-frames.ourhomedecorstore.com/genealogy.html","");
addMenuItem("Senior Housing","http://www.home-n-gifts.com/senior_housing.html","");
addMenuItem("Toddlers","http://childs-room-decor.ourhomedecorstore.com/toddler.html","");
addMenu(550,197);
addMenuItem("Bird Watching","http://bird-houses.thegardendecorstore.com/bird_watching.html","");
addMenuItem("iPods","http://www.home-n-gifts.com/ipod.html","");
addMenuItem("Kayaking","http://sports-figurines.home-n-gifts.com/kayaking.html","");
addMenu(188,197);
addMenuItem("Cabinets","http://cabinets.thehomefurnishingstore.com/","");
addMenuItem("Clocks","http://clocks.thehomefurnishingstore.com/","");
addMenuItem("Fireplace Screens","http://fireplace-screens.thehomefurnishingstore.com/","");
addMenuItem("Foot Stools","http://foot-stools.thehomefurnishingstore.com/","");
addMenuItem("Home Lighting","http://home-lighting.thehomefurnishingstore.com/","");
addMenuItem("Lamps","http://lamps.thehomefurnishingstore.com/","");
addMenuItem("Racks","http://racks.thehomefurnishingstore.com/","");
addMenuItem("Room Divider Screens","http://room-divider-screens.thehomefurnishingstore.com/","");
addMenuItem("Shelves","http://shelves.thehomefurnishingstore.com/","");
addMenuItem("Tables","http://tables.thehomefurnishingstore.com/","");
addMenuItem("Wall Mirrors","http://wall-mirrors.thehomefurnishingstore.com/","");
addMenuItem("Wine Racks","http://wine-racks.thehomefurnishingstore.com/","");
addMenu(188,213);
addMenuItem("Home Decor Ideas","http://home-decor-ideas.ourhomedecorstore.com/","");
addMenuItem("Room Decor","http://room-decor.ourhomedecorstore.com/","");
addMenuItem("Linens and Things","http://linens-and-things.ourhomedecorstore.com/","");
addMenuItem("Wall Decor","http://wall-decor.ourhomedecorstore.com/","");
addMenuItem("Bookends","http://bookends.ourhomedecorstore.com/","");
addMenuItem("Compotes","http://compotes.ourhomedecorstore.com","");
addMenuItem("Decorative Plates","http://decorative-plates.ourhomedecorstore.com","");
addMenuItem("Desk Accessories","http://desk-accessories.ourhomedecorstore.com","");
addMenuItem("Picture Frames","http://picture-frames.ourhomedecorstore.com/","");
addMenuItem("Vases","http://vases.ourhomedecorstore.com","");
addMenuItem("Christmas Decorations","http://christmas-decorations.home-n-gifts.com/","");
addMenuItem("Halloween Decorations","http://halloween-decorations.home-n-gifts.com/","");
addMenu(188,229);
addMenuItem("Birthday Gifts","http://birthday-gifts.home-n-gifts.com/","");
addMenuItem("Christmas Gifts","http://christmas-gifts.home-n-gifts.com/","");
addMenuItem("Father's Day Gifts","http://fathers-day-gifts.home-n-gifts.com/","");
addMenuItem("Mother's Day Gifts","http://mothers-day-gifts.home-n-gifts.com/","");
addMenuItem("Graduation Gifts","http://graduation-gifts.home-n-gifts.com/","");
addMenuItem("Valentines Day Gifts","http://valentines-day-gifts.home-n-gifts.com/","");
addMenuItem("Wedding Gifts","http://wedding-gifts.home-n-gifts.com/","");
addMenuItem("Gifts For Him","http://gifts-for-him.home-n-gifts.com/","");
addMenuItem("Gifts For Her","http://gifts-for-her.home-n-gifts.com/","");
addMenuItem("Baby Gifts","http://baby-gifts.home-n-gifts.com/","");
addMenuItem("Gifts For Boys","http://gifts-for-boys.home-n-gifts.com/","");
addMenuItem("Gifts For Girls","http://gifts-for-girls.home-n-gifts.com/","");
addMenuItem("Corporate Gifts","http://corporate-gifts.home-n-gifts.com/","");
addMenuItem("Christian Gifts","http://christian-gifts.home-n-gifts.com/","");
addMenuItem("Bath and Body","http://bath-and-body.home-n-gifts.com/","");
addMenuItem("Pet Lover Gifts","http://pet-lover-gifts.home-n-gifts.com/","");
addMenuItem("Games","http://games.home-n-gifts.com/","");
addMenuItem("Toys","http://toys.home-n-gifts.com/","");
addMenuItem("Golf Gifts","http://golf-gifts.home-n-gifts.com/","");
addMenuItem("Artificial Flowers","http://artificial-flowers.ourhomedecorstore.com/","");
addMenuItem("Gift Boxes","http://gift-boxes.home-n-gifts.com/","");
addMenu(188,245);
addMenuItem("Bird Baths","http://bird-baths.thegardendecorstore.com/","");
addMenuItem("Bird Feeders","http://bird-feeders.thegardendecorstore.com/","");
addMenuItem("Bird Houses","http://bird-houses.thegardendecorstore.com/","");
addMenuItem("Butterfly Garden","http://butterfly-garden.thegardendecorstore.com/","");
addMenuItem("Candle Lanterns","http://candle-lanterns.thehomefurnishingstore.com/","");
addMenuItem("Garden Angels","http://garden-angels.thegardendecorstore.com/","");
addMenuItem("Garden Furniture","http://garden-furniture.thegardendecorstore.com/","");
addMenuItem("Garden Plaques","http://garden-plaques.thegardendecorstore.com/","");
addMenuItem("Garden Sculptures","http://garden-sculptures.thegardendecorstore.com/","");
addMenuItem("Lawn Ornaments","http://lawn-ornaments.thegardendecorstore.com/","");
addMenuItem("Plant Stands","http://plant-stands.thegardendecorstore.com/","");
addMenuItem("Planters","http://planters.thegardendecorstore.com/","");
addMenuItem("Suncatchers","http://suncatchers.thegardendecorstore.com/","");
addMenuItem("Water Fountains","http://www.ourwaterfountainstore.com/","");
addMenuItem("Welcome Signs","http://welcome-signs.thegardendecorstore.com/","");
addMenuItem("Wind Chimes","http://wind-chimes.thegardendecorstore.com/","");
addMenuItem("Wind Twirlers","http://wind-twirlers.thegardendecorstore.com/","");
addMenu(188,261);
addMenuItem("African Figurines","http://african-figurines.home-n-gifts.com/","");
addMenuItem("African American Figurines","http://african-american-figurines.home-n-gifts.com/","");
addMenuItem("Angel Figurines","http://angel-figurines.home-n-gifts.com/","");
addMenuItem("Angel Birthstone Figurines","http://angel-birthstone-figurines.home-n-gifts.com/","");
addMenuItem("Animal Figurines","http://animal-figurines.home-n-gifts.com/","");
addMenuItem("Aquatic Figurines","http://aquatic-figurines.home-n-gifts.com/","");
addMenuItem("Bird Figurines","http://bird-figurines.home-n-gifts.com/","");
addMenuItem("Butterfly Figurines","http://butterfly-figurines.home-n-gifts.com/","");
addMenuItem("Chinese Figurines","http://chinese-figurines.home-n-gifts.com/","");
addMenuItem("Christmas Figurines","http://christmas-figurines.home-n-gifts.com/","");
addMenuItem("Dragon Figurines","http://dragon-figurines.home-n-gifts.com/","");
addMenuItem("Fairy Figurines","http://fairy-figurines.home-n-gifts.com/","");
addMenuItem("Frosted Glass Figurines","http://frosted-glass-figurines.home-n-gifts.com/","");
addMenuItem("Glass Figurines","http://glass-figurines.home-n-gifts.com/","");
addMenuItem("Liberty Bronze Figurines","http://liberty-bronze-figurines.home-n-gifts.com/","");
addMenuItem("Lighthouse Figurines","http://lighthouse-figurines.home-n-gifts.com/","");
addMenuItem("Miniature Figurines","http://miniature-figurines.home-n-gifts.com/","");
addMenuItem("Patchwork Figurines","http://patchwork-figurines.home-n-gifts.com/","");
addMenuItem("Porcelain Figurines","http://porcelain-figurines.home-n-gifts.com/","");
addMenuItem("Religious Figurines","http://religious-figurines.home-n-gifts.com/","");
addMenuItem("Sports Figurines","http://sports-figurines.home-n-gifts.com/","");
addMenuItem("Spun Glass Figurines","http://spun-glass-figurines.home-n-gifts.com/","");
addMenuItem("Unicorn Figurines","http://unicorn-figurines.home-n-gifts.com/","");
addMenuItem("Western Figurines","http://western-figurines.home-n-gifts.com/","");
addMenu(188,277);
addMenuItem("Candles","http://candles.home-n-gifts.com/","");
addMenuItem("Candle Holders","http://candle-holders.home-n-gifts.com/","");
addMenuItem("Candle Lamps","http://candle-lamps.thehomefurnishingstore.com/","");
addMenuItem("Candle Lanterns","http://candle-lanterns.thehomefurnishingstore.com/","");
addMenuItem("Essential Oils","http://essential-oils.home-n-gifts.com/","");
addMenuItem("Incense","http://incense.home-n-gifts.com/","");
addMenuItem("Incense Burners","http://incense-burners.home-n-gifts.com/","");
addMenuItem("Oil Burners","http://oil-burners.home-n-gifts.com/","");
addMenuItem("Oil Lamps","http://oil-lamps.thehomefurnishingstore.com/","");
addMenuItem("Potpourri","http://potpourri.home-n-gifts.com/","");
addMenu(188,293);
addMenuItem("Dinnerware Sets","http://dinnerware-sets.home-n-gifts.com/","");
addMenuItem("Kitchen Aids","http://kitchen-aids.home-n-gifts.com/","");
addMenuItem("Kitchen Decor","http://kitchen-decor.home-n-gifts.com/","");
addMenu(188,309);
addMenuItem("Angel Gifts & Collectibles","http://angel-gifts.ourhomedecorstore.com/","");
addMenuItem("Classic Wheels","http://classic-wheels.home-n-gifts.com/","");
addMenuItem("Cork Sculptures","http://cork-sculptures.home-n-gifts.com/","");
addMenuItem("Daggers","http://daggers.home-n-gifts.com/","");
addMenuItem("Dolphin Gifts & Collectibles","http://dolphin-gifts.ourhomedecorstore.com/","");
addMenuItem("Eagle Decor & Collectibles","http://eagle-decor.ourhomedecorstore.com/","");
addMenuItem("Elephant Collectibles & Decor","http://elephant-collectibles.ourhomedecorstore.com/","");
addMenuItem("Lighthouse Collectibles & Gifts","http://lighthouse-collectibles.ourhomedecorstore.com/","");
addMenuItem("Model Ships","http://model-ships.home-n-gifts.com/","");
addMenuItem("Musical Carousels","http://musical-carousels.home-n-gifts.com/","");
addMenuItem("Nascar Collectibles","http://nascar-collectibles.home-n-gifts.com/","");
addMenuItem("NFL Merchandise","http://nfl-merchandise.home-n-gifts.com/","");
addMenuItem("Pocket Knives","http://pocket-knives.home-n-gifts.com/","");
addMenuItem("Porcelain Dolls","http://porcelain-dolls.home-n-gifts.com/","");
addMenuItem("Snow Globes","http://snow-globes.home-n-gifts.com/","");
addMenuItem("Star Wars Collectibles","http://star-wars-collectibles.home-n-gifts.com/","");
addMenuItem("Swords","http://swords.home-n-gifts.com/","");
addMenu(188,325);
addMenuItem("Bracelets & Anklets","http://bracelets.home-n-gifts.com/","");
addMenuItem("Charms","http://charms.home-n-gifts.com/","");
addMenuItem("Earrings","http://earrings.home-n-gifts.com/","");
addMenuItem("Body Jewelry","http://body-jewelry.home-n-gifts.com/","");
addMenuItem("Necklaces","http://necklaces.home-n-gifts.com/","");
addMenuItem("Pins","http://pins.home-n-gifts.com/","");
addMenuItem("Rings","http://rings.home-n-gifts.com/","");
addMenuItem("Toe Rings","http://toe-rings.home-n-gifts.com/","");
addMenuItem("Mens Watches","http://mens-watches.home-n-gifts.com/","");
addMenuItem("Womens Watches","http://womens-watches.home-n-gifts.com/","");
addMenuItem("Jewelry Boxes","http://jewelry-boxes.home-n-gifts.com/","");
addMenuItem("Trinket Boxes","http://trinket-boxes.home-n-gifts.com/","");


    // Loop through the menu items, looking for items that are parents of submenus.
	// For each one we find, set it's child menu's parentMenuIndex.
	for (var n=0; n<menuCount; n++) {
		for (var m=0; m<menus[n].childCount; m++) {
			if (menus[n].children[m].childMenuIndex > -1)
			   menus[menus[n].children[m].childMenuIndex].parentMenuIndex=n;
		}
	}
				
	if (type==TYPE_NS4) {			// Draw Netscape menus.

		for (var curMenu=0; curMenu<menuCount; curMenu++) {
		
		    if (curMenu == 0) {
			    document.writeln("<layer visibility='hidden' width='"+(itemWidth+(2*borderWidth))+"' height='"+((itemHeight+borderHeight)*(menus[curMenu].childCount)+borderHeight)+"' pagex='"+menus[curMenu].left+"' pagey='"+menus[curMenu].top+"' bgcolor='#00c6c6' onmouseover='menuOn("+curMenu+")' onmouseout='menuOff("+curMenu+")'>");
			} else if (curMenu == 1) {
			    document.writeln("<layer visibility='hidden' width='"+(itemWidth+(2*borderWidth))+"' height='"+((itemHeight+borderHeight)*(menus[curMenu].childCount)+borderHeight)+"' pagex='"+menus[curMenu].left+"' pagey='"+menus[curMenu].top+"' bgcolor='#b2b2b2' onmouseover='menuOn("+curMenu+")' onmouseout='menuOff("+curMenu+")'>");
			} else if (curMenu == 2) {
			    document.writeln("<layer visibility='hidden' width='"+(itemWidth+(2*borderWidth))+"' height='"+((itemHeight+borderHeight)*(menus[curMenu].childCount)+borderHeight)+"' pagex='"+menus[curMenu].left+"' pagey='"+menus[curMenu].top+"' bgcolor='#00ae04' onmouseover='menuOn("+curMenu+")' onmouseout='menuOff("+curMenu+")'>");
			} else if (curMenu == 3) {
			    document.writeln("<layer visibility='hidden' width='"+(itemWidth+(2*borderWidth))+"' height='"+((itemHeight+borderHeight)*(menus[curMenu].childCount)+borderHeight)+"' pagex='"+menus[curMenu].left+"' pagey='"+menus[curMenu].top+"' bgcolor='#d200d5' onmouseover='menuOn("+curMenu+")' onmouseout='menuOff("+curMenu+")'>");
			} else if (curMenu == 4) {
			    document.writeln("<layer visibility='hidden' width='"+(itemWidth+(2*borderWidth))+"' height='"+((itemHeight+borderHeight)*(menus[curMenu].childCount)+borderHeight)+"' pagex='"+menus[curMenu].left+"' pagey='"+menus[curMenu].top+"' bgcolor='#ff8000' onmouseover='menuOn("+curMenu+")' onmouseout='menuOff("+curMenu+")'>");
			} else if (curMenu == 5) {
			    document.writeln("<layer visibility='hidden' width='"+(itemWidth+(2*borderWidth))+"' height='"+((itemHeight+borderHeight)*(menus[curMenu].childCount)+borderHeight)+"' pagex='"+menus[curMenu].left+"' pagey='"+menus[curMenu].top+"' bgcolor='#7c3384' onmouseover='menuOn("+curMenu+")' onmouseout='menuOff("+curMenu+")'>");
			} else if (curMenu == 6) {
			    document.writeln("<layer visibility='hidden' width='"+(itemWidth+(2*borderWidth))+"' height='"+((itemHeight+borderHeight)*(menus[curMenu].childCount)+borderHeight)+"' pagex='"+menus[curMenu].left+"' pagey='"+menus[curMenu].top+"' bgcolor='#927241' onmouseover='menuOn("+curMenu+")' onmouseout='menuOff("+curMenu+")'>");
			} else if (curMenu == 7) {
			    document.writeln("<layer visibility='hidden' width='"+(itemWidth+(2*borderWidth))+"' height='"+((itemHeight+borderHeight)*(menus[curMenu].childCount)+borderHeight)+"' pagex='"+menus[curMenu].left+"' pagey='"+menus[curMenu].top+"' bgcolor='#b2b2b2' onmouseover='menuOn("+curMenu+")' onmouseout='menuOff("+curMenu+")'>");
			} else if (curMenu == 8) {
			    document.writeln("<layer visibility='hidden' width='"+(itemWidth+(2*borderWidth))+"' height='"+((itemHeight+borderHeight)*(menus[curMenu].childCount)+borderHeight)+"' pagex='"+menus[curMenu].left+"' pagey='"+menus[curMenu].top+"' bgcolor='#cc3333' onmouseover='menuOn("+curMenu+")' onmouseout='menuOff("+curMenu+")'>");
			} else if (curMenu == 9) {
			    document.writeln("<layer visibility='hidden' width='"+(itemWidth+(2*borderWidth))+"' height='"+((itemHeight+borderHeight)*(menus[curMenu].childCount)+borderHeight)+"' pagex='"+menus[curMenu].left+"' pagey='"+menus[curMenu].top+"' bgcolor='#cc3333' onmouseover='menuOn("+curMenu+")' onmouseout='menuOff("+curMenu+")'>");
			} else if (curMenu == 10) {
			    document.writeln("<layer visibility='hidden' width='"+(itemWidth+(2*borderWidth))+"' height='"+((itemHeight+borderHeight)*(menus[curMenu].childCount)+borderHeight)+"' pagex='"+menus[curMenu].left+"' pagey='"+menus[curMenu].top+"' bgcolor='#cc3333' onmouseover='menuOn("+curMenu+")' onmouseout='menuOff("+curMenu+")'>");
			} else if (curMenu == 11) {
			    document.writeln("<layer visibility='hidden' width='"+(itemWidth+(2*borderWidth))+"' height='"+((itemHeight+borderHeight)*(menus[curMenu].childCount)+borderHeight)+"' pagex='"+menus[curMenu].left+"' pagey='"+menus[curMenu].top+"' bgcolor='#cc3333' onmouseover='menuOn("+curMenu+")' onmouseout='menuOff("+curMenu+")'>");
			} else if (curMenu == 12) {
			    document.writeln("<layer visibility='hidden' width='"+(itemWidth+(2*borderWidth))+"' height='"+((itemHeight+borderHeight)*(menus[curMenu].childCount)+borderHeight)+"' pagex='"+menus[curMenu].left+"' pagey='"+menus[curMenu].top+"' bgcolor='#cc3333' onmouseover='menuOn("+curMenu+")' onmouseout='menuOff("+curMenu+")'>");
			} else if (curMenu == 13) {
			    document.writeln("<layer visibility='hidden' width='"+(itemWidth+(2*borderWidth))+"' height='"+((itemHeight+borderHeight)*(menus[curMenu].childCount)+borderHeight)+"' pagex='"+menus[curMenu].left+"' pagey='"+menus[curMenu].top+"' bgcolor='#cc3333' onmouseover='menuOn("+curMenu+")' onmouseout='menuOff("+curMenu+")'>");
			} else if (curMenu == 14) {
			    document.writeln("<layer visibility='hidden' width='"+(itemWidth+(2*borderWidth))+"' height='"+((itemHeight+borderHeight)*(menus[curMenu].childCount)+borderHeight)+"' pagex='"+menus[curMenu].left+"' pagey='"+menus[curMenu].top+"' bgcolor='#cc3333' onmouseover='menuOn("+curMenu+")' onmouseout='menuOff("+curMenu+")'>");
			} else if (curMenu == 15) {
			    document.writeln("<layer visibility='hidden' width='"+(itemWidth+(2*borderWidth))+"' height='"+((itemHeight+borderHeight)*(menus[curMenu].childCount)+borderHeight)+"' pagex='"+menus[curMenu].left+"' pagey='"+menus[curMenu].top+"' bgcolor='#cc3333' onmouseover='menuOn("+curMenu+")' onmouseout='menuOff("+curMenu+")'>");
			} else if (curMenu == 16) {
			    document.writeln("<layer visibility='hidden' width='"+(itemWidth+(2*borderWidth))+"' height='"+((itemHeight+borderHeight)*(menus[curMenu].childCount)+borderHeight)+"' pagex='"+menus[curMenu].left+"' pagey='"+menus[curMenu].top+"' bgcolor='#cc3333' onmouseover='menuOn("+curMenu+")' onmouseout='menuOff("+curMenu+")'>");
           }

			for (var curItem=0; curItem<menus[curMenu].childCount; curItem++) {
				document.write("<layer width='"+itemWidth+"' height='"+itemHeight+"' top='"+(borderHeight+(curItem*(itemHeight+borderHeight)))+"' left='"+borderWidth+"' bgcolor='"+menuItemColor+"'><center><table cellspacing='0' cellpadding='0' border='0' background='"+menus[curMenu].children[curItem].background+"' width='"+(itemWidth-(2*paddingWidth))+"' height='"+(itemHeight-(2*paddingHeight))+"'><tr><td align='"+hAlign+"' valign='"+vAlign+"'><a class='"+anchorClass+"' href='"+menus[curMenu].children[curItem].url+"'  onmouseover='onMouseOverItem("+curMenu+","+curItem+")' onmouseout='onMouseOutItem("+curMenu+","+curItem+")'>");
				document.write(itemTagsOpen+menus[curMenu].children[curItem].html+itemTagsClose);
				document.writeln("</a></td></tr></table></center></layer>");
			}
			document.writeln("</layer>");
		}

	} else if ((type==TYPE_IE4)||(type==TYPE_COMPLIANT)) {		// Draw IE menus.

		for (var curMenu=0; curMenu<menuCount; curMenu++) {
		
		    if (curMenu == 0) {
		    	document.writeln("<div id='menu"+curMenu+"d' style='background:#cc3333;position:absolute;visibility:hidden;width:"+(itemWidth+(2*borderWidth))+";height:"+((itemHeight+borderHeight)*(menus[curMenu].childCount)+borderHeight)+";left:"+menus[curMenu].left+";top:"+menus[curMenu].top+";' onmouseover='menuOn("+curMenu+")' onmouseout='menuOff("+curMenu+")'>");
		    } else if (curMenu == 1) {
		    	document.writeln("<div id='menu"+curMenu+"d' style='background:#00c6c6;position:absolute;visibility:hidden;width:"+(itemWidth+(2*borderWidth))+";height:"+((itemHeight+borderHeight)*(menus[curMenu].childCount)+borderHeight)+";left:"+menus[curMenu].left+";top:"+menus[curMenu].top+";' onmouseover='menuOn("+curMenu+")' onmouseout='menuOff("+curMenu+")'>");
		    } else if (curMenu == 2) {
		    	document.writeln("<div id='menu"+curMenu+"d' style='background:#00ae04;position:absolute;visibility:hidden;width:"+(itemWidth+(2*borderWidth))+";height:"+((itemHeight+borderHeight)*(menus[curMenu].childCount)+borderHeight)+";left:"+menus[curMenu].left+";top:"+menus[curMenu].top+";' onmouseover='menuOn("+curMenu+")' onmouseout='menuOff("+curMenu+")'>");
		    } else if (curMenu == 3) {
		    	document.writeln("<div id='menu"+curMenu+"d' style='background:#d200d5;position:absolute;visibility:hidden;width:"+(itemWidth+(2*borderWidth))+";height:"+((itemHeight+borderHeight)*(menus[curMenu].childCount)+borderHeight)+";left:"+menus[curMenu].left+";top:"+menus[curMenu].top+";' onmouseover='menuOn("+curMenu+")' onmouseout='menuOff("+curMenu+")'>");
		    } else if (curMenu == 4) {
		    	document.writeln("<div id='menu"+curMenu+"d' style='background:#ff8000;position:absolute;visibility:hidden;width:"+(itemWidth+(2*borderWidth))+";height:"+((itemHeight+borderHeight)*(menus[curMenu].childCount)+borderHeight)+";left:"+menus[curMenu].left+";top:"+menus[curMenu].top+";' onmouseover='menuOn("+curMenu+")' onmouseout='menuOff("+curMenu+")'>");
		    } else if (curMenu == 5) {
		    	document.writeln("<div id='menu"+curMenu+"d' style='background:#7c3384;position:absolute;visibility:hidden;width:"+(itemWidth+(2*borderWidth))+";height:"+((itemHeight+borderHeight)*(menus[curMenu].childCount)+borderHeight)+";left:"+menus[curMenu].left+";top:"+menus[curMenu].top+";' onmouseover='menuOn("+curMenu+")' onmouseout='menuOff("+curMenu+")'>");
		    } else if (curMenu == 6) {
		    	document.writeln("<div id='menu"+curMenu+"d' style='background:#927241;position:absolute;visibility:hidden;width:"+(itemWidth+(2*borderWidth))+";height:"+((itemHeight+borderHeight)*(menus[curMenu].childCount)+borderHeight)+";left:"+menus[curMenu].left+";top:"+menus[curMenu].top+";' onmouseover='menuOn("+curMenu+")' onmouseout='menuOff("+curMenu+")'>");
		    } else if (curMenu == 7) {
		    	document.writeln("<div id='menu"+curMenu+"d' style='background:#b2b2b2;position:absolute;visibility:hidden;width:"+(itemWidth+(2*borderWidth))+";height:"+((itemHeight+borderHeight)*(menus[curMenu].childCount)+borderHeight)+";left:"+menus[curMenu].left+";top:"+menus[curMenu].top+";' onmouseover='menuOn("+curMenu+")' onmouseout='menuOff("+curMenu+")'>");
		    } else if (curMenu == 8) {
		    	document.writeln("<div id='menu"+curMenu+"d' style='background:#cc3333;position:absolute;visibility:hidden;width:"+(itemWidth+(2*borderWidth))+";height:"+((itemHeight+borderHeight)*(menus[curMenu].childCount)+borderHeight)+";left:"+menus[curMenu].left+";top:"+menus[curMenu].top+";' onmouseover='menuOn("+curMenu+")' onmouseout='menuOff("+curMenu+")'>");
		    } else if (curMenu == 9) {
		    	document.writeln("<div id='menu"+curMenu+"d' style='background:#cc3333;position:absolute;visibility:hidden;width:"+(itemWidth+(2*borderWidth))+";height:"+((itemHeight+borderHeight)*(menus[curMenu].childCount)+borderHeight)+";left:"+menus[curMenu].left+";top:"+menus[curMenu].top+";' onmouseover='menuOn("+curMenu+")' onmouseout='menuOff("+curMenu+")'>");
		    } else if (curMenu == 10) {
		    	document.writeln("<div id='menu"+curMenu+"d' style='background:#cc3333;position:absolute;visibility:hidden;width:"+(itemWidth+(2*borderWidth))+";height:"+((itemHeight+borderHeight)*(menus[curMenu].childCount)+borderHeight)+";left:"+menus[curMenu].left+";top:"+menus[curMenu].top+";' onmouseover='menuOn("+curMenu+")' onmouseout='menuOff("+curMenu+")'>");
		    } else if (curMenu == 11) {
		    	document.writeln("<div id='menu"+curMenu+"d' style='background:#cc3333;position:absolute;visibility:hidden;width:"+(itemWidth+(2*borderWidth))+";height:"+((itemHeight+borderHeight)*(menus[curMenu].childCount)+borderHeight)+";left:"+menus[curMenu].left+";top:"+menus[curMenu].top+";' onmouseover='menuOn("+curMenu+")' onmouseout='menuOff("+curMenu+")'>");
		    } else if (curMenu == 12) {
		    	document.writeln("<div id='menu"+curMenu+"d' style='background:#cc3333;position:absolute;visibility:hidden;width:"+(itemWidth+(2*borderWidth))+";height:"+((itemHeight+borderHeight)*(menus[curMenu].childCount)+borderHeight)+";left:"+menus[curMenu].left+";top:"+menus[curMenu].top+";' onmouseover='menuOn("+curMenu+")' onmouseout='menuOff("+curMenu+")'>");
		    } else if (curMenu == 13) {
		    	document.writeln("<div id='menu"+curMenu+"d' style='background:#cc3333;position:absolute;visibility:hidden;width:"+(itemWidth+(2*borderWidth))+";height:"+((itemHeight+borderHeight)*(menus[curMenu].childCount)+borderHeight)+";left:"+menus[curMenu].left+";top:"+menus[curMenu].top+";' onmouseover='menuOn("+curMenu+")' onmouseout='menuOff("+curMenu+")'>");
		    } else if (curMenu == 14) {
		    	document.writeln("<div id='menu"+curMenu+"d' style='background:#cc3333;position:absolute;visibility:hidden;width:"+(itemWidth+(2*borderWidth))+";height:"+((itemHeight+borderHeight)*(menus[curMenu].childCount)+borderHeight)+";left:"+menus[curMenu].left+";top:"+menus[curMenu].top+";' onmouseover='menuOn("+curMenu+")' onmouseout='menuOff("+curMenu+")'>");
		    } else if (curMenu == 15) {
		    	document.writeln("<div id='menu"+curMenu+"d' style='background:#cc3333;position:absolute;visibility:hidden;width:"+(itemWidth+(2*borderWidth))+";height:"+((itemHeight+borderHeight)*(menus[curMenu].childCount)+borderHeight)+";left:"+menus[curMenu].left+";top:"+menus[curMenu].top+";' onmouseover='menuOn("+curMenu+")' onmouseout='menuOff("+curMenu+")'>");
		    } else if (curMenu == 16) {
		    	document.writeln("<div id='menu"+curMenu+"d' style='background:#cc3333;position:absolute;visibility:hidden;width:"+(itemWidth+(2*borderWidth))+";height:"+((itemHeight+borderHeight)*(menus[curMenu].childCount)+borderHeight)+";left:"+menus[curMenu].left+";top:"+menus[curMenu].top+";' onmouseover='menuOn("+curMenu+")' onmouseout='menuOff("+curMenu+")'>");
            }
            
			for (var curItem=0; curItem<menus[curMenu].childCount; curItem++) {
				if(menus[curMenu].children[curItem].transparent) itemColor="";
				else    itemColor=menuItemColor;												
				document.write("<div id='menu"+curMenu+""+curItem+"' style='background:"+itemColor+";position:absolute;width:"+itemWidth+";height:"+itemHeight+";top:"+(borderHeight+(curItem*(itemHeight+borderHeight)))+";left:"+borderWidth+";' bgcolor='"+menuItemColor+"'><center><table cellspacing='0' cellpadding='0' border='0' background='"+menus[curMenu].children[curItem].background+"' width='"+(itemWidth-(2*paddingWidth))+"' height='"+(itemHeight-(2*paddingHeight))+"'><tr><td align='"+hAlign+"' valign='"+vAlign+"'><a href='"+menus[curMenu].children[curItem].url+"' class='"+anchorClass+"' onmouseover='onMouseOverItem("+curMenu+","+curItem+")' onmouseout='onMouseOutItem("+curMenu+","+curItem+")'>");
				document.write(itemTagsOpen+menus[curMenu].children[curItem].html+itemTagsClose);
				document.writeln("</a></td></tr></table></center></div>");
			}
			document.writeln("</div>");
		}



	}

}


// Adds a menu to the list 
function addMenu (left,top) {
		 if(type==TYPE_IE4) 
		 		 menus[menuCount]=new menu(left,top);
		 else
		 		 menus.push(new menu(left,top));

		 menuCount++;
		 
}

// Adds a submenu item to the current menu item 
function addMenuItem (html,url,background) {
		 if (type==TYPE_IE4)
		 	menus[menuCount-1].children[(menus[menuCount-1].childCount)]=new menuItem(html,url,background);
		 else
		 	 menus[menuCount-1].children.push(new menuItem(html,url,background));

		 menus[menuCount-1].childCount++;
}

// Adds an expandable submenu item to the current menu item 
function addExpandableMenuItem (html,url,background,index) {
		 // Add the menu item:
		 addMenuItem (html,url,background);
		 // Set the item's child index:
		 menus[menuCount-1].children[(menus[menuCount-1].childCount-1)].childMenuIndex=index;
}

// Makes the previous entry transparent:
function makeTransparent() {
		 menus[menuCount-1].children[(menus[menuCount-1].childCount)-1].transparent=true;
}


function goToDirectory(inURL) {
   window.location = "http://"+inURL+".com/resources/favoritelinks.html"; 
}

function showStatus(inURL) {
   window.status="http://"+inURL+".com/resources/favoritelinks.html";
   document.all("directory").style.cursor = 'hand';
}

function hideStatus() {
   window.status=""; 
}