// JavaScript Banners Rotation
var banners = new Array(
	'<a href="/wallpaper/800/30.jpg" title="novi wallpapers"><img src="/images/baneri/wallpapers/800/30.gif" width="280" height="199" border="0" /></a>',
	'<a href="/wallpaper/800/32.jpg" title="novi wallpapers"><img src="/images/baneri/wallpapers/800/32.gif" width="280" height="199" border="0" /></a>',
	'<a href="/wallpaper/800/33.jpg" title="novi wallpapers"><img src="/images/baneri/wallpapers/800/33.gif" width="280" height="199" border="0" /></a>',
	'<a href="/wallpaper/800/34.jpg" title="novi wallpapers"><img src="/images/baneri/wallpapers/800/34.gif" width="280" height="199" border="0" /></a>',
	'<a href="/wallpaper/800/35.jpg" title="novi wallpapers"><img src="/images/baneri/wallpapers/800/35.gif" width="280" height="199" border="0" /></a>',
	'<a href="/wallpaper/800/40.jpg" title="novi wallpapers"><img src="/images/baneri/wallpapers/800/40.gif" width="280" height="199" border="0" /></a>'
	);
var banners2 = new Array(
	'<a href="/Igrice/guralica/" title="Nove table na guralici."><img src="/images/baneri/igrice/guralica.gif" width="234" height="188" border="0" align="right" /></a>',
	'<a href="/Igrice/slagalica/" title="Nove table na slagalici."><img src="/images/baneri/igrice/slagalica.gif" width="234" height="188" border="0" align="right" /></a>'
	);


function rotate()
{
	if (!document.images) return
	while (current == old)
	{
		current = Math.floor(Math.random()*banners.length);
	}
	old = current;
	document.getElementById('banner_pic').innerHTML = banners[current];

	setTimeout('rotate()',6000);
}
function rotate2()
{
	if (!document.images) return
	while (current == old)
	{
		current = Math.floor(Math.random()*banners2.length);
	}
	old = current;
	document.getElementById('banner_pic2').innerHTML = banners2[current];

	setTimeout('rotate2()',7500);
}