//*****************************************
//*
//* Javascript 'Switch Image' Puzzle Script
//* @Version 1.0c
//* @Author Owen Spratley, based on Freeware code by Anon 
//* @Contact [Unitgeneva@hotmail.com]
//* Compatibility: Tested with Netscape 4.7, Firefox 1.1 and IE6
//* 
//*****************************************
var temp = new Image()
var intClickCount = 0
var strSavedSRC 
var strSavedImageName

function unit(imgName, imgSrc){
if (intClickCount == 0){
strSavedSRC = imgSrc
strSavedImageName = imgName
temp.src= document.images[strSavedImageName].src

intClickCount = 1


} else if (intClickCount == 1){

document.images[strSavedImageName].src = document.images[imgName].src
document.images[imgName].src = temp.src

intClickCount = 0

}
}

