browser = (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 )) || ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 )))
if ( browser) {
 normal = new MakeArray(7)
 over = new MakeArray(7)
 picture = new MakeArray(8)
 blurb = new MakeArray(15)
                
 normal[1].src = "../images/nav/about_btn.gif"
 normal[2].src = "../images/nav/dosha_btn.gif"
 normal[3].src = "../images/nav/symptoms_btn.gif"
 normal[4].src = "../images/nav/product_btn.gif"
 normal[5].src = "../images/nav/order_btn.gif"
 normal[6].src = "../images/nav/serv_btn.gif"

 over[1].src = "../images/nav/about_ovr.gif"
 over[2].src = "../images/nav/dosha_ovr.gif"
 over[3].src = "../images/nav/symptoms_ovr.gif"
 over[4].src = "../images/nav/product_ovr.gif"
 over[5].src = "../images/nav/order_ovr.gif"
 over[6].src = "../images/nav/serv_ovr.gif"

 picture[1].src = "../images/nav/about_blurb.gif"
 picture[2].src = "../images/nav/dosha_blurb.gif"
 picture[3].src = "../images/nav/symptoms_blurb.gif"
 picture[4].src = "../images/nav/product_blurb.gif"
 picture[5].src = "../images/nav/order_blurb.gif"
 picture[6].src = "../images/nav/serv_blurb.gif"
 picture[7].src = "../images/nav/blank_blurb.gif"

 blurb[1] = "Discover what is Om Veda"
 blurb[2] = "Your own Dosha Analysis"
 blurb[3] = "Find a Treatment by Symptom"
 blurb[4] = "Review the On-line Catalogue"
 blurb[5] = "To Order securely on-line"
 blurb[6] = "Om Veda Services and Training"				  
 blurb[7] = ""
 blurb[8] = "Go Back to the previous page"
 blurb[9] = "Go to the next page"
 blurb[10] = "Find out about Ayurvedic Training courses"
 blurb[11] = "Get in contact with us"
 blurb[12] = "2"
 blurb[13] = "3"
 blurb[14] = ""
 blurb[15] = "Return to the Om Veda Home page"
}

function MakeArray(n) {
  this.length = n
  for (var i = 1; i<=n; i++) {
   this[i] = new Image()
  }
  return this
}

function msover(num)  {
  if (browser) {
    document.images[num+2].src = over[num+1].src
    window.status = blurb[num+1]
    document.images[10].src = picture[num+1].src
  }
}

function msout(num)   {
  if (browser) {
    document.images[num+2].src = normal[num+1].src
    document.images[10].src = picture[7].src
    window.status = blurb[7]
  }
}

function blurble(num)   {
  if (browser) {
    window.status = blurb[num+1]
  }
}

function noblurble()   {
  if (browser) {
    window.status = blurb[7]
  }
}
						 
