<!--

/* 
  This JavaScript code, and all associated software and file structures, calling or called 
  by this code, are copyrighted material, and may not be copied or duplicated in any manner 
  whatsoever without prior written authorization.  All applicable trademarks, registrations, 
  & copyrights are property of Phil Astrella, Registry Enterprises.
*/


var thisLoc		= ""+document.location;
var thisDocRef		= escape(""+document.referrer);

if (thisLoc.toLowerCase().indexOf("http://") == 0) 
  { var onlineFlag = 1 } else { var onlineFlag = 0 };


if ((onlineFlag) && (thisLoc.toLowerCase().indexOf("www.") != 7)) 
  { location.href = "http://www."+thisLoc.substring(7,thisLoc.length) };


window.defaultStatus	= "Welcome to "+document.title;

var thisDomain		= "sedonaworldwide.com/";
var thisDomainDir	= thisDomain+"sedonaspa/";
var baseDOM		= "www."+thisDomainDir;
var sitePath		= "http://"+baseDOM;

var redirectDomain	= "sedonaspa.com";
var redirectDOM		= "www."+redirectDomain;
var redirectPath	= "http://"+redirectDOM;

var ssAddress		= "<nobr>3840 N. 16th St, Phoenix, AZ 85016</nobr>";
var ssPhone		= "<nobr>(602)263-9600 &#149; (800)RED-ROCK</nobr>";
var ssEmailTo		= "info@sedonaspa.com; info@sedonaworldwide.com";
var ssEmailCC		= "webmaster@sedonaworldwide.com";
var ssEmailAskMary	= "ssmary@sedonaworldwide.com";
var ssEmailRedirect	= "info@"+redirectDomain;

	// alias "ssmary" = "mmal@ilxresorts.com, mmartori@ilxresorts.com, registry@sedona.net"

var ssCartID		= "s-1319";
var ssFormOpenString	= "<form action='http://www.cartserver.com/sc/cart.cgi' method='POST' "
			+ "style='margin-top:0px; margin-bottom:0px'>";

screenWdefault		= 750;
screenW			= 0;
screenW			= Math.abs(screen.width);
if (screenW > 0)		{ screenW -= 50 };
if (screenW < screenWdefault)	{ screenW = screenWdefault };

screenHdefault		= 480;
screenH			= 0;
screenH			= Math.abs(screen.height);
if (screenH > 0)		{ screenH -= 120 };
if (screenH < screenHdefault)	{ screenH = screenHdefault };



// PLATFORM & BROWSER DETECTION:

var bxua	= navigator.userAgent;
var bxav	= navigator.appVersion;
var bxvn	= parseFloat(bxav);
var bxan	= navigator.appName;
var bxcn	= navigator.appCodeName;
var bxpt	= navigator.platform;
var bxck	= navigator.cookieEnabled;
var bxln	= navigator.language;
var bxsl	= navigator.systemLanguage;
var bxul	= navigator.userLanguage;
var bxmt	= navigator.mimeTypes;
var bxpl	= navigator.plugins;

var isMac	= (bxua.indexOf("Mac") > -1)					? 1 : 0 ;
var isApple	= (bxua.indexOf("Apple") > -1)					? 1 : 0 ;
var isSafari	= (bxua.indexOf("Safari") > -1)					? 1 : 0 ;

var isOpera	= (bxua.indexOf("Opera") > -1)					? 1 : 0 ; 

var isFirefox	= (bxua.indexOf("Firefox") > -1)				? 1 : 0 ;

var isIE	= ((!isOpera) && ((bxua.toUpperCase().indexOf("MSIE") > -1) ||
		    (bxan.indexOf("Microsoft Internet Explorer") > -1)))	? 1 : 0 ;
var isMinIE3	= ((document.all) && (Math.abs(bxvn) >= 3))			? 1 : 0 ;
var isMinIE4	= ((document.all) && (Math.abs(bxvn) >= 4))			? 1 : 0 ;
var isMinIE5	= (isMinIE4) ? bxav.toUpperCase().indexOf("MSIE ") : -1 ;
    isMinIE5	= (isMinIE5 != -1) 
		? parseFloat(bxav.substring(isMinIE5+5,bxav.length)) : 0 ;
var isIEVers	= (Math.abs(isMinIE5) > 0) ? Math.abs(isMinIE5) : 0 ;
    isMinIE5	= (isIEVers > 0)						? 1 : 0 ;
var isOldIE	= ((isIE) && (!document.getElementById))			? 1 : 0 ;
var isNewIE	= ((isIE) && (document.getElementById))				? 1 : 0 ;

var isNS	= (bxan.indexOf("Netscape") > -1)				? 1 : 0 ;
var isMinNS4	= ((isNS) && (Math.abs(bxvn) >= 4))				? 1 : 0 ;
var isMinNS6	= ((isMinNS4) && (document.getElementById))			? 1 : 0 ;
var isOldNS	= ((isNS) && (!document.getElementById))			? 1 : 0 ;
var isNewNS	= ((isNS) && (document.getElementById) && (!isOpera))		? 1 : 0 ;

var isCurrent	= (document.getElementById)					? 1 : 0 ;

var isDHTML	= ((isCurrent) || (document.all) || (document.layers))		? 1 : 0 ;


function showPlatform()
  {
    alert("UserAgent \t= "	+bxua				+ "\n"
	+ "AppVersion \t= "	+bxav				+ "\n"
	+ "AppName \t= "	+bxan				+ "\n\n"
	+ "VersionNumber \t= "	+bxvn				+ "\n"
	+ "AppCodeName \t= "	+bxcn				+ "\n"
	+ "Platform \t\t= "	+bxpt				+ "\n"
	+ "CookieEnabled \t= "	+bxck				+ "\n"
	+ "Language \t= "	+bxln				+ "\n"
	+ "SystemLanguage \t= "	+bxsl				+ "\n"
	+ "UserLanguage \t= "	+bxul				+ "\n"
	+ "MimeTypes \t= "	+bxmt				+ "\n"
	+ "Plugins \t\t= "	+bxpl				+ "\n\n"
	+ "isMac = "		+isMac				+ "\n"
	+ "isApple = "		+isApple			+ "\n"
	+ "isSafari = "		+isSafari			+ "\n\n"
	+ "isOpera = "		+isOpera			+ "\n\n"
	+ "isFirefox= "		+isFirefox			+ "\n\n"
	+ "isIE = "		+isIE				+ "\n"
	+ "isOldIE = "		+isOldIE			+ "\n"
	+ "isNewIE = "		+isNewIE			+ "\n"
	+ "isMinIE3 = "		+isMinIE3			+ "\n"
	+ "isMinIE4 = "		+isMinIE4			+ "\n"
	+ "isMinIE5 = "		+isMinIE5+" ("+isIEVers+")"	+ "\n\n"
	+ "isNS = "		+isNS				+ "\n"
	+ "isOldNS = "		+isOldNS			+ "\n"
	+ "isNewNS = "		+isNewNS			+ "\n"
	+ "isMinNS4 = "		+isMinNS4			+ "\n"
	+ "isMinNS6 = "		+isMinNS6			+ "\n\n"
	+ "isCurrent = "	+isCurrent			+ "\n"
	+ "isDHTML = "		+isDHTML			+ "\n"
	);
  }




