<!--

	/*

	 +---------+--------=[   Klof   ]=--------------
	 |         |
	 | Script  | imgroll.js
	 | Goal    | Swap images
	 | Author  | R. Spieker / Klof
	 | Date    | 11/05/2002
	 | History | --
	 +---------+--------------------------

	 */

	/* void preLoadImage( string Imagename, string imagename_on, string imagename_off ) */
	function preLoadImage( strImageName, strSourceOn, strSourceOff )
		{
		// Create image array
		img[ strImageName ] = new Array()
		
		// Define "off" image and preload it
		img[ strImageName ][ 0 ] = new Image()
		img[ strImageName ][ 0 ].src = strSourceOff
	
		// Define "on" image and preload it
		img[ strImageName ][ 1 ] = new Image()
		img[ strImageName ][ 1 ].src = strSourceOn
		}
	
	/* void swapImage( string Imagename ) */
	function rollImage( strImageName )
		{
		if ( bEnableRoll )
			{
			if ( document[ strImageName ].src == img[ strImageName ][ 1 ].src )
				document[ strImageName ].src = img[ strImageName ][ 0 ].src
			else
				document[ strImageName ].src = img[ strImageName ][ 1 ].src
			}
		}
	
	intBrowserVersion = parseInt( navigator.appVersion )
	var bEnableRoll = true
	if ( intBrowserVersion < 3 )
		bEnableRoll = false
	
	if ( bEnableRoll )
		{
		// Create image container
		var img = new Array();
		
		// Preload images
		preLoadImage( "h01", "images/button_home.gif", "images/button_home_on.gif" )
		preLoadImage( "h02", "images/button_nieuws.gif", "images/button_nieuws_on.gif" )
		preLoadImage( "h03", "images/button_info.gif", "images/button_info_on.gif" )
		preLoadImage( "h04", "images/button_fitness.gif", "images/button_fitness_on.gif" )
		preLoadImage( "h05", "images/button_particulieren.gif", "images/button_particulieren_on.gif" )
		preLoadImage( "h06", "images/button_werkwijze.gif", "images/button_werkwijze_on.gif" )
		preLoadImage( "h07", "images/button_bedrijfs.gif", "images/button_bedrijfs_on.gif" )
		preLoadImage( "h08", "images/button_fiscus.gif", "images/button_fiscus_on.gif" )
		preLoadImage( "h09", "images/button_50.gif", "images/button_50_on.gif" )
		preLoadImage( "h10", "images/button_beach.gif", "images/button_beach_on.gif" )
		preLoadImage( "h11", "images/button_prijzen.gif", "images/button_prijzen_on.gif" )
		preLoadImage( "h12", "images/button_club.gif", "images/button_club_on.gif" )
		preLoadImage( "h13", "images/button_test.gif", "images/button_test_on.gif" )
		preLoadImage( "h14", "images/button_kleding.gif", "images/button_kleding_on.gif" )
		preLoadImage( "h15", "images/button_supplementen.gif", "images/button_supplementen_on.gif" )
		preLoadImage( "h16", "images/button_gallerij.gif", "images/button_gallerij_on.gif" )
		
		}
	
// -->

