var dte;
dte = new Date();
var iMod = dte.getSeconds() % iTotal;
//document.write("Date: " + dte.toString() + " -  Mod: " + iMod.toString());

function Rotate(type)
{
	var sRet = "";
	if (type == 1)
	{
		// rotating image
		sRet = "<img src='rotate/rotate" + iMod + ".jpg' border='0'>";
	} else if (type == 2) {
		// rotate text
		sRet = sTexts[iMod];
	}
	return sRet;
}

function Boxes()
{
    var iModBox = dte.getMinutes() % sBox.length;
    var sRet = "";
    sRet = sBox[iModBox];
    return sRet
}