// MISC VARIABLES:

   // group titles:

   var bodyTitle	= "Body Care";
   var faceTitle	= "Face Care";
   var giftTitle	= "Gifts/Travel Packs";
   var hairTitle	= "Hair Care";

   // date conversion arrays:

   var dayList = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
   var monthList = new Array("January","February","March","April","May","June",
				"July","August","September","October","November","December");



// PRODUCT SEARCH FORM (used in page headers):

var searchDefault = "..find what?";

function setupSearch()
  {
    searchButtOver	= new Image();
    searchButtOver.src	= "images/button_search_over.gif";
    searchButtOut	= new Image();
    searchButtOut.src	= "images/button_search.gif";

    document.write("<div style='font-family:arial,verdana; font-size:8pt; font-weight:normal; "
    + "color:snow; margin-top:0px; margin-bottom:0px; margin-left:2px; margin-right:2px; "
    + "height:40px; overflow:hidden'>"
      + "<form name='searchForm' method='get' action='search.html'>"
	+ "<table border=0 cellspacing=0 cellpadding=0 "
	+ "style='font-family:arial,verdana; font-size:9pt; font-weight:normal; color:snow'>"
	  + "<tr align=center valign=top>"
	    + "<td nowrap>"
	      + "Find:&nbsp; <input name='searchString' type=text size=12 maxlength=12 "
		+ "value='"+searchDefault+"' "
		+ "style='font-family:verdana,arial; font-size:8pt; font-weight:normal; "
		  + "color:navy; background-color:#ffffb0; "
		  + "border-width:1px; border-color:black' "
		+ "onFocus=\"this.value=''\" "
		+ "onBlur=\"if(this.value.length<1){this.value=searchDefault}\"> &#187; "
	      + "<input type=image src='images/button_search.gif' border=0 width=55 height=17 "
		+ "alt='Identify &amp; show matching products' align=absmiddle name='' "
		+ "onMouseOver=\"this.src=searchButtOver.src\" "
		+ "onMouseOut=\"this.src=searchButtOut.src\"><br>"
	      + "<span style='font-family:verdana,arial; font-size:7pt; color:snow'>"
		+ "(enter any part of product description)"
	      + "</span>"
	    + "</td>"
	  + "</tr>"
	+ "</table>"
      + "</form>"
    + "</div>")
  }



// FAVORITES SETUP

var faviconPath = sitePath + "favicon.ico" ;

favicon		= new Image() ;
favicon.src	= faviconPath ;

if (isCurrent) { document.write("<LINK REL='SHORTCUT ICON' HREF='" + faviconPath + "'>") } ;

function addFavBookmark()
  {
    if (window.sidebar)  // FireFox
      {
	document.write("<a "
	+ "href='javascript:window.sidebar.addPanel(document.title,location.href,\"\")' "
	+ "onMouseOver=\"window.status='Firefox: Add &quot;" + document.title 
	+ "&quot; to your favorites'; return true\" title='click here to add \""
	+ document.title +"\" to your favorites'>"
	+ "<font size=1 color=dimgray face='arial,tahoma,verdana'><nobr>"
	+ "<u>Add</u> this page to your favorites</nobr></font></a><br>")
      } else
    if ((window.opera)&&(window.print))  // Opera
      {
	var oLink = document.createElement("a");
	oLink.setAttribute("rel","sidebar");
	oLink.setAttribute("href",location.href);
	oLink.setAttribute("title",document.title);
	oLink.click();
      } else
    if (isIE)
      {
	document.write("<a "
	+ "href='javascript:window.external.AddFavorite(location.href,document.title)' "
	+ "onMouseOver=\"window.status='Add &quot;" + document.title 
	+ "&quot; to your favorites'; return true\" title='click here to add \""
	+ document.title +"\" to your favorites'>"
	+ "<font size=1 color=dimgray face='arial,tahoma,verdana'><nobr>"
	+ "<u>Add</u> this page to your favorites</nobr></font></a><br>")
      }	else
      {
	document.write("<font size=1 color=deepskyblue face='verdana,tahoma,arial'>"
	+ "<nobr>Hit <font color=gold>&quot;Ctrl-D&quot;</font> to "
	+ "<font color=red>Bookmark</font> this page<i>!</i></nobr></font><br>")
      }
  }



// SET HOMEPAGE

function makeHome(mhVisible)
  {
    if (isNewIE)
      {
	var homeDoc = ""+document.location;
	document.write("<a href='"+homeDoc+"' "
		+ "title='Click here to make &quot;"+document.title+"&quot; your Home Page' "
		+ "onMouseOver='window.status=\"Click to change your Home Page to: "+homeDoc
		+ "\"; return true'; onClick='this.style.behavior=\"url(#default#homepage)\"; "
		+ "this.setHomePage(\""+homeDoc+"\")'>"+mhVisible+"</a><br>")
      } else
      { document.write("") };
  }



// ACCESS STATISTICS

function showTracker()  // EXTREME-DM
  {
	document.write("<a href='http://t.extreme-dm.com/?login=sedspa' target='_blank' "
	  + "onMouseOver=\"window.status=''; return true\"><img name=im "
	  + "src='http://t1.extreme-dm.com/i.gif' alt='' border=0 width=41 height=38 "
	  + "style='filter:alpha(style=0,opacity=25); cursor:default'></a>");
	an=navigator.appName;
	srb="na";
	srw="na";
	// Begin JavaScript2
		s=screen;
		srw=s.width;
		an!="Netscape"?srb=s.colorDepth:srb=s.pixelDepth;
	// End JavaScript2
	r=41;
	document.images?r=document.im.width:z=0;
	document.write("<img src='http://t0.extreme-dm.com/0.gif"
		+ "?tag=sedspa"
		+ "&j=y"
		+ "&srw=" + srw 
		+ "&srb=" + srb 
		+ "&rs=" + r 
		+ "&l=" + escape(document.referrer) 
		+ "' alt='' height=1 width=1>")
  }


