

function on_load()
{

}

function MO(e)
{
if (!e)
var e=window.event;
var S=e.srcElement;
while (S.tagName!="TD")
{S=S.parentElement;}
S.className="navover";
}
function MU(e)
{
if (!e)
var e=window.event;
var S=e.srcElement;
while (S.tagName!="TD")
{S=S.parentElement;}
S.className="navout";
}

function click(url)
{
parent.location.href = url;
}


///////////////////
// anatomy layer related:
//
// class anatomyBox(lpszName, int nCount, lpszFilename)
//

function nextLayer()
{
	if( this.curlayer >= (this.count-1) )
		this.curlayer=0;
	else
		this.curlayer++;
	
	this.showLayer(this.curlayer);
}

function prevLayer()
{
	if( this.curlayer <= 0 )
		this.curlayer=this.count-1;
	else
		this.curlayer--;
	
	this.showLayer(this.curlayer);
}

function showLayer(i)
{
	if( i < 0 )
		i=0;

	if( i >= (this.count-1) )
		i = this.count-1;

	this.curlayer = i;

		// now change the image..
	var foo = get_image(this.name);
	foo.src = this.getFilename(this.curlayer);
}

function getFilename(i)
{
	var foo = this.filename 
			  + ((i < 10) ? "0" : "")
			  + i
			  + ".jpg";

	return foo;
}


function anatomyBox(name, count, filename)
{
	this.name = name;
	this.count = count;
	this.filename = filename;

		// private
	this.curlayer = 0;

		// public use
	this.nextLayer = nextLayer;
	this.prevLayer = prevLayer;
	this.showLayer = showLayer;

		// private
	this.getFilename = getFilename;
}


var old="";
var curcolor=0;
var maxcolors=12;
var pausecycle = false;
var colorcycle = new Array();
colorcycle[0] = 0x004D5C8B;
colorcycle[1] = 0x00596895;
colorcycle[2] = 0x006675A0;
colorcycle[3] = 0x007382AA;
colorcycle[4] = 0x00818FB3;
colorcycle[5] = 0x008F9CBC;

colorcycle[6] = 0x00818FB3;
colorcycle[7] = 0x007382AA;
colorcycle[8] = 0x006675A0;
colorcycle[9] = 0x00596895;
colorcycle[10] = 0x004D5C8B;
colorcycle[11] = 0x00414F7F;