


function scriptPresent(inSrc){
	var s7scripts = document.scripts;
	var present = false;
	if (s7scripts != null) {
		for (i=0; i < s7scripts.length; i++){
			if (s7scripts.item(i).src == inSrc){
				present = true;
				break;
			}
		} 
	}
	return present;
}

		
function chgImage (imgName,newImg ) {
	if (document.images) {
		if (typeof window[newImg] != "undefined" )  {
			document[imgName].src=eval(newImg+".src")
		}
	}
}

function s7init(inName) {
   if (inName in s7InitHash){
		s7InitHash[inName]();
   }else if (typeof inName == "undefined"){
		s7InitHash["s7zoom"]();
   }else{
		alert("Error!Viewer "+inName+" is not available.");
   }
}
