/**
* JavaScript source for layout.php.
*
* @package Site
* @subpackage Templates
* @author Pavel "Papi" Jartsev <papi@digitalfruit.ee>
*/

function imageRotator( id )
{
	if ( ! id )
		id = 'image-rotator';

	var img = document.getElementById( id );
	if ( img ) {
		img.src = imageRotatorUrl + imageRotatorItems[imageRotatorNr];
		imageRotatorNr++;
		if ( imageRotatorNr >= imageRotatorItems.length )
			imageRotatorNr = 0;
	}
}