function Balkenfenster(wen, breit, hoch)
 {
  abstand = (screen.availWidth - breit)/2;
  Fenster1=open(wen,'Fenster1','scrollbars=no,width= '+ breit +' , height=' + hoch + ', left='+ abstand +', top=30, resizable=no');
  Fenster1.focus();
 }
 
 function Kartenfenster(wen, breit, hoch)
 {
  abstand = (screen.availWidth - breit)/2;
  Fenster3=open(wen,'Fenster3','scrollbars=no,width= '+ breit +' , height=' + hoch + ', left='+ abstand +', top=30, resizable=no');
  Fenster3.focus();
 }
 
 function film(ordner, file, breit, hoch)
  {
   abstand = (screen.availWidth - breit)/2;
   Fenster2 = window.open('jubel/film.php?' + ordner + '?' + file, '_new', 'width='+ breit +', height='+ hoch +', left='+ abstand +', top=30, resizable=no');
   Fenster2.focus();
  }
  
 function ton(file)
  {
   abstand = (screen.availWidth - 300)/2;
   Fenster2 = window.open('ton.php?' + file, '_new', 'width=340, height=260, left='+ abstand +', top=100, resizable=no');
   Fenster2.focus();
  }
  

Fenster2 = null;

 function fenster(ordner, file, breit, hoch) 
   {
    if (Fenster2 != null)
     {
      if (!Fenster2.closed)
       {
        Fenster2.close();
       }
      } 
   breit2 = breit;
   hoch2 = hoch *1 +50;
   abstand = (screen.availWidth - breit)/2;
   file2 = file;
   ordner2 = ordner;
   window.setTimeout('Aufmachen(ordner2, file2, breit2, hoch2)',50);
 }
 
 function Aufmachen(ordner, file, breit, hoch)
  {
   Fenster2 = window.open('bild.php?' + ordner + '?' + file, 'Fenster2', 'width='+ breit +', height='+ hoch +', left='+ abstand +', top=30, resizable=no');
   Fenster2.focus();
  }
  

function Bookmark()
 {
 Adresse_alt = new String(document.location);
 Adresse = Adresse_alt.split('?');
 if(navigator.platform.indexOf('Win') != -1)
  {
   if (window.external)
    {
     window.external.AddFavorite('http://www.landkreistag-bw.de/index.php?' + Adresse[0] + '?' + parent.frames['menu'].location, document.title);
    }
   else
    {
     alert('Bitte benutzen Sie Ctrl-D oder klicken Sie auf das Favoriten-Icon\nIhres Browsers, um hier ein Bookmark zu setzen');
    top.location.replace('http://www.landkreistag-bw.de/index.php?' + Adresse[0] + '?' + parent.frames['menu'].location);
    }
   } 
  else
   {
    alert('Bitte benutzen Sie Befehl-D oder klicken Sie auf das Favoriten-Icon\nIhres Browsers, um hier ein Bookmark zu setzen');
    top.location.replace('http://www.landkreistag-bw.de/index.php?' + Adresse[0] + '?' + parent.frames['menu'].location);
   } 
 }
 
 function BlurLinks()
 {
   links=document.getElementsByTagName('a');
   for(i=0; i<links.length; i++)
    {
     links[i].onfocus=new Function("if(this.blur)this.blur()");
    }
       links=document.getElementsByTagName('area');
   for(i=0; i<links.length; i++)
    {
     links[i].onfocus=new Function("if(this.blur)this.blur()");
    }
 }
 
 
 function sroll(wo, was)
  {
   if (aktiv != wo)
   {
    document.images['sb' + wo].src=eval('sb' + wo + '_' + was + '.src');
   } 
  }
  
  function roll(wo, was)
   {
    document.images['b' + wo].src=eval('b' + wo + '_' + was + '.src');
   } 

 
function Druck()
 {
  window.print();
 }

function schicken(adr1, adr2)
 {
  window.location.href = 'mailto:' + adr1 + '@' + adr2;
 }
 
function stellen(wert, menuname)
 {
 //Frameset checken
 if(top.location==self.location)
  {
   top.location.replace('http://www.landkreistag-bw.de/index.php?' + document.location+ '?' + menuname);
  } 
  else
  //Menu stellen
  {
   wer = wert;
   //Warten aufs Menue
   window.setTimeout('parent.frames["menu"].stellen2(wer)',10);
  }
 }
 
function stellen2(wer)
 {
  for(i=start; i<=end; i++)
  {
   document.images['sb' + i].src=eval('sb' + i + '_a.src');
  }
   if(wer != 0)
    {
     document.images['sb' + wer].src=eval('sb' + wer + '_c.src');
    } 
   aktiv = wer;  
 }
 




