<!--

	/*

	 +---------+--------=[   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/tattoo_but_01_off.gif", "images/tattoo_but_01_on.gif" )
		preLoadImage( "h02", "images/tattoo_but_02_off.gif", "images/tattoo_but_02_on.gif" )
		preLoadImage( "h03", "images/tattoo_but_03_off.gif", "images/tattoo_but_03_on.gif" )
		preLoadImage( "h04", "images/tattoo_but_04_off.gif", "images/tattoo_but_04_on.gif" )
		preLoadImage( "h05", "images/tattoo_but_05_off.gif", "images/tattoo_but_05_on.gif" )
		preLoadImage( "h06", "images/tattoo_but_06_off.gif", "images/tattoo_but_06_on.gif" )
		preLoadImage( "h07", "images/tattoo_but_07_off.gif", "images/tattoo_but_07_on.gif" )
		preLoadImage( "h08", "images/tattoo_but_08_off.gif", "images/tattoo_but_08_on.gif" )
		preLoadImage( "h09", "images/tattoo_but_09_off.gif", "images/tattoo_but_09_on.gif" )
		preLoadImage( "h10", "images/tattoo_but_10_off.gif", "images/tattoo_but_10_on.gif" )
		preLoadImage( "h11", "images/tattoo_but_11_off.gif", "images/tattoo_but_11_on.gif" )
		preLoadImage( "h12", "images/tattoo_but_12_off.gif", "images/tattoo_but_12_on.gif" )
		preLoadImage( "h13", "images/tattoo_but_13_off.gif", "images/tattoo_but_13_on.gif" )
		
		}
	
// -->