<!--

	/*

	 +---------+--------=[   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/lbs_button_01.gif", "images/lbs_button_01_on.gif" )
		preLoadImage( "h02", "images/lbs_button_02.gif", "images/lbs_button_02_on.gif" )
		preLoadImage( "h03", "images/lbs_button_03.gif", "images/lbs_button_03_on.gif" )
		preLoadImage( "h04", "images/lbs_button_04.gif", "images/lbs_button_04_on.gif" )
		preLoadImage( "h07", "images/lbs_button_rec.gif", "images/lbs_button_rec_on.gif" )
		preLoadImage( "h05", "images/lbs_button_05.gif", "images/lbs_button_05_on.gif" )
		preLoadImage( "h06", "images/lbs_button_06.gif", "images/lbs_button_06_on.gif" )

		
		}
	
// -->
