
  var myWindow = 0;

  // Script in neuem Fenster öffnen
  // ----------------------------------------------
   function MyOpenScript(script, width, height)
     {
       window.open(script,'link1','width='+width+',height='+height+',resizable=yes,scrollbars=yes');
     } // END FUNCTION




 function FensterAuf(url,fname,parameter)
   {
     if (myWindow!=0)  {  myWindow.close();  }
     myWindow = window.open(url,fname,parameter);
     myWindow.focus();
   } // END FUNCTION



   function Slideshow(verz)
    {
      if (verz=='')
        { alert('Kein Verzeichnis angegeben!');  }
      else
       {
          F11=window.open('slide_index.php?'+verz,'_slideshow','width=950,height=700,resizable=yes,scrollbars=yes,top=15,left=5');
          F11.focus();
       }  // END IF
    } // END FUNCTION



 function Videoshow(kategorie, video)
   {
      verz='';
      if (kategorie != '')  verz = '?kategorie='+kategorie;
      if (video != '')      verz = '?video='+video;

      F111=window.open('http://www.radiosaw.de/videoshow.php'+verz,'_videoshow','width=960,height=750,resizable=yes,top=15,left=5,scrollbars=yes');
      F111.focus();
   } // END FUNCTION

 function Videoshowrlsa(kategorie, video)
   {
      verz='';
      if (kategorie != '')  verz = '?kategorie='+kategorie;
      if (video != '')      verz = '?video='+video;

      F111=window.open('http://www.rockland.fm/videoshow.php'+verz,'_videoshow','width=960,height=750,resizable=yes,top=15,left=5,scrollbars=yes');
      F111.focus();
   } // END FUNCTION


      var FLivestream1 = 0;

<!-- Funktion zum Öffnen der Livestreams //-->
 function Livestream(url)
   {
      if (FLivestream1!=0)  {  FLivestream1.close();  }
      FLivestream1=window.open(url,'_soundweltlive','width=660,height=650,left=50,top=10,scrollbars=no,resizable=yes');
      FLivestream1.focus();
   } // END FUNCTION


   
   
   
   
   
   
   
   
   
var headdivanzahl = 0;  // Anzahl der Divs
var headdivcounter = 0;  // lfd. Nr. der Divs
var headdivwechsel = 1;  // automatischer Wechsel?

function headerwechsel(nr)
  {
    if ((document.getElementById('div_header')) && (document.getElementById('div-headervorlage-'+nr)))
	  {
	    document.getElementById('div_header').innerHTML = document.getElementById('div-headervorlage-'+nr).innerHTML;
		headdivcounter = nr;
	  } // END IF
  }  // END FUNCTION  


 function headerwechselstart()
  {
    if ((document.getElementById('div_header')) && (headdivanzahl>0))
	  {
		if (headdivcounter==0) { headdivcounter = 1; }
		if (headdivcounter>headdivanzahl) { headdivcounter = 1; }
		headerwechsel(headdivcounter);
		headdivcounter = headdivcounter+1;
		if (headdivwechsel==1)  { window.setTimeout("headerwechselstart()", 4000); }
	  } // END IF
  } // END FUNCTION
  
 function initheaderwechsel(anzahl)
  {
    if ((document.getElementById('div_header')) && (anzahl>0))
	  {
	    headdivanzahl = anzahl;
		headdivcounter = 1;
		headerwechselstart();
	  } // END IF
  }  // END FUNCTION  

function setheaddivwechsel(anaus)
  {
    if ((document.getElementById('div_header')) && (headdivanzahl>0))
	  {
	    headdivwechsel = anaus;
		headdivcounter = headdivcounter-1;
		headerwechselstart();
	  } // END IF
  }  // END FUNCTION




  
