function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function fnright(page)
	{
	var page;
	var	str="";
		str +="	<table cellpadding='0' cellspacing='0' width='100%' border='0'>";
		if (page=='Home')
		{
		str +="	<tr><td><a href='index.html' onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('Image17','','images/menuHomeHover.jpg',1)\"><img src='images/menuHomeHover.jpg' alt='Home' name='Image17' width='189' height='53' border='0' id='Image17' /></a><br /></td></tr>";
		}
		else
		{
		str +="	<tr><td><a href='index.html' onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('Image17','','images/menuHomeHover.jpg',1)\"><img src='images/menuHome.jpg' alt='Home' name='Image17' width='189' height='53' border='0' id='Image17' /></a></td></tr>";
		}
		if (page=='history')
		{
		str +="	<tr><td><a href='history.html' onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('Image8','','images/menuHistoryHover.jpg',1)\"><img src='images/menuHistoryHover.jpg' alt='History' name='Image8' width='189' height='53' border='0' id='Image8' /></a></td></tr>";
		}
		else
		{
		str +="	<tr><td><a href='history.html' onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('Image8','','images/menuHistoryHover.jpg',1)\"><img src='images/menuHistory.jpg' alt='History' name='Image8' width='189' height='53' border='0' id='Image8' /></a></td></tr>";
		}
		if (page=='babadharshan')
		{
		str +="	<tr><td><a href='babadharshan.html' onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('Image9','','images/inneBabaDharshanHover.jpg',1)\"><img src='images/inneBabaDharshanHover.jpg' alt='Baba Dharshan' name='Image9' width='189' height='53' border='0' id='Image9' /></a></td></tr>";
		}
		else
		{
		str +="	<tr><td><a href='babadharshan.html' onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('Image9','','images/inneBabaDharshanHover.jpg',1)\"><img src='images/inneBabaDharshan.jpg' alt='Baba Dharshan' name='Image9' width='189' height='53' border='0' id='Image9' /></a></td></tr>";
		}
		if (page=='gallery')
		{
		str +="	<tr><td><a href='gallery.html' onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('Image10','','images/menuPhtogalleryTempleHover.jpg',1)\"><img src='images/menuPhtogalleryTempleHover.jpg' alt='Photo Gallery - Temple' name='Image10' width='189' height='53' border='0' id='Image10' /></a></td></tr>";
		}
		else
		{
		str +="	<tr><td><a href='gallery.html' onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('Image10','','images/menuPhtogalleryTempleHover.jpg',1)\"><img src='images/menuPhtogalleryTemple.jpg' alt='Photo Gallery - Temple' name='Image10' width='189' height='53' border='0' id='Image10' /></a></td></tr>";
		}
		if (page=='activities')
		{
		str +="	<tr><td><a href='social_activities.html' onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('Image11','','images/menuActivitiesHover.jpg',1)\"><img src='images/menuActivitiesHover.jpg' alt='Social Activities' name='Image11' width='189' height='53' border='0' id='Image11' /></a></td></tr>";
		}
		else
		{
		str +="	<tr><td><a href='social_activities.html' onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('Image11','','images/menuActivitiesHover.jpg',1)\"><img src='images/menuActivities.jpg' alt='Social Activities' name='Image11' width='189' height='53' border='0' id='Image11' /></a></td></tr>";
		}
		if (page=='knowledgecentre')
		{
		str +="	<tr><td><a href='knowledge_centre.html' onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('Image12','','images/menuKnowledgeCentreHover.jpg',1)\"><img src='images/menuKnowledgeCentreHover.jpg' alt='Knowledge Centre' name='Image12' width='189' height='53' border='0' id='Image12' /></a></td></tr>";
		}
		else
		{
		str +="	<tr><td><a href='knowledge_centre.html' onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('Image12','','images/menuKnowledgeCentreHover.jpg',1)\"><img src='images/menuKnowledgeCentre.jpg' alt='Knowledge Centre' name='Image12' width='189' height='53' border='0' id='Image12' /></a></td></tr>";
		}
		if (page=='contribution')
		{
		str +="	<tr><td><a href='devotees_contribution.html' onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('Image13','','images/menuDevoteesContribunHover.jpg',1)\"><img src='images/menuDevoteesContribunHover.jpg' alt='Devotees Contribution' name='Image13' width='189' height='51' border='0' id='Image13' /></a></td></tr>";
		}
		else
		{
		str +="	<tr><td><a href='devotees_contribution.html' onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('Image13','','images/menuDevoteesContribunHover.jpg',1)\"><img src='images/menuDevoteesContribun.jpg' alt='Devotees Contribution' name='Image13' width='189' height='51' border='0' id='Image13' /></a></td></tr>";
		}
		if (page=='contact')
		{
		str +="	<tr><td><a href='contact_us.html' onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('Image14','','images/menuContactUsLocationHover.jpg',1)\"><img src='images/menuContactUsLocationHover.jpg' alt='Contact Us &amp; Location' name='Image14' width='189' height='53' border='0' id='Image14' /></a></td></tr>";
		}
		else
		{
		str +="	<tr><td><a href='contact_us.html' onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('Image14','','images/menuContactUsLocationHover.jpg',1)\"><img src='images/menuContactUsLocation.jpg' alt='Contact Us &amp; Location' name='Image14' width='189' height='53' border='0' id='Image14' /></a></td></tr>";
		}
		str +="	<tr><td><img src='images/blink.gif'/></tr></td>";
		str +="	</table>";
	document.write(str);
	}


function fnbottom()
{
	var str="";
		str +="<a href='history.html' class='foterLink'>History</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href='babadharshan.html' class='foterLink'>Baba Dharshan</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href='gallery.html' class='foterLink'>Photo Gallery - The Temple Complex</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href='social_activities.html' class='foterLink'>Social Activities</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href='devotees_contribution.html' class='foterLink'>Devotees Contribution</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href='contact_us.html' class='foterLink'>Contact Us</a>";
		str +="<br />© 2008 Sri Vengusapriya Sai Baba Anandhashrama Trust, All Rights Reserved.&nbsp;&nbsp;&nbsp;&nbsp; Web Solutions by <a href='http://www.advanceecomsolutions.com/' class='foterLink' target='_blank'>AES Technologies (India) Pvt.Ltd</a>";
	document.write(str);
}


function fntop()
{
	var str="";
		str+="<tr><td class='top' valign='top'>";
		str+="<div style='float:right; width:655px; eight:115px; adding:0px 12px 15px 0px; '>";
		str+="<img src='images/logo1.jpg' width='650' height='53' border='0' title='' />";
		str+="<br /><img src='images/logo2.jpg' width='655' height='57' border='0' title='' style='padding-top:15px;' />";
		str+="</div><a href='index.html'><img src='images/logoImg.jpg' width='108' height='110' border='0' title='Sri Vengusapriya Sai Baba' style='padding-top:6px;' /></a>";
		str+="</td></tr>";
	document.write(str);
}










