// Navigation Menu
//		for www.LingerieOutlet.com

var xx;

document.write("<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"720\" height=\"16\" bgcolor=\"#000000\">");
document.write("<tr>");
document.write("<td><img src=\"" + security + "images/spacer.gif\" width=\"99\" height=\"1\"></td>");
document.write("<td><a href=\"http://www.lingerieoutlet.com\" onMouseOver=\"this.style.backgroundColor='#0000A0'; clearIt()\" onMouseOut=\"this.style.backgroundColor='#000000';\"><img src=\"" + security + "images/home.gif\" width=\"105\" height=\"16\" border=\"0\"></a></td>");
document.write("<td><a href=\"http://www.lingerieoutlet.com/cgi-bin/catalog.cgi\" onMouseOver=\"this.style.backgroundColor='#0000A0'; menu(1)\" onClick=\"return false\"><img src=\"" + security + "images/catalog.gif\" width=\"155\" height=\"16\" border=\"0\" id=\"catalog\"></a></td>");
document.write("<td><a href=\"http://www.lingerieoutlet.com/customerservice\" onMouseOver=\"this.style.backgroundColor='#0000A0'; clearIt()\" onMouseOut=\"this.style.backgroundColor='#000000';\"><img src=\"" + security + "images/customerservice.gif\" width=\"195\" height=\"16\" border=\"0\"></a></td>");
document.write("<td><a href=\"http://www.lingerieoutlet.com/cgi-bin/contact.cgi\" onMouseOver=\"this.style.backgroundColor='#0000A0'; clearIt()\" onMouseOut=\"this.style.backgroundColor='#000000';\"><img src=\"" + security + "images/contact.gif\" width=\"166\" height=\"16\" border=\"0\"></a></td>");
document.write("</tr>");
document.write("</table>");



function menu(x) {
	var showMenu;

	names = new Array (
		"PANTIES",
		"SLEEPWEAR",
		"SLIPS",
		"MATERNITY",
		"PLUS SIZES",
		"CHILDRENS",
		"ACCESSORIES"
	);

	links = new Array (
		"http://www.lingerieoutlet.com/cgi-bin/catalog.cgi?cat1=PANTIES",
		"http://www.lingerieoutlet.com/cgi-bin/catalog.cgi?cat1=SLEEPWEAR",
		"http://www.lingerieoutlet.com/cgi-bin/catalog.cgi?cat1=SLIPS",
		"http://www.lingerieoutlet.com/cgi-bin/catalog.cgi?cat1=MATERNITY",
		"http://www.lingerieoutlet.com/cgi-bin/catalog.cgi?cat1=PLUS SIZES",
		"http://www.lingerieoutlet.com/cgi-bin/catalog.cgi?cat1=CHILDRENS",
		"http://www.lingerieoutlet.com/cgi-bin/catalog.cgi?cat1=ACCESSORIES"
	);

	if (x == 0) { showMenu = "&nbsp;" }
	else {
		showMenu = "<table cellpadding='3' cellspacing='0' border='1' bordercolor='#0A78AD' width='155' bgcolor='#0B83BF' style='border: 1px solid #0A78AD; border-collapse: collapse'>";
		for (count=0; count < links.length-2; count++) {
			showMenu = showMenu + "<tr><td onMouseOver=\"this.style.backgroundColor='#800000'; this.style.border='1px solid #0A78AD'; this.style.cursor='hand'; subMenu('" + count + "'); clearTimeout(xx)\" onMouseOut=\"this.style.backgroundColor='#0B83BF'; this.style.border='1px solid #0A78AD'; xx=setTimeout('clearIt()', 1000)\" onClick=\"document.location='" + links[count] + "'\">";
			showMenu = showMenu + "<a href='" + links[count] + "' class='menu'>" + names[count] + "</a>";
			showMenu = showMenu + "</td></tr>";
		}
		showMenu = showMenu + "<tr><td onMouseOver=\"this.style.backgroundColor='#800000'; this.style.border='1px solid #0A78AD'; this.style.cursor='hand'; subMenu('5'); clearTimeout(xx)\" onMouseOut=\"this.style.backgroundColor='#0B83BF'; this.style.border='1px solid #0A78AD'; xx=setTimeout('clearIt()', 1000)\" onClick=\"document.location='" + links[5] + "'\"><a href='" + links[5] + "' class='menu'>" + names[5] + "</a></td></tr>";
		showMenu = showMenu + "<tr><td onMouseOver=\"this.style.backgroundColor='#800000'; this.style.border='1px solid #0A78AD'; this.style.cursor='hand'; subMenu('5'); clearTimeout(xx)\" onMouseOut=\"this.style.backgroundColor='#0B83BF'; this.style.border='1px solid #0A78AD'; xx=setTimeout('clearIt()', 1000)\" onClick=\"document.location='" + links[6] + "'\"><a href='" + links[6] + "' class='menu'>" + names[6] + "</a></td></tr>";
		showMenu = showMenu + "</table>";
	}


// Show Main Menu 
	if (document.getElementById) { 
		document.getElementById("Menu").innerHTML = showMenu;
	}
	else if (document.all) { 
		document.Menu.innerHTML = showMenu;
	}
	else if (document.layers) { 
		document.layers.Menu.document.write(showMenu);
		document.layers.Menu.document.close();
	}
}


