//
// 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 == 1) {
          event.srcElement.src = "http://www.thelingeriezone.com/images/sexy_lingerie_ro.gif";
        } else if (index == 2) {
          event.srcElement.src = "http://www.thelingeriezone.com/images/plus_size_lingerie_ro.gif";
        } else if (index == 3) {
          event.srcElement.src = "http://www.thelingeriezone.com/images/leather_lingerie_ro.gif";
        } else if (index == 4) {
          event.srcElement.src = "http://www.thelingeriezone.com/images/vinyl_lingerie_ro.gif";
        } else if (index == 5) {
          event.srcElement.src = "http://www.thelingeriezone.com/images/clubwear_ro.gif";
        } else if (index == 6) {
          event.srcElement.src = "http://www.thelingeriezone.com/images/exotic_swimwear_ro.gif";
        } else if (index == 7) {
          event.srcElement.src = "http://www.thelingeriezone.com/images/adult_costumes_ro.gif";
        } else if (index == 8) {
          event.srcElement.src = "http://www.thelingeriezone.com/images/sexy_shoes_ro.gif";
        } else if (index == 9) {
          event.srcElement.src = "http://www.thelingeriezone.com/images/mens_lingerie_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 == 1) {
        document.getElementById("b").src = "http://www.thelingeriezone.com/images/sexy_lingerie.gif";
        } else if (index == 2) {
        document.getElementById("c").src = "http://www.thelingeriezone.com/images/plus_size_lingerie.gif";
        } else if (index == 3) {
        document.getElementById("d").src = "http://www.thelingeriezone.com/images/leather_lingerie.gif";
        } else if (index == 4) {
        document.getElementById("e").src = "http://www.thelingeriezone.com/images/vinyl_lingerie.gif";
        } else if (index == 5) {
        document.getElementById("f").src = "http://www.thelingeriezone.com/images/clubwear.gif";
        } else if (index == 6) {
        document.getElementById("g").src = "http://www.thelingeriezone.com/images/exotic_swimwear.gif";
        } else if (index == 7) {
        document.getElementById("h").src = "http://www.thelingeriezone.com/images/adult_costumes.gif";
        } else if (index == 8) {
        document.getElementById("j").src = "http://www.thelingeriezone.com/images/sexy_shoes.gif";
        } else if (index == 9) {
        document.getElementById("k").src = "http://www.thelingeriezone.com/images/mens_lingerie.gif";
    }
}

function buttonOn(index) {
    if (index == 0) {
        document.getElementById("a").src = "http://www.thelingeriezone.com//images/home_btn_ro.gif";
        }
}