function infowindow(url) {
  var infowin = window.open(url,"infowin","width=700,height=500,status=yes,scrollbars=yes,resizable=yes");
  infowin.focus();
}					 
   
   
   function infowindow(url) {
                         var infowin = window.open(url,"infowin","width=700,height=500,status=yes,scrollbars=yes,resizable=yes");
						 infowin.focus();
						 }							 
						 
	function dosha_results()  {
        vatasum = new Array(); pittasum = new Array(); kaphasum = new Array();
        vatasum[1] = 1; vatasum[2] = 1; vatasum[3] = 1; vatasum[4] = 1; vatasum[5] = 1;
		pittasum[1] = 1; pittasum[2] = 1; pittasum[3] = 1; pittasum[4] = 1; pittasum[5] = 1;
		kaphasum[1] = 1; kaphasum[2] = 1; kaphasum[3] = 1; kaphasum[4] = 1; kaphasum[5] = 1;
        for (var a=0; a<=13; a++) {
		   if (a <= 12) { b = 1;}
		   else if (a <= 18) { b = 2;}
		   else if (a <= 25) { b = 3;}
		   else b = 4;
		  // alert("A + " + a + " B + " + b);
           vatasum[b] = vatasum[b] + document.dosha.vata[a].checked * 8;
           pittasum[b] = pittasum[b] + document.dosha.pitta[a].checked * 8;
           kaphasum[b] = kaphasum[b] + document.dosha.kapha[a].checked * 8;
        }
		vatasum[5] = vatasum[1] + vatasum[2] + vatasum[3] + vatasum[4] - 2;
		pittasum[5] = pittasum[1] + pittasum[2] + pittasum[3] + pittasum[4] - 2;
		kaphasum[5] = kaphasum[1] + kaphasum[2] + kaphasum[3] + kaphasum[4] - 2;
        var resultswin = window.open('',"dosha","width=700,height=500,status=yes,scrollbars=yes,resizable=yes");
		resultswin.focus();
        resultswin.document.writeln("<html><head><title>YogaDiet: Your Dosha Analysis Results</title>");
		resultswin.document.writeln("<link rel='stylesheet' type='text/css' href='yogadiet.css'></head>");
        resultswin.document.writeln("<body bgcolor='#ffffff' text='#666666' link='#ff3333' vlink='#BB5F5F' alink='#ffcccc' background='home/bkg_2.jpg'>");
		resultswin.document.writeln("<table width='700' borders='0' cellspace='0' cellpadding='0'>");		            
        resultswin.document.writeln("      <tr align='left'> ");
        resultswin.document.writeln("      <td width='200'align='center'></td> ");		
        resultswin.document.writeln("      <td width='450' align='left'><b><font color='#7D0404' size='4' face='Arial, Helvetica, sans-serif'>YogaDiet: Your Body Type Analysis Results</font></b></td>");
         resultswin.document.writeln("     </tr>");
        resultswin.document.writeln("      <tr align='left'> ");
        resultswin.document.writeln("          <td width='200'align='center'></td> ");		
        resultswin.document.writeln("        <td  width='450' align='left' bgcolor='#ffffff'><b><font color='#CCCC66' size='3' face='Arial, Helvetica, sans-serif'>Vata</font><font color='#000000'> | </font></b>");
        resultswin.document.writeln("        <b><font color='#660000' size='3' face='Arial, Helvetica, sans-serif'>Pitta</font><font color='#000000'> | </font></b>");
         resultswin.document.writeln("       <b><font color='#669900' size='3' face='Arial, Helvetica, sans-serif'>Kapha</font></b></td>");
         resultswin.document.writeln("     </tr>");
         resultswin.document.writeln("     <tr> ");
         resultswin.document.writeln("       <td width='200' align='center'><font color='#7D0404' size='3' face='Arial, Helvetica, sans-serif'><b>Body Type Analysis</b></font></td>");
          resultswin.document.write("      <td width='390'><a href='tobuy.html' target='_blank'><img name='vatatot' src='images/1v2.gif' height='20' width='" + vatasum[5] / 2 + "' Alt='Vata' border='0'></a>");
          resultswin.document.write("	<a href='tobuy.html' target='_blank'><img name='pittatot' src='images/1p2.gif' height='20' width='" + pittasum[5] / 2 + "' Alt='Pitta' border='0'></a>");
         resultswin.document.writeln("	<a href='tobuy.html' target='_blank'><img name='kaphatot' src='images/1k2.gif' height='20' width='" + kaphasum[5] / 2 + "' border='0' alt='Kapha '></a></td>");
         resultswin.document.writeln("     </tr>");
        resultswin.document.writeln("      <tr align='center'> ");
        resultswin.document.writeln("      <td width='170'></td> ");		
        resultswin.document.writeln("        <td  width='390' align='left'><p><font color='#666666' size='2' face='Arial, Helvetica, sans-serif'>Mostly <font color='#CCCC66'><b>Beige</b></font>: your body type is Vata: You can eat comfort food but need to set regular meal times, which can be a challenge. Lightly cooked food is better than raw.</font></p>");
        resultswin.document.writeln("        <p><font color='#333333' size='2' face='Arial, Helvetica, sans-serif'>Mostly <font color='#660000'><b>Red</b></font>: your body type is Pitta: You are drawn to stimulating foods which make you anxious and restless. Better to eat food that is calming and soothing.</font></p>");
         resultswin.document.writeln("        <p><font color='#333333' size='2' face='Arial, Helvetica, sans-serif'>Mostly <font color='#669900'><b>Green</b></font>: your body type is Kapha: You love sweet things (and are yourself very sweet-natured), but this is what gives you weight problems.</font></p>");
         resultswin.document.writeln("        <p><font color='#333333' size='2' face='Arial, Helvetica, sans-serif'>You can learn more about the best diet for your body type in the Yoga Diet Book, click <b><a href='tobuy.html' target='_top'>here</a></b> for immediate download.</p></td>");
		 resultswin.document.writeln("     </tr>");		 
         resultswin.document.writeln("   </table>");
        resultswin.document.writeln("</body></html>");
        resultswin.document.close();
}					 					 
