function buttonnavigation()
 {
navigationsfenster=window.open('navigation.htm','navigation','titlebar=no,dependent=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,innerwidth=270,innerheight=320,screenx=300,screeny=80,hotkeys=no');
navigationsfenster.focus();
}


//########################################################################################################

function popup(theUrl) {
NewWindow=window.open(theUrl, 'ABB',
'scrollbars=no,toolbar=no,location=no,status=no,menubar=no,resizable=yes,width=386,height=422');
NewWindow.focus();

}






function fensterauf(adresse)
// Neues Fenster erzeugen
 {
       NeuesFenster = window.open(adresse,'werbekunde','titlebar=no,dependent=no,toolbar=no,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,innerwidth=700,innerheight=300,screenx=20,screeny=20');
 }

//########################################################################################################


function LetzteAenderung()
                      {
     var Datum = new Date(document.lastModified)
     var Tag = Datum.getDate()
    var Monat = Datum.getMonth()+1
    var Jahr = Datum.getYear()
    heute = new Date()
     
//    document.writeln(Jahr);
//    document.writeln("<br>")

    if (Jahr == 70)
    {
    Monat = heute.getMonth()+1;
    Tag = heute.getDate();
    Jahr = heute.getYear();
    
    }
   
if (Jahr == 100)
    {
    Jahr = Jahr-100+2000 
    }

//    if (Monat < 10 )  Monat = "0"+Monat 
    datum= Tag +(".")+ Monat+(".") 

// rausgeschmissen + Jahr 

                         document.writeln('<font size="-1">');
                         document.writeln('Letzte Änderung: ');
                         document.writeln("<br>");
                         document.writeln(datum);
                         document.writeln('</font>');
                         document.writeln("<br>");
                      } 


//########################################################################################################

function w(text){
   document.write(text)
   }

function MakeArray(n){   
   this.length = n;
   for (var i = 1; i <= n; i++) this[i]=0; 
   return this;
   }

function Kalender()
{ //========JavaScript-KALENDER ============ 

tag=new MakeArray(7);
tag[0]="Sonntag";
tag[1]="Montag";
tag[2]="Dienstag";
tag[3]="Mittwoch";
tag[4]="Donnerstag";
tag[5]="Freitag";
tag[6]="Samstag";

monat=new MakeArray(12);

monat[0]="Januar";
monat[1]="Februar";
monat[2]="M&auml;rz";
monat[3]="April";
monat[4]="Mai";
monat[5]="Juni";
monat[6]="Juli";
monat[7]="August";
monat[8]="September";
monat[9]="Oktober";
monat[10]="November";
monat[11]="Dezember";

heute = new Date();  

if (heute.getDay()==0) w("<FONT COLOR=#dd0000>");       // Sonntags-farbe
else if (heute.getDay()==6) w("<FONT COLOR=#770000>");  // Samstags-farbe
else w("<Font COLOR=#002080>");                         // Werktags-farbe  

  

w("<font size=1>");                     // Schriftgroesse Monat
w(monat[heute.getMonth()]);
w("<br></font><font size=8><b>");       // Schriftgroesse Datum
w(heute.getDate()); 
w("</b></FONT><FONT SIZE=1><BR>");      // Schriftgroesse Wochentag
w(tag[heute.getDay()]);
w("</FONT></font><BR>"); 
}


//########################################################################################################


function AufrufHitliste()
 {
bestfenster=window.open('best.htm', 'hitliste','dependent=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,innerwidth=460,innerheight=400,screenx=80,screeny=80,hotkeys=no');  
}


//########################################################################################################



//      - - - - - - - - Get Decoded Value of Cookie - - - - - - - - 

function getCookieVal (offset) {
        var endstr = document.cookie.indexOf (";", offset);
               if (endstr == -1)
               endstr = document.cookie.length;
        return unescape(document.cookie.substring(offset, endstr));
        }


//      - - - - - - - - Get Value of Cookie - - - - - - - - 

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;
}





//      - - - - - - - - Set Value of Cookie - - - - - - - - 

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" : "");
}
//      - - - - - - - - End of Public Domain Cookie Code - - - - - - - - 


