TopMenus = ["Home","Support","Career","News & Events","Contact Us","Sitemap"]
TopMenuLinks = ["index.html","support.html", "career.html", "news.html","contact.html","sitemap.html"]


arr1CI='["Background","Board of Directors","Advisers","Management","Investors"]'
arr2CI='["corpinfo.html","bod.html","adviser.html","mgmt.html","investor.html"]'

arr1PRD='["Access Products","Connectivity","Routing Products","Management Software"]'
arr2PRD='["prdaccess.html","prdconnect.html","prdrouter.html","prddiasview.html"]'

arr1DS='["Technology Development Services","Why Banyan Networks?","Expertise","Intellectual Property Rights","Value Proposition"]'
arr2DS='["tds.html","whybanyan.html","design.html","ipr.html","valueprop.html"]'

mItems1=["Sales Channels","Support","Clients","Career"]
mOrder1=["1","2","3","4"]
mIsMenu1=["sales.html","support.html","clients.html","career.html"]
LeftMenuLinks1=["sales.html","support.html","clients.html","career.html"]

mItems2=["Access Products","Connectivity","Routing Products","Mgmt. Software"]
mOrder2=["1","2","3","4"]
mIsMenu2=["sales.html","support.html","clients.html","career.html"]
LeftMenuLinks2=["sales.html","support.html","clients.html","career.html"]

var mstr=""
mDelimeter="<font face=verdana color=white size=2>|&nbsp;</font>";

function GetOrderNo(mOrderNo){
mOrder = eval("mOrder"+mOrderNo);
for (k=0;k<mOrder.length;k++){
    if (mOrder[k]==mOrderNo)
       return (k+1)
}
}

function TopHeading(){
document.write("<table border=0 cellPadding=0 cellSpacing=0 width=100%>");
document.write(" <tr>");
document.write("  <td valign=middle align=center width=150 height=73 background=images/white.gif><img src=images/logo.gif width=135 height=48 border=0></td>");
document.write("  <td valign=top align=right background=images/white.gif><img src=images/topad.jpg width=619 height=73 border=0></td>");
document.write(" </tr>");
document.write(" <tr height=20>");
document.write("  <td valign=top align=right width=100% height=20 background=images/topmenubg.jpg colspan=2>");
mstr="";
for (i=0;i<TopMenus.length;i++){
  if (i==0)
    mstr+="<a class=TopMenu href="+TopMenuLinks[i]+">"+TopMenus[i]+"</a>&nbsp;"
  else
    mstr+=mDelimeter+"<a class=TopMenu href="+TopMenuLinks[i]+">"+TopMenus[i]+"</a>&nbsp;"
}
document.write(mstr);
document.write("  </td>");
document.write(" </tr>");
document.write("</table>");
}

function WriteMenu(mCItem){
mCItem=GetOrderNo(mCItem);
document.write("    <table border=0 cellspacing=0 cellpadding=0>");
mMenuCnt = 0
mItems = eval("mItems"+mCItem);
mIsMenu = eval("mIsMenu"+mCItem);

for (mLink=0;mLink<mItems.length;mLink++){
    document.write("    <tr>");
    mLink1 = mLink + 1;
    if (mLink==mCItem-1){
       document.write("     <td width=16 height=20 valign=middle align=left><img src=images/arrow1.gif border=0 name=bullet"+mLink+"></td>");
       if (mIsMenu[mLink]=="Y"){
          mMenuCnt = mMenuCnt + 1
          document.write("     <td width=154 height=20 valign=top align=left><a href='javascript:void(0)' onMouseOver=popUp('KCMenu"+mMenuCnt+"',event) onMouseOut=popDown('KCMenu"+mMenuCnt+"') class=leftmenu>"+mItems[mLink]+"</a>&nbsp;</td>");
       }
       else{
          document.write("     <td width=154 height=20 valign=top align=left><a href='"+mIsMenu[mLink]+"' class=leftmenu>"+mItems[mLink]+"</a>&nbsp;</td>");
       }
    }
    else{
       document.write("     <td width=16 height=20 valign=middle align=left><img src=images/arrow2.gif border=0 name=bullet"+mLink+"></td>");
       if (mIsMenu[mLink]=="Y"){
          mMenuCnt = mMenuCnt + 1
          document.write("     <td width=154 height=20 valign=top align=left><a href='javascript:void(0)' onMouseOver=popUp('KCMenu"+mMenuCnt+"',event);changeBullet(document.banyan.bullet"+mLink+"); onMouseOut=popDown('KCMenu"+mMenuCnt+"');changeBullet1(document.banyan.bullet"+mLink+"); class=leftmenu>"+mItems[mLink]+"</a>&nbsp;</td>");
       }
       else{
          //document.write("     <td width=154 height=20 valign=top align=left><a href='"+mIsMenu[mLink]+"' onMouseOver=changeBullet(document.banyan.bullet"+mLink+");hideAll(); onMouseOut=changeBullet1(document.banyan.bullet"+mLink+"); class=menu>"+mItems[mLink]+"</a>&nbsp;</td>");
          document.write("     <td width=154 height=20 valign=top align=left><a href='"+mIsMenu[mLink]+"' onMouseOver=changeBullet(document.banyan.bullet"+mLink+"); onMouseOut=changeBullet1(document.banyan.bullet"+mLink+"); class=leftmenu>"+mItems[mLink]+"</a>&nbsp;</td>");

       }
    }
    document.write("    </tr>");
}
document.write("   </table>");
}

