function GetCookie (name) { 
var arg = name + "="; 
var alen = arg.length; 
var clen = document.cookie.length; 
var i = 0; 
while (i < clen) {
var j = i + alen; 
if (document.cookie.substring(i, j) == arg) 
return getCookieVal (j); 
i = document.cookie.indexOf(" ", i) + 1; 
if (i == 0) break; 
} 
return null;
}


function SetCookie (name, value) { 
var argv = SetCookie.arguments; 
var argc = SetCookie.arguments.length; 
var expires = (argc > 2) ? argv[2] : null; 
var path = (argc > 3) ? argv[3] : null; 
var domain = (argc > 4) ? argv[4] : null; 
var secure = (argc > 5) ? argv[5] : false; 
document.cookie = name + "=" + escape (value) + 
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
((path == null) ? "" : ("; path=" + path)) + 
((domain == null) ? "" : ("; domain=" + domain)) + 
((secure == true) ? "; secure" : "");
}


function DeleteCookie (name) { 
var exp = new Date(); 
exp.setTime (exp.getTime() - 1); 
var cval = GetCookie (name); 
document.cookie = name + "=" + cval + "; expires=" + 
exp.toGMTString();
}


var expDays = 30;
var exp = new Date(); 
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));
function amt(){
var count = GetCookie('count')
if(count == null) {
SetCookie('count','1')
return 1
}
else {
var newcount = parseInt(count) + 1;
DeleteCookie('count')
SetCookie('count',newcount,exp)
return count
}
}


function getCookieVal(offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}


var delay=20;
var runflag=0;

function dostart(was)
{
    ucnt=was;
    if(runflag==0)
    {
        runflag=1;
    }
}


var tsize=22;
var fsize;

function do_ticker(text, pos, dir)
{
    var c1=text.substring(pos, pos+1);
    var c2=text.substring(pos+1, pos+tsize-1);
    var c3=text.substring(pos+tsize-1, pos+tsize);

    if(c1==' ') c1='&nbsp;';
    if(c3==' ') c3='&nbsp;';

    var out='<table width=100%><tr><td nowrap align=left><font face="verdana, helvetica" size="'+fsize+'"><font color="#000000"><b>'+c1+''+c2+''+c3+'</b></font></font></table>';

    if(navigator.appName=="Netscape")
        with(document.ticker.document)
        {
            open(); write(out); close();
        }
    else
        ticker.innerHTML=out;

    pos+=dir;

    if(pos<text.length)
        setTimeout('do_ticker("'+text+'",'+pos+','+dir+')', 140);
}


function init()
{
    if(navigator.appName=="Netscape")
    {
        var w=innerWidth;
        var h=innerHeight;
        document.layers.ticker.top=h-(h-20);
        document.layers.ticker.width=w-(w+50);
        fsize=1;
    } else
    {
        var w=document.body.offsetWidth;
        var h=document.body.offsetHeight;
        ticker.style.top=h-(h-50);
        ticker.style.width=w-(w-50);
        fsize=0;
        tsize=17;
    }

    var mw=w/2;
    var mh=h/2;

    t0='+++ Neu +++ Neu ';
//  Strings koennen laenger als 256 Zeichen sein. Wenn Du was Neues hinzufuegst, schmeiss das letzte "t3"-raus, aender "t2" in "t3" und "t1" in "t2" und schreib das Neueste dann in "t1" - so rutschen die Meldungen immer von oben durch...
    t1x='+++ Jetzt mit kostenlosem Postkarten-Versand ';
    t1='+++ Jetzt mit SMS-Versand über Web.de';
    t2='+++ Dazu das aktuelle Frankfurt-Wetter ';
    t3='+++ Weitere Änderungen folgen in Kürze ';

    do_ticker(t0+t1x+t1+t2+t3, 0, 1);
    dostart(0);
}


   function Go(x)
   {
    if(x == "nothing")
    {
      document.forms[0].reset();
      document.forms[0].elements[0].blur();
      return;
    }
    else if(x == "end") top.location.href = "index.html";
    else
    {
//      parent.frames[1].location.href = x;
      window.location.href = x;
      document.forms[0].reset();
      document.forms[0].elements[0].blur();
    }
  }


var timerID = null;
var timerRunning = false;

function stopclock() {  
        if(timerRunning)    
        clearTimeout(timerID);  
        timerRunning = false;
}