//      - - - - - - - - kuchen1001 
function show_count() {
        var expdate = new Date();
        var num;
        expdate.setTime(expdate.getTime() +  (24 * 60 * 60 * 1000 * 31)); 
                if(!(num = GetCookie("kuchen1001count"))) 
                num = 0;
        num++;
        SetCookie ("kuchen1001count", num, expdate);
                if (num == 1) document.write("Dies ist Ihr erster Besuch bei '1001 Reiseberichte aus aller Welt'");
                else document.write("Sie waren bisher " + num + " mal bei '1001 Reiseberichte aus aller Welt'"); 
}



function auto_show_name() {
        if(GetCookie("kuchen1001name") != null)
        document.write('Sch&ouml;n Sie wiederzusehen, ' + GetCookie('kuchen1001name') + '! ');
        else {
        document.write("<FORM><B>Wenn Sie beim nächsten Besuch mit Ihrem Namen begrüßt werden wollen, geben Sie ihn bitte hier ein</B>:<p><INPUT TYPE = \"text\" NAME = \"nameinput\">" + " <INPUT TYPE = \"button\" VALUE = \"eingeben\" onClick = \"set_name(this.form)\"></FORM>");
                }
}


function set_name(form) {
        var expdate = new Date ();
        expdate.setTime (expdate.getTime() + (24 * 60 * 60 * 1000 * 31));
        var username = form.nameinput.value
                if (username != "") {
                        {
                        SetCookie ("kuchen1001name", username, expdate);
                        window.history.go(0);
                        }
                }
                else alert("Bitte Vor- und Nachnamen eingeben!");
}
// -->

//########################################################################################################


function auswert(form)
{
sprungziel= new Array(10)
        sprungziel[0]="berichte.htm"
        sprungziel[1]="berichte_europa.htm"
        sprungziel[2]="berichte_afrika.htm"
sprungziel[3]="berichte_amerika.htm"
sprungziel[4]="berichte_asien.htm"
sprungziel[5]="berichte_australien.htm"
sprungziel[6]="berichte_mehr.htm"
sprungziel[7]="berichte.htm"
        


location=sprungziel[form.auswahl.selectedIndex]
}

//########################################################################################################

// in dieser Sektion alles für Wasserzeichen WBV

function wasserzeichen(){

markW = 70;       // pixels wide
markH = 45;       // pixels high
markX = 100;      // percent right
markY = 100;      // percent down
markRefresh = 20; // milliseconds

// set common object reference
if (!document.all) document.all = document;
if (!document.all.waterMark.style) document.all.waterMark.style = document.all.waterMark;

wMark = document.all.waterMark.style;
wMark.width = markW;
wMark.height = markH;
navDOM = window.innerHeight; 


window.onload=markMe; // safety for Mac IE4.5
}


function setVals() {
 barW = 0; // scrollbar compensation for PC Nav
 barH = 0;
 if (navDOM) {
  if (document.height > innerHeight) barW = 20;
  if (document.width > innerWidth) barH = 20;
  } else {
  innerWidth = document.body.clientWidth;
  innerHeight = document.body.clientHeight;
  }
 posX = ((innerWidth - markW)-barW) * (markX/100);
 posY = ((innerHeight - markH)-barH) * (markY/100);
 }

function wRefresh() {
 wMark.left = posX + (navDOM?pageXOffset:document.body.scrollLeft);
 wMark.top = posY + (navDOM?pageYOffset:document.body.scrollTop);
 }

function markMe() {
 setVals();
 window.onresize=setVals;
 markID = setInterval ("wRefresh()",markRefresh);
 }

//########################################################################################################

// Beispiel von document.write mit mehreren Anführungszeichen

function beispiel(){

document.write('<DIV id=\"waterMark\" style=\"position:absolute\">');
document.write('<A href=\"pinwand.htm\">');
document.write('<IMG src=\"schmack.gif\" alt=\"Reiseerlebnisse aus erster Hand vom WBV Verlag Reisebücher\"  border=0></A>');
document.write('</DIV>');
}

//########################################################################################################

// Beispiel Verweildauer auf einer Seite bestimmen - nur noch Fragment vorhanden

function openFor() {
pageClose = new Date();
minutes = (pageClose.getMinutes() - pageOpen.getMinutes());
seconds = (pageClose.getSeconds() - pageOpen.getSeconds());
time = (seconds + (minutes * 60));
if (time == 1)
{
return (time + " Sekunde")
}
return (time + " Sekunden")
} 


//########################################################################################################

