var ns4=(navigator.appName=='Netscape' && parseInt(navigator.appVersion)==4);
var ns6=(document.getElementById)? true:false;
var ie4=(document.all)? true:false;
var obj;
var objJagd;
var objFalke;
var objPferd;
var objHund;
var objPortrait;
var objAfrika;
var objBaumbilder;
var objSonstiges;
var objRadierungen;
var objLINK1;
var objLINK2;
var objLINK3;
var objLINK4;
var objLINK5;
var objLINK6;
var objLINK7;
var objH1;
var objH2;
var objH3;
var objK1;
var objK2;
var objK3;
var objW1;
var objW2;
var objW3;
var objG1;
var objG2;
var objG3;
var objM1;
var objM2;
var objM3;
var objI1;
var objI2;
var objI3;

function INITMENU() {
	if(ns4) {
		objH1 =self.document.H1;
		objH2 =self.document.H2;
		objH3 =self.document.H3;
		objW1 =self.document.W1;
		objW2 =self.document.W2;
		objW3 =self.document.W3;
		objK1 =self.document.K1;
		objK2 =self.document.K2;
		objK3 =self.document.K3;
		objI1 =self.document.I1;
		objI2 =self.document.I2;
		objI3 =self.document.I3;
		objG1 =self.document.G1;
		objG2 =self.document.G2;
		objG3 =self.document.G3;
		objM1 =self.document.M1;
		objM2 =self.document.M2;
		objM3 =self.document.M3;
	}
	if(ie4) {
		objH1 =document.all.H1;
		objH2 =document.all.H2;
		objH3 =document.all.H3;
		objW1 =document.all.W1;
		objW2 =document.all.W2;
		objW3 =document.all.W3;
		objK1 =document.all.K1;
		objK2 =document.all.K2;
		objK3 =document.all.K3;
		objI1 =document.all.I1;
		objI2 =document.all.I2;
		objI3 =document.all.I3;
		objG1 =document.all.G1;
		objG2 =document.all.G2;
		objG3 =document.all.G3;
		objM1 =document.all.M1;
		objM2 =document.all.M2;
		objM3 =document.all.M3;
		if(navigator.userAgent.indexOf('MSIE 5')> 0){ie5=true}
		if(navigator.userAgent.indexOf('MSIE 6')> 0){ie6=true}
		if(ns6){
			ns6=false;
		}
	}
	if(ns6) {
		objH1 =self.document.getElementById("H1");
		objH2 =self.document.getElementById("H2");
		objH3 =self.document.getElementById("H3");
		objW1 =self.document.getElementById("W1");
		objW2 =self.document.getElementById("W2");
		objW3 =self.document.getElementById("W3");
		objK1 =self.document.getElementById("K1");
		objK2 =self.document.getElementById("K2");
		objK3 =self.document.getElementById("K3");
		objI1 =self.document.getElementById("I1");
		objI2 =self.document.getElementById("I2");
		objI3 =self.document.getElementById("I3");
		objG1 =self.document.getElementById("G1");
		objG2 =self.document.getElementById("G2");
		objG3 =self.document.getElementById("G3");
		objM1 =self.document.getElementById("M1");
		objM2 =self.document.getElementById("M2");
		objM3 =self.document.getElementById("M3");
	}
	if(typeof objH1=='undefined'){alert("objH1 is undefined!");}
	var temp = parent.seite.location.href.split("/")[parent.seite.location.href.split("/").length-1].split(".")[0].toLowerCase();
	if (temp == 'index') {
		temp = parent.seite.location.href.split("/")[parent.seite.location.href.split("/").length-3].split(".")[0].toLowerCase();
	}
	if (temp == 'termine') {
		temp = 'i';
	}
	temp = temp.substr(0,1).toUpperCase();
	var tmp = temp +"1";
	if(ns4) obj = self.document(tmp);
	if(ie4) obj = document.all(tmp);
	if(ns6) obj = self.document.getElementById(tmp);
	obj.className = "button1p";
	tmp = temp +"2";
	if(ns4) obj = self.document(tmp);
	if(ie4) obj = document.all(tmp);
	if(ns6) obj = self.document.getElementById(tmp);
	obj.className = "button2p";
	tmp = temp +"3";
	if(ns4) obj = self.document(tmp);
	if(ie4) obj = document.all(tmp);
	if(ns6) obj = self.document.getElementById(tmp);
	obj.className = "button3p";
}


