<!--
//Set colors with color code or name
hovercolor   = "#c6d9f7";
bgcolor      = "#ffffdf";

// Function for specifying layers. Absolute positions (leftpos, toppos)
function SpecLayer(leftpos,toppos,width) { if(No3) {
      this.left  = leftpos;
      this.top   = toppos;
      trelpos = 0; //trelpos specifies relative vertical position of each item
      //this.info contains the menu items
/*      
      if (document.all) {
		this.info = "<tr><td width="+width+"><hr width=65 align=center></td></tr>";
      } else {
            this.info  = "<layer width="+width+" position=relative top="+trelpos+"><hr width=65 align='center'></layer>"; 
      }
      trelpos += 10
*/
      this.info = ""
      for(i=3; i<arguments.length; i++) {
            if(document.all) { this.info += "<tr><td width="+width+" onMouseOver='this.bgColor=\""+hovercolor+"\"' onMouseOut='this.bgColor=\""+bgcolor+"\"'>"+arguments[i]+"</td></tr>";}
		else { this.info += "<layer onMouseOver='this.bgColor=\""+hovercolor+"\"' onMouseOut='this.bgColor=\""+bgcolor+"\"' width="+width+" position=relative top="+trelpos+">&nbsp;"+arguments[i]+"</layer>"; }
		trelpos+=20;
	}
} }

Layer = new Array();

// Create layers by typing:
// Layer[index] = new SpecLayer(leftpos, toppos, width, list of menu items separted by comma)
// Index starts from 1

Layer[1] = new SpecLayer(224,73,96,
	'<a href='+'"biography.html"'+'>Introduction</a>',
	'<a href='+'"autobio.html"'+'>Autobiography</a>',
	'<a href='+'"shifu_schedule.html"'+'>Schedule</a>'
//,'<a href='+'"http://www3.ewebcity.com/young/catalog.htm"'+'><font face=Arial,Helvetic,sans-serif> size=-1Books</font></a>'
);

Layer[2] = new SpecLayer(284,73,120,
        '<a href='+'"activities.html"'+'>Full Schedule</a>',
	'<a href='+'"activities.html#refuge"'+'>Taking Refuge</a>',
	'<a href='+'"activities.html#satsit"'+'>Saturday Sittings</a>',
	'<a href='+'"activities.html#tuesit"'+'>Tuesday Sittings</a>',
	'<a href='+'"activities.html#sunsit"'+'>Sunday Sittings</a>',
	'<a href='+'"activities.html#medita"'+'>Meditation Classes</a>',
	'<a href='+'"activities.html#sunopen"'+'>Open House</a>',
	'<a href='+'"activities.html#taichi"'+'>Tai Chi Classes</a>',
	'<a href='+'"activities.html#yoga"'+'>Yoga Classes</a>',
        '<a href='+'"activities.html#chanting"'+'>Chanting</a>',
	'<a href='+'"activities.html#retreats"'+'>Retreats</a>',
	'<a href='+'"activities.html#special"'+'>Special Events</a>'
);
			
Layer[3] = new SpecLayer(365,73,86,
	'<a href='+'"newscap.html"'+'>News Caption</a>'
);

Layer[4] = new SpecLayer(430,73,125,
	'<a href='+'"ddp/chanmag.html"'+'>Chan Magazine</a>',
        '<a href='+'"ddp/channews.html"'+'>Chan Newsletter</a>',
        '<a href='+'"ddp/dtalks.html"'+'>Dharma Talks</a>',
	'<a href='+'"ddp/booklets.html"'+'>Booklets</a>',
        '<a href='+'"ddp/ddp.html#ddpbooks"'+'>Books</a>'
);	

Layer[5] = new SpecLayer(420,73,300,
	'<a href='+'"cmc/cmc.html"'+'>Chan Meditation Center</a>',
	'<a href='+'"http://www.dharmadrumretreat.org/"'+'>Dharma Drum Retreat Center</a>',
	'<a href='+'"http://www.ddmba.org/ddmba_HQ/chinese/index.asp"'+'>Dharma Drum Mountain Buddhist Association (Chinese)</a>',
	'<a href='+'"ddp/ddp.html"'+'>Dharma Drum Publications</a>',
        '<a href='+'"http://www.dharmadrum.org/index.asp"'+'>Dharma Drum in Taiwan</a>',
        '<a href='+'"http://www.chibs.edu.tw/e-index.htm"'+'>The Chung Hwa Institute of Buddhist Studies</a>',
	'<a href='+'"alinks.html"'+'>Affiliates/Links</a>'
);

Layer[6] = new SpecLayer(600,69,76,
	'<a href='+'"contact.html"'+'>Contact Us</a>'
);

//Draw layers and set the visibility to "hidden"
for(i=1; i<Layer.length; i++) {
	if(document.all && No3) { document.write("<DIV onMouseOver='clearTimeout(timerID)' onMouseOut='hideMenu("+i+")' ID='L"+i+"' STYLE='position:absolute; visibility:hidden;top:"+Layer[i].top+"; left:"+Layer[i].left+";'><TABLE class='dropdown' border=0 cellpadding=2 cellspacing=0 STYLE=' background:"+bgcolor+"'><p>"+Layer[i].info+"</p></TABLE></DIV>"); }
	else if(document.layers && No3) { document.write("<table class='dropdown'><LAYER onMouseOver='clearTimeout(timerID)' onMouseOut='hideMenu("+i+")' ID='L"+i+"' POSITION=ABSOLUTE VISIBILITY=hidden BGCOLOR='"+bgcolor+"' TOP="+Layer[i].top+" LEFT="+Layer[i].left+">"+Layer[i].info+"</LAYER></table>"); }
}

document.write("<div id='topcor'><img src='images/tl_corner.gif' width='41' height='26'></div>");

allLoaded = true;

// -->