function loadPage(loc) {
GerufenesFenster=window.open(loc, 'Gerufenes_Fenster','toolbar=no,location=yes,directories=yes,status=yes,menubar=no,scrollbars=yes,resizable=yes');
}
//########################################################################################################

function unload1() {
             var now = new Date();
             var endzeit = now.getTime() - startzeit;
timewin = window.open("http://webcounter.goweb.de/9569TIME"+endzeit,"TIME","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,height=100,width=100");
             }
//########################################################################################################

function Flocken() {


var no = 25; // snow number
var speed = 10; // smaller number moves the snow faster
var snowflake = "http://bruggernet.de/bilder/snow.gif";

var ns4up = (document.layers) ? 1 : 0;  // browser sniffer
var ie4up = (document.all) ? 1 : 0;
var dx, xp, yp;    // coordinate and position variables
var am, stx, sty;  // amplitude and step variables
var i, doc_width = 800, doc_height = 600;
if (ns4up) {
doc_width = self.innerWidth;
doc_height = self.innerHeight;
} else if (ie4up) {
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}
dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
for (i = 0; i < no; ++ i) {  
dx[i] = 0;                        // set coordinate variables
xp[i] = Math.random()*(doc_width-50);  // set position variables
yp[i] = Math.random()*doc_height;
am[i] = Math.random()*20;         // set amplitude variables
stx[i] = 0.02 + Math.random()/10; // set step variables
sty[i] = 0.7 + Math.random();     // set step variables
if (ns4up) {                      // set layers
if (i == 0) {
document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
document.write("top=\"15\" visibility=\"show\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></layer>");
} else {
document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
document.write("top=\"15\" visibility=\"show\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></layer>");
   }
} else if (ie4up) {
if (i == 0) {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></div>");
} else {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></div>");
      }
   }
}
function snowNS() {  // Netscape main animation function
for (i = 0; i < no; ++ i) {  // iterate for every dot
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
doc_width = self.innerWidth;
doc_height = self.innerHeight;
}
dx[i] += stx[i];
document.layers["dot"+i].top = yp[i];
document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]);
}
setTimeout("snowNS()", speed);
}
function snowIE() {  // IE main animation function
for (i = 0; i < no; ++ i) {  // iterate for every dot
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}
dx[i] += stx[i];
document.all["dot"+i].style.pixelTop = yp[i];
document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
}
setTimeout("snowIE()", speed);
}
if (ns4up) {
snowNS();
} else if (ie4up) {
snowIE();
}

}

//########################################################################################################

function addEvent(elm, evType, fn, useCapture) {
        if (elm.addEventListener) { 
        elm.addEventListener(evType, fn, useCapture); 
        return true; 
        }
        else if (elm.attachEvent) { 
        var r = elm.attachEvent('on' + evType, fn); 
        EventCache.add(elm, evType, fn);
        return r; 
        }
        else {
        elm['on' + evType] = fn;
        }
}
function getEventSrc(e) {
        if (!e) e = window.event;

        if (e.originalTarget)
        return e.originalTarget;
        else if (e.srcElement)
        return e.srcElement;
}
function addLoadEvent(func) {
var oldonload = window.onload;
        if (typeof window.onload != 'function') {
        window.onload = func;
        } else {
        window.onload = 
                function() {
                oldonload();
                func();
                }
        }
}
var EventCache = function(){
        var listEvents = [];
        return {
                listEvents : listEvents,
        
                add : function(node, sEventName, fHandler, bCapture){
                        listEvents.push(arguments);
                },
        
                flush : function(){
                        var i, item;
                        for(i = listEvents.length - 1; i >= 0; i = i - 1){
                                item = listEvents[i];
                                
                                if(item[0].removeEventListener){
                                        item[0].removeEventListener(item[1], item[2], item[3]);
                                };
                                
                                /* From this point on we need the event names to be prefixed with 'on" */
                                if(item[1].substring(0, 2) != "on"){
                                        item[1] = "on" + item[1];
                                };
                                
                                if(item[0].detachEvent){
                                        item[0].detachEvent(item[1], item[2]);
                                };
                                
                                item[0][item[1]] = null;
                        };
                }
        };
}();


addEvent(window,'unload',EventCache.flush, false);

//########################################################################################################


