function FotoWindow(bildurl,b,h, title)
{
var eigenschaft,sbreite,shoehe,fenster,b,h;

// stellt die Bildschirmabmessungen fest
// find window size
var ns6 = (!document.all && document.getElementById);
var ie4 = (document.all);
var ns4 = (document.layers);

if(ns6||ns4) {
sbreite = innerWidth;
shoehe = innerHeight;
}
else if(ie4) {
sbreite = document.body.clientWidth;
shoehe = document.body.clientHeight;
}

x = (sbreite-b)/2;
y = (shoehe-h)/2;

eigenschaften="left="+x+",top="+y+",screenX="+x+",screenY="+y+",width="+b+",height="+h+",menubar=no,toolbar=no";

fenster=window.open("","",eigenschaften);
fenster.focus();
fenster.document.open();
with (fenster) {
  document.write('<html><head>');
  document.write('<title>'+ title + '</title></head>');
  document.write('<body style="margin:0;">');
  document.write('<center>');
  document.write('<img src="'+ bildurl +'"border="0">');
  document.write('<center>');
  document.write('</body></html>');
  fenster.document.close();
}
}


function popupStadtplan () {
 fenster = window.open("/stadtplan.html", "Popupfenster", "width=700,height=480,resizable=no,status=no");
 fenster.focus();
 return false;
}


var btactive = 0;

function BTnext(){
  //bildertour
  $('bt_' + btactive).hide();
  btactive = btactive + 1;
    
  if(btactive == btcount){
    btactive = 0;      
  }
   
  new Effect.Appear('bt_' + btactive); 
}

function BTprev(){
  $('bt_' + btactive).hide();
  btactive = btactive - 1;  
    
 if(btactive == -1){
    btactive = btcount-1;      
  }  

 new Effect.Appear('bt_' + btactive);  
}