var sc_project, sc_invisible, sc_partition, sc_security ; 

function runStatCounter()  // STATCOUNTER 
  {
    sc_project=2709365; 
    sc_invisible=0; 
    sc_partition=24; 
    sc_security="9a1ed140"; 
    document.write("<script type='text/javascript' language='javascript' src='http://www.statcounter.com/counter/counter.js'></script>");
    document.write("<a href='http://www.statcounter.com' target='_blank' style='cursor:default' onMouseOver=\"window.status=''; return true\">"
	+ "<img src='images/LogoColor_40x40.jpg' alt='' border=0 width=40 height=40 "
	+ "style='margin-right:2px; filter:alpha(style=0,opacity=40); cursor:default'></a>");

    /* separate noscript code for html pages:
	<noscript>
	  <a href="http://www.statcounter.com/" target="_blank"><img  
	    src="http://c25.statcounter.com/counter.php?sc_project=2709365&amp;java=0&amp;security=9a1ed140&amp;invisible=0" 
	    alt="free hit counter" border="0"></a> 
	</noscript>
    */
  }



// Add This:

var addthis_config = { ui_cobrand: "Sedona Spa&reg;", ui_header_color: "#800000", ui_header_background: "#ffcccc" }

function showAddThis(atp)
  {
    var atPos = ((!atp) || ((atp != "left") && (atp != "center") && (atp != "right"))) ? "left" : ""+atp ;
    document.write("<div align="+atPos+" style=\"margin:5px\">"
      + "<a class=\"addthis_button\" href=\"http://www.addthis.com/bookmark.php?v=250&amp;pub=sedonaspa\">"
	+ "<img src=\"http://s7.addthis.com/static/btn/v2/lg-share-en.gif\" width=125 height=16 border=0 alt=\"Bookmark and Share\" style=\"border:0\"></a>"
      + "<script type=\"text/javascript\" src=\"http://s7.addthis.com/js/250/addthis_widget.js#pub=sedonaspa\"></script>"
      + "</div>");
  }





// COOKIE MANAGEMENT

var refCookieName	= "SWWreferrer";
var entCookieName	= "SWWentry";

function setCookie(scName,scValue,scDays)
  {
    if ((scName.length > 0) && (scValue.length > 0))
      {
	var expDays = ((!scDays) || (isNaN(scDays))) ? 0 : scDays ;
	var expDate = new Date();
	expDate.setTime(expDate.getTime()+(expDays*24*60*60*1000)); 
	document.cookie = scName+"="+scValue+"; expires="+expDate.toGMTString();
      }
  }

function getCookie(gcName)
  {
    var cNameEqual	= gcName+"=";
    var cArray		= document.cookie.split(";");
    for (cx = 0 ; cx < cArray.length ; cx++)
      {
	var cRec = cArray[cx];
	while (cRec.charAt(0) == " ") 
	  { cRec = cRec.substring(1,cRec.length) };
	if (cRec.indexOf(cNameEqual) == 0) 
	  { return cRec.substring(cNameEqual.length,cRec.length) };
      }
    return null
  }

function deleteCookie(dcName)
  {
    setCookie(dcName,"?",-1)
  }

function cookiesEnabled()
  {
    var cookieEnabled = 0;
    if (isCurrent) { cookieEnabled = (bxck) ? 1 : 0 } ;
    if ((!cookieEnabled) || (isNaN(cookieEnabled)))
      {
	document.cookie = "SWWtestcookie";
	cookieEnabled = (document.cookie.indexOf("SWWtestcookie") != -1) ? 1 : 0 ;
      }
    return cookieEnabled
  }

function setRefCookie()
  {
    if (thisDocRef.indexOf(thisDomainDir) == -1)
      {
	setCookie(refCookieName,thisDocRef,1);
	setCookie(entCookieName,thisLoc,1);
      }
  }





// PAGE FOOTERS

function showFooter(sfFormat,sfPrefix,sfColor) // footerFormat, fileLocation, textColor
  {
    setRefCookie();
    var sfRef	= unescape(getCookie(refCookieName));
    var sfEnt	= unescape(getCookie(entCookieName));

    var sfEmail	= "<a href='mailto:"+ssEmailTo
		+ "?subject=Online Inquiry ("+document.title+")"
		+ "&cc="+ssEmailCC+"' title='Send email to Sedona Spa' "
		+ "style='color:"+sfColor+"'>info@"+redirectDomain+"</a>";

    var sfURL	= "<a href='"+redirectPath+"' title='Go to the Sedona Spa website' "
		+ "style='color:"+sfColor+"'>"+redirectDOM+"</a>";

    var sfUser	= "<nobr>&nbsp; <a onMouseOver=\"window.status='User Data'; return true\" "
		+ "style=\"color:"+sfColor+"; cursor:crosshair\" href=\"javascript:alert('"
		+ "User Page = "+document.location+",    "
		+ "Page Title = &quot;"+document.title+"&quot;,    "
		+ "User Agent = "+bxua+",    "
		+ "Application Name = "+bxan+",    "
		+ "Application Version = "+bxav+",    "
		+ "Referrer = "+sfRef+",    Site Entry = "+sfEnt+"')\" "
		+ "title='User Data'><b>&#149;</b></a> &nbsp;</nobr>";

    var sfCell	= document.getElementById("footerCell");

    /*
    if (sfCell)
      {
	sfCell.style.position="relative";
	sfCell.style.left="0px";
	sfCell.style.top="-15px";
      }
    */

    if (sfFormat == 1)
      {
	footerCell.background = "images/"+sfPrefix+"_C.gif";
	document.write("<table width=100% border=0 cellspacing=0 cellpadding=0>"
		+ "<tr align=center valign=middle>"
		+ "<td width=190 nowrap>"
		  + "<font size=4 color='"+sfColor+"' face='arial,tahoma,verdana'>"
		  + "<b>Sedona Spa</b><sup>&reg;</sup></font></td>"
		+ "<td nowrap class='footer1'><font color='"+sfColor+"'>Copyright "
		+ getDate("copyright")+", Sedona Spa<sup><b>&reg;</b></sup>"+sfUser
		+ "All rights reserved. &nbsp;&#149;&nbsp; "+sfURL+"<br>"
		+ ssAddress+" &#149; "+ssPhone+" &#149; "+sfEmail+"</font></td></tr></table>")
      } else
    if (sfFormat == 2)
      {
	footerCell.background = "images/"+sfPrefix+"_C.jpg";
	document.write("<table width=100% border=0 cellspacing=0 cellpadding=0>"
		+ "<tr align=center valign=middle><td width=190>&nbsp;</td>"
		+ "<td nowrap class='footer1'><font color='"+sfColor+"'>Copyright "
		+ getDate("copyright")+", Sedona Spa<sup><b>&reg;</b></sup>"+sfUser
		+ "All rights reserved. &nbsp;&#149;&nbsp; "+sfURL+"<br>"
		+ ssAddress+" &#149; "+ssPhone+" &#149; "+sfEmail+"</font></td></tr></table>")
      } else
      {
	document.write("<table width=100% border=0 cellspacing=0 cellpadding=0>"
		+ "<tr align=center valign=middle><td width=190>&nbsp;</td>"
		+ "<td nowrap class='footer1'><font color='"+sfColor+"'>Copyright "
		+ getDate("copyright")+", Sedona Spa.<sup>&reg;</sup>"+sfUser
		+ "All rights reserved.</font></td></tr></table>")
      }
  }



