var preloadedNav = false;

// this is needed for building /-relative vs. page-relative IMG URLs
var Pathways_SiteRoot = document.location.href.substr(0, document.location.href.indexOf('pathways'));
if (Pathways_SiteRoot.length < 2) {
	Pathways_SiteRoot = "/wgbh/";
}
Pathways_SiteRoot += 'pathways/';


function newImage(arg) {
if (document.images) {
ret=new Image();
ret.src=arg;
return ret;
}
}
function preloadNav() {
if (document.images)
{
engineer_over=newImage("images/engineer_over.gif");
preloadedNav=true;
}
}


function hrollin(name) {
if (document.images && preloadedNav==true) {
document.images[name].src =  Pathways_SiteRoot + "images/" + name + "_over.gif";
}

}


function hrollout(name) {
if (document.images && preloadedNav==true) {
document.images[name].src = Pathways_SiteRoot + "images/" + name + ".gif";
}

}
