function SwpImg(name, src) {
    if (document.images) {
        document.images[name].src = src;
    }
}


loaded = false;
function cacheImage () {

	for ( i = 0; i < document.images.length ; i++) {
		if (document.images[i].name) {
			var target = document.images[i];
			var preload = new Image();
			//preload.src = target.name + "_on.gif";
			preload.src = target.src.substring(0, target.src.lastIndexOf("/")+1) + target.name + "_on.gif";
			target.on = preload.src;
			target.off = target.src;
		}
	}
	loaded = true;
}

function swapOn (target) {if(loaded) target.src = target.on; }
function swapOff (target) {if(loaded) target.src = target.off; }



function showHide(entryID, entryLink, htmlObj) {

extTextDivID = ('Text' + (entryID));
extLinkDivID = ('Link' + (entryID));

if( document.getElementById ) {
if( document.getElementById(extTextDivID).style.display ) {
if( entryLink != 0 ) {

document.getElementById(extTextDivID).style.display = "block";
document.getElementById(extLinkDivID).style.display = "block";

location.href = entryLink;
return true;

} else { 

document.getElementById(extTextDivID).style.display = "none";
document.getElementById(extLinkDivID).style.display = "block";



}

}
}
}

