var mbrowser = navigator.appName
if (mbrowser == "Netscape")
{
//mItems=["About Yogamalika","Classes / Events","Listening  Room","Reading Room","Album","Do it Yourself","Meditation","Quizzes","Kids","Catalog","Glossary","FAQs"]
mItems=["About Yogamalika","Classes / Events","Listening  Room","Reading Room","Album","Do it Yourself","Meditation","Quizzes","Kids","Catalog","Glossary"]
//mIsMenu=["Y","classes.html","Y","Y","Y","Y","Y","Y","Y","Y","glossary.html","audeindex.html#faq"]
mIsMenu=["Y","classes.html","Y","Y","Y","Y","Y","Y","Y","Y","glossary.html"]

}
if (mbrowser == "Microsoft Internet Explorer")
{
//mItems=["About Yogamalika","Classes / Events","Listening  Room","Reading Room","Album","Do it Yourself","Meditation","Quizzes","Kids","Catalog","Glossary","FAQs"]
//mIsMenu=["Y","classes.html","Y","Y","Y","Y","Y","Y","Y","Y","glossary.html","audeindex.html#faq"]
mItems=["About Yogamalika","Classes / Events","Listening  Room","Reading Room","Album","Do it Yourself","Meditation","Quizzes","Kids","Catalog","Glossary"]
mIsMenu=["Y","classes.html","Y","Y","Y","Y","Y","Y","Y","Y","glossary.html"]

}


function WriteMenu(mCItem){
document.write("    <table border=0 cellspacing=0 cellpadding=0>");
mMenuCnt = 0
for (mLink=0;mLink<mItems.length;mLink++){
    document.write("    <tr>");
    mLink1 = mLink + 1;
    if (mLink==mCItem-1){
       if (mIsMenu[mLink]=="Y"){
          mMenuCnt = mMenuCnt + 1
          document.write("     <td width=154 height=20 valign=top align=right><a href='javascript:void(0)' onMouseOver=popUp('KCMenu"+mMenuCnt+"',event) onMouseOut=popDown('KCMenu"+mMenuCnt+"') class=menu>"+mItems[mLink]+"</a>&nbsp;&nbsp;</td>");
       }
       else{
          document.write("     <td width=154 height=20 valign=top align=right><a href='"+mIsMenu[mLink]+"' class=menu target=main>"+mItems[mLink]+"</a>&nbsp;&nbsp;</td>");
       }
       document.write("     <td width=16 height=14 valign=middle align=right><img src=gif/arrow1.gif border=0 name=bullet"+mLink+"></td>");
    }
    else{
       if (mIsMenu[mLink]=="Y"){
          mMenuCnt = mMenuCnt + 1
          document.write("     <td width=154 height=20 valign=top align=right><a href='javascript:void(0)' onMouseOver=popUp('KCMenu"+mMenuCnt+"',event);changeBullet(document.yoga.bullet"+mLink+"); onMouseOut=popDown('KCMenu"+mMenuCnt+"');changeBullet1(document.yoga.bullet"+mLink+"); class=menu>"+mItems[mLink]+"</a>&nbsp;&nbsp;</td>");
       }
       else{
          document.write("     <td width=154 height=20 valign=top align=right><a href='"+mIsMenu[mLink]+"' onMouseOver=hideAll(); class=menu target=main>"+mItems[mLink]+"</a>&nbsp;&nbsp;</td>");
       }
       document.write("     <td width=16 height=14 valign=middle align=right><img src=gif/arrow2.gif border=0 name=bullet"+mLink+"></td>");
    }
    document.write("    </tr>");
}
document.write("   </table>");
}

function TopMenu(){
document.write("    <table border=0 cellspacing=0 cellpadding=0 width=100% bgcolor=#F0AD7C>");
document.write("    <tr>");
document.write("    <td align=right>");
document.write("    <table border=0 cellspacing=0 cellpadding=0>");
document.write("    <tr>");
document.write("     <td width=60 height=17><a href=contact.html class=menu>Contact</a></td>");
document.write("     <td width=8 height=17><font color=black>|</font></td>");
document.write("     <td width=60 height=17><a href=sitemap.html class=menu>Sitemap</a></td>");
document.write("    </tr>");
document.write("   </table>")
document.write("    </td>");
document.write("    </tr>");
document.write("   </table>");
}

mFunctions=' onMouseOver="ShowStatus(this);return true;" onMouseOut="HideStatus();return true;" ';

