//Umleitung
  function Umleitung() 
  {
  window.location.href="frameset.html";
  }


// Post Fenster öffnen
 function openPost()
 {
	var fenster;
	var xposition = (window.screen.width/2) -  (150+20);
	var yposition = (window.screen.height/2) - (150+30);
	fenster = window.open("Post.html","Post","height=260,width=350,resizable=no,scrollbars=no,left="+xposition+",top=" +yposition);
	fenster.focus();
 }
 
 // Design Fenster öffnen
 function openDesign()
 {
	var design;
	var xposition = 20;
	var yposition = 430;
	design = window.open("designed.html","Design","height=107,width=200,resizable=no,scrollbars=no,left="+xposition+",top=" +yposition);
	design.focus();
 }
 
 // Photo öffnen
 function photo(URL,name,breite,hoehe)
 {
	var pic;
	var xposition = (window.screen.width/2) -  (150+20);
	var yposition = (window.screen.height/2) - (150+30);
	pic = window.open(URL, name, "height="+hoehe+",width="+breite+",resizable=no,scrollbars=no,left="+xposition+",top=" +yposition);
	pic.focus();
 }
 
  // Website öffnen
 function website(URL,name)
 {
	var web;
	var xposition = (window.screen.width/2) -  (150+20);
	var yposition = (window.screen.height/2) - (150+30);
	web = window.open(URL, name, "height=390,width=580,toolbar,menubar,location,status=yes,resizable=yes,scrollbars=yes,left="+xposition+",top=" +yposition);
	web.focus();
 }


//Doppelverweise
  function Doppelverweis(URL1,F1,URL2,F2)
  {  
      parent.frames[F1].location.href=URL1;
      parent.frames[F2].location.href=URL2;
  }

//Neu-Blinker losung
	var anim2=1;
	function neuBlinkerLosung()
	{	 	
		if(anim2==1){
			document.B_LOSUNG.src=losung[1].src
			anim2=2;
		}
		else {
			document.B_LOSUNG.src=losung[0].src
			anim2=1;	
		}
	}

//Neu-Blinker figuren
	var anim1=1;
	function neuBlinkerFiguren()
	{	 	
		if(anim1==1){
			document.B_FIGUREN.src=figuren[3].src
			anim1=2;
		}
		else {
			document.B_FIGUREN.src=figuren[0].src
			anim1=1;	
		}
	}

//Neu-Blinker hingehen
	var anim=1;
	function neuBlinkerHingehen()
	{	 	
		if(anim==1){
			document.B_HINGEHEN.src=hingehen[3].src
			anim=2;
		}
		else {
			document.B_HINGEHEN.src=hingehen[0].src
			anim=1;	
		}
	}

//Neu-Blinker hören
	var anim3=1;
	function neuBlinkerHoeren()
	{	 	
		if(anim3==1){
			document.B_HOEREN.src=hoeren[3].src
			anim3=2;
		}
		else {
			document.B_HOEREN.src=hoeren[0].src
			anim3=1;	
		}
	}
	
	
	
//Neu-Blinker kaufen
	var anim4=1;
	function neuBlinkerKaufen()
	{	 	
		if(anim4==1){
			document.B_KAUFEN.src=kaufen[3].src
			anim4=2;
		}
		else {
			document.B_KAUFEN.src=kaufen[0].src
			anim4=1;	
		}
	}

//Neu-Blinker gucken
	var anim5=1;
	function neuBlinkerGucken()
	{	 	
		if(anim5==1){
			document.B_GUCKEN.src=gucken[3].src
			anim5=2;
		}
		else {
			document.B_GUCKEN.src=gucken[0].src
			anim5=1;	
		}
	}	
	
// Timer
  function buttonAction (date)	//Ablaufzeit übergeben!
  {
	var today = new Date();
    var ablauf_datum = new Date(date);
 
    
    if (document.all && !document.getElementById)  // Internet Explorer 4
    {
    	if (today.getTime()<=ablauf_datum.getTime())
   		{ 
   	 		setTimeout('austin()',400);
   		}
    	else
    	{
    	 		
    	}
     }
     if (document.getElementById)              // IE 5.x und NN 6 (Opera, theoretisch ;-)
     {
         if (today.getTime()<=ablauf_datum.getTime())
         {
          document.getElementById(TDID).style.backgroundColor=gelb;
         }
         else
         {
          document.getElementById(TDID).style.backgroundColor=grau;
         }
     }     
     if (document.layers)                       // Netscape 4.x
     { 		
     	 if (today.getTime()<=ablauf_datum.getTime())
   		{ 
   	 		setTimeout('austin()',400);
   		}
    	else
    	{
    		
    	}
     
      }
   }
   
   //Neublinker neben(!) dem Link
     var imagetag='<img src="../bilder/neu2.gif">'
     var today=new Date()
     function expireat(expiredate){
     var expire=new Date(expiredate)
     if (today.getTime()<=expire.getTime())
     document.write(imagetag)
     }
      
 
 
 
