var btnHomeA = new Image;
var btnHomeB = new Image;
var btnDoctorsA = new Image;
var btnDoctorsB = new Image;
var btnRefractA = new Image;
var btnRefractB = new Image;
var btnCataractA = new Image;
var btnCataractB = new Image;
var btnCornTransA = new Image;
var btnCornTransB = new Image;
var btnGlaucomaA = new Image;
var btnGlaucomaB = new Image;
var btnContactA = new Image;
var btnContactB = new Image;

btnHomeA.src = "images/eye0.gif";
btnHomeB.src = "images/eye1.gif";
btnDoctorsA.src = "images/eye0.gif";
btnDoctorsB.src = "images/eye1.gif";
btnRefractA.src = "images/eye0.gif";
btnRefractB.src = "images/eye1.gif";
btnCataractA.src = "images/eye0.gif";
btnCataractB.src = "images/eye1.gif";
btnCornTransA.src = "images/eye0.gif";
btnCornTransB.src = "images/eye1.gif";
btnGlaucomaA.src = "images/eye0.gif";
btnGlaucomaB.src = "images/eye1.gif";
btnContactA.src = "images/eye0.gif";
btnContactB.src = "images/eye1.gif";

///////////////////////////////////////////////////////////////////
// function sets the .src property of an image named strImageName
// to the Image object named img
// strImageName: A STRING containing the name of the [img] tag
//               to work on.
// img:          A reference to the Image object which contains the 
//               new src for strImageName
function changeSrc (strImageName, img)
{
  document.getElementById(strImageName).src = img.src;
}


var message="";

function clickIE()
{
	if (document.all)
	{
		(message);
		return false;
	}
}

function clickNS(e)
{
	if (document.layers||(document.getElementById&&!document.all))
	{
		if (e.which==2||e.which==3)
		{
			(message);
			return false;
		}
	}
}

if (document.layers) 
{
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown=clickNS;
}
else
{
	document.onmouseup=clickNS;
	document.oncontextmenu=clickIE;
}

document.oncontextmenu=new Function("return false")