// MISC FUNCTIONS

function getDate(gdFormat)
  {
	var baseYear	= 2000;
	var ampm	= "PM";
	var newDate	= new Date();
	var currDay	= newDate.getDay();
	var currMonth	= newDate.getMonth();
	var currDate	= newDate.getDate();
	var currYear	= newDate.getYear();
	var currHr	= newDate.getHours();
	var currMin	= newDate.getMinutes();
	var currSec	= newDate.getSeconds();
	if (currYear < 1900)	{ currYear += 1900 };
	if (currHr < 12)	{ ampm = "AM" };
	if (currHr > 12)	{ currHr -= 12 };
	if (currHr < 10)	{ currHr = "&nbsp;" + currHr };
	if (currMin < 10)	{ currMin = "0" + currMin };
	if (currSec < 10)	{ currSec = "0" + currSec };

	var partYear = ""+currYear;
	partYear = partYear.substring(partYear.length-2,partYear.length);

	var dateFormatShort = ""+(currMonth+1)+"/"+currDate+"/"+partYear;

	var dateFormatMedium = ""+dayList[currDay]+", "+monthList[currMonth]
		+" "+currDate+", "+currYear;

	var dateFormatLong = ""+dayList[currDay]+", "+monthList[currMonth]
		+" "+currDate+", "+currYear+" "+currHr+":"+currMin+" "+ampm;

	if ((!gdFormat) || (gdFormat.length < 1) || (gdFormat.toLowerCase() == "all"))
	  { return "<nobr>"+dateFormatShort+" &#149; "+dateFormatLong+"</nobr>"		} else
	if (gdFormat.toLowerCase() == "short")
	  { return "<nobr>"+dateFormatShort+"</nobr>"					} else
	if (gdFormat.toLowerCase() == "medium")
	  { return "<nobr>"+dateFormatMedium+"</nobr>"					} else
	if (gdFormat.toLowerCase() == "long")
	  { return "<nobr>"+dateFormatLong+"</nobr>"					} else
	if (gdFormat.toLowerCase() == "copyright")
	  { if (currYear > baseYear)
	    {return "&copy; "+baseYear+"-"+currYear} else {return "&copy; "+currYear}	} else
	if (gdFormat.toLowerCase() == "season")
	  { if ((currMonth == 11) || (currMonth == 0) || (currMonth == 1))
	      { return "Winter" } else
	    if ((currMonth >= 2) && (currMonth <= 4))
	      { return "Spring" } else
	    if ((currMonth >= 5) && (currMonth <= 7))
	      { return "Summer" } else
	    if ((currMonth >= 8) && (currMonth <= 10))
	      { return "Autumn" } else
	      { return ""+monthList[currMonth]+" "+currYear }				} else
	if (gdFormat.toLowerCase() == "year")
	  { return ""+currYear								} else
	if ((gdFormat.toLowerCase() == "month") || (gdFormat.toLowerCase() == "monthname"))
	  { return ""+monthList[currMonth]						} else
	if ((gdFormat.toLowerCase() == "monthnum") || (gdFormat.toLowerCase() == "monthnumber"))
	  { return ""+currMonth								} else
	if (gdFormat.toLowerCase() == "day")
	  { return ""+currDate								} else
	if (gdFormat.toLowerCase() == "dayname")
	  { return ""+dayList[currDay]							} else
	if (gdFormat.toLowerCase() == "hour")
	  { return ""+currHr								} else
	if (gdFormat.toLowerCase() == "minute")
	  { return ""+currMin								} else
	if (gdFormat.toLowerCase() == "second")
	  { return ""+currSec								} else
	  { return "<nobr>" + dateFormatShort + " &#151; " + dateFormatLong + "</nobr>"	} ;
  }


function validateDate(vdY,vdM,vdD)
  {
    if ((!vdY) || (!vdM) || (!vdD) 				|| 
	(isNaN(vdY)) || (isNaN(vdM)) || (isNaN(vdD)) 		||
	(Math.abs(vdY) < 1970) || (Math.abs(vdY) > 9999)	||
	(Math.abs(vdM) < 1) || (Math.abs(vdM) > 12)		||
	(Math.abs(vdD) < 1) || (Math.abs(vdD) > 31))		{ return false };

    var yy = Math.abs(vdY);
    var mm = Math.abs(vdM);
    var dd = Math.abs(vdD);

    if (mm == 2) 
      {
	if (((yy%4) == 0) && (dd > 29))	{ return false };
	if (((yy%4) != 0) && (dd > 28))	{ return false };
      }

    if (((mm == 4) || (mm == 6) || (mm == 9) || (mm == 11)) && (dd > 30)) { return false };

    return true;
  }