function changeBullet(mBulObj) {
mBulObj.src="images/arrow1.gif";
}

function changeBullet1(mBulObj) {
mBulObj.src="images/arrow2.gif";
}


function TopMenu(){
document.write("    <table border=0 cellspacing=0 cellpadding=0>");
document.write("    <tr>");
document.write("     <td width=50 height=17><a href=index.html><img src=images/home.gif border=0 alt=Home></a></td>");
document.write("     <td width=69 height=17><a href=sitemap.html><img src=images/sitemap.gif border=0 alt=Sitemap></a></td>");
document.write("     <td width=81 height=17><a href=contact.html><img src=images/contactus.gif border=0 alt='Contact Us'></a></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==6){
document.write("      <td><img src=images/projects2.gif width=78 height=23 alt='Projects' border=0 title='Projects' name=projects"+mFunctions+"></td>");
}
else{
document.write("      <td><a href=pronms.html><img src=images/projects1.gif width=78 height=23 alt='Projects' border=0 title='Projects' name=projects"+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 WriteSubMenu(mCaption,mCItem){

document.write("    <table width=185 border=0 cellspacing=0 cellpadding=0 background=images/submenubg.gif align=right>");
document.write("     <tr>");
document.write("     <tr><td width=185 height=27 colspan=2 background='images/smallround.gif' class=menu align=center valign=top>"+mCaption+"</td></tr>");
//document.write("      <td width=30 height=27><img src=images/smallround.gif width=30 height=27></td>");
//document.write("      <td width=155 height=27 background=images/submenuheadbg.gif width=155 height=27 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>");
for (mLink=0;mLink<mItems.length;mLink++){
   if (mLink!=(mCItem-1))
       document.write("<a href="+mItemLinks[mLink]+" class=asubmenu>"+mItems[mLink]+"</a><br><br>");
   else
       document.write(mItems[mLink]+"<br><br>");
}
document.write("      </td>");
document.write("     </tr>");
document.write("     <tr>");
document.write("      <td colspan=2 width=185 height=2><img src=images/botline.gif width=185 height=2></td>");
document.write("     </tr>");
document.write("    </table>");
}


function WriteSubMenuold(mCItem,mArrIndent){
document.write("    <table border=0 cellspacing=0 cellpadding=0 background=''>");
for (mLink=0;mLink<mItems.length;mLink++){
    if ((mArrIndent[mLink]=="I")){
       mIndentClass = " class=indentyes"
    }
    else{
       mIndentClass = " class=indentno"
    }
    document.write("    <tr>");
    if (mLink==mCItem-1){
       document.write("     <td width=30 height=20 align=right valign=middle><p "+mIndentClass+"><img src=images/bullet.gif border=0 name=bullet"+mLink+"></p></td>");
       //document.write("     <td><a href="+mItemLinks[mLink]+"><p "+mIndentClass+">"+mItems[mLink]+"</p></a></td>");
       document.write("     <td><p "+mIndentClass+">"+mItems[mLink]+"</p></td>");
    }
    else{
       document.write("     <td width=30 height=20 valign=middle align=right><p "+mIndentClass+"><img src=images/bullet1.gif border=0 name=bullet"+mLink+"></p></td>");
       document.write("     <td><a href="+mItemLinks[mLink]+" onMouseOver=changeBullet(document.ctrl.bullet"+mLink+"); onMouseOut=changeBullet1(document.ctrl.bullet"+mLink+");><p "+mIndentClass+">"+mItems[mLink]+"</p></a></td>");
    }
    document.write("    </tr>");
}
document.write("   </table>");
}

function GoTop(){
document.write("<p align=right><a href=#top>Go Top</a>&nbsp;&nbsp;&nbsp;&nbsp;</p>");
//document.write("<p align=right><a href='javascript:void(0)' onMouseOver=popUp('KCMenu2',event) onMouseOut=popDown('KCMenu2') class=menu>Go to</a>");
}
function CopyRight(){
document.write("<p align=center class=copyright>© Copyright 2012 Shree Foundations. All rights reserved.<a class=disclaimer href=disclaimer.html> Disclaimer</a></p>");
}
function OpenNewWindow(mypage, myname, w, h, scroll) {
//<a href="javascript:void();" onclick="OpenNewWindow(filename,'windowname','400','400','yes');return false;">Link Text</a>

var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

