fixMozillaZIndex=true; //Fixes Z-Index problem  with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay=500;
_menuOpenDelay=150;



function getPublicURLBase()
{

pos = self.location.href.indexOf( "/~ekajati/" );

var ubase = "";

if ( pos != -1 )
{
   ubase =  self.location.href.replace( "https://secure5.positive-internet.com/~ekajati", "http://www.shambhala.org.uk" );
   
   pos = ubase.lastIndexOf( "/" );
   
   ubase = ubase.substring( 0, pos + 1 );
   
}

return ubase;

}

function getPrivateURLBase()
{

pos = self.location.href.indexOf( "/~ekajati/" );

var ubase = "";

if ( pos == -1 )
{
   ubase =  self.location.href.replace( "http://www.shambhala.org.uk", "https://secure5.positive-internet.com/~ekajati"  );
   
   pos = ubase.lastIndexOf( "/" );
   
   ubase = ubase.substring( 0, pos + 1 );
   
}

return ubase;

}
 
with(background=new mm_style()){
bgimage="images/nav_brocade.gif";
borderstyle="solid";
fontfamily="Verdana, Verdana, Geneva, sans-serif";
fontsize="80%";
fontstyle="roman";

padding=9;
itemheight=25;
itemwidth=150;
//align="center"
offcolor="#FFD100";
oncolor="#ffffff";
overbgimage="images/nav_brocade2.gif";
}

with(milonic=new menuname("YogaMed")){
style=background;
aI("text=Introductory course;url=" + getPublicURLBase() + "meditation/;");
aI("text=Open evenings;url=" + getPublicURLBase() + "regular.php;");
aI("text=Yoga;url=" + getPublicURLBase() + "yoga.php;");
}

with(milonic=new menuname("Shambhala")){
style=background;
aI("text=What is Shambhala?;url=" + getPublicURLBase() + "gates.php;");
aI("text=Buddhist Teachings;url=" + getPublicURLBase() + "vajradhatu.php;");
aI("text=Way of Shambhala;url=" + getPublicURLBase() + "wayofshambhala.php;");
aI("text=Contemplative Arts;url=" + getPublicURLBase() + "nalanda.php;");
}

with(milonic=new menuname("Teachers")){
style=background;
aI("text=Sakyong Mipham Rinpoche;url=" + getPublicURLBase() + "smr.php;");
aI("text=Chögyam Trungpa Rinpoche;url=" + getPublicURLBase() + "vctr.php;");
}

with(milonic=new menuname("Calendar")){
style=background;
aI("text=Calendar;url=" + getPublicURLBase() + "calendar.php;");
aI("text=Programme Listing;url=" + getPublicURLBase() + "program.php;");
aI("text=Advanced Programmes;url=" + getPublicURLBase() + "program2.php;");
aI("text=Programme Retrospective;url=" + getPublicURLBase() + "old_program.php;");
aI("text=Retrospective of Advanced Programmes;url=" + getPublicURLBase() + "old_program2.php;");

}

with(milonic=new menuname("Contact")){
style=background;
aI("text=Contact Details;url=" + getPublicURLBase() + "contacts.php");
aI("text=Mailing List;url=" + getPublicURLBase() + "mailinglist.php");
aI("text=Donate;url=" + getPublicURLBase() + "donation.php;");
aI("text=Centre Location;url=" + getPublicURLBase() + "location.php");
aI("text=Street Map;url=" + getPublicURLBase() + "googlemap.php;");
aI("text=Shambhala contacts outside London;url=" + getPublicURLBase() + "contacts2.php;");
}

with(milonic=new menuname("Further")){
style=background;
aI("text=Suggested Reading;url=" + getPublicURLBase() + "reading.php");
aI("text=Links;url=" + getPublicURLBase() + "links.php");
aI("text=Photo Gallery;url=" + getPublicURLBase() + "photos.php;");
aI("text=Glossary;url=" + getPublicURLBase() + "glossary.php;");
}


with(milonic=new menuname("SMR_Events")){
style=background;
aI("text=Public Talk;url=" + getPublicURLBase() + "smr_talk.php");
aI("text=Meditation Workshop;url=" + getPublicURLBase() + "smr_workshop.php");
aI("text=FAQ;url=" + getPublicURLBase() + "smr_faq.php");
}



drawMenus();