function INITGEMAELDE() {
	if(ns4) {
		objJagd =self.document.Jagd;
		objFalke =self.document.Falke;
		objPferd =self.document.Pferd;
		objHund =self.document.Hund;
		objPortrait =self.document.Portrait;
		objAfrika =self.document.Afrika;
		objBaumbilder =self.document.Baumbilder;
		objSonstiges =self.document.Sonstiges;
		objRadierungen =self.document.Radierungen;
	}
	if(ie4) {
		objJagd		=document.all.Jagd;
		objFalke	=document.all.Falke;
		objPferd	=document.all.Pferd;
		objHund		=document.all.Hund;
		objPortrait	=document.all.Portrait;
		objAfrika	=document.all.Afrika;
		objBaumbilder	=document.all.Baumbilder;
		objSonstiges	=document.all.Sonstiges;
		objRadierungen	=document.all.Radierungen;
		if(navigator.userAgent.indexOf('MSIE 5')> 0){ie5=true}
		if(navigator.userAgent.indexOf('MSIE 6')> 0){ie6=true}
		if(ns6){
			ns6=false;
		}
	}
	if(ns6) {
		objJagd		=self.document.getElementById("Jagd");
		objFalke	=self.document.getElementById("Falke");
		objPferd	=self.document.getElementById("Pferd");
		objHund		=self.document.getElementById("Hund");
		objPortrait	=self.document.getElementById("Portrait");
		objAfrika	=self.document.getElementById("Afrika");
		objBaumbilder	=self.document.getElementById("Baumbilder");
		objSonstiges	=self.document.getElementById("Sonstiges");
		objRadierungen	=self.document.getElementById("Radierungen");
	}
	if(typeof objJagd=='undefined'){alert("objJagd is undefined!");}
}

function INITWANDGEMAELDE() {
	if(ns4) {
		objLINK1 =self.document.LINK1;
		objLINK2 =self.document.LINK2;
		objLINK3 =self.document.LINK3;
		objLINK4 =self.document.LINK4;
		objLINK5 =self.document.LINK5;
		objLINK6 =self.document.LINK6;
		objLINK7 =self.document.LINK7;
	}
	if(ie4) {
		objLINK1 =document.all.LINK1;
		objLINK2 =document.all.LINK2;
		objLINK3 =document.all.LINK3;
		objLINK4 =document.all.LINK4;
		objLINK5 =document.all.LINK5;
		objLINK6 =document.all.LINK6;
		objLINK7 =document.all.LINK7;
		if(navigator.userAgent.indexOf('MSIE 5')> 0){ie5=true}
		if(navigator.userAgent.indexOf('MSIE 6')> 0){ie6=true}
		if(ns6){
			ns6=false;
		}
	}
	if(ns6) {
		objLINK1 =self.document.getElementById("LINK1");
		objLINK2 =self.document.getElementById("LINK2");
		objLINK3 =self.document.getElementById("LINK3");
		objLINK4 =self.document.getElementById("LINK4");
		objLINK5 =self.document.getElementById("LINK5");
		objLINK6 =self.document.getElementById("LINK6");
		objLINK7 =self.document.getElementById("LINK7");
	}
	if(typeof objLINK1=='undefined'){alert("objLINK1 is undefined!");}
}


function WriteDiv(ojc,txt){
	if(ns4){
		var lyr=ojc.document;
		lyr.write(txt);
		lyr.close();
	}else if(ie4){
		ojc.innerHTML=txt;
	}else if(ns6){
		range=self.document.createRange();
		range.setStartBefore(ojc);
		domfrag=range.createContextualFragment(txt);
		while(ojc.hasChildNodes()){
			ojc.removeChild(ojc.lastChild);
		}
		ojc.appendChild(domfrag);
	}
}

function Mover(obj) {
	obj.color = "#FFFFFF";
}

function Mout(obj) {
	obj.color = "#0099FF";
}

function BTNover(id) {
	if(ns4) {
		obj = self.document(id);
		}
	if(ie4) {
		obj =document.all(id);
		}
	if(ns6) {
		obj = self.document.getElementById(id);
		}
	obj.color = "#FFFFFF";
}

function BTNout(id) {
	if(ns4) {
		obj = self.document(id);
		}
	if(ie4) {
		obj =document.all(id);
		}
	if(ns6) {
		obj = self.document.getElementById(id);
		}
	obj.color = "#0099FF";
}

function Bclick(obj1,obj2,obj3) {
	objH1.className = "button1";
	objH2.className = "button2";
	objH3.className = "button3";
	objW1.className = "button1";
	objW2.className = "button2";
	objW3.className = "button3";
	objK1.className = "button1";
	objK2.className = "button2";
	objK3.className = "button3";
	objG1.className = "button1";
	objG2.className = "button2";
	objG3.className = "button3";
	objM1.className = "button1";
	objM2.className = "button2";
	objM3.className = "button3";
	objI1.className = "button1";
	objI2.className = "button2";
	objI3.className = "button3";

	obj1.className = "button1p";
	obj2.className = "button2p";
	obj3.className = "button3p";
}