function getPageName()
  {
    var pageName = ""+document.location;
    pageName 	= (pageName.indexOf("#") == -1) 			? ""+pageName 	
		: pageName.substring(0,pageName.indexOf("#")) ;
    pageName 	= (pageName.indexOf("?") == -1) 			? ""+pageName 	
		: pageName.substring(0,pageName.indexOf("?")) ;
    pageName 	= (pageName.lastIndexOf("/") != (pageName.length-1)) 	? ""+pageName 	
		: pageName+"index.html" ;
    pageName 	= (pageName.indexOf(".html") != (pageName.length-5)) 	? ""+pageName 	
		: pageName.substring(0,pageName.indexOf(".html")) ;
    pageName 	= (pageName.indexOf(".php")  != (pageName.length-4)) 	? ""+pageName 	
		: pageName.substring(0,pageName.indexOf(".php")) ;
    pageName 	= (pageName.indexOf("/") == -1) 			? ""+pageName 	
		: pageName.substring(pageName.lastIndexOf("/")+1,pageName.length) ;
    return pageName
  }


function getPageVars()
  {
    var pageVars	= ""+document.location;
	pageVars	= (pageVars.indexOf("?") == -1) ? ""
			: pageVars.substring(pageVars.indexOf("?"),pageVars.length);
    return pageVars
  }


function getPageAnchor()
  {
    var pageAnchor	= ""+document.location;
	pageAnchor	= (pageAnchor.indexOf("#") == -1) ? ""
			: pageAnchor.substring(pageAnchor.lastIndexOf("#")+1,pageAnchor.length);
    return pageAnchor
  }


function getQueryData()
  {
    var qd	= ""+unescape(location.search);
    	qd	= (qd.indexOf("#") != -1)
		? qd.substring(0,qd.indexOf("#")) : ""+qd ;
    var qdGroup	= (qd.indexOf("?prodGroup=") != -1)
		? qd.substring(qd.indexOf("?prodGroup=")+11,qd.length) : "" ;
    var qdName	= (qdGroup.indexOf("&prodName=") != -1)
		? qdGroup.substring(qdGroup.indexOf("&prodName=")+10,qdGroup.length) : "" ;
    var qdGroup	= (qdGroup.indexOf("&prodName=") != -1)
		? qdGroup.substring(0,qdGroup.indexOf("&prodName=")) : ""+qdGroup ;
    return qdGroup+"_"+qdName
  }


function formatCurrency(fc)
  {
    if (!isNaN(fc))
      {
	if (fc.indexOf(".") == -1)
	  { return "$"+insertCommas(fc+".00") 	} else
	  { return "$"+insertCommas(fc) 	} 
      }
  }


function insertCommas(ic)
  {
	var ics = ""+ic ;
	if (ics.indexOf(".") != -1)
	  {
	    var icCents	= ics.substring(ics.lastIndexOf("."),ics.length);
	    if (icCents.length < 2) { icCents += "00" };
	    if (icCents.length < 3) { icCents += "0" };
	    if (icCents.length > 3) { icCents = icCents.substring(0,3) };
	    ics = ics.substring(0,ics.lastIndexOf("."));
	    while (ics.indexOf(".") != -1)
	      {
		ics	= ics.substring(0,ics.indexOf("."))
			+ ics.substring(ics.indexOf(".")+1,ics.length)
	      }
	  } else
	  { var icCents	= "" };
	for (icx = ics.length-3 ; icx > 0 ; icx = (icx-3))
	  { ics = ics.substring(0,icx) + "," + ics.substring(icx,ics.length) };
	return ics+icCents
  }


function discountPrice(dpRegular,dpPercent)
  {
    if ((isNaN(dpRegular)) || (isNaN(dpPercent)) || (Math.abs(dpPercent) > 100))
      { return "" } else
      {	return (Math.round(Math.abs(dpRegular)*(100-Math.abs(dpPercent)))/100) }
  }


function showFroogleGoogle(fgSize,fgColor)
  {
    if ((fgSize != 25) && (fgSize != 40) && (fgSize != 50) && (fgSize != 60)) { var fgSize = 25 };
    if ((fgColor != "wht") && (fgColor != "gry") && (fgColor != "blk")) { var fgColor = "wht" };

    if (fgSize == 25)		{ var fgFS=7,	fgImgW=75,	fgImgH=32	} else
    if (fgSize == 40)		{ var fgFS=9,	fgImgW=128,	fgImgH=53	} else
    if (fgSize == 50)		{ var fgFS=11,	fgImgW=163,	fgImgH=74	} else
    if (fgSize == 60)		{ var fgFS=14,	fgImgW=176,	fgImgH=77	} else
				{ var fgFS=8,	fgImgW=60,	fgImgH=26	} ;

    if (fgColor == "wht")	{ var fgFC = "gray"	} else
    if (fgColor == "gry")	{ var fgFC = "red"	} else
    if (fgColor == "blk")	{ var fgFC = "white"	} else
				{ var fgFC = "black"	} ;

  //var fgHREF	= "http://froogle.google.com/froogle?q=store%3Asedonaworldwide";
  //var fgHREF	= "http://froogle.google.com/froogle?q=+%22sedonaworldwide%22";
    var fgHREF	= "http://froogle.google.com/froogle?q=%22sedona+spa%22";
    var fgBGC	= ""+document.bgColor;
    var fgImgB	= (isCurrent) ? 1 : 0 ;
    var fgImgS	= "http://www.google.com/logos/Logo_"+fgSize+fgColor+".gif";
    var fgImgA	= "Find all Sedona Spa&reg; products at our online store on "
		+ "&quot;Froogle.Google&quot;";

    var imgOpacity = 65;

    document.write("<div align=center style='margin-top:5px; margin-bottom:5px; "
      + "margin-left:5px; margin-right:5px; font-family:verdana,arial; font-size:"+fgFS+"pt; "
      + "font-weight:normal; font-style:normal; color:"+fgFC+"'><nobr>Find Sedona Spa on"
	+ "<a target='_blank' href='"+fgHREF+"' title='"+fgImgA+"'>"
	  + "<img src='"+fgImgS+"' alt='"+fgImgA+"' border="+fgImgB+" hspace=0 vspace=0 "
	    + "align=absmiddle style='filter:alpha(style=0,opacity="+imgOpacity+"); "
	    + "-moz-opacity:"+(imgOpacity/100)+"; border-color:"+fgBGC+"' "
	    + "onMouseOver=\"setOpacity(this,100); this.style.borderColor='red'; "
	      + "window.status='"+fgImgA+"'; return true\" "
	    + "onMouseOut=\"setOpacity(this,"+imgOpacity+"); "
	      + "this.style.borderColor='"+fgBGC+"'\" "
	    + "width="+fgImgW+" height="+fgImgH+">"
	+ "</a></nobr>"
      + "</div>")
  }


