// 2000-03-29	Lasse Voss


function swapImage(strLayer, strImageName, strSource)
// layerID ('null' if in body), image name, new image file name (w/o path)
{
	// define reference to image.src object
	if (strLayer != null)
	{
		myLayer = new DynLayer(strLayer);
		imageRef = myLayer.doc.images[strImageName];
	} else {
		imageRef = document.images[strImageName];
	}
	
	// set new image source = current path + new filename
	imageRef.src = imageRef.src.slice(0, imageRef.src.lastIndexOf("/") + 1) + strSource;
}

function swapLayerImage(strLayer, strImageName, strSource)
// layerID ('null' if in body), image name, new image file name (with path)
{
	// define reference to image.src object
	if (strLayer != null)
	{
		myLayer = new DynLayer(strLayer);
		imageRef = myLayer.doc.images[strImageName];
	} else {
		imageRef = document.images[strImageName];
	}
	
	// set new image source = current path + new filename
	imageRef.src = strSource;
}

var standardimg;
function changeDisplay(intBild, strStatus){
	if(strStatus == "on"){
		if(document.layers){
			standardimg = document.layers["zubehoerimg"].document.images["displaybild"].src;
			document.layers["zubehoerimg"].document.images["displaybild"].src = "images/Bild" + intBild + ".gif";
		}
		if(document.all){
			standardimg = document.images["displaybild"].src;
			document.images["displaybild"].src = "images/Bild" + intBild + ".gif";
		}
	}else{
		if(document.layers){
			document.layers["zubehoerimg"].document.images["displaybild"].src = standardimg;
		}
		if(document.all){
			document.all["displaybild"].src = standardimg;
		}
	}
}








