var persistmenu="yes" 
var persisttype="sitewide" 

if (document.getElementById){ 
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('</style>\n')
}

function SwitchMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("masterdiv").getElementsByTagName("span"); 
		if(el.style.display != "block"){ 
			for (var i=0; i<ar.length; i++){
				if (ar[i].className=="submenu") 
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
}

function get_cookie(Name) { 
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) { 
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

function onloadfunction(){
if (persistmenu=="yes"){
var cookiename=(persisttype=="sitewide")? "switchmenu" : window.location.pathname
var cookievalue=get_cookie(cookiename)
if (cookievalue!="")
document.getElementById(cookievalue).style.display="block"
}
}

function savemenustate(){
var inc=1, blockid=""
while (document.getElementById("sub"+inc)){
if (document.getElementById("sub"+inc).style.display=="block"){
blockid="sub"+inc
break
}
inc++
}
var cookiename=(persisttype=="sitewide")? "switchmenu" : window.location.pathname
var cookievalue=(persisttype=="sitewide")? blockid+";path=/" : blockid
document.cookie=cookiename+"="+cookievalue
}

if (window.addEventListener)
window.addEventListener("load", onloadfunction, false)
else if (window.attachEvent)
window.attachEvent("onload", onloadfunction)
else if (document.getElementById)
window.onload=onloadfunction

if (persistmenu=="yes" && document.getElementById)
window.onunload=savemenustate

function MM_reloadPage(init) {  
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


function setVariables() {
if (document.layers) {
v=".top=";
dS="document.";
sD="";
y="window.pageYOffset";
}
else if (document.all){
v=".pixelTop=";
dS="";
sD=".style";
y="document.body.scrollTop";
}
else if (document.getElementById){
y="window.pageYOffset";
}
}
function checkLocation() {
object="masterdiv";
yy=eval(y);
if (document.getElementById)
document.getElementById("masterdiv").style.top=yy
else
eval(dS+object+sD+v+yy)
setTimeout("checkLocation()",10);
}

document.write('<div id="masterdiv" style="visibility:show; background-color: #FFFFFF; layer-background-color: #FFFFFF; border: 1px none #000000;">');

document.write('<br>');
  
  document.write('<br>');
	document.write("<div class=menutitle onclick=SwitchMenu('sub1')>Aromatheraphy</div>");  
	  document.write('<span class="submenu" id="sub1">');
	  document.write('- <a href="ARO_single_essential_Oils_NY.php" ><font color="#993333">Single Essential Oils</font></a><br>');
	  document.write('- <a href="ARO_aromatic_blends_NY.php" ><font color="#993333">Aromatic Blends</font></a><br>');
	  document.write('- <a href="ARO_aromatherapy_extras_NY.php" ><font color="#993333">Aromatherapy Extras</font></a><br>');
  document.write('</span>');
  
  
  
	  document.write("<div class=menutitle onclick=SwitchMenu('sub2')>Bath &amp; Body</div>");
	  document.write('<span class="submenu" id="sub2"> - <a href="bath_BarrierCream_NY.php" ><font color="#993333">Barrier Cream&#8482;</font><br>');
	  document.write('</a> - <a href="bath_closeShaveGel_NY.php" ><font color="#993333">Close&reg; Shaving Gel</font><br>');
	  document.write('</a> - <a href="bath_bubbleBath_NY.php" ><font color="#993333">Indulge&#8482; Bubble Bath</font><br>');
	  document.write('</a> - <a href="bath_refresh_NY.php" ><font color="#993333">Refresh&#8482; Bath ');
	  document.write('& <br>');
	  document.write('&nbsp;&nbsp;Shower Gel</font><br>');
	  document.write('</a> - <a href="body_deodorant_NY.php" ><font color="#993333">Subdue&#8482;                              Deodorant </font><br>');
	  document.write('</a> - <a href="body_tenderCare_NY.php" ><font color="#993333">Tender ');
	  document.write('Care&#8482;</font><br>');
  document.write('</a> </span>'); 
									 
	  document.write("<div class=menutitle onclick=SwitchMenu('sub4')>Hair Care</div>");
	  document.write('<span class="submenu" id="sub4">');
	  document.write('- <a href="Hair_shampoo_NY.php" ><font color="#993333">Shampoo</font></a><br>');
	  document.write('- <a href="Hair_condition_NY.php" ><font color="#993333">Condition</font></a><br>');
	  document.write('- <a href="Hair_style_NY.php" ><font color="#993333">Style</font><br>');
	  document.write('</a>');
	  document.write('- <a href="Hair_treatment_NY.php" ><font color="#993333">Treatment</font></a><br>');
	  document.write('- <a href="Hair_keratonics_NY.php" ><font color="#993333">Keratonics&#8482; Treatment and<br> ');
	  document.write('&nbsp;&nbsp;Styling Products </font></a><br>');
  	  document.write('</span>');
	  
	  document.write("<div class=menutitle onclick=SwitchMenu('sub8')>Nail Care</div>");
	  document.write('<span class="submenu" id="sub8">');
	  document.write('- <a href="nail_lushLashes_NY.php" ><font color="#993333">Lush Lashes & Nails</font></a><br>');
	  document.write('</span>');
	  
	  
	  document.write("<div class=menutitle onclick=SwitchMenu('sub9')>Neways Generations™</div>");
	  document.write('<span class="submenu" id="sub9">');
	  document.write('- <a href="new_babyPowder_NY.php" ><font color="#993333">Baby Powder</font></a><br>');
	  document.write('- <a href="new_bubbleBath_NY.php" ><font color="#993333">Baby Bubble Bath</font></a><br>');
	  document.write('- <a href="new_hairBodyWash_NY.php" ><font color="#993333">Hair & Body Wash</font></a><br>');
	  document.write('</span>');
	  
	  document.write("<div class=menutitle onclick=SwitchMenu('sub3')>Oral & Dental Care</div>");
	  document.write('<span class="submenu" id="sub3">');
	  document.write('- <a href="dental_mouthWash_NY.php" ><font color="#993333">Eliminator&reg; Mouthwash</font><br>');
	  document.write('</a> ');
	  document.write('- <a href="dental_toothpaste_NY.php" ><font color="#993333">Radiance&reg; Toothpaste</font><br>');
	  document.write('</a>');
	  document.write('- <a href="dental_ultraShine_NY.php" ><font color="#993333">UltraShine Radiance&reg;</font><br>');
  document.write('</a>  </span>');
	 
	  document.write('<div class="navbar">');
		document.write("<div class=menutitle onclick=SwitchMenu('sub5')>Skin Care</div>");
		document.write('<span class="submenu" id="sub5">'); 
		document.write('- <a href="skin_cleanse_NY.php" ><font color="#993333">Cleanse</font></a><br>');
		document.write('- <a href="skin_rejuvenate_NY.php" ><font color="#993333">Rejuvenate</font></a> ');
		document.write('<br>');
		document.write('- <a href="skin_activate_NY.php" ><font color="#993333">Activate</font></a> ');
		document.write('<br>');
		document.write('- <a href="skin_moisturizer_NY.php" ><font color="#993333">Moisturize</font></a><br>');
		document.write('</span> ');
		document.write("<div class=menutitle onclick=SwitchMenu('sub6')>Sun Care</div>");
	  document.write('<span class="submenu" id="sub6"> ');
	  document.write('- <a href="sun_Lipceutical_NY.php" ><font color="#993333">Lipceutical™</font></a><br>');
	  document.write('- <a href="sun_Rebound_NY.php" ><font color="#993333">Rebound™</font></a><br>');
	  document.write('- <a href="sun_Sunbero_NY.php" ><font color="#993333">Sunbero™</font></a><br>');
      document.write('</span> ');
		
		document.write('<div class="navbar">'); 
		  document.write("<div class=menutitle onclick=SwitchMenu('sub7')>True Touch&#8482; Color Cosmetics </div>");
		  document.write('<span class="submenu" id="sub7"> - <a href="tru_complexion.php" ><font color="#993333">Complexion Products  </font></a><br>');
		  document.write('- <a href="tru_color.php" ><font color="#993333">Color Products</font></a><br>');
		  document.write('- <a href="tru_lip.php" ><font color="#993333">Lip Products </font></a><br>');
		  document.write('- <a href="tru_lash.php" ><font color="#993333">Lash Products</font><br>');
		  document.write('</a> - <a href="tru_precision.php" ><font color="#993333">Precision Products </font></a><br>');
		  document.write('- <a href="tru_finishing.php" ><font color="#993333">Finishing Products </font></a><br>');
		 document.write('</span></div>');
	  document.write('</div>');
document.write('</div>');


