function selectMenu ( mainNo, subNo, URL1 , FrameIndex1 , URL2 , FrameIndex2 ) {
  document.cookie = "menu" + mainNo + subNo ; 
  parent.frames[FrameIndex1].location.href = URL1;
  parent.frames[FrameIndex2].location.href = URL2;
}

function showSubmenu (  ) {
 submenuWindow = open ( "Menu1.html" , "Menu1" ) ; 

}

 function changeFrames ( URL1 , FrameIndex1 , URL2 , FrameIndex2 ) {
  parent.frames[FrameIndex1].location.href = URL1;
  parent.frames[FrameIndex2].location.href = URL2;

}

function checkFramesetPresent(){
	

var ZielDatei = "topframe_gaeste.html?burgen.htm";
if (!top.FramesetGeladen){
   
   if (document.images){
       
      top.location.replace("topframe_gaeste.html");
        }
   else {
       
      top.location.href="topframe_gaeste.html";
        }
   }
}

  
     var buchungsDialog ; 
     var textParm ; 
     var urlParm ;  

function showBuchungsFenster(FeWoType,name,address)  {
  
  if (!buchungsDialog ) { 
   
    textParm =  FeWoType  + '§' + name + '§' + address  ;
    urlParm = 'http://www.ed-paterson.de/buchungNeu.html?'+ escape(textParm);
    alert('link = ' + urlParm ) ; 
        buchungsDialog = window.open(urlParm,'newBuchung',"width=650px,height=650px,resizable=yes,scrollbars=yes dependent=yes"); 

} else { 
	
    if (buchungsDialog.closed == true ) {
    textParm =  FeWoType  + '§' + name + '§' + address  ;
    urlParm = 'http://www.ed-paterson.de/buchungNeu.html?'+ escape(textParm);
         buchungsDialog = window.open(urlParm,'newBuchung',"width=650px,height=650px,resizable=yes,scrollbars=yes dependent=yes"); 
} else  {
	
        textParm =  FeWoType  + '§' + name + '§' + address  ;
    urlParm = 'http://www.ed-paterson.de/buchungNeu.html?'+ escape(textParm);
   
       buchungsDialog.close();
       buchungsDialog=window.open(urlParm,'newBuchung',"width=650px,height=650px,resizable=yes,scrollbars=yes dependent=yes"); 

    } 
  }  
  
}
   
   var whereDialog ;
  function showWhereFenster(xCoord,yCoord)
  {   
  if (!whereDialog ) { 
    whereDialog = window.open('showOnMap.html','showPosition',"width=590px,height=575px,resizable=yes,scrollbars=yes,dependent=yes"); 
    whereDialog.document.open();
   whereDialog.document.write ( "<img src='bilder/burgenMap1.gif' style='position:absolute; top:0px; left:0px;' align=middle width=570px height=550px hspace=0px vspace=0px><img src='bilder/transparentPfeil.gif' style='position:absolute; top:" + yCoord + "; left:" + xCoord + ";' width=64px height=64px hspace=0px vspace=0px> " );
    whereDialog.document.close();
   } else { 
    if (whereDialog.closed == true ) {
      whereDialog = window.open('showOnMap.html','showPosition',"width=590px,height=575px,resizable=yes,scrollbars=yes,dependent=yes"); 
whereDialog.document.open();
   whereDialog.document.write ( "<img src='bilder/burgenMap1.gif' style='position:absolute; top:0px; left:0px;' align=middle width=570px height=550px hspace=0px vspace=0px><img src='bilder/transparentPfeil.gif' style='position:absolute; top:" + yCoord + "; left:" + xCoord + ";' width=64px height=64px hspace=0px vspace=0px> " );      
    whereDialog.document.close();
      } else  {
      whereDialog.focus();
      
     whereDialog.document.open();
   whereDialog.document.write ( "<img src='bilder/burgenMap1.gif' style='position:absolute; top:0px; left:0px;' align=middle width=570px height=550px hspace=0px vspace=0px><img src='bilder/transparentPfeil.gif' style='position:absolute; top:" + yCoord + "; left:" + xCoord + ";' width=64px height=64px hspace=0px vspace=0px> " );
    whereDialog.document.close();
    } 
  }  
  	
  }
  
  
var infoFenster ; 
  
function infoBox(page,name,boxWidth,boxHeight,scrolling)  { 
  if ( !infoFenster ) {
    infoFenster = window.open(page,name,"width=" + boxWidth + ",height=" + boxHeight + ",resizable=no,scrollbars=" + scrolling);
  } else {
    if ( infoFenster.closed == true ) { 
      infoFenster = window.open(page,name,"width=" + boxWidth + ",height=" + boxHeight + ",resizable=no,scrollbars=" + scrolling); 
    } else { 
      infoFenster.close () ; 
      infoFenster = window.open(page,name,"width=" + boxWidth + ",height=" + boxHeight + ",resizable=no,scrollbars=" + scrolling); 
    }
  }
}





 
      	
  
  function infoBoxScroll(page,name,boxWidth,boxHeight)
  {
   window.open(page,name,"width=" + boxWidth + ",height=" + boxHeight + ",resizable=yes,scrollbars=yes");
  }
  
function closeDependentWindow() { 
  if (buchungsDialog ) { 
    if (!buchungsDialog.window == closed ) { 
      buchungsDialog.window.close();  
    } 
  }
}



