function LetzteAenderung() {
document.write('Letzte &Auml;nderung: 20.08.2011');
}

function PlayerImExtraFenster (Adresse) {
  MeinFenster = window.open(Adresse, "Player Fenster", "width=220,height=360,left=100,top=200, menubar=no,resizable=no,scrollbars=no,toolbar=no");
  MeinFenster.focus();
}

function ContentImExtraFenster (Adresse) {
  MeinFenster = window.open(Adresse, "Content Fenster", "width=440,height=670,left=20,top=20, menubar=no,resizable=no,scrollbars=no,toolbar=no");
  MeinFenster.focus();
}


function NewsRoller() {
/***********************************************
* Fading Scroller- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

var delay = 3500; //set delay between message change (in miliseconds)
var maxsteps=30; // number of steps to take to change from start color to endcolor
var stepdelay=50; // time in miliseconds of a single step
//**Note: maxsteps*stepdelay will be total time in miliseconds of fading effect
var startcolor= new Array(255,255,255); // start color (red, green, blue)
var endcolor=new Array(0,0,0); // end color (red, green, blue)

var fcontent=new Array();
//begintag='<div style="text-align: right;">'; //set opening tag, such as font declarations
begintag='<div class="story">'; //set opening tag, such as font declarations
fcontent[0]="<b>25.02.2009 - Jubil&auml;um</b><br>Acoustic Culture ist nun 1 Jahr alt!. Wir freuen uns auf viele weitere.";
fcontent[1]="<b>07.04.2009 - Gig im B&auml;umle TT</b><br>Ein toller Gig liegt hinter uns. Ihr ward ein tolles Publikum. Danke auch an Back2Zero!";

closetag='</div>';

var fwidth='410px'; //set scroller width
var fheight='57px'; //set scroller height

var fadelinks=1;  //should links inside scroller content also fade like text? 0 for no, 1 for yes.

///No need to edit below this line/////////////////


var ie4=document.all&&!document.getElementById;
var DOM2=document.getElementById;
var faderdelay=0;
var index=0;


/*Rafael Raposo edited function*/
//function to change content
function changecontent(){
  if (index>=fcontent.length)
    index=0
  if (DOM2){
    document.getElementById("fscroller").style.color="rgb("+startcolor[0]+", "+startcolor[1]+", "+startcolor[2]+")"
    document.getElementById("fscroller").innerHTML=begintag+fcontent[index]+closetag
    if (fadelinks)
      linkcolorchange(1);
    colorfade(1, 15);
  }
  else if (ie4)
    document.all.fscroller.innerHTML=begintag+fcontent[index]+closetag;
  index++
}

// colorfade() partially by Marcio Galli for Netscape Communications.  ////////////
// Modified by Dynamicdrive.com

function linkcolorchange(step){
  var obj=document.getElementById("fscroller").getElementsByTagName("A");
  if (obj.length>0){
    for (i=0;i<obj.length;i++)
      obj[i].style.color=getstepcolor(step);
  }
}

/*Rafael Raposo edited function*/
var fadecounter;
function colorfade(step) {
  if(step<=maxsteps) {	
    document.getElementById("fscroller").style.color=getstepcolor(step);
    if (fadelinks)
      linkcolorchange(step);
    step++;
    fadecounter=setTimeout("colorfade("+step+")",stepdelay);
  }else{
    clearTimeout(fadecounter);
    document.getElementById("fscroller").style.color="rgb("+endcolor[0]+", "+endcolor[1]+", "+endcolor[2]+")";
    setTimeout("changecontent()", delay);
	
  }   
}

/*Rafael Raposo's new function*/
function getstepcolor(step) {
  var diff
  var newcolor=new Array(3);
  for(var i=0;i<3;i++) {
    diff = (startcolor[i]-endcolor[i]);
    if(diff > 0) {
      newcolor[i] = startcolor[i]-(Math.round((diff/maxsteps))*step);
    } else {
      newcolor[i] = startcolor[i]+(Math.round((Math.abs(diff)/maxsteps))*step);
    }
  }
  return ("rgb(" + newcolor[0] + ", " + newcolor[1] + ", " + newcolor[2] + ")");
}

if (ie4||DOM2)
  document.write('<div id="fscroller" style="border:0px solid black;width:'+fwidth+';height:'+fheight+'"></div>');

if (window.addEventListener)
window.addEventListener("load", changecontent, false)
else if (window.attachEvent)
window.attachEvent("onload", changecontent)
else if (document.getElementById)
window.onload=changecontent

}

function EmailRiddler() {
/*<![CDATA[*/

/***********************************************
* Encrypt Email script- Please keep notice intact
* Tool URL: http://www.dynamicdrive.com/emailriddler/
* **********************************************/
<!-- Encrypted version of: info [at] ****************.** //-->

var emailriddlerarray=[106,111,103,112,65,98,100,112,118,116,117,106,100,46,100,118,109,117,118,115,102,47,101,102]
var encryptedemail_id95='' //variable to contain encrypted email 
for (var i=0; i<emailriddlerarray.length; i++)
 encryptedemail_id95+=String.fromCharCode(emailriddlerarray[i]-1)


document.write('<a href="mailto:'+encryptedemail_id95+'?subject=Anfrage an Acoustic Culture">'+encryptedemail_id95+'</a>')

/*]]>*/
}

function PrintDate() {
var x = new Date();
day=new Array(7);
day[0]="So. ";
day[1]="Mo. ";
day[2]="Di. ";
day[3]="Mi. ";
day[4]="Do. ";
day[5]="Fr. ";
day[6]="Sa. ";
month = new Array(12);
month[0] = "Januar";
month[1] = "Februar";
month[2] = "M&auml;rz";
month[3] = "April";
month[4] = "Mai";
month[5] = "Juni";
month[6] = "Juli";
month[7] = "August";
month[8] = "September";
month[9] = "Oktober";
month[10] = "November";
month[11] = "Dezember";
var jetzt = new Date();
var Jahr = jetzt.getYear();
if(Jahr < 999) Jahr+=1900;
document.write(day[x.getDay()]+' ');
document.write(x.getDate()+'. ');
document.write(month[x.getMonth()]+' ');
document.write( + Jahr + "&nbsp;");
}
