var myDate= new Date();
var day= myDate.getDate();
var month= myDate.getMonth();
var year= myDate.getYear();
var wday= myDate.getDay();
if ((year == 1) || (year == 21) || (year == 31));
var dn = new Array(' Sonntag',' Montag',' Dienstag',' Mittwoch',' Donnerstag',' Freitag',' Samstag');
var ma = new Array('Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember');
date=dn[wday]+", "+day+". "+ma[month]+" "+year;
window.defaultStatus="Rainbow med Wuppertal -"+date;

// if ((year == 1) || (year == 21) || (year == 31));           funktioniert unter IE
// if (year=01) { year="200"+year } else { year="200"+year };  funktioniert unter IE und NS - muss allerdings das Jahr manuell eingegeben werden


function UnCryptMailto(s, shift) {
var n=0;
var r="";
for(var i=0;i<s.length;i++) {
n=s.charCodeAt(i);
if (n>=8364) {n = 128;}
r += String.fromCharCode(n-(shift));
}
return r;
}
function linkTo_UnCryptMailto(s, shift){
location.href=UnCryptMailto(s, shift);
}

/****************************************************
*	    DOM Image rollover:
*		by Chris Poole
*		http://chrispoole.com
*       Script featured on http://www.dynamicdrive.com
*		Keep this notice intact to use it :-)
****************************************************/

function init() {
  if (!document.getElementById) return
  var imgOriginSrc;
  var imgTemp = new Array();
  var imgarr = document.getElementsByTagName('img');
  for (var i = 0; i < imgarr.length; i++) {
    if (imgarr[i].getAttribute('hsrc')) {
        imgTemp[i] = new Image();
        imgTemp[i].src = imgarr[i].getAttribute('hsrc');
        imgarr[i].onmouseover = function() {
            imgOriginSrc = this.getAttribute('src');
            this.setAttribute('src',this.getAttribute('hsrc'))
        }
        imgarr[i].onmouseout = function() {
            this.setAttribute('src',imgOriginSrc)
        }
    }
  }
}
onload=init;

/****************************************************
     Author: Eric King
     Url: http://redrival.com/eak/index.shtml
     This script is free to use as long as this info is left in
     Featured on Dynamic Drive script library (http://www.dynamicdrive.com)
****************************************************/
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);
win.focus();
}
