
function getSrc(n) {  
	if(n.indexOf("_lit")< 0){
		dot = n.lastIndexOf(".");
		temp = n.substr(dot,n.length).toString();
		orig = n.substr(0,dot).toString();
		newsrc = orig + "_lit" + temp;
		newsrc = newsrc.toString();
		return newsrc;
	}else{
		return n;
	}
}
 
function swap(imgname) {
	n = arguments[0].toString();
	var img = document.getElementById(imgname);
	oldSrc = img.src;
	img.src = getSrc(oldSrc);
	old = img;
 }
 
function restore() {
	old.src=oldSrc;
}

function pageTitle(title){
	document.title = title;
}

function FlashFix() {
	theObjects = document.getElementsByTagName("object");
	
	for (var i = 0; i < theObjects.length; i++) {
		theObjects[i].outerHTML = theObjects[i].outerHTML;
    }
}	