function startclock() {  
   	window.status=" ";   
        stopclock();  
        showtime();
}

function showtime () {
        var now = new Date();        
        var hours = now.getHours();        
        var minutes = now.getMinutes();        
        var seconds = now.getSeconds()        
        var timeValue = "" + (hours)        
        timeValue += ((minutes < 10) ? ":0" : ":") + minutes        
        timeValue += ((seconds < 10) ? ":0" : ":") + seconds        
        timerID = setTimeout("showtime()",1000);        
        timerRunning = true;
}


function showgreetingtime () {
        var now = new Date();        
        var hours = now.getHours();        
        var minutes = now.getMinutes();        
        var seconds = now.getSeconds()        
        var timeValue = "" + (hours)        
        timeValue += ((minutes < 10) ? ":0" : ":") + minutes        
        timeValue += ((seconds < 10) ? ":0" : ":") + seconds        
        document.clock.face.value = timeValue;        
        setTimeout("showgreetingtime()",1000);        
}


function greeting(){   
        var today = new Date();   
        var hrs = today.getHours();   
        document.write("<CENTER>");   
        document.write("<H2><font color=black>Guten ");   
        if (hrs < 6)      document.write("(frühen) Morgen");   
        else if (hrs < 12)      document.write("Morgen");   
        else if (hrs <= 18)      document.write("Tag");   
        else      document.write("Abend");   document.write("!</font></H2>");   
        document.write("</CENTER>");   
        document.write("<FONT SIZE=4>");
        document.write("<FORM NAME='clock' onSubmit='0'>");   
        document.write("<DIV ALIGN=CENTER>");   
		document.write("Es ist jetzt   ");
        document.write("<INPUT TYPE='text' NAME='face' SIZE=8 VALUE=''>");   
		document.write("   Uhr");
        document.write("</DIV>");   
		document.write("</FORM>");   
		document.write("</FONT>");   
}

function montharr(m0, m1, m2, m3, m4, m5, m6, m7, m8, m9, m10, m11){   
        this[0] = m0;   
        this[1] = m1;   
        this[2] = m2;   
        this[3] = m3;   
        this[4] = m4;   
        this[5] = m5;   
        this[6] = m6;   
        this[7] = m7;   
        this[8] = m8;   
        this[9] = m9;   
        this[10] = m10;   
        this[11] = m11;
}