function subMenu(y) {
	var offset = 92;				// this will probably be close to the same as the DIV position you set for subMenu 

// PANTIES 
	if (y == 0) {
		names = new Array (
			"HI CUT PANTIES",
			"FULL PANTIES",
			"MATERNITY"
		)

		links = new Array (
			"http://www.lingerieoutlet.com/cgi-bin/catalog.cgi?cat1=PANTIES&cat2=Hi+Cut+Panties",
			"http://www.lingerieoutlet.com/cgi-bin/catalog.cgi?cat1=PANTIES&cat2=Full+Panties",
			"http://www.lingerieoutlet.com/cgi-bin/catalog.cgi?cat1=PANTIES&cat2=Maternity"
		)
	}

// SLEEPWEAR 
	else if (y == 1) {
		names = new Array (
			"BABY DOLL",
			"BRA & PANTY SETS",
			"CAMISOLE",
			"GOWN",
			"HOSPITAL",
			"HOUSE COATS",
			"JACKET",
			"MATERNITY",
			"PAJAMAS",
			"ROBE",
			"SHIRTS"
		)

		links = new Array (
			"http://www.lingerieoutlet.com/cgi-bin/catalog.cgi?cat1=SLEEPWEAR&cat2=Baby+Doll",
			"http://www.lingerieoutlet.com/cgi-bin/catalog.cgi?cat1=SLEEPWEAR&cat2=Bra+and+Panty+sets",
			"http://www.lingerieoutlet.com/cgi-bin/catalog.cgi?cat1=SLEEPWEAR&cat2=Camisole",
			"http://www.lingerieoutlet.com/cgi-bin/catalog.cgi?cat1=SLEEPWEAR&cat2=Gown",
			"http://www.lingerieoutlet.com/cgi-bin/catalog.cgi?cat1=SLEEPWEAR&cat2=Hospital",
			"http://www.lingerieoutlet.com/cgi-bin/catalog.cgi?cat1=SLEEPWEAR&cat2=House+Coats",
			"http://www.lingerieoutlet.com/cgi-bin/catalog.cgi?cat1=SLEEPWEAR&cat2=Jacket",
			"http://www.lingerieoutlet.com/cgi-bin/catalog.cgi?cat1=SLEEPWEAR&cat2=Maternity",
			"http://www.lingerieoutlet.com/cgi-bin/catalog.cgi?cat1=SLEEPWEAR&cat2=Pajamas",
			"http://www.lingerieoutlet.com/cgi-bin/catalog.cgi?cat1=SLEEPWEAR&cat2=Robe",
			"http://www.lingerieoutlet.com/cgi-bin/catalog.cgi?cat1=SLEEPWEAR&cat2=Shirts"
		)

		offset += 20;
	}

// SLIPS 
	else if (y == 2) {
		names = new Array (
			"CAMISOLE",
			"FULL SLIP",
			"HALF SLIP",
			"LINERS",
			"MATERNITY"
		)

		links = new Array (
			"http://www.lingerieoutlet.com/cgi-bin/catalog.cgi?cat1=SLIPS&cat2=Camisole",
			"http://www.lingerieoutlet.com/cgi-bin/catalog.cgi?cat1=SLIPS&cat2=Full+Slip",
			"http://www.lingerieoutlet.com/cgi-bin/catalog.cgi?cat1=SLIPS&cat2=Half+Slip",
			"http://www.lingerieoutlet.com/cgi-bin/catalog.cgi?cat1=SLIPS&cat2=Liner",
			"http://www.lingerieoutlet.com/cgi-bin/catalog.cgi?cat1=SLIPS&cat2=Maternity"
		)

		offset += 40;
	}

// MATERNITY
	else if (y == 3) {
		names = new Array (
			"PANTIES",
			"SLEEPWEAR",
			"SLIPS"
		)

		links = new Array (
			"http://www.lingerieoutlet.com/cgi-bin/catalog.cgi?cat1=PANTIES&cat2=Maternity",
			"http://www.lingerieoutlet.com/cgi-bin/catalog.cgi?cat1=SLEEPWEAR&cat2=Maternity",
			"http://www.lingerieoutlet.com/cgi-bin/catalog.cgi?cat1=SLIPS&cat2=Maternity"
		)

		offset += 60;
	}

// PLUS SIZES 
	else if (y == 4) {
		names = new Array (
			"PANTIES",
			"SLEEPWEAR",
			"SLIPS"
		)

		links = new Array (
			"http://www.lingerieoutlet.com/cgi-bin/catalog.cgi?cat1=PANTIES&search=plus",
			"http://www.lingerieoutlet.com/cgi-bin/catalog.cgi?cat1=SLEEPWEAR&search=plus",
			"http://www.lingerieoutlet.com/cgi-bin/catalog.cgi?cat1=SLIPS&search=plus"
		)

		offset += 80;
	}


// Create Sub Menu 
	if (y > 4) { showSubMenu = "&nbsp;" }
	else {
		showSubMenu = "<table cellpadding='3' cellspacing='0' border='1' bordercolor='#0A78AD' width='155' bgcolor='#0B83BF' style='border: 1px solid #0A78AD; border-collapse: collapse'>";
		for (count=0; count < links.length; count++) {
			showSubMenu = showSubMenu + "<tr><td onMouseOver=\"this.style.backgroundColor='#800000'; this.style.border='1px solid #0A78AD'; this.style.cursor='hand'; clearTimeout(xx)\" onMouseOut=\"this.style.backgroundColor='#0B83BF'; this.style.border='1px solid #0A78AD'; xx=setTimeout('clearIt()', 1000)\" onClick=\"document.location='" + links[count] + "'\">";
			showSubMenu = showSubMenu + "<a href='" + links[count] + "' class='menu'>" + names[count] + "</a>";
			showSubMenu = showSubMenu + "</td></tr>";
		}
		showSubMenu = showSubMenu + "</table>";
	}


// Show Main Menu 
	if (document.getElementById) { 
		document.getElementById("subMenu").style.top = offset + "px";
		document.getElementById("subMenu").innerHTML = showSubMenu;
	}
	else if (document.all) { 
		subMenu.style.pixelTop = offset + "px";
		document.subMenu.innerHTML = showSubMenu;
	}
	else if (document.layers) { 
		document.layers.subMenu.document.write(showSubMenu);
		document.layers.subMenu.document.close();

		document.subMenu.top = offset + "px";
	}
}


function clearIt() { 
	menu('0');
	subMenu('5');

	if (document.getElementById) { document.getElementById("catalog").style.backgroundColor="#000000"; }
	else if (document.all) { document.all.catalog.style.backgroundColor="#000000"; }
	else if (document.layers) {
		document.layers[catalog].bgColor="#000000";
		document.layers.catalog.close();
	}
}