function setOpacity(objectID,opacity)
  {
	if (isNS)	{ objectID.style.MozOpacity=Math.abs(opacity/100) } else
			{ objectID.filters.alpha.opacity=opacity };
  }



function thisGroupTestimonials(tgt)
  {
    var tgRec, tgFlag = 0, tgList = eval(tgt.toLowerCase()+"ProdTestimonials");
    if (tgList.length > 1)
      { tgFlag = 1 } else 
      {
	tgList = eval("general"+"Testimonials");
	for (tgx = 0 ; tgx < tgList.length ; tgx++)
	  {
	    if (tgList[tgx].indexOf("::") == -1) { continue };
	    tgRec = tgList[tgx].split("::");
	    if (tgRec[0].toLowerCase() != tgt.toLowerCase()) { continue };
	    tgFlag = 1;
	    break
	  }
      }
    return tgFlag
  }


function thisGroupTips(tgt)
  {
    var tgList = eval(tgt.toLowerCase()+"ProdTips");
    if (tgList.length > 1) { return true } else { return false };
  }


function thisProdTestimonials(tptGroup,tptProd)
  {
    var tpRec, tpKey, tpFlag = 0, tpList = eval(tptGroup.toLowerCase()+"ProdTestimonials");
    if (tpList.length > 1)
      {
	for (tpx = 0 ; tpx < tpList.length ; tpx++)
	  {
	    if (tpList[tpx].indexOf("::") == -1) { continue };
	    tpRec = tpList[tpx].split("::");
	    tpKey = tpRec[0]+";";
	    if (tpKey.indexOf(tptProd+";") == -1) { continue };
	    tpFlag = 1;
	    break
	  }
      }
    return tpFlag
  }


function thisProdTips(tptGroup,tptProd)
  {
    var tpRec, tpFlag = 0, tpList = eval(tptGroup.toLowerCase()+"ProdTips");
    if (tpList.length > 1)
      {
	for (tpx = 0 ; tpx < tpList.length ; tpx++)
	  {
	    if (tpList[tpx].indexOf("::") == -1) { continue };
	    tpRec = tpList[tpx].split("::");
	    if (tpRec[0].indexOf(tptProd) == -1) { continue };
	    tpFlag = 1;
	    break
	  }
      }
    return tpFlag
  }


function thisProdRelated(tprGroup,tprProd)
  {
    var tpRec, tpFlag = 0, tpList = prodList;
    if (tpList.length > 1)
      {
	for (tpx = 0 ; tpx < tpList.length ; tpx++)
	  {
	    if (tpList[tpx].indexOf("::") == -1) { continue };
	    tpRec = tpList[tpx].split("::");
	    if ((tpRec[0].toLowerCase().indexOf(tprGroup.toLowerCase()) != 0) || 
		(tpRec[1].indexOf(tprProd) != 0)) { continue };
	    tpFlag = (tpRec[6].length > 1) ? 1 : 0 ;
	    break
	  }
      }
    return tpFlag
  }



function makeProdLink(mplGroup,mplProd)
  {
    var mplString = "<a style='color:blue' target='_blank' "
		  + "onMouseOver='this.style.color=\"crimson\"' "
		  + "onMouseOut='this.style.color=\"blue\"' "
		  + "href='"+mplGroup.toLowerCase()+"_products.html"
		  + "?prodGroup="
			+ mplGroup.toUpperCase().charAt(0)
			+ mplGroup.toLowerCase().substring(1,mplGroup.length)
		  + "&prodName="+escape(mplProd)+"' "
		  + "title='Click here for \""+mplProd+"\" product information'>"+mplProd+"</a>";
    return mplString
  }


function scrollProducts(spDirection,spBehavior,spWidth,spHeight,spGroup)
  {
    var spFlow		= ((spDirection == "up") || (spDirection == "down")) ? "v" : "h" ;
    var spOpacity	= (spFlow == "v") ? 20 : 25 ;
    var spScrollDelay	= (spFlow == "v") ? 1 : 2 ;
    var spScrollAmount	= (spFlow == "v") ? 2 : 4 ;
    var spMarqVspace	= (spFlow == "v") ? 20 : 10 ;
    var spMarqHspace	= (spFlow == "v") ? 10 : 20 ;
    var spImgVspace	= (spFlow == "v") ? 10 : 5 ;
    var spImgHspace	= (spFlow == "v") ? 10 : 5 ;
    var spGroup		= ((!spGroup) || (spGroup.length != 4)) ? "" : ""+spGroup ;
    if (isIE)
      {
	document.write("<marquee direction='"+spDirection.toLowerCase()+"' behavior='"+spBehavior+"' "
	  + "width="+spWidth+" height="+spHeight+" hspace="+spMarqHspace+" vspace="+spMarqVspace+" "
	  + "scrollamount="+spScrollAmount+" scrolldelay="+spScrollDelay+" loop='infinite' "
	  + "transparency=0 bgColor='"+document.bgColor+"' title='Sedona Spa&reg; Products' "
	  + "onMouseOver=\"this.scrollAmount=0\" "
	  + "onMouseOut=\"if(('"+spDirection+"'=='left')||('"+spDirection+"'=='right'))"
	    + "{if(this.direction=='left'){this.direction='right'}else{this.direction='left'}}; "
	    + "this.scrollAmount="+spScrollAmount+"\">"
	  + "<div align=center>"); 
	var pRec, pIdent, pDesc, pName, pGroup, pSave="";
	for (px = (prodList.length-1) ; px >= 0 ; px--)
    //	for (px = 0 ; px < prodList.length ; px++)
	  {
	    if (prodList[px].indexOf("::") == -1) { continue };
	    pRec	= prodList[px].split("::");
	    pIdent	= pRec[0];
	    pDesc	= pRec[1];
	    pGroup	= pIdent.substring(0,pIdent.indexOf("_"));
	    pName	= (pDesc.indexOf(" - ") == -1) ? ""+pDesc 
			: pDesc.substring(0,pDesc.indexOf(" - "));
	    if ((pName == pSave) || ((spGroup.length > 0) && (spGroup.toLowerCase() != pGroup.toLowerCase()))) { continue };
	    document.write("<a target='_blank' title='"+pName+"' "
	      + "href='"+pGroup.toLowerCase()+"_products.html?prodGroup="+pGroup
	      + "&prodName="+escape(pName)+"'><img border=1 hspace="+spImgHspace+" vspace="+spImgVspace+" "
	      + "src='products/"+pGroup.toLowerCase()+"/"+collapseString(pName)+"_1.jpg' alt='"+pName+"' "
	      + "style='filter:alpha(style=0,opacity="+spOpacity+"); border-color=\"blue\"' "
	      + "onMouseOver='setOpacity(this,100); this.style.borderColor=\"crimson\"' "
	      + "onMouseOut='setOpacity(this,"+spOpacity+"); this.style.borderColor=\"blue\"'>"
	      +"</a>");
	    pSave = pName
	  }
	document.write("</div></marquee>")
      } else
      {
	if (spFlow == "v")
	  { document.write("<div style='line-height:"+(Math.abs(spHeight)+50)+"px'>&nbsp;</div>") } else
	  { document.write("") }
      }
  }




