function openPicture(imageType,imageName,imageWidth,imageHeight,alt,posLeft,posTop) {  // v4.01
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	newWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+' alt=\"'+alt+'\">');
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}

if (parent.frames.length>=1) {
window.top.location.href=document.location;
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}

function addbookmark() {

var bookmarkurl="http://www.heidpark.de/" 
var bookmarktitle="HEIDPARK - Ihr Partner für Urlaub & Freizeit" 

var identstring = navigator.userAgent;
var IE5 = 0; var IE6 = 0; var NS4 = 0; var OP = 0; var MOZ = 0;

if(identstring.indexOf("Opera",0) != -1) {
OP = 1; 
newWindow = window.open("","newWindow","width=500,height=130,scrollbars=no");
newWindow.document.open();
newWindow.document.write('<html><title>Heidpark zu den Favoriten hinzufügen</title><body bgcolor="#000000" onBlur="self.close()">');
newWindow.document.write('<font face="Verdana" size="2" color="#CCCCCC">');
newWindow.document.write('<b>Um Heidpark zu Ihren Favoriten hinzu zufügen, schließen Sie bitte dieses kleine Fenster und drücken anschließend die Tasten "STRG" und "T" gleichzeitig.</b><br><br>');
newWindow.document.write('<div align="center"><img src="http://root.heidpark.com/content/bookmark/musicals.gif" alt="Musicals.com" border="0"></div>');
newWindow.document.write('</font></body></html>');
newWindow.document.close();
newWindow.focus();
}

else if(identstring.indexOf("MSIE 5.",0) != -1) {
IE5 = 1;
window.external.AddFavorite(bookmarkurl,bookmarktitle);
}

else if(identstring.indexOf("MSIE 6.",0) != -1) {
IE6 = 1;
window.external.AddFavorite(bookmarkurl,bookmarktitle);
}

else if(identstring.indexOf("MSIE 5.",0) == -1 && identstring.indexOf("Mozilla/4.",0) != -1) {
NS4 = 1;
newWindow = window.open("","newWindow","width=500,height=130,scrollbars=no");
newWindow.document.open();
newWindow.document.write('<html><title>Heidpark zu den Favoriten hinzufügen</title><body bgcolor="#000000" onBlur="self.close()">');
newWindow.document.write('<font face="Verdana" size="2" color="#CCCCCC">');
newWindow.document.write('<b>Um Heidpark zu Ihren Favoriten hinzu zufügen, schließen Sie bitte dieses kleine Fenster und drücken anschließend die Tasten "STRG" und "D" gleichzeitig.</b><br><br>');
newWindow.document.write('<div align="center"><img src="http://root.heidpark.com/content/bookmark/musicals.gif" alt="Musicals.com" border="0"></div>');
newWindow.document.write('</font></body></html>');
newWindow.document.close();
newWindow.focus();
}

else {
MOZ = 1;
newWindow = window.open("","newWindow","width=500,height=130,scrollbars=no");
newWindow.document.open();
newWindow.document.write('<html><title>Heidpark zu den Favoriten hinzufügen</title><body bgcolor="#000000" onBlur="self.close()">');
newWindow.document.write('<font face="Verdana" size="2" color="#CCCCCC">');
newWindow.document.write('<b>Um Heidpark zu Ihren Favoriten hinzu zufügen, schließen Sie bitte dieses kleine Fenster und drücken anschließend die Tasten "STRG" und "D" gleichzeitig.</b><br><br>');
newWindow.document.write('<div align="center"><img src="http://root.heidpark.com/content/bookmark/musicals.gif" alt="Musicals.com" border="0"></div>');
newWindow.document.write('</font></body></html>');
newWindow.document.close();
newWindow.focus();
}
}

//Start: Menu: Layer-visible-hidden 
//Einsatz auf: karten-eintrittskarten-online-buchen\karten-tickets-eintrittskarten.html
var type = "IE";	//Variable used to hold the browser name

BrowserSniffer();

//detects the capabilities of the browser
function BrowserSniffer() {
	if (navigator.userAgent.indexOf("Opera")!=-1 && document.getElementById) type="OP";		//Opera
	else if (document.all) type="IE";														//Internet Explorer e.g. IE4 upwards
	else if (document.layers) type="NN";													//Netscape Communicator 4
	else if (!document.all && document.getElementById) type="MO";							//Mozila e.g. Netscape 6 upwards
	else type = "IE";		//I assume it will not get here
}

//Displays the generic browser type
function whatBrows() {
	window.alert("Browser is : " + type);
}

//Puts the contents of str into the layer id
//id is the name of the layer
//str is the required content
//Works with all browsers except Opera
function ChangeContent(id, str) {
	if (type=="IE") {
		document.all[id].innerHTML = str;
	}
	if (type=="NN") { 
		document.layers[id].document.open();
		document.layers[id].document.write(str);
		document.layers[id].document.close();
	}
	if (type=="MO" || type=="OP") {
		document.getElementById(id).innerHTML = str;
	}
}

//Change the color of the layer background
//id is the name of the layer
//color is the required color
//Works with all browsers except NN4
function ChangeLayerBgColor(id, color){
	if (type=="IE") document.all[id].style.backgroundColor=color;
	if (type=="NN") document.layer['id'].bgColor=color;
	if (type=="MO" || type=="OP") document.getElementById(id).style.backgroundColor=color;
}

//Show and hide a layer
//id is the name of the layer
//action is either hidden or visible
//Seems to work with all versions NN4 plus other browsers
function ShowLayer(id, action){
	if (type=="IE") eval("document.all." + id + ".style.visibility='" + action + "'");
	if (type=="NN") eval("document." + id + ".visibility='" + action + "'");
	if (type=="MO" || type=="OP") eval("document.getElementById('" + id + "').style.visibility='" + action + "'");
}
//Ende: Menu: Layer-visible-hidden 