function WriteMenu1(mItem){
document.write("    <table border=0 cellspacing=0 cellpadding=0 height=23>");
document.write("     <tr>");
if (mItem==1){
document.write("      <td><img src=images/aboutus2.gif width=81 height=23 alt='About Us' border=0 title='About Us' name=about"+mFunctions+"></td>");
}
else{
document.write("      <td><a href=mission.html><img src=images/aboutus1.gif width=81 height=23 alt='About Us' border=0 title='About Us' name=about"+mFunctions+"></a></td>");
}
if (mItem==2){
document.write("      <td><img src=images/sol2.gif width=88 height=23 alt='Solutions' border=0 title='Solutions' name=sol"+mFunctions+"></td>");
}
else{
document.write("      <td><a href=expert.html><img src=images/sol1.gif width=88 height=23 alt='Solutions' border=0 title='Solutions' name=sol"+mFunctions+"></a></td>");
}
if (mItem==3){
document.write("      <td><img src=images/careers2.gif width=78 height=23 alt='Careers' border=0 title='Careers' name=careers"+mFunctions+"></td>");
}
else{
document.write("      <td><a href=careers.html><img src=images/careers1.gif width=78 height=23 alt='Careers' border=0 title='Careers' name=careers"+mFunctions+"></a></td>");
}
if (mItem==4){
document.write("      <td><img src=images/news2.gif width=61 height=23 alt='News' border=0 title='News' name=news"+mFunctions+"></td>");
}
else{
document.write("      <td><a href=news.html><img src=images/news1.gif width=61 height=23 alt='News' border=0 title='News' name=news"+mFunctions+"></a></td>");
}
if (mItem==5){
document.write("      <td><img src=images/articles2.gif width=73 height=23 alt='Articles' border=0 title='Articles' name=articles"+mFunctions+"></td>");
}
else{
document.write("      <td><a href=articles.html><img src=images/articles1.gif width=73 height=23 alt='Articles' border=0 title='Articles' name=articles"+mFunctions+"></a></td>");
}

document.write("     </tr>");
document.write("    </table>");
}

function ShowStatus(mObj){
window.status=mObj.title;
}
function ShowStatus1(mText){
window.status=mText;
}
function HideStatus(){
window.status="";
}
function GoTop(){
document.write("<p align=right><a href=#top>Go Top</a>&nbsp;&nbsp;&nbsp;&nbsp;</p>");
}


function changeBullet(mBulObj) {
mBulObj.src="gif/arrow1.gif";
}

function changeBullet1(mBulObj) {
mBulObj.src="gif/arrow2.gif";
}
function GoTop(){
document.write("<p align=right><a href=#top>Go Top</a>&nbsp;&nbsp;&nbsp;&nbsp;</p>");
}

function Footer(){
//document.write("<p align=justify class=small>To go to another topic, click one of the navigation links at the top, select 'topic' from the sub-menu which drops down and click. Otherwise use the <a href=sitemap.html class=regular>Site Map</a>");
document.write("<p align=center class=small>Copyright ©2000 : Yoga Malika Research & Training Centre, Chennai, INDIA. All rights reserved.");  

}

function test(){
//try{
//parent.menu.document.yoga.mSoundPlay.stop()
//} catch(e){}
}

function startbg(){
//try{
//parent.menu.document.yoga.mSoundPlay.play()
//} catch(e){}
}

function WriteSubMenu(mCaption){
document.write("    <table width=185 border=0 cellspacing=0 cellpadding=0 background=gif/submenubg.gif align=right>");
document.write("     <tr>");
document.write("      <td width=30 height=37><img src=gif/smallround.gif width=30 height=37></td>");
document.write("      <td width=155 height=37 background=gif/submenuheadbg.gif width=155 height=37 class=menu align=center valign=top>"+mCaption+"&nbsp;&nbsp;</td>");
document.write("     </tr>");
document.write("     <tr>");
document.write("      <td class=submenu colspan=2 width=185 valign=top align=left>");
if (mItems.length>0){
    //document.write("<dir>");
}
for (mLink=0;mLink<mItems.length;mLink++){
//  document.write("<li><a href="+mItemLinks[mLink]+" class=regular>"+mItems[mLink]+"</li>");
var browserName = navigator.appName
   if (mItemLinks[mLink]!="NONE")
     if (mItemType[mLink]=="N" && browserName != "Netscape")
       document.write("<p class=submenu><a href=javascript:test();window.location.href='"+mItemLinks[mLink]+"'; class=submenu>"+mItems[mLink]+"</a></p>");
     else
       document.write("<p class=submenu1><a href="+mItemLinks[mLink]+" class=submenu>"+mItems[mLink]+"</a></p>");
   else
       document.write("<p class=submenu>"+mItems[mLink]+"</p>");
}
if (mItems.length>0){
    //document.write("</dir>");
}
document.write("      </td>");
document.write("     </tr>");
document.write("     <tr>");
document.write("      <td colspan=2 width=185 height=2><br><img src=gif/botline.gif width=185 height=2></td>");
document.write("     </tr>");
document.write("    </table>");
}

function WriteTitle(mValue,mTitle,mBoolean){
document.write("    <table border=0 cellspacing=0 cellpadding=0 width=100%>");
document.write("<tr>");
document.write("<td bgcolor=#F9D4BB height=30 valign=middle>");
if (!mBoolean){
	document.write("<p align=center><font class=SubTitle>"+mItems[mValue-1]+" - "+mTitle+"</font></p>");
}
else {
	document.write("<p align=center><font class=SubTitle>"+mTitle+"</font></p>");
}
document.write("     </td>");
document.write("     </tr>");
document.write("    </table>");

}