var toolTipLib = { 
        xCord : 0,
        yCord : 0,
        obj : null,
        tipElements : ['a','abbr','acronym'],
        attachToolTipBehavior: function() {
                if ( !document.getElementById ||
                        !document.createElement ||
                        !document.getElementsByTagName ) {
                        return;
                }
                var i,j;
                addEvent(document,'mousemove',toolTipLib.updateXY,false);
                if ( document.captureEvents ) {
                                document.captureEvents(Event.MOUSEMOVE);
                }
                for ( i=0;i<toolTipLib.tipElements.length;i++ ) {
                        var current = document.getElementsByTagName(toolTipLib.tipElements[i]);
                        for ( j=0;j<current.length;j++ ) {
                                addEvent(current[j],'mouseover',toolTipLib.tipOver,false);
                                addEvent(current[j],'mouseout',toolTipLib.tipOut,false);
                                current[j].setAttribute('tip',current[j].title);
                                current[j].removeAttribute('title');
                        }
                }
        },
        updateXY : function(e) {
                if ( document.captureEvents ) {
                        toolTipLib.xCord = e.pageX;
                        toolTipLib.yCord = e.pageY;
                } else if ( window.event.clientX ) {
                        toolTipLib.xCord = window.event.clientX+document.documentElement.scrollLeft;
                        toolTipLib.yCord = window.event.clientY+document.documentElement.scrollTop;
                }
        },
        tipOut: function(e) {
                if ( window.tID ) {
                        clearTimeout(tID);
                }
                if ( window.opacityID ) {
                        clearTimeout(opacityID);
                }
                var l = getEventSrc(e);
                var div = document.getElementById('toolTip');
                if ( div ) {
                        div.parentNode.removeChild(div);
                }
        },
        checkNode : function(obj) {
                var trueObj = obj;
                if ( trueObj.nodeName.toLowerCase() == 'a' || trueObj.nodeName.toLowerCase() == 'acronym' || trueObj.nodeName.toLowerCase() == 'abbr' ) {
                        return trueObj;
                } else {
                        return trueObj.parentNode;
                }
        },
        tipOver : function(e) {
                toolTipLib.obj = getEventSrc(e);
                tID = setTimeout("toolTipLib.tipShow()",500)
        },
        tipShow : function() {
                var newDiv = document.createElement('div');
                var scrX = Number(toolTipLib.xCord);
                var scrY = Number(toolTipLib.yCord);
                var tp = parseInt(scrY+15);
                var lt = parseInt(scrX+10);
                var anch = toolTipLib.checkNode(toolTipLib.obj);
                var addy = '';
                var access = '';
                if ( anch.nodeName.toLowerCase() == 'a' ) {
                        addy = (anch.href.length > 25 ? anch.href.toString().substring(0,50)+"..." : anch.href);
                        var access = ( anch.accessKey ? ' <span>['+anch.accessKey+']</span> ' : '' );
                } else {
                        addy = anch.firstChild.nodeValue;
                }
                newDiv.id = 'toolTip';
                document.getElementsByTagName('body')[0].appendChild(newDiv);
                newDiv.style.opacity = '.1';
                newDiv.innerHTML = "<p>"+anch.getAttribute('tip')+"<em>"+access+"</em></p>";
                if ( parseInt(document.documentElement.clientWidth+document.documentElement.scrollLeft) < parseInt(newDiv.offsetWidth+lt) ) {
                        newDiv.style.left = parseInt(lt-(newDiv.offsetWidth+10))+'px';
                } else {
                        newDiv.style.left = lt+'px';
                }
                if ( parseInt(document.documentElement.clientHeight+document.documentElement.scrollTop) < parseInt(newDiv.offsetHeight+tp) ) {
                        newDiv.style.top = parseInt(tp-(newDiv.offsetHeight+10))+'px';
                } else {
                        newDiv.style.top = tp+'px';
                }
                toolTipLib.tipFade('toolTip',10);
        },
        tipFade: function(div,opac) {
                var obj = document.getElementById(div);
                var passed = parseInt(opac);
                var newOpac = parseInt(passed+10);
                if ( newOpac < 80 ) {
                        obj.style.opacity = '.'+newOpac;
                        obj.style.filter = "alpha(opacity:"+newOpac+")";
                        opacityID = setTimeout("toolTipLib.tipFade('toolTip','"+newOpac+"')",20);
                }
                else { 
                        obj.style.opacity = '.99';
                        obj.style.filter = "alpha(opacity:80)";
                }
        }
};
addEvent(window,'load',toolTipLib.attachToolTipBehavior,false);

//########################################################################################################



//########################################################################################################

