
//This function prints the title onto the page
function title()
{
    document.writeln("<table width=\"754\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr>"); 
//    document.writeln("<td align=\"center\" valign=\"bottom\"><img src=\"/clear_dot.gif\" width=\"360\" height=\"1\"></td>");
//    document.writeln("<td><img src=\"/title.gif\" width=\"300\" height=\"50\"></td>");
    document.writeln("<td><img src=\"/clear_dot.gif\" width=\754\" height=\"1\"></td>");
    document.writeln("</tr></table>");
	
}

var index		= "\"/index.htm\"";
var aboutus 	= "\"/aboutus/index.htm\"";
var whatnew 	= "\"/whatnew.htm\"";
var activities 	= "\"/activities/index.htm\"";
var services 	= "\"/services/index.htm\"";
var teachings 	= "\"/teachings/index.htm\"";
var sitemap 	= "\"/sitemap.htm\"";
var contacts 	= "\"/contacts.htm\"";
//This function prints the top menu that can be view on all pages
function main_menu()
{
	document.writeln("<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" background=\"/smallbluebar.gif\" border=\"0\" align=\"center\">");
    document.writeln("<tr align=\"center\" valign=\"middle\">"); 
    document.writeln("<td width=\"1\" align=\"left\" height=\"16\"><img src=\"/white_dot.gif\" width=\"1\" height=\"16\"></td>");
    document.writeln("<td width=\"100\" height=\"16\" valign=\"middle\" ><a href=" + index + "><span class=\"mainmenu\">Index</span></a></td>");
    document.writeln("<td width=\"105\" height=\"16\" valign=\"middle\" ><a href=" + aboutus + "><span class=\"mainmenu\">About Us</span></a></td>");
 //   document.writeln("<td width=\"96\" height=\"16\" valign=\"middle\" ><a href=" + whatnew + "><span class=\"mainmenu\">What's New</span></a></td>");
    document.writeln("<td width=\"108\" height=\"16\" valign=\"middle\" ><a href=" + activities + "><span class=\"mainmenu\">Activities</span></a></td>");
    document.writeln("<td width=\"106\" height=\"16\" valign=\"middle\" ><a href=" + services + "><span class=\"mainmenu\">Services</span></a></td>");
    document.writeln("<td width=\"106\" height=\"16\" valign=\"middle\" ><a href=" + teachings + "><span class=\"mainmenu\">Teachings</span></a></td>");
    document.writeln("<td width=\"106\" height=\"16\" valign=\"middle\" ><a href=" + sitemap + "><span class=\"mainmenu\">Sitemap</span></a></td>");
    document.writeln("<td width=\"106\" height=\"16\" valign=\"middle\" ><a href=" + contacts + "><span class=\"mainmenu\">Contacts</span></a></td>");
    document.writeln("<td width=\"1\" align=\"right\" height=\"16\"><img src=\"/white_dot.gif\" width=\"1\" height=\"16\"></td>");
    document.writeln("</tr></table>");
	
}