// TITLE BAR CONTENT


function titleBarInfo()
  {
    titleButtNews1	= new Image();
    titleButtNews1.src	= "images/button_newsletter1.gif";
    titleButtOform1	= new Image();
    titleButtOform1.src	= "images/button_orderform1.gif";
    titleButtBroc1	= new Image();
    titleButtBroc1.src	= "images/button_brochure1.gif";
    titleButtBlank1	= new Image();
    titleButtBlank1.src	= "images/button_blank.gif";
    titleButtTrans1	= new Image();
    titleButtTrans1.src	= "images/button_transparent.gif";

    if ((isCurrent) && (titleBarInfo.arguments[0]) && (titleBarInfo.arguments[1]))
      {
	var tbiDir	= titleBarInfo.arguments[0];
	var tbiFile	= titleBarInfo.arguments[1];
	var tbiRemain	= 560;

	document.write("<TD width=760 height=35><IMG border=0 width=760 height=35 vspace=0 hspace=0 align=baseline "
	  + "src='images/"+tbiDir+"/"+tbiFile+"_C.jpg' style='position:relative; top:0px; left:0px; z-index:1'>"
	  + "<table border=0 width=570 height=35 cellspacing=0 cellpadding=0 "
	    + "style='position:relative; top:-35px; left:190px; z-index:2'>"
	    + "<tr align=center valign=middle><td style='font-size:6pt'>&nbsp;</td>");

	for (tbx = 1 ; tbx < titleBarInfo.arguments.length ; tbx++)
	  {
	    if ((!titleBarInfo.arguments[tbx]) || (titleBarInfo.arguments[tbx].length < 1)) { continue };

	    if (titleBarInfo.arguments[tbx] == "newsletter")
	      {
		var thisWidth = 72;
		if (tbiRemain >= thisWidth)
		  {
		    document.write("<td width="+thisWidth+"><a target='_blank' "
		      + "href='about_home.html#News' title='Access current &amp; previous Sedona Spa&reg; Newsletters'>"
		      + "<IMG border=0 width=67 height=20 hspace=0 vspace=0 align=baseline "
		      + "alt='Access current &amp; previous Sedona Spa&reg; Newsletters' src='"+titleButtNews1.src+"' "
		      + "style='z-index:3; filter:alpha(style=0,opacity=50)' "
		      + "onMouseOver=\"this.filters.alpha.opacity=100; "
			+ "window.status='Read current &amp; previous Sedona Spa&reg; Newsletters'; return true\" "
		      + "onMouseOut=\"this.filters.alpha.opacity=50\"></a></td>");
		    tbiRemain -= thisWidth
		  } else
		  {
		    alert("No more space for \""+titleBarInfo.arguments[tbx]+"\" in this title bar");
		    break
		  }
	      }
	    if (titleBarInfo.arguments[tbx] == "orderform")
	      {
		var thisWidth = 72;
		if (tbiRemain >= thisWidth)
		  {
		    document.write("<td width="+thisWidth+"><a target='_blank' "
		      + "href='orderform.html' title='Create a printable order form'>"
		      + "<IMG border=0 width=67 height=20 hspace=0 vspace=0 align=baseline "
		      + "alt='Create a printable order form' src='"+titleButtOform1.src+"' "
		      + "style='z-index:3; filter:alpha(style=0,opacity=50)' "
		      + "onMouseOver=\"this.filters.alpha.opacity=100; "
			+ "window.status='Create a Printable Order Form'; return true\" "
		      + "onMouseOut=\"this.filters.alpha.opacity=50\"></a></td>");
		    tbiRemain -= thisWidth
		  } else
		  {
		    alert("No more space for \""+titleBarInfo.arguments[tbx]+"\" in this title bar");
		    break
		  }
	      }

	    if (titleBarInfo.arguments[tbx] == "brochure")
	      {
		var thisWidth = 72;
		if (tbiRemain >= thisWidth)
		  {
		    document.write("<td width="+thisWidth+"><a target='_blank' "
		      + "href='brochure.html' title='Create a printable product brochure'>"
		      + "<IMG border=0 width=67 height=20 hspace=0 vspace=0 align=baseline "
		      + "alt='Create a printable product brochure' src='"+titleButtBroc1.src+"' "
		      + "style='z-index:3; filter:alpha(style=0,opacity=50)' "
		      + "onMouseOver=\"this.filters.alpha.opacity=100; "
			+ "window.status='Create a Printable Product Brochure'; return true\" "
		      + "onMouseOut=\"this.filters.alpha.opacity=50\"></a></td>");
		    tbiRemain -= thisWidth
		  } else
		  {
		    alert("No more space for \""+titleBarInfo.arguments[tbx]+"\" in this title bar");
		    break
		  }
	      }

	    if (titleBarInfo.arguments[tbx] == "blank")
	      {
		var thisWidth = 75;
		if (tbiRemain >= thisWidth)
		  {
		    document.write("<td width="+thisWidth+">"
		      + "<IMG border=0 width=67 height=20 hspace=0 vspace=0 align=baseline "
		      + "alt='blank button' src='"+titleButtBlank1.src+"' "
		      + "style='z-index:3; filter:alpha(style=0,opacity=50)' "
		      + "onMouseOver=\"this.filters.alpha.opacity=100\" onMouseOut=\"this.filters.alpha.opacity=50\"></td>");
		    tbiRemain -= thisWidth
		  } else
		  {
		    alert("No more space for \""+titleBarInfo.arguments[tbx]+"\" in this title bar");
		    break
		  }
	      }

	    if (titleBarInfo.arguments[tbx] == "transparent")
	      {
		var thisWidth = 75;
		if (tbiRemain >= thisWidth)
		  {
		    document.write("<td width="+thisWidth+">"
		      + "<IMG border=0 width=67 height=20 hspace=0 vspace=0 align=baseline "
		      + "alt='transparent button' src='"+titleButtTrans1.src+"' "
		      + "style='z-index:3'></td>");
		    tbiRemain -= thisWidth
		  } else
		  {
		    alert("No more space for \""+titleBarInfo.arguments[tbx]+"\" in this title bar");
		    break
		  }
	      }

	  }
	document.write("<td width=2 style='font-size:6pt'>&nbsp;</td></tr></table></TD>")
      }
  }




