////////////////////////////////////////////////////////////////////////////////////
//
//    ATTENTION NETSCAPE NAVIGATOR 3.0 USERS!!!
//
//    If you see this text , you're using a buggy browser.
//
//    1. Press your BACK BUTTON.
//    2. Click on REFRESH or RELOAD.
//
//    You should now be able to use the site without seeing this message.
//    This problem can however return if your browser does not cache this
//    document correctly.
//
//    UPGRADE YOUR BROWSER
//
////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////
//  overLIB 2.22.01 Sprache  --  Please leave this notice.
//
//  by Erik Bosrup (erik@bosrup.com)  Last modified 1999-03-31
// changed by Thomas Pachlatko          Last modified 2000-05-16
////////////////////////////////////////////////////////////////////////////////////

/////////////////////////////////  Index Listmenu
function formHandler(){
var URL = document.angebotform.angebot.options[document.angebotform.angebot.selectedIndex].value;
window.location.href = URL;
}

function formHandler2(){
var URL = document.angebot2.ang_m.options[document.angebot2.ang_m.selectedIndex].value;
window.location.href = URL;
}

////////////////////////////////////////////////////////////////////////////////////
ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false

// Microsoft Stupidity Check.
if (ie4) {
	if (navigator.userAgent.indexOf('MSIE 5')>0) {
		ie5 = true;
	} else {
		ie5 = false; }
} else {
	ie5 = false;
}

var x = 0;
var y = 0;
var snow = 0;
var sw = 0;
var cnt = 0;
var dir = 0;
var width = 150;

if ( (ns4) || (ie4) ) {
	if (ns4) over = document.overDiv
	if (ie4) over = overDiv.style
	document.onmousemove = mouseMove
	if (ns4) document.captureEvents(Event.MOUSEMOVE)
}

// Functions 

// Clears popups if appropriate
function nd() {
	if ( cnt >= 1 ) { sw = 0 };
	if ( (ns4) || (ie4) ) {
		if ( sw == 0 ) {
			snow = 0;
			hideObject(over);
		} else {
			cnt++;
		}
	}
}

// einfaches Popup-Fenster in französich
function franz() {
	einfach(0,"Cette page en fran&ccedil;ais","#CC0099");
}

// einfaches Popup-Fenster in deutsch
function deutsch() {
	einfach(0,"Diese Seite auf deutsch","#3300CC");
}

// einfaches Popup-Fenster in italienisch
function ital() {
	einfach(0,"&nbsp;&nbsp;Questa pagina in &nbsp;&nbsp;italiano","#009900");
}

// einfaches Popup-Fenster 
function einfach(d,text,farbe) {
	txt = "<TABLE WIDTH=85 BORDER=0 CELLPADDING=5 CELLSPACING=0 BGCOLOR=\""+farbe+"\"><TR><TD><B><DIV ALIGN=\"center\"><FONT FACE=\"Arial,Helvetica\" COLOR=\"#FFFFFF\" SIZE=\"-1\">"+text+"</FONT></DIV></B></TD></TR></TABLE>"
	layerWrite(txt);
	dir = d
	width = 85
	disp();
}

// Vergleich Mensch - Wolf: Mensch
function pome(text, title) {
	zweif(1,text,title,"#009900","#99CC33",150)
}
// Vergleich Mensch - Wolf: Wolf 
function powo(text, title) {
	zweif(1,text,title,"#000099","#33CCFF",150)
}
// Zoos
function zoo(text, title) {
	zweif(1,text,title,"#000099","#33CCFF",250)
}
// allg. blaues Fenster rechts
function afen(text, title,breite) {
	zweif(1,text,title,"#000099","#33CCFF",breite)
}
// allg. blaues Fenster links
function bfen(text, title,breite) {
	zweif(0,text,title,"#000099","#33CCFF",breite)
}
// Fenster mit Titel
function zweif(d,text, title,farbe,farbe2,breit) {
	txt = "<TABLE WIDTH="+breit+" BORDER=1 CELLPADDING=2 CELLSPACING=0 BGCOLOR=\""+farbe+"\"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><SPAN ID=\"PTT\"><B><FONT FACE=\"Arial\" COLOR=\"#FFFFFF\">"+title+"</FONT></B></SPAN></TD></TR></TABLE><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 BGCOLOR=\""+farbe2+"\"><TR><TD ALIGN=\"center\"><SPAN ID=\"PST\"><FONT FACE=\"Arial\" COLOR=\"#000000\" SIZE=\"-1\" >"+text+"</FONT><SPAN></TD></TR></TABLE></TD></TR></TABLE>"
	layerWrite(txt);
	dir = d;
	width = breit
	disp();
}

// Common calls
function disp() {
	if ( (ns4) || (ie4) ) {
		if (snow == 0) 	{
			if (dir == 1) { // Right
				moveTo(over,x+10,y+10);
			}
			if (dir == 0) { // Left
				moveTo(over,x-10-width,y+10);
			}
			showObject(over);
			snow = 1;
		}
	}
}

// Moves the layer
function mouseMove(e) {
	if (ns4) {x=e.pageX; y=e.pageY;}
	if (ie4) {x=event.x; y=event.y;}
	if (ie5) {x=event.x+document.body.scrollLeft; y=event.y+document.body.scrollTop;}
	if (snow) {
		if (dir == 1) { // Right
			moveTo(over,x+10,y+10);
		}
		if (dir == 0) { // Left
			moveTo(over,x-10-width,y+10);
		}
	}
}

// Writes to a layer
function layerWrite(txt) {
        if (ns4) {
                var lyr = document.overDiv.document
                lyr.write(txt)
                lyr.close()
        }
        else if (ie4) document.all["overDiv"].innerHTML = txt
}

// Make an object visible
function showObject(obj) {
        if (ns4) obj.visibility = "show"
        else if (ie4) obj.visibility = "visible"
}

// Hides an object
function hideObject(obj) {
        if (ns4) obj.visibility = "hide"
        else if (ie4) obj.visibility = "hidden"
}

// Move a layer
function moveTo(obj,xL,yL) {
        obj.left = xL
        obj.top = yL
}

