////////////////////////////////////////////////////////////////////////////////////
//
//    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 2002-11-06
////////////////////////////////////////////////////////////////////////////////////

function syst (t1,t2,t3,la) {
  var t0t; var t1t; var t2t; var t3t; var tex;
  switch (t1) {
    case '10':
	  t1t = '<br>10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Geneigtes Dach'; break;
    case '80':
	  t1t = '<br>80&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Umgebungsbereich'; break;
	default:
	  t1t = '';
  }   
  switch (t2) {
    case '10.100':
	  t2t = '<br>10.100 Firstziegel'; break;
    case '10.200':
	  t2t = '<br>10.200 Ziegelleiste'; break;
    case '10.300':
	  t2t = '<br>10.300 Dachknick'; break;
    case '81':
	  t2t = '<br>81&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kahlstellen'; break;
    case '82':
	  t2t = '<br>82&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Linsen und Haufen'; break;
    case '83':
	  t2t = '<br>83&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;K&ouml;rbe und Mauern'; break;
	default:
	  t2t = '';
  } 
    switch (t3) {
    case '81.100':
	  t3t = '<br>81.100 Kahlstelle'; break;
    case '82.100':
	  t3t = '<br>82.100 Steinlinse'; break;
    case '82.200':
	  t3t = '<br>82.200 Holzlinse'; break;
    case '82.300':
	  t3t = '<br>82.300 Steinhaufen'; break;
    case '82.400':
	  t3t = '<br>82.400 Holzhaufen'; break;
    case '83.100':
	  t3t = '<br>83.100 Steinkorb'; break;
    case '83.200':
	  t3t = '<br>83.200 Trockenmauer'; break;
	default:
	  t3t = '';
  } 
  t0t = '00.001 Aufwand für Beratung durch Spezialisten';
  tex = t0t.concat (t1t, t2t, t3t);
  	    
  meld_c(tex,la); return true;
 }
/////////////////////////////////  NEU BUT
function gotowin(){
  if (document.auswahl.ausw.options[document.auswahl.ausw.selectedIndex].value!=''){
    var URL = document.auswahl.ausw.options[document.auswahl.ausw.selectedIndex].value;
    window.parent.location.href = URL;
  }
}

/////////////////////////////////  NEU BUT
function gotowin2(){
var URL = document.auswahl.ausw2.options[document.auswahl.ausw2.selectedIndex].value;
window.parent.location.href = URL;
}

/////////////////////////////////  NEU BUT in main 
function gotowin_main(){
var URL = document.auswahl.ausw.options[document.auswahl.ausw.selectedIndex].value;
window.parent.main0.location.href = URL;
}

/////////////////////////////////  NEU BUT in main 
function gotowin_main2(){
var URL = document.auswahl.ausw3.options[document.auswahl.ausw3.selectedIndex].value;
window.parent.main0.location.href = URL;
}

/////////////////////////////////  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 BundT 15.9.2000
function meld(text,weite) {
	txt = "<TABLE WIDTH="+weite+" BORDER=0 CELLPADDING=5 CELLSPACING=0 BGCOLOR=\"#000099\"><TR><TD><center><B><FONT FACE=\"Arial,Helvetica\" COLOR=\"#FFFFFF\" SIZE=\"-1\">"+text+"</FONT></B></center></TD></TR></TABLE>";
	layerWrite(txt);
	dir = 1;
	width = weite
	disp();
}

// einfaches Popup-Fenster BundT 21.2.2001
function meld_l(text,weite) {
	txt = "<TABLE WIDTH="+weite+" BORDER=0 CELLPADDING=5 CELLSPACING=0 BGCOLOR=\"#2C8C1E\"><TR><TD><center><B><FONT FACE=\"Arial,Helvetica\" COLOR=\"#FFFFFF\" SIZE=\"-1\">"+text+"</FONT></B></center></TD></TR></TABLE>";
	layerWrite(txt);
	dir = 0;
	width = weite
	disp();
}

