// Randomize Images
RandomizeImages();

function RandomizeImages()
{
	RandomizeFooter(15);
}

function RandomizeFooter(max)
{
	var ss = document.styleSheets;
	for(var i in ss)
	{
		if(ss[i].title == "FOT")
		{
			for(var j in ss[i].cssRules)
			{
				if(ss[i].cssRules[j].selectorText == "#tdFrameFooter")
				{
					var n = Math.floor(Math.random() * max);
					ss[i].cssRules[j].style.backgroundImage = "url(\"img/Footer" + (n + 1) + ".png\")";
				}
			}
		}
	}
}
