/* <![CDATA[ */
window.onload=initAll;

var onImg = {};
var offImg = {};

if (document.images){
    onImg["texas"]=new Image(61,54);
    onImg["texas"].src="images/tx.gif";
    onImg["texas2"]=new Image(61,54);
    onImg["texas2"].src="images/tx.gif";

    offImg["texas"]=new Image(61,54);
    offImg["texas"].src="images/txhigh.gif";
    offImg["texas2"]=new Image(61,54);
    offImg["texas2"].src="images/txhigh.gif";
}

function initAll() {
}

function showAlert(message)
{
    alert(message);
}

function FirstAlert()
{
    alert("Button click-response acknowledged.");
}

function imageOn(imgName){
    if(document.images){
	document.images[imgName].src=onImg[imgName].src;
    }
}

function imageOff(imgName){
    if(document.images){
	document.images[imgName].src=offImg[imgName].src;
    }
}

function imageSwitch(imgName){
    if(document.images){
	var myimage=document.getElementById(imgName);
	var myimagealt=document.getElementById(imgName+"alt");

	if(document.images[imgName].style.visibility=="hidden"){
		myimage.style.visibility="visible";
		myimage.style.position="static";
		myimagealt.style.visibility="hidden";
		myimagealt.style.position="absolute";
	} else {
		myimage.style.visibility="hidden";
		myimage.style.position="absolute";
		myimagealt.style.visibility="visible";
		myimagealt.style.position="static";
	}
    }
}
/* ]]> */
