<!--
/*-----------------------------------------------
	Script:	imgswap.js
	Name:		imageSwap
	Date: 	18/08/1998
	Version: 	1.02

	Purpose: 	To swap an image source with another image, Change window status.
			- define each of the images either within the html file, or within
			  a .js file, just like below.
			- the image name to be swapped must match the image name defined eg.
			  from the example below the image being swapped is 'example'.
			- insert these lines into the link you wish to use to create the rollover
				- onmouseover="imageSwap('On','example','','example window status'); return true" 
				- onmouseout="imageSwap('Off','example','',''); return true"
			- note: inbetween the ( )'s there are 4 fields ('toggle "On/Off"', 'Image name', 'Next Instance', 'Window Status')
			- Next Instance is if you wish to change one image to multiple other images (But only from different links)
				- the Line below would change the image called 'example' to 
				  the image defined as 'exampleb' below this allows the image 'example'
				  to change into many other images.
				- onmouseover="imageSwap('On','example','b','example b window status');"
					

	Updates: 	Date: 21/06/00
			Person: ºGrânT × Perrÿº
			Description: Now works in Netscape 6 (N5)

------------------------------------------------*/

browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
version = browserName.substring(0,1) + browserVer;


function imageSwap (toggle, image, nextInstanceName, description) {

	if (version == "N3" || version == "N4" || version == "M4" || version == "N5") {

	imageName = eval(image + toggle + ".src"); 
	imageWithBottom = image + nextInstanceName; 
 	document[imageWithBottom].src = imageName;
	window.status = description;
	};
};


// -->
