function reloadImage()
{
	var now = new Date();
	var reload = false;
	
	// Search images for items with class = reload
	for (i in document.images)
	{
		if (document.images[i].className && document.images[i].className.match("reload"))
		{
			// place a dummy GET argument to force the image to reload in the browser
			document.images[i].src = document.images[i].src + '?' + now.getTime();
			reload = true;
		}
	}
	
	// Search for iframes with class = reload
	var iframes = document.getElementsByTagName("iframe");
	for (i in iframes)
	{
		if (iframes[i].className && iframes[i].className.match("reload"))
		{
			// place a dummy GET argument to force reload reload in the browser
			iframes[i].src = iframes[i].src + '?' + now.getTime();
			reload = true;
		}
	}
	
	if (reload)
	{
		// Sleep for two minutes if we have anything to do
		setTimeout('reloadImage()', 60000);
	}
}

setTimeout('reloadImage()', 60000);

