function canManipulateImages() {
	if (document.images)
		return true;
	else
		return false;
}

function swapImage(imageURL) {
	if (gImageCapableBrowser) {
		document.imageSwap.src = imageURL;
		return false;
	}
	else {
		return true;
	}
}

// gImageCapableBrowser - is this browser hip to images? Set up
// a global variable so that we don't have to keep calling a function
// (useful if the function becomes costly to compute).

gImageCapableBrowser = canManipulateImages();

var historyIndex=0;

function makeAnchor(URL){
	var Anchor=URL;
	
	if (Anchor.indexOf('.html')>0) {
	var i=URL.indexOf('/');
	
	while (i>=0){
	Anchor=Anchor.substring(i+1);
	i=Anchor.indexOf('/');
	}
	
	if (Anchor.indexOf('?')>=0) Anchor=Anchor.substring(0,Anchor.indexOf('?'));
//	alert(Anchor);
	return escape(Anchor);
	} else {
	return ""+historyIndex;
	}
}
