var currentImageUrl;
var description;

function openPath(path, isSHTML, backToUrl) {
		top.contentheader.location.href = path + 'header.html';
		if(isSHTML) {
			top.contentbody.location.href = path + 'body.shtml';
		} else {
			top.contentbody.location.href = path + 'body.html';
		}	
		if(backToUrl!=null) {
			top.controlframe.backToUrl = backToUrl;
		}
	}
	
function openExternalLink(url) {
	window.open(url);
}	

function goBack() {
	openPath(top.controlframe.backToUrl, true);
}

function openImage(url, desc) {
		currentImageUrl = url;
		description = desc;
		var imageContainer;
		if(description==null) {
			imageContainer = "/service/imagecontainer.html?dmy=" + (new Date()).getTime();
		} else {
			imageContainer = "/service/imagecontainer_description.html?dmy=" + (new Date()).getTime();
		}	
		imageWindow = window.open(imageContainer, "THW_Riegelsberg", "width=1,height=1,top=150,left=300,resizable=no,dependent=no,scrollbars=no");	
	}

if(this.location.href==top.location.href) {
	top.location.href = "/index.html";
}
