/*	This code will point to a different image every minute, hour or day.
	To modify the interval change the attribute getMinutes to something else such as
	getHours, getDay or getMonth etc. Then you will need to rename the images accordingly.
	If you have selected getMonth you'll need 12 images named 1.jpg - 12.jpg. 
	getHours requires 24 images, etc, etc.
*/

// runs the normal 24 hour rotation

var today = new Date();
var top_main = today.getHours();
document.write('<img src="../images/rotationHP/' + top_main + '.jpg" width="750" height="250" border="0">');



// runs a special 4 image rotation
/*
var today = new Date();
var top_main = today.getHours();

if (top_main == 1 || top_main == 5 || top_main == 9 || top_main == 13 || top_main == 17 || top_main == 21)
var top_main = "1";

	else if (top_main == 2 || top_main == 6 || top_main == 10 || top_main == 14 || top_main == 18 || top_main == 22)
	var top_main = "2";
	
		else if (top_main == 3 || top_main == 7 || top_main == 11 || top_main == 15 || top_main == 19 || top_main == 23)
		var top_main = "3";
		
			else 
			var top_main = "4";
			 
document.write('<img src="../images/specialRotate_ARH/' + top_main + '.jpg" width="750" height="250" border="0">');

*/