// Copyright Soren Heitmann
// July, 1999
function OnMethod(name)  { document.images[name].src = this.path_a; }
function OffMethod(name) { document.images[name].src = this.path_p; }
function RolloverImage(p,a)
{
	this.path_p = p; // passive path;
	this.path_a = a; // active path;
	this.image = new Image(50,50);

	var cachep = new Image();
       cachep.src = p;
	var cachea = new Image();
       cachea.src = a;

	this.on = OnMethod;
	this.off = OffMethod;
}

function on(name) {  if (images[name]) images[name].on(name); }
function off(name) { if (images[name]) images[name].off(name); }

var images = new Array();

images["home"] = new RolloverImage("nav_home_p.jpg","nav_home_a.jpg") ;
images["author"] = new RolloverImage("nav_aboutAuthor_p.jpg","nav_aboutAuthor_a.jpg") ;
images["tibet"] = new RolloverImage("nav_aboutTibet_p.jpg","nav_aboutTibet_a.jpg");
images["release"] = new RolloverImage("nav_currentRelease_p.jpg","nav_currentRelease_a.jpg");
