<!--
// Copyright (c) Matthew Nigl 25/01/04 <wnigl@bigpond.net.au>


// Defines global variables to pass between functions.
	var counter = 0;
	var previmg = null;
	var prevsrc = null;

// Prime the default images.
	var sanyooff = new Image();
	sanyooff.src = "images/displays/small/sanyo.jpg";    
 


// "counter" is incremented each time the mouse is put over the table cell and
// each time it is put over the link name. 
// If the mouse is moved over the link of the speaker within the same table cell, there
// is no need to change the image, as it will be the same. "prevsrc" and "previmg" are used 
// to check if this condition is true. If it is, only one image at a time will be processed.
// The picture should only change if the mouse is put over a new table cell or link name, and 
// so it will only change when "counter" is 1, and if it is not the same speaker.
        function act(imgName, imgSource){
		counter++;
		if (counter == 1){
			if ((prevsrc == imgSource) || (previmg == imgName)){
			clearTimeout(this.clrimg);
			}
		}
                if (document.images){
                	document.images[imgName].src = imgSource;
		}
		previmg = imgName;
		prevsrc = imgSource;
        }


// Resets to default image after 0.5 seconds, only after satisfying the condition that
// the mouse is off the table cell and the link name. If the mouse is still over the link name 
// and/or the table cell, "counter" is not equal to zero, and so the image will not clear.
// Each time the mouse moves off the table cell/link name, "counter" decrements.
	function inact(imgName){
		counter--;
		if (counter == 0){
			this.clrimg = setTimeout("inact2('"+imgName+"')", 500);
		}
	}


// If the mouse moves totally off the table cell and link name, the image will 
// return to it's default image.
        function inact2(imgName){
                if (document.images){
                	document.images[imgName].src = eval(imgName + "off.src");
		}
        }
//-->