<!--
// Edit at one's peril
// A container for the banners
var $banners = new Array( $images.length );

// The default url
// var $defaulturl = 'http://australianatomicconfessions.com';

// Today's date
var $today = new Date();
// Retrieve the time for use in the seeding of the random number
var $seed  = $today.getTime();

function SEED() {
	$seed = ( $seed * 656 + 1146834000 ) % 1105;
	
	return $seed / 1105;
};

function RANDOM( $number ) {
	return Math.ceil( SEED() * $number );
}


function INITIALIZE() {
	// Retrieve the browser type
	var $browser = navigator.appName;
	// Retrieve the browser version
	var $version = parseInt( navigator.appVersion );
	
	// Check if the browser is more current than Netscape version 3
	if( $browser == 'Netscape' && $version >= 3 ) {
		$valid = true;
	}
	
	// Check if the browser is more current than IE version 4
	if( $browser == 'Microsoft Internet Explorer' && $version >= 4 ) {
		$valid = true;
	}
	
	if( $valid ) {
		
		// Set the countdown timer to run the change image function
		// $timer = setTimeout( 'CHANGEIMAGE()', $interval * 1000 );
		
		for( $i = 0; $i < $images.length; $i++ ) {
			$banners[ $i ] = new Image();
			$banners[ $i ].src = $images[ $i ];
		}
		
		CHANGEIMAGE();
	}
}

// Change the image
function CHANGEIMAGE() {
	if( $valid ) {
		// The current banner 
		$current = RANDOM( $images.length ) - 1;
		
		window.document.banner.src = $banners[ $current ].src;
		document.getElementById( 'bannerinfo' ).innerHTML = $info[ $current ];
	
		// Reset the countdown timer, then run this function to change the image
		$timer = setTimeout( 'CHANGEIMAGE()', $interval * 1000 );
	}
}

// Change the link for the banner
function CHANGEURL() {
	if( $valid ) {
		document.location = $urls[ $current ];
	} else {
		document.location = $defaulturl;
	}
}
// -->