function calendar(){   
        var monthNames = "JanFebMarAprMaiJunJulAugSepOktNovDez";   
        var today = new Date();   
        var thisDay;   
        var monthDays = new montharr(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);      
        year = today.getYear();   
        thisDay = today.getDate();      
        // leap year calculation   
        if (((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0))      monthDays[1] = 29;
        // figure out how many days this month will have...   
        nDays = monthDays[today.getMonth()];   
        // and go back to the first day of the month...   
        firstDay = today;   
        firstDay.setDate(1);   
        // and figure out which day of the week it hits...   
        startDay = firstDay.getDay();        
        document.writeln("<CENTER>");   
        document.write("<TABLE BORDER width=350  align=center valign=center>");   
        document.write("<TR align=center bgcolor=black><TH COLSPAN=7>");   
        document.write("<font face=Arial color=white style=bold>");      
		document.write(monthNames.substring(today.getMonth() * 3,(today.getMonth() + 1) * 3));   
        document.write(" ");   
        document.write(year);   
        document.write("</font>");      
		document.write("<TR align=center><TH>");   
        document.write("<font color=red>So</font><TH>Mo<TH>Di<TH>Mi<TH>Do<TH>Fr<TH><font color=blue>Sa</font>");      
        // now write the blanks at the beginning of the calendar   
        document.write("<TR align=center valign=center>");   column = 0;   for (i=0; i<startDay; i++)   {
              document.write("<TD align=center valign=center><FONT SIZE=4>");      
              column++;      
                document.write("</FONT>");   
}

   for (i=1; i<=nDays; i++)   {      
        document.write("<TD align=center valign=center>");      
        if (i == thisDay)         
        document.write("<FONT COLOR=\"#FF0000\" SIZE+=4>")      
        document.write(i);      
        if (i == thisDay)        
                document.write("</FONT>")      
                column++;      
        if (column == 7&& i < nDays)      {         
                document.write("<TR>"); 
                // start a new row         
                column = 0;      
        }   
   }   

document.write("</TABLE>");   
document.write("</CENTER>");
}


var adjust=0
var zone=" Greenwich Mean Time"
gmtOffset=0   //setting this to your offset will start with your current time
var PST=480
var EST=300
var TK=-540
var HW=600
var LD=0
var MX=360
var HK=-480
var FJ=-720
var ND=-330

function checkPST(){
clearTimeout(checkDateTime)
gmtOffset=eval(PST+adjust)
zone="       Pacific"
checkDateTime()
}

function checkEST(){
clearTimeout(checkDateTime)
gmtOffset=EST+adjust
zone="       Eastern"
checkDateTime()
}
function checkTK(){
clearTimeout(checkDateTime)
gmtOffset=TK+adjust
zone="        Tokyo"
checkDateTime()
}
function checkHW(){
clearTimeout(checkDateTime)
gmtOffset=HW+adjust
zone="       Hawaii"
checkDateTime()
}
function checkLD(){
clearTimeout(checkDateTime)
gmtOffset=LD+adjust
zone="     London(GMT)"
checkDateTime()
}
function checkHK(){
clearTimeout(checkDateTime)
gmtOffset=HK+adjust
zone="      Hongkong"
checkDateTime()
}

function checkFJ(){
clearTimeout(checkDateTime)
gmtOffset=FJ+adjust
zone="      Auckland"
checkDateTime()
}
function checkMX(){
clearTimeout(checkDateTime)
gmtOffset=MX+adjust
zone="     Mexico City"
checkDateTime()
}
function checkND(){
clearTimeout(checkDateTime)
gmtOffset=ND+adjust
zone="     Neu Dehli"
checkDateTime()
}




function checkDateTime () {
adjust=0

var today = new Date();
var year = today.getYear() + 00;
var month = today.getMonth()+1;
var date = today.getDate();
var day = today.getDay();
var hour = today.getHours();
var minute = today.getMinutes();
var second = today.getSeconds();

//this next tidbit gets the last saturday in the month of Oct, for daylightsavings times purposes
var lastSat
lastSat=date-(day+1)
while (lastSat<32){
 lastSat+=7
}
if (lastSat>31) lastSat+=-7
// this bit grabs the first saturday in april for the start of daylight time
var firstSat
firstSat=date-(day+1)
while (firstSat>0){
 firstSat+=-7
}
if (firstSat<1) firstSat+=7

//adjust for windows95 daylight savings time changes
if ((((month==4) && (date>=firstSat)) || month>4)  && (month<11 ||
((month==10) && day<=lastSat))){
  adjust+=60}
yourOffset=(new Date()).getTimezoneOffset();
yourOffset = yourOffset+adjust


//************ NOTE: the next section fixes a Navigator 4 bug, remove it if necessary
var xx = navigator.appName
var xy = navigator.appVersion;
xy = xy.substring(0,1);
if ((xy==4) && (xx=="Netscape")) yourOffset = yourOffset+adjust;
if ((((month==4) && (date>20)) || month>4)  && (month<11 || ((month==10) &&
day<30))){
  adjust-=60}
//************ this is the end of the Navigator 4 bug,


ourDifference=eval(gmtOffset-yourOffset);
var half=eval(ourDifference%60);
ourDifference=Math.round(ourDifference/60);
hour=eval(hour-ourDifference);
var m = new Array
("mm","Jan.","Feb.","Mar.","Apr.","May","Jun.","Jul.","Aug.","Sept.","Oct.",
"Nov.","Dec.");
var leap=eval(year%4);

if ((half==-30) || (half==30)) minute+=30;
if (minute>59) minute-=60, hour++;
if (minute<0) minute+=60, hour--;
if (hour>23) hour-=24, date+=1;
if (((month==4) || (month==6) || (month==9) || (month==11)) && (date==31))
date=1, month+=1;
if (((month==2) && (date>28)) && (leap!=0)) date=1, month+=1;
if ((month==2) && (date>29)) date=1, month+=1;


if (hour<0) hour+=24, date-=1;
if ((date==32) && (month==12)) month=m[1], date=1, year+=1
if (date==32) date=1, month+=1;
if ((date<1) && (month==1)) month=m[12], date=31, year-=1
if (date<1) date=31, month-=1;
if (((month==4) || (month==6) || (month==9) || (month==11)) && (date==31))
date=30;
if ((month==2) && (date>28)) date=29;
if (((month==2) && (date>28)) && (leap!=0)) date=28;
for (i=1;i<13;i++){
if (month==i) {month=m[i];
break;
}
}



//var dateTime = "" + ((hour >12) ? hour -12 :hour)
var dateTime = hour;
dateTime = ((dateTime <10)? "0":"") + dateTime;
dateTime = "    " + dateTime;
dateTime += ((minute < 10) ? ":0" : ":") + minute;
dateTime += ((second < 10) ? ":0" : ":") + second;
//dateTime += (hour >= 12) ? " pm," : " am, ";
dateTime += "  " + month + " " + date + ", " + year;
document.clock1.face1.value = dateTime;
document.clock1.locationx.value = zone;
setTimeout("checkDateTime()",900);

}


// Called by both onLoad in BODY tag, and Resume button.
function startstatusclock () 
   {
   // Make sure the clock is stopped
   stopclock();
   time();
   }

function time ()
   {
   var now = new Date();
   var yr = now.getYear();
   var mName = now.getMonth() + 1;
   var dName = now.getDay() + 1;
   var dayNr = now.getDate();
   var hours = now.getHours();
   var minutes = ((now.getMinutes() < 10) ? ":0" : ":") + now.getMinutes();
   var seconds = ((now.getSeconds() < 10) ? ":0" : ":") + now.getSeconds();

   if(dName==1) Day = "Sonntag";
   if(dName==2) Day = "Montag";
   if(dName==3) Day = "Dienstag";
   if(dName==4) Day = "Mittwoch";
   if(dName==5) Day = "Donnerstag";
   if(dName==6) Day = "Freitag";
   if(dName==7) Day = "Samstag";

   if(mName==1) Month="Januar";
   if(mName==2) Month="Februar";
   if(mName==3) Month="März";
   if(mName==4) Month="April";
   if(mName==5) Month="Mai";
   if(mName==6) Month="Juni";
   if(mName==7) Month="Juli";
   if(mName==8) Month="August";
   if(mName==9) Month="September";
   if(mName==10) Month="Oktober";
   if(mName==11) Month="November";
   if(mName==12) Month="Dezember";

   // String to display current date.
   var DayDateTime=(" "
       + Day
       + "   "
       + dayNr
       + ". "
       + Month
       + " "
       + " "
       + yr
       + "   "
       + hours
       + minutes
       + seconds
        );

   // Displays Day-Date-Time on the staus bar.
   window.status=DayDateTime;
   timerID = setTimeout("time()",1000);
   timerRunning = true;
   }

// Stops clock and clears status bar.
function clearStatus()
   {
   if(timerRunning)
      clearTimeout(timerID);
   timerRunning = false;
   window.status=" ";   
   }



    /* Show an object */
    function showObject(object) {
        object.visibility = VISIBLE;
    }

    /* Hide an object */
    function hideObject(object) {
        object.visibility = HIDDEN;
    }

    /* Slide the company logo from top to middle */
    function slideLogo(from, to) {
            if (from < to) {
                company.top = (from += 10);
                setTimeout('slideLogo(' + from + ',' + to + ')', 75);
            }
            else initObjects();
    }

    /* Rotate selected objects */
    function rotateObjects() {
            for (var i = 0; i < pos.length; i++) {
                pos[i] += inc; objects[i].visibility = 'visible';
                objects[i].left = (r * Math.cos(pos[i])) + xoff
                objects[i].top = (r * Math.sin(pos[i])) + yoff;
            }
        rotateTimer = setTimeout("rotateObjects()", 70);
    }

     /* Initialize selected objects for rotation */

     function initObjects() {
        /* Here is the array of HTML elements that will be rotated, from fly1 to fly4 
           Just put the shortcut variables to the HTML elements in this little array
           and they will be rotated automatically */
        objects = new Array(fly1, fly2, fly3);
        pos = new Array();

        pos[0] = 0;
            for (var i = 1; i < objects.length; i++) {
                pos[i] = parseFloat(pos[i - 1] + ((2 * pi) / objects.length));
            }
        rotateObjects();
    }

/* Variables for rotating objects */

    var objects;
    var pos;
    var r = 160;        // radius
    var xoff = 400;     // x offset
    var yoff = 275;     // y offset
    var pi = Math.PI;   // get pi
    var inc = pi / 180; // degrees per rotation cycle
    var objects;        // objects to be rotated
    var pos;            // position for objects



<!-- Yahoo! FM auf Ihrer Homepage-->
var remote=null;
function rs(n,u,w,h){
remote = window.open(u, n, 'width=' + w + ',height=' + h
+',resizable=no,scrollbars=no');
if(remote!=null) {
if(remote.opener==null)
remote.opener=self;
window.name='yahooNewsRoot';
remote.location.href=u;
return false;
}
}


//Default browsercheck, added to all scripts!
function checkBrowser(){
	this.ver=navigator.appVersion
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
	return this
}


/********************************************************************************
Object constructor
********************************************************************************/
function makeBgObj(obj,speed,xmove,ymove,works){
	this.el=bw.dom? document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?document.layers[obj]:0;	
  	this.css=bw.dom || bw.ie4?this.el.style:bw.ns4?this.el:0;
	this.go=0; this.slideBgIn=b_slideBgIn; this.speed=speed; this.xmove=xmove; this.ymove=ymove
	this.slideBgDown=b_slideBgDown; this.slideBg=b_slideBg; this.works=works; 
	this.width=bw.ns4?this.css.document.width:bw.ns5?this.el.childNodes[0].width:this.el.offsetWidth;
	this.height=bw.ns4?this.css.document.height:bw.ns5?this.el.childNodes[0].height:this.el.offsetHeight;
	this.moveIt=b_moveIt; this.obj = obj + "Object"; eval(this.obj + "=this"); return this
}
function b_moveIt(x,y){this.x=x; this.y=y; this.css.left=this.x; this.css.top=this.y}
//Bg out
function b_slideBgIn(){
	if(this.x<-this.xmove){
		this.moveIt(this.x+this.xmove,this.y)
		setTimeout(this.obj+".slideBgIn()",this.speed)
	}
}
function b_slideBgDown(){
	if(this.y<-this.ymove){
		this.moveIt(this.x,this.y+this.ymove)
		setTimeout(this.obj+".slideBgDown()",this.speed)
	}
}
function b_slideBg(){
	if(this.works==0){
		this.moveIt(-this.width,0)
		this.slideBgIn()  	
	}else if(this.works==1){
		this.moveIt(0,-this.height)
		this.slideBgDown()  	
	}else{
		this.moveIt(-this.width,-this.height)
		this.slideBgDown(); this.slideBgIn()  		
	}
	this.css.visibility='visible'
}


function slideBgInit(){
	oBg=new makeBgObj('divBg',bgSpeed,bgXmove,bgYmove,bgWorks)
	oBg.slideBg()
}


//
// Script by Jari Aarniala [www.mbnet.fi/~foo -- foo@mbnet.fi]
//
// This script makes it easy to choose with which search engine
// you`d like to search the net. You may use this if you keep this
// text here...
//

function startSearch(){
	searchString = document.searchForm.searchText.value;	
	if(searchString != ""){
		searchEngine = document.searchForm.whichEngine.selectedIndex + 1;
		finalSearchString = "";

		if(searchEngine == 1){
			finalSearchString = "http://www.altavista.digital.com/cgi-bin/query?pg=q&what=web&fmt=.&q=" + searchString;
		}
		if(searchEngine == 2){
			finalSearchString = "http://av.yahoo.com/bin/query?p=" + searchString + "&hc=0&hs=0";
		}
		if(searchEngine == 3){
			finalSearchString = "http://www.excite.com/search.gw?trace=a&search=" + searchString;
		}
		if(searchEngine == 4){
			finalSearchString = "http://www.hotbot.com/?SW=web&SM=MC&MT=" + searchString + "&DC=10&DE=2&RG=NA&_v=2&act.search.x=89&act.search.y=7";
		}
		if(searchEngine == 5){
			finalSearchString = "http://www.infoseek.com/Titles?qt=" + searchString + "&col=WW&sv=IS&lk=noframes&nh=10";
		}
		if(searchEngine == 6){
			finalSearchString = "http://www.lycos.com/cgi-bin/pursuit?adv=%26adv%3B&cat=lycos&matchmode=and&query=" + searchString + "&x=45&y=11";
		}
		if(searchEngine == 7){
			finalSearchString = "http://netfind.aol.com/search.gw?search=" + searchString + "&c=web&lk=excite_netfind_us&src=1";
		}

		location.href = finalSearchString;
	}
}






