<!-- Begin
linksIMG = new Array("1","2","3","4","5","6","7","8","9","0");
ImgPath = "wp-content/uploads/specials";
days = new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
year = new Date().getYear()/4;
if (year.toString().indexOf(".") == -1)  // ## Leap year check
	{days[1] = 29;}
//  ###  BEGIN PAGE LOAD SECTION
day = new Date().getDay();
hour = new Date().getHours();
minute = new Date().getMinutes();
second = new Date().getSeconds();
date = new Date().getDate();
month = new Date().getMonth();
FirstDay = new Date(new Date().getYear(), 0, 1).getDay();
zdays=0;
for (kk=0;kk<month;kk++)
	{zdays += days[kk];}
week = Math.floor((zdays + FirstDay + date)/7);
//  ###  END PAGE LOAD SECTION
//  ###  BEGIN DYNAMIC SECTION
function AutoRotate() {
day = new Date().getDay();
hour = new Date().getHours();
minute = new Date().getMinutes();
second = new Date().getSeconds();
date = new Date().getDate();
month = new Date().getMonth();
FirstDay = new Date(new Date().getYear(), 0, 1).getDay();
zdays=0;
for (kk=0;kk<month;kk++)
	{zdays += days[kk];}
week = Math.floor((zdays + FirstDay + date)/7);
document.Rotate.Dtime.value = new Date();
document.Rotate.SM.src = ImgPath + linksIMG[second % linksIMG.length] +'.jpg'
LinkUpdate("SMLink",'<a href='+ linksURL[second % linksURL.length] + '>'+ linksNAME[second % linksNAME.length] +'</a>');
document.Rotate.DW.src = ImgPath + linksIMG[day % linksIMG.length] +'.jpg'
LinkUpdate("DWLink",'<a href='+ linksURL[day % linksURL.length] + '>'+ linksNAME[day % linksNAME.length] +'</a>');
setTimeout("AutoRotate();",1000);
}
function LinkUpdate(LinkId,text) {
if (document.all) {document.all[LinkId].innerHTML = text;}
else if (document.getElementById) {document.getElementById(LinkId).innerHTML = text;}
//  ###  END DYNAMIC SECTION
}
// ##  day of the week
document.write(
	'<img src="'+ ImgPath + linksIMG[day % linksIMG.length] +'.png" border=0 width=445 height=290>');
// End -->

