// JavaScript Document
//place the following 2 functions in either a js file or the head of your
//document
function timedSwitcher(seconds, initialEl, finalEl){
	timeout = 1000*seconds
	document.getElementById(initialEl).style.display="block";
	setTimeout('switcher(\''+initialEl+'\',\''+finalEl+'\')',timeout);
}
function switcher(off, on){
	document.getElementById(off).style.display="none";
	document.getElementById(on).style.display="block";
}

//The following line of code can be used if you do not use another onload function
//or else use the script shown just before the </body> tag on this page.
// 
window.onload = function (){timedSwitcher(52,'flashcontent1','mainphoto'); }; 
//
//Make sure that 'initial' and 'final' are change to the ID you gave the elements you want to switch
//and the 3 is the number of seconds it waits before switching.