function buttonOff(index) {
    if (index == 0) {
        document.getElementById("a").src = "http://www.thelingeriezone.com//images/home_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){
	    	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,258);
addMenu(88,208);
addMenuItem("Babydolls","http://www.thelingeriezone.com/babydolls.html","");
addMenuItem("Sexy Bustiers","http://www.thelingeriezone.com/bustiers.html","");
addMenuItem("Camisoles","http://www.thelingeriezone.com/camisoles.html","");
addMenuItem("Chemises","http://www.thelingeriezone.com/chemises.html","");
addMenuItem("Sexy Corsets","http://www.thelingeriezone.com/corsets.html","");
addMenuItem("Sexy Teddies","http://www.thelingeriezone.com/teddies.html","");
addMenuItem("Waist Cinchers","http://www.thelingeriezone.com/waist-cinchers.html","");
addExpandableMenuItem("Sexy Tops","http://www.thelingeriezone.com/sexy-tops.html","http://www.thelingeriezone.com/images/arrow_bg.jpg",10);
addExpandableMenuItem("Panties","http://www.thelingeriezone.com/panties.html","http://www.thelingeriezone.com/images/arrow_bg.jpg",11);
addExpandableMenuItem("Women's Hosiery","http://www.thelingeriezone.com/hosiery.html","http://www.thelingeriezone.com/images/arrow_bg.jpg",12);
addExpandableMenuItem("Fashion Sleepwear","http://www.thelingeriezone.com/fashion-sleepwear.html","http://www.thelingeriezone.com/images/arrow_bg.jpg",13);
addMenuItem("Bridal Lingerie","http://www.thelingeriezone.com/bridal-lingerie.html","");
addExpandableMenuItem("Matched Lingerie Sets","http://www.thelingeriezone.com/matched-lingerie-sets.html","http://www.thelingeriezone.com/images/arrow_bg.jpg",14);
addMenuItem("Lingerie Mini Dresses","http://www.thelingeriezone.com/lingerie-mini-dresses.html","");
addMenu(165,208);
addMenuItem("Plus Size Babydolls","http://www.thelingeriezone.com/plus-size-babydolls.html","");
addMenuItem("Plus Size Bustiers","http://www.thelingeriezone.com/plus-size-bustiers.html","");
addMenuItem("Plus Size Camisoles","http://www.thelingeriezone.com/plus-size-camisoles.html","");
addMenuItem("Plus Size Corsets","http://www.thelingeriezone.com/plus-size-corsets.html","");
addMenuItem("Plus Size Chemises","http://www.thelingeriezone.com/plus-size-chemises.html","");
addMenuItem("Plus Size Teddies","http://www.thelingeriezone.com/plus-size-teddies.html","");
addMenuItem("Plus Size Waist Cinchers","http://www.thelingeriezone.com/plus-size-waist-cinchers.html","");
addMenuItem("Plus Size Robes","http://www.thelingeriezone.com/plus-size-robes.html","");
addMenuItem("Plus Size Bras","http://www.thelingeriezone.com/plus-size-bras.html","");
addExpandableMenuItem("Plus Size Panties","http://www.thelingeriezone.com/plus-size-panties.html","http://www.thelingeriezone.com/images/arrow_bg.jpg",15);
addMenu(242,208);
addExpandableMenuItem("Plus Size Leather Lingerie","http://www.thelingeriezone.com/plus-size-leather-lingerie.html","http://www.thelingeriezone.com/images/arrow_bg.jpg",16);
addMenuItem("Mens Leather Lingerie","http://www.thelingeriezone.com/mens-leather-lingerie.html","");
addMenuItem("Leather Bras","http://www.thelingeriezone.com/leather-bras.html","");
addMenuItem("Leather Bra & Panty Sets","http://www.thelingeriezone.com/leather-bra-panty-sets.html","");
addMenuItem("Leather Thongs","http://www.thelingeriezone.com/leather-thongs.html","");
addMenuItem("Leather G-Strings","http://www.thelingeriezone.com/leather-g-strings.html","");
addMenuItem("Leather Babydolls","http://www.thelingeriezone.com/leather-babydolls.html","");
addMenuItem("Leather Bustiers","http://www.thelingeriezone.com/leather-bustiers.html","");
addMenuItem("Leather Corsets","http://www.thelingeriezone.com/leather-corsets.html","");
addMenuItem("Leather Teddies","http://www.thelingeriezone.com/leather-teddies.html","");
addMenuItem("Leather Garter Belts","http://www.thelingeriezone.com/leather-garter-belts.html","");
addMenuItem("Leather Waist Cinchers","http://www.thelingeriezone.com/leather-waist-cinchers.html","");
addMenuItem("Leather Tops","http://www.thelingeriezone.com/leather-tops.html","");
addMenuItem("Leather Skirts","http://www.thelingeriezone.com/leather-skirts.html","");
addMenuItem("Leather Dresses","http://www.thelingeriezone.com/leather-dresses.html","");
addMenuItem("Leather Shorts","http://www.thelingeriezone.com/leather-shorts.html","");
addMenuItem("Leather Pants","http://www.thelingeriezone.com/leather-pants.html","");
addMenuItem("Leather Accessories","http://www.thelingeriezone.com/leather-accessories.html","");
addMenu(319,208);
addMenuItem("Plus Size Vinyl Lingerie","http://www.thelingeriezone.com/plus-size-vinyl-lingerie.html","");
addMenuItem("Mens Vinyl Lingerie","http://www.thelingeriezone.com/mens-vinyl-lingerie.html","");
addMenuItem("Vinyl Bras","http://www.thelingeriezone.com/vinyl-bras.html","");
addMenuItem("Vinyl Bra & Panty Sets","http://www.thelingeriezone.com/vinyl-bra-panty-sets.html","");
addMenuItem("Vinyl G-Strings & Thongs","http://www.thelingeriezone.com/vinyl-g-strings-thongs.html","");
addMenuItem("Vinyl Bustiers","http://www.thelingeriezone.com/vinyl-bustiers.html","");
addMenuItem("Vinyl Corsets","http://www.thelingeriezone.com/vinyl-corsets.html","");
addMenuItem("Vinyl Teddies","http://www.thelingeriezone.com/vinyl-teddies.html","");
addMenuItem("Vinyl Shorts & Tops","http://www.thelingeriezone.com/vinyl-shorts-tops.html","");
addMenuItem("Vinyl Mini Skirts","http://www.thelingeriezone.com/vinyl-mini-skirts.html","");
addMenuItem("Vinyl Dresses","http://www.thelingeriezone.com/vinyl-dresses.html","");
addMenuItem("Vinyl Lingerie Accessories","http://www.thelingeriezone.com/vinyl-accessories.html","");
addMenu(396,208);
addMenuItem("Sexy Shorts","http://www.thelingeriezone.com/shorts.html","");
addMenuItem("Mini Skirts","http://www.thelingeriezone.com/mini-skirts.html","");
addMenuItem("Mini Dresses","http://www.thelingeriezone.com/mini-dresses.html","");
addMenuItem("Sexy Leggings","http://www.thelingeriezone.com/sexy-leggings.html","");
addMenuItem("Dance Pants","http://www.thelingeriezone.com/dance-pants.html","");
addMenuItem("Rompers","http://www.thelingeriezone.com/rompers.html","");
addMenu(473,208);
addMenuItem("One Piece Swimsuits","http://www.thelingeriezone.com/one-piece-swimsuits.html","");
addExpandableMenuItem("Plus Size Swimsuits","http://www.thelingeriezone.com/plus-size-swimsuits.html","http://www.thelingeriezone.com/images/arrow_bg.jpg",17);
addExpandableMenuItem("Sexy Bikini Sets","http://www.thelingeriezone.com/sexy-bikinis.html","http://www.thelingeriezone.com/images/arrow_bg.jpg",18);
addMenuItem("Monokinis","http://www.thelingeriezone.com/monokinis.html","");
addMenuItem("Tankinis","http://www.thelingeriezone.com/tankinis.html","");
addMenuItem("Skirtinis","http://www.thelingeriezone.com/skirtinis.html","");
addMenu(550,208);
addExpandableMenuItem("Plus Size Costumes","http://www.thelingeriezone.com/plus_size_costumes.html","http://www.thelingeriezone.com/images/arrow_bg.jpg",19);
addExpandableMenuItem("Sexy Costumes","http://www.thelingeriezone.com/sexy-womens-costumes.html","http://www.thelingeriezone.com/images/arrow_bg.jpg",20);
addExpandableMenuItem("Sexy Halloween Costumes","http://www.thelingeriezone.com/sexy-halloween-costumes.html","http://www.thelingeriezone.com/images/arrow_bg.jpg",21);
addMenuItem("Men's Halloween Costumes","http://www.thelingeriezone.com/mens-halloween-costumes.html","");
addMenuItem("Costume Wigs","http://www.thelingeriezone.com/costume-wigs.html","");
addMenu(627,208);
addExpandableMenuItem("Womens Fashion Boots","http://www.thelingeriezone.com/womens-fashion-boots.html","http://www.thelingeriezone.com/images/arrow_bg.jpg",22);
addExpandableMenuItem("Platform High Heels","http://www.thelingeriezone.com/platform-high-heels.html","http://www.thelingeriezone.com/images/arrow_bg.jpg",23);
addMenuItem("High Heel Sandals","http://www.thelingeriezone.com/high-heel-sandals.html","");
addMenuItem("High Heel Pumps","http://www.thelingeriezone.com/high-heel-pumps.html","");
addMenuItem("Mule Shoes","http://www.thelingeriezone.com/mule-shoes.html","");
addMenuItem("Mary Janes","http://www.thelingeriezone.com/mary-janes.html","");
addMenuItem("Oxford Shoes","http://www.thelingeriezone.com/oxford-shoes.html","");
addMenu(704,208);
addMenuItem("Mens Briefs","http://www.thelingeriezone.com/briefs.html","");
addMenuItem("Boxer Shorts","http://www.thelingeriezone.com/boxer-shorts.html","");
addMenuItem("Mens Thongs","http://www.thelingeriezone.com/mens-thongs.html","");
addMenuItem("Mens Pouches","http://www.thelingeriezone.com/mens-pouches.html","");
addMenuItem("Jock Straps","http://www.thelingeriezone.com/jock-straps.html","");
addMenuItem("Mens Robes","http://www.thelingeriezone.com/mens-robes.html","");
addMenuItem("Mens Lounge Pants","http://www.thelingeriezone.com/mens-lounge-pants.html","");
addMenuItem("Mens Shirts","http://www.thelingeriezone.com/mens-shirts.html","");
addMenu(263,320);
addMenuItem("Sexy Bras","http://www.thelingeriezone.com/sexy-bras.html","");
addMenuItem("Bikini Tops","http://www.thelingeriezone.com/bikini-tops.html","");
addMenuItem("Halter Tops","http://www.thelingeriezone.com/halter-tops.html","");
addMenuItem("Tank Tops","http://www.thelingeriezone.com/tank-tops.html","");
addMenuItem("Crop Tops","http://www.thelingeriezone.com/crop-tops.html","");
addMenuItem("Tube Tops","http://www.thelingeriezone.com/tube-tops.html","");
addMenu(263,336);
addMenuItem("Sexy Panties","http://www.thelingeriezone.com/sexy-panties.html","");
addMenuItem("Thongs","http://www.thelingeriezone.com/thongs.html","");
addMenuItem("G-Strings","http://www.thelingeriezone.com/g-strings.html","");
addMenuItem("Crotchless Panties","http://www.thelingeriezone.com/crotchless-panties.html","");
addMenuItem("Booty Shorts","http://www.thelingeriezone.com/booty-shorts.html","");
addMenuItem("Women's Boy Shorts","http://www.thelingeriezone.com/womens-boy-shorts.html","");
addMenu(263,352);
addMenuItem("Pantyhose","http://www.thelingeriezone.com/pantyhose.html","");
addMenuItem("Thigh High Stockings","http://www.thelingeriezone.com/thigh-high-stockings.html","");
addMenuItem("Women's Stockings","http://www.thelingeriezone.com/womens-stockings.html","");
addMenuItem("Bodystockings","http://www.thelingeriezone.com/bodystockings.html","");
addMenu(263,368);
addMenuItem("Sexy Pajamas","http://www.thelingeriezone.com/sexy-pajamas.html","");
addMenuItem("Night Gowns","http://www.thelingeriezone.com/lingerie-gowns.html","");
addMenuItem("Night Shirts","http://www.thelingeriezone.com/night-shirts.html","");
addMenuItem("Women's Robes","http://www.thelingeriezone.com/womens-robes.html","");
addMenu(263,400);
addMenuItem("Bra and Panty Sets","http://www.thelingeriezone.com/bra-panty-sets.html","");
addMenuItem("Skirt Sets","http://www.thelingeriezone.com/skirt-sets.html","");
addMenu(340,352);
addMenuItem("Sexy Plus Size Panties","http://www.thelingeriezone.com/sexy-plus-size-panties.html","");
addMenuItem("Plus Size Thongs","http://www.thelingeriezone.com/plus-size-thongs.html","");
addMenuItem("Plus Size G-Strings","http://www.thelingeriezone.com/plus-size-g-strings.html","");
addMenuItem("Plus Size Crotchless Panties","http://www.thelingeriezone.com/plus-size-crotchless-panties.html","");
addMenu(417,208);
addMenuItem("Plus Size Leather Babydolls","http://www.thelingeriezone.com/plus-size-leather-babydolls.html","");
addMenuItem("Plus Size Leather Bustiers","http://www.thelingeriezone.com/plus-size-leather-bustiers.html","");
addMenuItem("Plus Size Leather Corsets","http://www.thelingeriezone.com/plus-size-leather-corsets.html","");
addMenuItem("Plus Size Leather Teddies","http://www.thelingeriezone.com/plus-size-leather-teddies.html","");
addMenuItem("Plus Size Leather Bras","http://www.thelingeriezone.com/plus-size-leather-bras.html","");
addMenuItem("Plus Size Leather Tops","http://www.thelingeriezone.com/plus-size-leather-tops.html","");
addMenuItem("Plus Leather G-Strings & Thongs","http://www.thelingeriezone.com/plus-size-leather-g-strings-thongs.html","");
addMenuItem("Plus Leather Bra & Panty Sets","http://www.thelingeriezone.com/plus-size-leather-bra-panty-sets.html","");
addMenuItem("Plus Size Leather Garter Belts","http://www.thelingeriezone.com/plus-size-leather-garter-belts.html","");
addMenuItem("Plus Leather Waist Cinchers","http://www.thelingeriezone.com/plus-size-leather-waist-cinchers.html","");
addMenuItem("Plus Size Leather Skirts","http://www.thelingeriezone.com/plus-size-leather-skirts.html","");
addMenuItem("Plus Size Leather Mini Dresses","http://www.thelingeriezone.com/plus-size-leather-mini-dresses.html","");
addMenu(648,224);
addMenuItem("Plus One Piece Swimsuits","http://www.thelingeriezone.com/plus-one-piece-swimsuits.html","");
addMenuItem("Plus Size Tankinis","http://www.thelingeriezone.com/plus-size-tankinis.html","");
addMenuItem("Plus Size Skirtinis","http://www.thelingeriezone.com/plus-size-skirtinis.html","");
addMenu(648,240);
addMenuItem("Full Back Bikinis","http://www.thelingeriezone.com/full-back-bikinis.html","");
addMenuItem("Brazilian Bikinis","http://www.thelingeriezone.com/brazilian-bikinis.html","");
addMenuItem("Thong Bikinis","http://www.thelingeriezone.com/thong-bikinis.html","");
addMenuItem("Micro Bikinis","http://www.thelingeriezone.com/micro-bikinis.html","");
addMenuItem("Boyshort Bikinis","http://www.thelingeriezone.com/boyshort-bikinis.html","");
addMenu(725,208);
addMenuItem("Plus Size Adult Costumes","http://www.thelingeriezone.com/plus-size-adult-costumes.html","");
addMenuItem("Plus Size Halloween Costumes","http://www.thelingeriezone.com/plus-size-halloween-costumes.html","");
addMenu(725,224);
addMenuItem("Sexy Costumes","http://www.thelingeriezone.com/sexy-costumes.html","");
addMenuItem("Nurse Costumes","http://www.thelingeriezone.com/nurse-costumes.html","");
addMenuItem("French Maid Costumes","http://www.thelingeriezone.com/french-maid-costumes.html","");
addMenuItem("School Girl Costumes","http://www.thelingeriezone.com/school-girl-costumes.html","");
addMenuItem("Cheerleader Costumes","http://www.thelingeriezone.com/cheerleader-costumes.html","");
addMenuItem("Belly Dancer Costumes","http://www.thelingeriezone.com/belly-dancer-costumes.html","");
addMenuItem("Pirate Costumes","http://www.thelingeriezone.com/pirate-costumes.html","");
addMenuItem("Bunny Costumes","http://www.thelingeriezone.com/bunny-costumes.html","");
addMenuItem("Maiden Costumes","http://www.thelingeriezone.com/maiden-costumes.html","");
addMenu(725,240);
addMenuItem("Cowgirl Costumes","http://www.thelingeriezone.com/cowgirl-costumes.html","");
addMenuItem("Devil Costumes","http://www.thelingeriezone.com/devil-costumes.html","");
addMenuItem("Fairy Tale Costumes","http://www.thelingeriezone.com/fairy-tale-costumes.html","");
addMenuItem("Gangster Costumes","http://www.thelingeriezone.com/gangster-costumes.html","");
addMenuItem("Girl Scout Costumes","http://www.thelingeriezone.com/girl-scout-costumes.html","");
addMenuItem("Go Go Dancer Costumes","http://www.thelingeriezone.com/go-go-dancer-costumes.html","");
addMenuItem("Greek Toga Costumes","http://www.thelingeriezone.com/toga-party-costumes.html","");
addMenuItem("Halloween Costumes","http://www.thelingeriezone.com/halloween-costumes.html","");
addMenuItem("Kitty Cat Costumes","http://www.thelingeriezone.com/kitty-cat-costumes.html","");
addMenuItem("Military Costumes","http://www.thelingeriezone.com/military-costumes.html","");
addMenuItem("Occupational Costumes","http://www.thelingeriezone.com/occupational-halloween-costumes.html","");
addMenuItem("Police Costumes","http://www.thelingeriezone.com/police-costumes.html","");
addMenuItem("Prisoner Costumes","http://www.thelingeriezone.com/prisoner-costumes.html","");
addMenuItem("Sports Costumes","http://www.thelingeriezone.com/sports-costumes.html","");
addMenuItem("Stewardess Costumes","http://www.thelingeriezone.com/stewardess-costumes.html","");
addMenuItem("Super Hero Costumes","http://www.thelingeriezone.com/super-hero-costumes.html","");
addMenuItem("Witch Costumes","http://www.thelingeriezone.com/witch-costumes.html","");
addMenu(802,208);
addMenuItem("Ankle Boots","http://www.thelingeriezone.com/ankle-boots.html","");
addMenuItem("Knee High Boots","http://www.thelingeriezone.com/knee-high-boots.html","");
addMenuItem("Thigh High Boots","http://www.thelingeriezone.com/thigh-high-boots.html","");
addMenuItem("Boot Cuffs","http://www.thelingeriezone.com/boot-cuffs.html","");
addMenu(802,224);
addMenuItem("Platform Sandals","http://www.thelingeriezone.com/platform-sandals.html","");
addMenuItem("Platform Pumps","http://www.thelingeriezone.com/platform-pumps.html","");
addMenuItem("Platform Mary Janes","http://www.thelingeriezone.com/platform-mary-janes.html","");
addMenuItem("Platform Mules","http://www.thelingeriezone.com/platform-mules.html","");
addMenuItem("Platform Oxfords","http://www.thelingeriezone.com/platform-oxfords.html","");



    // 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++) {
		       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++) {
                  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=""; 
}

function mailpage()
{
  mail_str = "mailto:?subject= Check this page out: " + document.title;
  mail_str += "&body= I thought you might be interested in the " + document.title;
  mail_str += ". You can check this out at: " + location.href + "?source=EmailFriend"; 
  location.href = mail_str;
}

function bookmark(url,title)
{
  if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
    window.external.AddFavorite(url,title);
  } else if (navigator.appName == "Netscape") {
    window.sidebar.addPanel(title,url,"");
  } else {
    alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark");
  }
}
