<!--

	/*

	 +---------+--------=[   Klof   ]=--------------
	 |         |
	 | Script  | imgroll.js
	 | Goal    | Swap images
	 | Author  |Y.T. de Jong
	 | Date    |25/05/2003
	 | 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/menu/menu_off_01.png", "images/menu/menu_on_01.png" )
		preLoadImage( "h02", "images/menu/menu_off_02.png", "images/menu/menu_on_02.png" )
		preLoadImage( "h03", "images/menu/menu_off_03.png", "images/menu/menu_on_03.png" )
		preLoadImage( "h04", "images/menu/menu_off_04.png", "images/menu/menu_on_04.png" )
		preLoadImage( "h05", "images/menu/menu_off_05.png", "images/menu/menu_on_05.png" )
		preLoadImage( "h06", "images/menu/menu_off_06.png", "images/menu/menu_on_06.png" )
		preLoadImage( "h07", "images/menu/menu_off_07.png", "images/menu/menu_on_07.png" )
		preLoadImage( "h08", "images/menu/menu_off_08.png", "images/menu/menu_on_08.png" )
		preLoadImage( "h09", "images/menu/menu_off_09.png", "images/menu/menu_on_09.png" )
		}
	
// -->