var index_link1 = "\"/vc/index.htm\"";
var index_link2 = "\"/teachings/index.htm\"";
var index_link3 = "\"/activities/index.htm\"";
//This function prints the leftside menu for index page
function index_side_menu()
{
	document.writeln("<table width=\"100%\" height=\"40%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"#FFeecc\">");
	document.writeln("<tr bgcolor=\"#ffcc99\">"); 
//	document.writeln("<td rowspan=\"5\"><img src=\"clear_dot.gif\" width=\"2\" height=\"100\"></td>");
	document.writeln("<td><img src=\"/clear_dot.gif\" width=\"2\" height=\"18\"></td>");
    document.writeln("<td width=\"140\"><font class=\"menu_subtitle\">KMSPKS Specials</font></td>");
//  document.writeln("<td rowspan=\"5\"><img src=\"/gray_dot.gif\" width=\"1\" height=\"270\"></td>");
//	document.writeln("<td rowspan=\"5\"><img src=\"clear_dot.gif\" width=\"7\" height=\"200\"></td>");	
    document.writeln("</tr>");
    document.writeln("<tr>");
	document.writeln("<td><img src=\"/clear_dot.gif\" width=\"2\" height=\"18\"></td>");
    document.writeln("<td width=\"140\"><font class=\"menu_item\"><a href=" + index_link1 + ">Vesak E-Cards</a></font></td>");
    document.writeln("</tr>");
    document.writeln("<tr>");
	document.writeln("<td><img src=\"/clear_dot.gif\" width=\"2\" height=\"18\"></td>");
    document.writeln("<td width=\"140\"><font class=\"menu_item\"><a href=" + index_link2 + ">Free Distribution Books</a></td>");
    document.writeln("</tr>");
    document.writeln("<tr>");
	document.writeln("<td><img src=\"/clear_dot.gif\" width=\"2\" height=\"18\"></td>");
    document.writeln("<td width=\"140\"><font class=\"menu_item\"><a href=" + index_link3 + ">Program Highlights</a></td>");
    document.writeln("</tr>");
    document.writeln("<tr>"); 
	document.writeln("<td><img src=\"/clear_dot.gif\" width=\"2\" height=\"18\"></td>");
    document.writeln("<td width=\"140\"><img src=\"clear_dot.gif\" width=\"140\" height=\"350\"></td>");
    document.writeln("</tr>");
    document.writeln("</table>");
	
}

var vesak_link1 = "\"vesak.htm\"";
var vesak_link2 = "\"3steps.htm\"";
var vesak_link3 = "\"light.htm\"";
var vesak_link4 = "\"upavasatha.htm\"";
var vesak_link5 = "\"pastvesak.htm\"";
var vesak_link6 = "\"http://asp.thedailyenlightenment.com/bookshop/ap2.asp#card\"";
//This function prints the leftside menu for index page
function vesak_side_menu()
{
	document.writeln("<table width=\"100%\" height=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"#FFeecc\">");
	document.writeln("<tr bgcolor=\"#ffcc99\">"); 
	document.writeln("<td><img src=\"/clear_dot.gif\" width=\"2\" height=\"18\"></td>");
    document.writeln("<td width=\"140\"><font class=\"menu_subtitle\">VESAK SPECIAL</font></td>");
    document.writeln("</tr>");
    document.writeln("<tr>");
	document.writeln("<td><img src=\"/clear_dot.gif\" width=\"2\" height=\"18\"></td>");
    document.writeln("<td width=\"140\"><font class=\"menu_item\"><a href=" + vesak_link1 + ">Vesak 2546</a></font></td>");
    document.writeln("</tr>");
    document.writeln("<tr>");
	document.writeln("<td><img src=\"/clear_dot.gif\" width=\"2\" height=\"18\"></td>");
    document.writeln("<td width=\"140\"><font class=\"menu_item\"><a href=" + vesak_link2 + ">Three Steps One Bow Ceremony</a></td>");
    document.writeln("</tr>");
    document.writeln("<tr>");
	document.writeln("<td><img src=\"/clear_dot.gif\" width=\"2\" height=\"18\"></td>");
    document.writeln("<td width=\"140\"><font class=\"menu_item\"><a href=" + vesak_link3 + ">Light Transference Ceremony</a></td>");
    document.writeln("</tr>");	
//    document.writeln("<tr>");
//	document.writeln("<td><img src=\"/clear_dot.gif\" width=\"2\" height=\"18\"></td>");
 //   document.writeln("<td width=\"140\"><font class=\"menu_item\"><a href=" + vesak_link4 + ">Upavasatha Days</a></td>");
//    document.writeln("</tr>");
    document.writeln("<tr>");
	document.writeln("<td><img src=\"/clear_dot.gif\" width=\"2\" height=\"18\"></td>");
    document.writeln("<td width=\"140\"><font class=\"menu_item\"><a href=" + vesak_link5 + ">Past Vesak</a></td>");
    document.writeln("</tr>");
    document.writeln("<tr>");
	document.writeln("<td><img src=\"/clear_dot.gif\" width=\"2\" height=\"18\"></td>");
    document.writeln("<td width=\"140\"><font class=\"menu_item\"><a href=" + vesak_link6 + " target=\"_blank\">Vesak Cards</a></td>");
    document.writeln("</tr>");		
    document.writeln("<tr>"); 
	document.writeln("<td><img src=\"/clear_dot.gif\" width=\"2\" height=\"18\"></td>");
    document.writeln("<td width=\"140\"><img src=\"clear_dot.gif\" width=\"140\" height=\"120\"></td>");
    document.writeln("</tr>");
    document.writeln("</table>");
	
}


function bottommenu()
{
	document.writeln("<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\">");
	document.writeln("<tr><td colspan=\"10\" height=\"1\"><hr size=\"1\"></td></tr>");
    document.writeln("<tr align=\"center\" valign=\"middle\">"); 
    document.writeln("<td width=\"1\" align=\"left\" height=\"16\"><img src=\"/white_dot.gif\" width=\"1\" height=\"10\"></td>");
    document.writeln("<td width=\"94\" height=\"16\" valign=\"middle\" ><a href=" + index + "><span class=\"bottommenu\">Index</span></a></td>");
    document.writeln("<td width=\"104\" height=\"16\" valign=\"middle\" ><a href=" + aboutus + "><span class=\"bottommenu\">About Us</span></a></td>");
 //   document.writeln("<td width=\"96\" height=\"16\" valign=\"middle\" ><a href=" + whatnew + "><span class=\"bottommenu\">What's New</span></a></td>");
    document.writeln("<td width=\"106\" height=\"16\" valign=\"middle\" ><a href=" + activities + "><span class=\"bottommenu\">Activities</span></a></td>");
    document.writeln("<td width=\"107\" height=\"16\" valign=\"middle\" ><a href=" + services + "><span class=\"bottommenu\">Services</span></a></td>");
    document.writeln("<td width=\"107\" height=\"16\" valign=\"middle\" ><a href=" + teachings + "><span class=\"bottommenu\">Teachings</span></a></td>");
    document.writeln("<td width=\"107\" height=\"16\" valign=\"middle\" ><a href=" + sitemap + "><span class=\"bottommenu\">Sitemap</span></a></td>");
    document.writeln("<td width=\"107\" height=\"16\" valign=\"middle\" ><a href=" + contacts + "><span class=\"bottommenu\">Contacts</span></a></td>");
    document.writeln("<td width=\"1\" align=\"right\" height=\"16\"><img src=\"/white_dot.gif\" width=\"1\" height=\"10\"></td>");
    document.writeln("</tr></table>");


}

var link1 = "\"http://www.awarenessplace.com\"";
var link2 = "\"http://asp.thedailyenlightenment.com\"";
var link3 = "\"/tlc/index.htm\"";
var link4 = "\"/cfund/index.htm\"";
var link5 = "\"/youth/\"";
//This function prints the right side menu for the index page
function index_right_side_menu()
{
    document.writeln("<table width=\"100%\" height=\"40%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"#FFeecc\">");
    document.writeln("<tr bgcolor=\"#ffcc99\">"); 
//    document.writeln("<td rowspan=\"7\"><img src=\"gray_dot.gif\" width=\"1\" height=\"270\"></td>");
//    document.writeln("<td rowspan=\"7\"><img src=\"clear_dot.gif\" width=\"7\" height=\"100\"></td>");
	document.writeln("<td><img src=\"/clear_dot.gif\" width=\"5\" height=\"18\"></td>");
    document.writeln("<td><font class=\"menu_subtitle\">Projects</font></td>");
	document.writeln("<td><img src=\"/clear_dot.gif\" width=\"5\" height=\"18\"></td>");		
//    document.writeln("<td rowspan=\"7\"><img src=\"clear_dot.gif\" width=\"2\" height=\"100\"></td>");
    document.writeln("</tr>");
    document.writeln("<tr>");
	document.writeln("<td><img src=\"/clear_dot.gif\" width=\"5\" height=\"25\"></td>");	
    document.writeln("<td class=\"menu_item\"><a href=" + link1 + " target=\"_blank\">Awareness Place</a></td>");
	document.writeln("<td><img src=\"/clear_dot.gif\" width=\"5\" height=\"25\"></td>");		
    document.writeln("</tr>");
    document.writeln("<tr>");
	document.writeln("<td><img src=\"/clear_dot.gif\" width=\"5\" height=\"25\"></td>");	
    document.writeln("<td class=\"menu_item\"><a href=" + link2 + " target=\"_blank\">TheDailyEnlightenment</a></td>");
	document.writeln("<td><img src=\"/clear_dot.gif\" width=\"5\" height=\"25\"></td>");		
    document.writeln("</tr>");
    document.writeln("<tr>");
	document.writeln("<td><img src=\"/clear_dot.gif\" width=\"5\" height=\"25\"></td>");	
    document.writeln("<td class=\"menu_item\"><a href=" + link3 + " target=\"_blank\">Tender Loving Care Student Care Centre</a></td>");
	document.writeln("<td><img src=\"/clear_dot.gif\" width=\"5\" height=\"25\"></td>");		
    document.writeln("</tr>");
    document.writeln("<tr>");	
	document.writeln("<td><img src=\"/clear_dot.gif\" width=\"5\" height=\"25\"></td>");
    document.writeln("<td class=\"menu_item\"><a href=" + link5 + " target=_blank>Youth Ministry</a></td>");
	document.writeln("<td><img src=\"/clear_dot.gif\" width=\"5\" height=\"25\"></td>");		
   document.writeln("</tr>");	
    document.writeln("<tr>");
	document.writeln("<td><img src=\"/clear_dot.gif\" width=\"5\" height=\"25\"></td>");	
    document.writeln("<td ><img src=\"/clear_dot.gif\" width=\"110\" height=\"300\"></td>");
	document.writeln("<td><img src=\"/clear_dot.gif\" width=\"5\" height=\"25\"></td>");		
    document.writeln("</tr>");
    document.writeln("<tr>");
	document.writeln("<td><img src=\"/clear_dot.gif\" width=\"5\" height=\"25\"></td>");	
    document.writeln("<td><img src=\"/clear_dot.gif\" width=\"133\" height=\"8\"></td>");
	document.writeln("<td><img src=\"/clear_dot.gif\" width=\"5\" height=\"25\"></td>");		
    document.writeln("</tr>");
    document.writeln("</table>");

}

function copyright()
{
	document.writeln("<br>Copyright&copy; 2002 Kong Meng San Phor Kark See Monastery");

}




