<!--
	var objCount = 0;
	var currentImg;

	var linkImg;
	linkImg = false;

	var pics;
	pics = new Array();
  
	// preload images and place them in an array
	function preload(name, zero, one, two) {  
		pics[objCount] = new Array(4);
		pics[objCount][0] = new Image(); pics[objCount][0].src = zero;
		pics[objCount][1] = new Image(); pics[objCount][1].src = one;
		pics[objCount][2] = new Image(); pics[objCount][2].src = two;
		pics[objCount][3] = name;
		objCount++;
	}
	
	function SwapImage(name){	
		//-- swap image 
		for (i = 0; i < objCount; i++) {
			if (document.images[pics[i][3]] != null){
				if (pics[i][3] == name){
					// show the second image because cursor moves across this image
					document.images[pics[i][3]].src = pics[i][1].src;
				}
			}
		}
	}

	function SwapBack(){	
		//-- swap back the image
		for (i = 0; i < objCount; i++) {
			if (document.images[pics[i][3]] != null) {
				if (currentImg != null){
					if (pics[i][3] != pics[currentImg][3]){
						//-- set back to normal
						document.images[pics[i][3]].src = pics[i][0].src;
					}	
					else{
						//-- set back to link image
						document.images[pics[i][3]].src = pics[i][2].src;	
					}
				}
				else{
					//-- set back to normal
					document.images[pics[i][3]].src = pics[i][0].src;
				}
			}
		}
	}

	function SwapLink(name){

		//-- remove current link image
		if (linkImg == true){
			document.images[pics[currentImg][3]].src = pics[currentImg][0].src;
			linkImg = false;
		}

		//-- show the new link image
		for (i = 0; i < objCount; i++) {
			if (document.images[pics[i][3]] != null){
				if (pics[i][3] == name) {
					document.images[pics[i][3]].src = pics[i][2].src;
					currentImg = i;
					linkImg = true;
				}
			}
		}
	}
-->