// STRING MANIPULATION

specChars = new Array(
	"&amp;::&",	"&nbsp;:: ",	"&quot;::\"",	"&lt;::<",	"&gt;::>",
	"&copy;::©",	"&reg;::®",	"&#145;::'",	"&#146;::'",	"&#147;::\"",
	"&#148;::\"",	"&#149;::-",	"&#150;::-",	"&#151;::--",	"&#153;::™",
	"&#171;::<",	"&#177;::+/-",	"&#180;::'",	"&#187;::>",	"&#188;::.25",	
	"&#189;::.5",	"&#190;::.75",	"&#232;::e",	"&#233;::e",	"&#241;::n"
	) ;

function decodeSpecChars(dsc)
  {
    for (scx = 0 ; scx < specChars.length ; scx++)
      {
	var scItem = specChars[scx].split("::") ;
	while (dsc.indexOf(scItem[0]) != -1)
	  {
	    var dsc = dsc.substring(0,dsc.indexOf(scItem[0])) + scItem[1]
		+ dsc.substring(dsc.indexOf(scItem[0])+scItem[0].length,dsc.length)
	  }
      }
    return dsc
  }

function replaceChar(rcString,rcOld,rcNew)
  {
    var rcs = ""+rcString;
    while (rcs.indexOf(rcOld) != -1)
      {
	rcs	= rcs.substring(0,rcs.indexOf(rcOld)) + rcNew
		+ rcs.substring(rcs.indexOf(rcOld)+rcOld.length,rcs.length)
      }
    return rcs
  }

function collapseString(StringIn)
  {
	var StringOut = trimString(""+StringIn) ;
	while (StringOut.indexOf("&nbsp;") != -1)
	  {
	    StringOut	= StringOut.substring(0,StringOut.indexOf("&nbsp;"))
			+ StringOut.substring(StringOut.indexOf("&nbsp;")+6,StringOut.length)
	  }
	while (StringOut.indexOf(" ") != -1)
	  {
	    StringOut	= StringOut.substring(0,StringOut.indexOf(" "))
			+ StringOut.substring(StringOut.indexOf(" ")+1,StringOut.length)
	  }
	return StringOut
  }

function compressString(StringIn)
  {
	var StringOut = trimString(""+StringIn) ;
	while (StringOut.indexOf("&nbsp;") != -1)
	  {
	    StringOut	= StringOut.substring(0,StringOut.indexOf("&nbsp;"))+" "
			+ StringOut.substring(StringOut.indexOf("&nbsp;")+6,StringOut.length)
	  }
	while (StringOut.indexOf("  ") != -1)
	  {
	    StringOut	= StringOut.substring(0,StringOut.indexOf("  ")+1) 
			+ StringOut.substring(StringOut.indexOf("  ")+2,StringOut.length)
	  }
	return StringOut
  }

function trimString(StringIn)
  {
	var StringOut = ""+StringIn ;
	while (StringOut.indexOf("&nbsp;") == 0)
	  { StringOut = StringOut.substring(6,StringOut.length) };
	while (StringOut.charAt(0) == " ")
	  { StringOut = StringOut.substring(1,StringOut.length) };
	while (StringOut.indexOf("&nbsp;") == StringOut.length-6)
	  { StringOut = StringOut.substring(0,StringOut.length-6) };
	while (StringOut.charAt(StringOut.length-1) == " ")
	  { StringOut = StringOut.substring(0,StringOut.length-1) };
	return StringOut
  }


function stripHTML(sh)
  {
    var st = ((!sh) || (sh.length < 1)) ? "" : ""+sh ;
    while (st.indexOf("<br>") != -1)
      { st = st.substring(0,st.indexOf("<br>"))+" "+st.substring(st.indexOf("<br>")+4,st.length) }
    while (st.indexOf("<p>") != -1)
      { st = st.substring(0,st.indexOf("<p>"))+" "+st.substring(st.indexOf("<p>")+3,st.length) }
    while ((st.indexOf("<") != -1) && (st.indexOf(">") != -1) && (st.indexOf(">") > st.indexOf("<")))
      { st = st.substring(0,st.indexOf("<"))+st.substring(st.indexOf(">")+1,st.length) }
    return unquoteString(st);
  }

function unquoteString(us)
  {
    var ust = ((!us) || (us.length < 1)) ? "" : ""+us ;
    while (ust.indexOf("\'") != -1)
      { ust = ust.substring(0,ust.indexOf("\'"))+ust.substring(ust.indexOf("\'")+1,ust.length) }
    while (ust.indexOf("\"") != -1)
      { ust = ust.substring(0,ust.indexOf("\""))+ust.substring(ust.indexOf("\"")+1,ust.length) }
    return ust
  }



// STYLES

document.write("<style type='text/css'>"
    + "body { "
	+ "scrollbar-track-color:	#ffffff; "
	+ "scrollbar-arrow-color:	#000099; "
	+ "scrollbar-face-color:	#e8e8e8; "
	+ "scrollbar-3dlight-color:	#999999; "
	+ "scrollbar-highlight-color:	#cccccc; "
	+ "scrollbar-shadow-color:	#808080; "
	+ "scrollbar-darkshadow-color:	#666666; };"
    + "</style>");



// IMPORTS

// all pages
document.write(""
	+ "<script language='JavaScript' src='script/banners1.js'></script>"
	+ "<script language='JavaScript' src='script/specials1.js'></script>"
	+ "<script language='JavaScript' src='script/navigate.js'></script>"
	+ "<script language='JavaScript' src='script/previewPopup.js'></script>"
	);

// selected pages
var thisPageName = ""+getPageName();

if ((thisPageName == "index")		||
    (thisPageName == "easyorder"))
  {
    document.write(""
	+ "<script language='JavaScript' src='script/overlib.js' type='text/javascript'></script>"
	);
  }

//-->