// Popup-Fenster mit Courier-Schrift BundT 7.11.2000
function meld_c(text,weite) {
	txt = "<TABLE WIDTH="+weite+" BORDER=0 CELLPADDING=5 CELLSPACING=0 BGCOLOR=\"#000099\"><TR><TD><B><FONT FACE=\"Courier New,Courier,mono\" COLOR=\"#FFFFFF\" SIZE=\"-1\">"+text+"</FONT></B></TD></TR></TABLE>";
	layerWrite(txt);
	dir = 1;
	width = weite
	disp();
}
// einfaches Popup-Fenster in deutsch
function deutsch() {
	txt = "<TABLE WIDTH=85 BORDER=0 CELLPADDING=5 CELLSPACING=0 BGCOLOR=\"#3300CC\"><TR><TD><B><FONT FACE=\"Arial,Helvetica\" COLOR=\"#FFFFFF\" SIZE=\"-1\">Diese Seite auf deutsch</FONT></B></TD></TR></TABLE>"
	layerWrite(txt);
	dir = 0;
	width = 85
	disp();
}

// Vergleich Mensch - Wolf: Mensch
function pome(text, title) {
	txt = "<TABLE WIDTH=150 BORDER=1 CELLPADDING=2 CELLSPACING=0 BGCOLOR=\"#009900\"><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=\"#99CC33\"><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 = 1;
	disp();
}

// Vergleich Mensch - Wolf: Wolf 
function powo(text, title) {
	txt = "<TABLE WIDTH=150 BORDER=1 CELLPADDING=2 CELLSPACING=0 BGCOLOR=\"#000099\"><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=\"#33CCFF\"><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 = 1;
	width = 150
	disp();
}

// Zoos
function zoo(text, title) {
	txt = "<TABLE WIDTH=250 BORDER=1 CELLPADDING=2 CELLSPACING=0 BGCOLOR=\"#000099\"><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=\"#33CCFF\"><TR><TD  ALIGN=\"left\"><SPAN ID=\"PST\"><FONT FACE=\"Arial\" COLOR=\"#000000\" SIZE=\"-1\" >"+text+"</FONT><SPAN></TD></TR></TABLE></TD></TR></TABLE>"
	layerWrite(txt);
	dir = 1;
	width = 250
	disp();
}

// Grünes Fenster
function pop_g(text, title,weite) {
	txt = "<TABLE WIDTH="+weite+" BORDER=1 CELLPADDING=2 CELLSPACING=0 BGCOLOR=\"#2C8C1E\"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD align=\"center\"><B><FONT FACE=\"Arial\" COLOR=\"#FFFFFF\">"+title+"</FONT></B></TD></TR></TABLE><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 BGCOLOR=\"#9BE891\"><TR><TD  ALIGN=\"center\"><B><FONT FACE=\"Arial\" COLOR=\"#000000\">"+text+"</FONT></B></TD></TR></TABLE></TD></TR></TABLE>"
	layerWrite(txt);
	dir = 1;
	width = weite
	disp();
}
// Blaues Fenster
function pop_b(text, title,weite) {
	txt = "<TABLE WIDTH="+weite+" BORDER=1 CELLPADDING=2 CELLSPACING=0 BGCOLOR=\"#1E5E8C\"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD align=\"center\"><B><FONT FACE=\"Arial\" COLOR=\"#FFFFFF\">"+title+"</FONT></B></TD></TR></TABLE><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 BGCOLOR=\"#91C2E8\"><TR><TD  ALIGN=\"center\"><B><FONT FACE=\"Arial\" COLOR=\"#000000\">"+text+"</FONT></B></TD></TR></TABLE></TD></TR></TABLE>"
	layerWrite(txt);
	dir = 1;
	width = weite
	disp();
}


// Allgemeines Fenster links
function bfen(text, title,weite) {
	txt = "<center><TABLE WIDTH="+weite+" BORDER=1 CELLPADDING=2 CELLSPACING=0 BGCOLOR=\"#000099\"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><SPAN ID=\"PTT\"><B><center><FONT FACE=\"Arial\" COLOR=\"#FFFFFF\">"+title+"</FONT></center></B></SPAN></TD></TR></TABLE><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 BGCOLOR=\"#33CCFF\"><TR><TD  ALIGN=\"center\"><SPAN ID=\"PST\"><center><FONT FACE=\"Arial\" COLOR=\"#000000\" SIZE=\"-1\" >"+text+"</FONT></center><SPAN></TD></TR></TABLE></TD></TR></TABLE>"
	layerWrite(txt);
	dir = 0;
	width = weite
	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;
		}
	}

// Here you can make the text goto the statusbar.
}

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

// The Close onMouseOver function for Sticky
function cClick() {
	hideObject(over);
	sw=0;
}

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

