var thepagenow=location.href;
function showthisvideo(){
	var specs="toolbar=no,location=no,directories=no,statusbar=no,menubar=no,scrollbars=no,resizable=no";
	specs+=",width=600,height=340";
	subwin=window.open("/movie/video_e.asp?thepagename=teaching_mahamudra_about mahamudra","video",specs);
	subwin.moveTo((screen.width-600)/2,(screen.height-340)/2);
	subwin.focus();
}
function thisckchant(){
	var specs="toolbar=no,location=no,directories=no,statusbar=no,menubar=no,scrollbars=no,resizable=no";
	specs+=",width=390,height=225";
	var thisvideo="/movie/audio_e.asp?thepagename=chant_sacred Tibetan buddhist chant 1_mahamudra lineage Prayer and meditation";
	subwin=window.open(thisvideo,"audio",specs);
	subwin.moveTo((screen.width-390)/2,(screen.height-225)/2);
	subwin.focus();
}

document.write("<table width='150' cellspacing='0' cellpadding='0'>");
document.write("<tr>");
document.write("<td class='newssub' style='padding-top:5px;text-align:center;line-height:1.3em'><a href='vajrayana.htm'>Vajrayana Buddhism and Kagyu Lineage<br>by 12th Kenting Tai Situpa</a><br>(A video will be post soon)</td>");
document.write("</tr>");
var thetext="javascript:showpic('/movie/video/mahamudra/brief_e.htm',640,420)"

document.write("<tr>");
document.write("<td class='newssub' style='padding-top:10px;text-align:center;line-height:1.3em'>About Mahamudra</b><br>by Kenting Tai Situpa 2007/3<br><a target='_blank' style='text-decoration:underline' href='/movie/video.swf?themoviein=/movie/video/teaching/mahamudra/about_mahamudrae_1.swf&themovieno=2'>Video</a> | <a style='text-decoration:underline' href="+thetext+">Text</a></td>");
document.write("</tr>");

var thechant="javascript:ckchant('chant_sacred tibetan buddhist chant_mahamudra lineage Prayer and meditation');";
document.write("<tr>");
document.write("<td class='newssub' style='padding-top:10px;text-align:center;line-height:1.3em'><a href='javascript:thisckchant();'><b>Mahamudra Lineage Prayer</b></a></td>");
document.write("</tr>");

document.write("<tr>");
document.write("<td class='newssub' style='padding-top:10px;text-align:center;line-height:1.3em'><a href='dropse.htm'><b>DROPS OF NECTAR</b><br>Remarks by the 12th Kenting Tai Situpa on the first day of the Rinchen Terzod Transmissions in 2006</a><br></td>");
document.write("</tr>");
if(thepagenow.indexOf("vajrayana")>=0){
	document.write("<tr>");
	document.write("<td class='newssub' style='padding-top:10px;text-align:center;line-height:1.3em'><a href='brief.htm#lineagetree'>Karma Kagyu Lineage Tree</a></td>");
	document.write("</tr>");
	document.write("<tr>");
	document.write("<td class='newssub' style='padding-top:10px;text-align:center'><a href='brief.htm#mahamudra'>Mahamudra Teachings & Releated News</a></td>");
	document.write("</tr>");
}else{
	document.write("<tr>");
	document.write("<td class='newssub' style='padding-top:10px;text-align:center;line-height:1.3em'><a href='#lineagetree'>Karma Kagyu Lineage Tree</a></td>");
	document.write("</tr>");
	document.write("<tr>");
	document.write("<td class='newssub' style='padding-top:10px;text-align:center'><a href='#mahamudra'>Mahamudra Teachings & Releated News</a></td>");
	document.write("</tr>");
}
//document.write("<tr>");
//document.write("<td class='newssub' style='padding-top:5px;text-align:center'></a></td>");
//document.write("</tr>");
document.write("</table>");
