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 addbookmark() {
var bookmarkurl="http://www.heidpark.de/88-freizeit-urlaub/index.html" 
var bookmarktitle="URLAUB & FREIZEIT mit HEIDPARK" 
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&uuml;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&uuml;gen, schließen Sie bitte dieses kleine Fenster und dr&uuml;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.de" 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&uuml;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&uuml;gen, schließen Sie bitte dieses kleine Fenster und dr&uuml;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" 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&uuml;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&uuml;gen, schließen Sie bitte dieses kleine Fenster und dr&uuml;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.de" border="0"></div>');
newWindow.document.write('</font></body></html>');
newWindow.document.close();
newWindow.focus();
}
}

/*
Auto center window script- Eric King (http://redrival.com/eak/index.shtml)
Permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
/*LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;*/
LeftPosition = 340;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


/* div ein ausblenden */
function toggledisplay (id){
  if (document.getElementById) {
    var mydiv = document.getElementById(id);
    mydiv.style.display = (mydiv.style.display=='block'?'none':'block');
  }
}
