		function stoperror(){
			return true
		}
		window.onerror=stoperror;

		self.focus();
		window.name="main";


		overcolor="#cc001c";
		outcolor="#0d7fc3";

		var ns4 = (document.layers)? true:false;
		var ns6 = (document.getElementById)? true:false;
		var ie4 = (document.all)? true:false;
		var mac = ((navigator.appVersion.indexOf("PPC") == 1))? true:false;
		var ie5 = false;

		//Windoofs SelectBug ausmerzen:
		function ShowSelect() {
			if (navigator.appVersion.indexOf("PPC") ==-1)  {
				for (var i=0; i<20; i++) {
				
					if (ns4)	{
						if (document.layers['select'+i]) {
							document.layers['select'+i].visibility = "show";
						}
					}
					else if (ie4)	{
						if (document.all('select'+i)) {
							document.all('select'+i).style.visibility = "visible";
						}
					}
					else if (ns6)	{
						if (document.getElementById('select'+i)) {
							document.getElementById('select'+i).style.visibility = "visible";
						}
					}
				}
			}
			//iFrames
			if (ie4)	{
				if (document.all('iDiv')) {
					document.all('iDiv').style.visibility = "visible";
				}
				if (document.all('iframe')) {
					document.all('iframe').style.visibility = "visible";
				}
			}
			else if (ns6)	{
				if (document.getElementById('iframe')) {
					document.getElementById('iframe').style.visibility = "visible";
				}
				if (document.getElementById('iDiv')) {
					document.getElementById('iDiv').style.visibility = "visible";
				}
			}
			//Javaapllets
			if (ns4)	{
				if (document.layers['bohne']) {
					document.layers['bohne'].visibility = "show";
				}
			}
			else if (ie4)	{
				if (document.all('bohne')) {
					document.all('bohne').style.visibility = "visible";
				}
			}
			else if (ns6)	{
				if (document.getElementById('bohne')) {
					document.getElementById('bohne').style.visibility = "visible";
				}
			}
		}
		function HideSelect(spec) {
			if (navigator.appVersion.indexOf("PPC") ==-1)  {
			if (spec) {
				izaehler=0;
			}
			else {
				izaehler=1;
			}
			for (var i=izaehler; i<11; i++) {
			
			if (ns4)	{
				if (document.layers['select'+i]) {
					document.layers['select'+i].visibility = "hide";
				}
				
			}
			else if (ie4)	{
				if (document.all('select'+i)) {
					document.all('select'+i).style.visibility = "hidden";
				}
				
			}
			//else if (ns6)	{
			//	if (document.getElementById('select'+i)) {
			//		document.getElementById('select'+i).style.visibility = "hidden";
			//	}
			//}
			}
		}
		//Iframe
		 if (ie4)	{
			if (document.all('iframe')) {
				document.all('iframe').style.visibility = "hidden";
			}
		}
		else if (ns6)	{
			if (document.getElementById('iframe')) {
				document.getElementById('iframe').style.visibility = "hidden";
			}
		}
	
		if (ns4)	{
			if (document.layers['bohne']) {
				document.layers['bohne'].visibility = "hide";
			}
		}
		else if (ie4)	{
			if (document.all('bohne')) {
				document.all('bohne').style.visibility = "hidden";
			}
		}
		else if (ns6)	{
			if (document.getElementById('bohne')) {
				document.getElementById('bohne').style.visibility = "hidden";
			}
		}
		}
		self.window.name="inhalt";
		//self.window.status="Seite wird geladen...";
		function Print(printurl) {
			window.open(printurl,"Drucken","resizable=yes,toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,width=500,height=500");
		}
		function BlankWin() {
			window.open("blank.htm","blank","resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,width=500,height=500");
		}
		function Mail(mailurl) {
			window.open(mailurl,"Versenden","resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,width=500,height=500");
		}
		function Bild(wert){
		var bild_url="bild.htm?bild_id="+wert;
		window.open(bild_url,"Bildansicht","resizable=yes,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,width=400,height=400");
		}
		function CartWin(){
			window.open("cartadd.htm","cartadd","resizable=yes,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,width=200,height=200");
		}
		function BildZoom(bild){
		var bild_url="bildzoom.htm?bild="+bild;
		window.open(bild_url,"Bildansicht","resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,width=400,height=400");
		}
		function ExtLink(wert,breite,hoehe,ziel,scroll){
			if (!scroll) {
				scrolid="yes"
			}
			else {
				scrolid="no"
			}
			if(!breite) {
				breite=450;
			}
			if(!hoehe) {
				hoehe=550;
			}
			demension='width='+breite+',height='+hoehe+'"'; 
			if (!ziel) {
				ziel="info"
			}
			if (wert) {
				window.open(wert,ziel,"resizable=yes,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars="+scrolid+","+demension);
			}
		}

		//Style für ie und ns6:
		if (!document.layers) {
			document.write('<link href="stylesxtra.css" rel="stylesheet" media="screen">');
		}
		
		self.window.name="main";
		function ChangeStyle(id,act) {
			stylecolor="";
				if (act) {
					stylecolor="#c20528";
				}
				if (ie4) {
					document.all(id).style.color = stylecolor;
				}
				if (ns6) {
					document.getElementById(id).style.color = stylecolor;
				}
				if (ns4) {
				}
			}
			function GALimg(bildurl) {
			
				if(galimgJS) {
			//		alert(document.images('galimg').width);
					if(document.images['galimg'].width > 425) {
						document.images['galimg'].width=425;
					}
					if(document.images('galimg').width > 425) {
						document.images('galimg').width=425;
					}
					
				}
			}
			if (document.getElementById && ! document.all) {
				document.write('<link href="stylesfx.css" rel="stylesheet" media="screen">');
			}
			function SetGoFix() {
			
			if(document.getElementById) {
				if(window.innerHeight >= 650) {
					document.getElementById('skyscraper').style.position="fixed";
				}
				else {
					document.getElementById('skyscraper').style.position="absolute";
				}
			}
			
		}
