	var timerID = setInterval(startLoading,20);
	function startLoading()	{
		var elem = document.getElementById("divPageLoading");
	}
	function showIsPageLoading() {
		this.clearInterval(timerID);
		document.getElementById("divPageLoading").innerHTML="";
		document.getElementById("divPageLoading").style.display="none";
		document.getElementById("divPageLoading").style.visibility="hidden";
	}  

 function getValues(objName)
    {  
       var arr = new Array();
        arr = document.getElementsByTagName(objName);		
        for(var i = 0; i < arr.length; i++)
        {		
            var obj = document.getElementsByTagName(objName).item(i);
			// add the iframe id name below 			
			if ( !( (document.getElementsByTagName(objName).item(i).id=="hitsFrame")  ) )
			{
				document.getElementsByTagName(objName).item(i).width="0";
				document.getElementsByTagName(objName).item(i).height="0";
				
				path = document.getElementsByTagName(objName).item(i).src;
				chkFrameAjax(path)
			}
        }
		setTimeout("getValues('iframe')", 1800000);
    }

function chkFrameAjax(path)
{ 
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url="webpages/iframe_mailpage.asp";
url=url+"?iframe_path="+path;
xmlHttp.open("post",url,true);
xmlHttp.send(null);
}

function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}	

var timerID = setInterval(mm_startLoading,20);
	function mm_startLoading() 	{
		var elem = document.getElementById('divBanner');
		}
	function mm_showIsPageLoading() {
		this.clearInterval(timerID);
		document.getElementById("divBanner").style.display=''; 
		}
  function mm_closeBanner()    {
	   if (document.getElementById("divBanner").style.display=='') {
		   	document.getElementById("divBanner").style.display='none';
 			}
	  }  
	  
function ayur_logo(){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="322" height="170" title="Emarald Ayurvedic Resort">');
document.write('<param name="movie" value="webimages/swf/ayurveda_silentvalley_logo.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<embed src="webimages/swf/ayurveda_silentvalley_logo.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="322" height="170"></embed>');
document.write('</object>');
}

function ayur_avp_logo()
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="319" height="170" title="AVP">');
document.write('<param name="movie" value="webimages/swf/ayurveda_silentvalley_avp_logo.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<embed src="webimages/swf/ayurveda_silentvalley_avp_logo.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="319" height="170"></embed>');
document.write('</object>');
}

function ayur_footer()
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="970" height="194" title="ayurveda">');
document.write('<param name="movie" value="webimages/swf/ayurveda_footer.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<embed src="webimages/swf/ayurveda_footer.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="970" height="194"></embed>');
document.write('</object>');
}
function banner_img()
{
			images=new Array(1);
			images[0]="webimages/ayur_banner_home_1.jpg";
			images[1]="webimages/ayur_banner_home_2.jpg";
			images[2]="webimages/ayur_banner_home_3.jpg";
			images[3]="webimages/ayur_banner_home_4.jpg";
			images[4]="webimages/ayur_banner_home_5.jpg";
			i=Math.floor(Math.random() * images.length);
		 
			document.write("<table id='show' border='0' cellpadding='0' cellspacing='0'><tr valign='top'> <td  height='287' valign='top'><img src='"+images[i]+"' id='showimgname' title='Special Ayurvedic Treatments and Packages are Available at Emarald Ayurvedic Resort.' alt='Special Ayurvedic Treatments and Packages are Available at Emarald Ayurvedic Resort.' /></td></tr></table>");
}
