<!--

	/*

	 +---------+--------=[   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/sm_topbar_button_01_off.gif", "../images/sm_topbar_button_01_on.gif" )
		preLoadImage( "h02", "../images/sm_topbar_button_02_off.gif", "../images/sm_topbar_button_02_on.gif" )
		preLoadImage( "h03", "../images/sm_topbar_button_03_off.gif", "../images/sm_topbar_button_03_on.gif" )
		preLoadImage( "h04", "../images/sm_topbar_button_04_off.gif", "../images/sm_topbar_button_04_on.gif" )
		
		preLoadImage( "h05", "../images/sm_button_01_off.gif", "../images/sm_button_01_on.gif" )
		preLoadImage( "h06", "../images/sm_button_02_off.gif", "../images/sm_button_02_on.gif" )
		preLoadImage( "h07", "../images/sm_button_03_off.gif", "../images/sm_button_03_on.gif" )
		preLoadImage( "h08", "../images/sm_button_04_off.gif", "../images/sm_button_04_on.gif" )
		preLoadImage( "h09", "../images/sm_button_05_off.gif", "../images/sm_button_05_on.gif" )
		preLoadImage( "h10", "../images/sm_button_06_off.gif", "../images/sm_button_06_on.gif" )
		preLoadImage( "h11", "../images/sm_button_09_off.gif", "../images/sm_button_09_on.gif" )
		preLoadImage( "h12", "../images/sm_button_10_off.gif", "../images/sm_button_10_on.gif" )
		preLoadImage( "h13", "../images/sm_button_11_off.gif", "../images/sm_button_11_on.gif" )

		
		}
	
// -->
