//<![CDATA[

/*
   var newWindow = window.open("","myNewWindow", "width=720, height=520");
   newWindow.document.open();
*/
   

function array () {}

/* set up an initialize the arrasy */
/* these are varialbes that are loaded inside the html file */
numofMenus = 7;
menuHeadNames = new array()
menuHeadNames[0]="Order"; 
menuHeadNames[1]="Allegra-D";
menuHeadNames[2]="Allegra-D-12hr";
menuHeadNames[3]="Clarinex";
menuHeadNames[4]="WhyBuyHere";
menuHeadNames[5]="WhyBuyHere";
menuHeadNames[5]="WhyBuyHere";





/* this is the label on the button */
menuHeadLabel = new array()
menuHeadLabel[0]="Home"; 
menuHeadLabel[1]="About Linda"; 
menuHeadLabel[2]="Intuitive Readings";
menuHeadLabel[3]="Workshops";
menuHeadLabel[4]="Linda in the News";
menuHeadLabel[5]="Testimonials";
menuHeadLabel[6]="Contact";



/* this is the file name */
rootURL = "http://www.lindashoji.com/"
menuHeadHTMLfile = new array()
menuHeadHTMLfile[0]= rootURL + "index.html"; 
menuHeadHTMLfile[1]= rootURL + "about/index.html"; 
menuHeadHTMLfile[2]= rootURL + "readings/index.html";
menuHeadHTMLfile[3]= rootURL + "workshops/index.html";
menuHeadHTMLfile[4]= rootURL + "news/index.html";
menuHeadHTMLfile[5]= rootURL + "testimonials/index.html";
menuHeadHTMLfile[6]= rootURL + "contact/index.html";





menuHeadClass = new array()


/******************************************************
*    makeNavBar
*******************************************************/


function makeNavBar(thisMenu) {

  
  /* loop through the menus and set the current menu Class */


   for (i=0; i < numofMenus; i++) {
  
        if (thisMenu == menuHeadNames[i]) {
            menuHeadClass[i] = "menuHeadCurrent";
        }
        else 
            menuHeadClass[i] = "menuHead";

   } /* end of for i */


/**************************
 *  write out the nav bar *
 **************************/

for (i = 0; i < numofMenus; ++i) {

	document.writeln('<ul class="' + menuHeadClass[i] + '">');
	
 
     /**********************************************
     *   Write out the Menu Label
     **********************************************/

	document.write('<li> ');
	
	if (thisMenu == menuHeadNames[i]) {
	    document.writeln('<a href="' + menuHeadHTMLfile[i] + '" >' + menuHeadLabel[i] +  ' </a> ');
      }
	else {
	    document.writeln('<a href="' + menuHeadHTMLfile[i] + '">' + menuHeadLabel[i] + ' </a> '); 
      }
	
	document.writeln( '</li>');

	document.writeln(' ');

	document.writeln('</ul >'); 
	document.writeln('<!-- End of UL for menuHead --> ');

} /* end of for i loop */




} /* end of function makeNavBar */




/******************************************************
*    findPosX and findPosY
*******************************************************/

/* use these to find the x and y position */
/* here is how you use it
 newObjectPos = findPosY(Contents) + yourPosAmt
       object.style.top = newObjectPos


Another solution for this is:

frameState = frame.style.position;
frame.style.position = "absolute";
x = frame.offsetTop;
y = frame.offsetLeft;
frame.style.position = frameState;

*/
function findPosX(obj)
{
	var curleft = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curleft += obj.offsetLeft
			obj = obj.offsetParent;
		}
	}
	else if (obj.x)
		curleft += obj.x;
	return curleft;
}

function findPosY(obj)
{
	var curtop = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curtop += obj.offsetTop
			obj = obj.offsetParent;
		}
	}
	else if (obj.y)
		curtop += obj.y;
	return curtop;
}

function botNav()

{
   document.write('<a href="http://www.allegra-relief.com/index.html">Home</a> | ');
   document.write('<a href="https://www.e-scripts-md.com/escripts/neworder.asp?Referrer=17212&Tag=ordernow" onMouseOver="window.status=\'Order Now\';return true" onMouseOut="window.status=\'\';return">Order Now</a> | '); 
   document.write('<a href="http://www.allegra-relief.com/faq.html">Frequently Asked Questions</a> | ');
   document.write('<a href="http://www.allegra-relief.com/contact.html">Contact Us</a> | ');

   document.write('<a href="http://www.allegra-relief.com/trackorder.html">Track Orders</a>');
   document.write('<a href="http://www.allegra-relief.com/policy/responsibility.html"><br>Customer Responsibility</a> | ');
   document.write('<a href="http://www.allegra-relief.com/policy/termsofuse.html">Terms of Use</a> | '); 
   document.write('<a href="http://www.allegra-relief.com/policy/privacy.html">Privacy Policy</a>  ');
   
}
function topNav()
{

   document.write('<ul>');
   document.write('<li class="first"><a href="http://www.allegra-relief.com/index.html">Home</a> </li>');
   document.write('<li><a href="http://www.allegra-relief.com/allergy-pills/index.html" onMouseOver="window.status=\'Order Now\';return true" onMouseOut="window.status=\'\';return">Order Now</a> </li>'); 
   document.write('<li><a href="http://www.allegra-relief.com/faq.html">F.A.Q.</a> </li>');
   document.write('<li><a href="http://www.allegra-relief.com/trackorder.html">Track Orders</a> </li>');
   document.write('</ul>');
}

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

function goToPhentermine(myProduct, myTag) {
 if (document.images) {
   var myorderpage = "https://www.e-scripts-md.com/escripts/neworder.asp?Referrer=17212&ProductID=" + myProduct + "&Tag=" + myTag ;
   window.status = "Order Now";
   window.location = myorderpage;
 }
  
}

function goToAllegra(myProduct, myTag) {
 if (document.images) {
   var myorderpage = "https://www.e-scripts-md.com/escripts/neworder.asp?Referrer=17212&ProductID=" + myProduct + "&Tag=" + myTag ;
   window.status = "Order Now";
   window.location = myorderpage;
 }
  
}


function goThereGuide(myCity, myGuide) {
 if (document.images) {
   var windowprops = "left=150,top=5,width=600,height=350,location,menubar,scrollbars,status,resizable"
   var myguidepage = "http://guides.travelnow.com/index.jsp?action=cityguide&region_id=8&city_id=" + myCity + "&type=" + myGuide + "&cid=55244";
   var newWindow;
  newWindow =  window.open( myguidepage, myGuide, windowprops);
 // window.focus( newWindow);
 }
  
}


<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

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


/*
newWindow.document.close();
*/

