/***********************************************
* Switch Menu script- by Martial B of http://getElementById.com/
* Modified by Dynamic Drive for format & NS4/IE4 compatibility
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var persistmenu="yes" //"yes" or "no". Make sure each SPAN content contains an incrementing ID starting at 1 (id="sub1", id="sub2", etc)
var persisttype="sitewide" //enter "sitewide" for menu to persist across site, "local" for this page only

if (document.getElementById){ //DynamicDrive.com change
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"); //DynamicDrive.com change
		if(el.style.display != "block"){ //DynamicDrive.com change
			for (var i=0; i<ar.length; i++){
				if (ar[i].className=="submenu") //DynamicDrive.com change
				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) {  //reloads the window if Nav4 resized
  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);



/*
Created by Randy Bennet http://home.thezone.net/~rbennett/utility/javahead.htm
Featured on JavaScript Kit (http://javascriptkit.com)
For this and over 400+ free scripts, visit http://javascriptkit.com
*/

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);
}

//***************************************
// Writing HTML document
//***************************************

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.php" ><font color="#486699">Single Essential Oils</font></a><br>');
	//  document.write('- <a href="ARO_aromatic_blends.php" ><font color="#486699">Aromatic Blends</font></a><br>');
	//  document.write('- <a href="ARO_aromatherapy_extras.php" ><font color="#486699">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.php" ><font color="#486699">Barrier Cream&#8482;</font><br>');
	  document.write('</a> - <a href="bath_closeShaveGel.php" ><font color="#486699">Close&reg;                              Shaving Gel</font><br>');
	  document.write('</a> - <a href="bath_bubbleBath.php" ><font color="#486699">Indulge&#8482;                              Bubble Bath</font><br>');
	  document.write('</a> - <a href="bath_refresh.php" ><font color="#486699">Refresh&#8482; Bath ');
	  document.write('& <br>');
         document.write('&nbsp;                              Shower Gel</font><br>');
	  document.write('</a> - <a href="body_deodorant.php" ><font color="#486699">Subdue&#8482;                              Deodorant </font><br>');
	  document.write('</a> - <a href="body_tenderCare.php" ><font color="#486699">Tender Care&#8482;</font><br>');
         document.write(''); 

	  document.write('</a> - <a href="bath_refresh_bar.php" ><font color="#486699">Refresh&#8482; Body Bar</font> </a>  ');
         document.write(' </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.php" ><font color="#486699">Shampoo</font></a><br>');
	  document.write('- <a href="Hair_condition.php" ><font color="#486699">Condition</font></a><br>');
	  document.write('- <a href="Hair_style.php" ><font color="#486699">Style</font><br>');
	  document.write('</a>');
	  document.write('- <a href="Hair_treatment.php" ><font color="#486699">Treatment</font></a><br>');
	  document.write('- <a href="Hair_keratonics.php" ><font color="#486699">Keratonics&#8482; Treatment and<br> ');
	  document.write('&nbsp;&nbsp;Styling Products </font></a><br>');
	  document.write('- <a href="Hair_keratonics_shampoo.php" ><font color="#486699">Keratonics&#8482;  Specialty Shampoo</a></font><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.php" ><font color="#486699">Lush Lashes & Nails</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.php" ><font color="#486699">Eliminator&reg; Mouthwash</font><br>');
	  document.write('</a> ');
	  document.write('- <a href="dental_toothpaste.php" ><font color="#486699">Radiance&reg; Toothpaste</font><br>');
	  document.write('</a>');
	  document.write('- <a href="dental_ultraShine.php" ><font color="#486699">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_anti-aging.php" ><font color="#486699">Anti-Aging</font></a><br>');
	//	document.write('- <a href="skin_cleanse.php" ><font color="#486699">Cleanse</font></a><br>');//
//		document.write('- <a href="skin_complexion_Balance.php" ><font color="#486699">Complexion Balancing System</font></a><br>');
		document.write('- <a href="skin_rejuvenate.php" ><font color="#486699">Rejuvenate</font></a> ');
	//	document.write('<br>');
	//	document.write('- <a href="skin_activate.php" ><font color="#486699">Activate</font></a> ');
		document.write('<br>');
		document.write('- <a href="skin_moisturizer.php" ><font color="#486699">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.php" ><font color="#486699">Lipceutical.</font></a><br>');
	  document.write('- <a href="sun_Rebound.php" ><font color="#486699">Rebound.</font></a><br>');
	  document.write('- <a href="sun_Sunbero.php" ><font color="#486699">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="#486699">Complexion Products  </font></a><br>');
	  document.write('- <a href="tru_color.php" ><font color="#486699">Color Products</font></a><br>');
	  document.write('- <a href="tru_lip.php" ><font color="#486699">Lip Products </font></a><br>');
	  document.write('- <a href="tru_lash.php" ><font color="#486699">Lash Products</font><br>');
	  document.write('</a> - <a href="tru_precision.php" ><font color="#486699">Precision Products </font></a><br>');
	  document.write('- <a href="tru_finishing.php" ><font color="#486699">Finishing Products </font></a><br>');
	  document.write('</span>'); 
//	  document.write('</div>');

          document.write('<div class="navbar">'); 
	  document.write("<div class=menutitle onclick=SwitchMenu('sub0')>True Touch&#8482; Skin Care </div>");
	  document.write('<span class="submenu" id="sub0">');
          document.write('- <a href="tru_cleanse.php" ><font color="#486699">Cleanse Your Skin  </font></a><br>');
	  document.write('- <a href="tru_clarify.php" ><font color="#486699">Clarify</font></a><br>');
	  document.write('- <a href="tru_reprogram_skin.php" ><font color="#486699">Reprogram Your Skin </font></a><br>');
	  document.write('- <a href="tru_restoring_skin.php" ><font color="#486699">Restoring Your Skin</font><br>');
	  document.write('</span></div>'); 
	  document.write('</div>');
document.write('</div>');



