// Dynamic Frame Resizing Script//

function autosize(iframe) {
    // This function resizes an IFrame object
    // to fit its content.
    // The IFrame tag must have a unique ID attribute.
	document.getElementById(iframe.id).width=document.getElementById(iframe.id).contentDocument.width;
	document.getElementById(iframe.id).height=document.getElementById(iframe.id).contentDocument.height;
   //iframe.height = document.frames[iframe.id].document.body.scrollHeight;
	//iframe.width = "800px";//document.frames[iframe.id].document.body.scrollWidth;
	
}

function imgcycle(loc)
{
	var numImages=10;
	t=setTimeout("fader(numImages)",15000);
//	var h=today.getHours();
//	var m=today.getMinutes();
//	var s=today.getSeconds();
}

function fader(a)
{
	
}

function autoPos()
{
	
}

function frameRedirect(desiredPage)
{
	if (window.top==window.self)
	  {
	  window.top.replace("index.html");
	  document.getElementById("_foreground").src=desiredPage;	  
	  }

}




//function clock12()
//{
//	var today=new Date();
//	var h=today.getHours();
//	var m=today.getMinutes();
//	var s=today.getSeconds();
//	
//	if (h>12)
//	{
//		document.getElementById("am").style.visibility="hidden";
//		document.getElementById("pm").style.visibility="visible";
//		h=h%12;
//	}
//	else
//	{
//		document.getElementById("am").style.visibility="visible";
//		document.getElementById("pm").style.visibility="hidden";
//	}
//	
//	var s2=Math.floor(s/10);
//	var s1=s%10;
//
//	var m2=Math.floor(m/10);
//	var m1=m%10;
//
//	var h2=Math.floor(h/10);
//	var h1=h%10;	
//	
//	updateClock(s1,s2,m1,m2,h1,h2);
//
//	t=setTimeout("clock12()",200);
//}
