var ie4 = (document.all) ? true : false;
var ns4 = (document.layers) ? true : false;
var ns6 = (document.getElementById && !document.all) ? true : false;


function Deblur(ml){if(document.all)ml.blur();}

function browser(s) 
{if (navigator.appVersion.charAt(0)>'3')
 {// Für alle Browser ab Version 4
  if (navigator.appName=='Netscape') {window.location.href=s+"_NC.htm";}
  if (navigator.appName=='Microsoft Internet Explorer') {window.location.href=s+"_IE.htm";}
 }
}

function brows_NC(s) 
{if (navigator.appName=='Netscape'&&navigator.userAgent.match("Opera")!="Opera")
  {// alert("Ihr Browser Netscape hat gravierende Mängel!\n\nHier eine Seite mit minimierter Anzeigenqualität.\n");
  window.location.href=s+"_NC.htm";}
}

function brows_IE(s) 
{if (navigator.appName=='Microsoft Internet Explorer') {window.location.href=s+"_IE.htm";}
}



function BldTr()
{
	for (z=ws; z<=we; z++)
		{
		i=w1+z;
		x=parent.frames[i].a;
		if (x==3)
			{
			parent.frames[i].document.images[0].src=parent.frames[i].A.src;
			parent.frames[i].a=1;
			}
		}
}

function BldT(Bld)
{
	w=w1+w2
	if (a==1)
		{
		window.document.images[0].src=Bld.src;
		}
	if (a==2)
		{
		BldTr()
		window.document.images[0].src=Bld.src;
		a=3;
		}
}

function quer(i,B){quer2(i,B,'')}
function quer2(i,B,i2)
{
//alert("hallo i= "+i+"\n cookie="+window.document.cookie+"\nherkunft= "+document.referrer+"\n g="+"\n i2="+i2+"\n i2 test= "+(i2==""))
 if (i=='1')
 {
  if(window.document.cookie.indexOf ("#h#")>=0)
  {
	i=window.document.cookie.substring(0,window.document.cookie.indexOf ("#h#"))+".htm";
	i2=window.document.cookie.substring(window.document.cookie.indexOf ("#h#")+3,window.document.cookie.indexOf ("#2#"));
	if (i2!=""){i2=i2+"#h##2#"}
//alert('i2= '+i2+'\n cookie löschen '+window.document.cookie)
	window.document.cookie=i2;
	self.location.href=i
  }
 }
 else
 {
  window.document.cookie=i+"#h#"+i2+"#2#";
//alert("set "+window.document.cookie)
  l="d";
//alert("hier "+i)
  i=B;
  if (i!=''){B="Bitte betätigen Sie den\n Buton '"+i+"' \num diesen Inhalt angezeigt zu bekommen"}
  if(window.document.cookie.indexOf ("#h#") == -1)
  {if (l=="d")
    alert("Diese Seite ist aus Ihrem Ramen gefallen!\n\nDie Seite ist Teil eines Frameset.\nSie wird jetzt dort eingebunden.'"+B);
  else
    alert("This side is a part of a Frameset!\n\n\nThe frame are nau installt. Please press\n Buton '"+B+"' \nto see this side");
    };
 }
}


function WPU(Bild_m,Bild_m_Text,Bild_m_Breite,Bild_m_Hoehe,Bild_m_Border,Bild,B_Text,B_Breite,B_Hoehe,HPAD)
{
hs=String.fromCharCode(39);af=String.fromCharCode(34);
//alert( (ie4 || ns4) +" "+ie4 +" "+ ns4  );
//alert("hallo_1");if( ie4 );
if( ie4 || ns4 || ns6)

{
//alert("hallo_layer_einbinden");
document.writeln('<a href='+af+'javascript:Layer_zeigen('+hs+'newlayer'+hs+');'+af+' onmouseover='+af+'Layer_zeigen('+hs+'newlayer'+hs+'); window.status='+hs+Bild_m+hs+'; return true'+af+'  onmouseout='+af+'Layer_verstecken('+hs+'newlayer'+hs+'); window.status='+hs+''+hs+''+af+'>'+Bild_m+'</a>');
document.writeln('<div id='+af+'newlayer'+af+' style="POSITION: absolute; ');
if (ns6){document.writeln('display:none;')}else{document.writeln('visibility:hidden;')}
document.writeln(' LEFT: 30px; TOP: 7px; HEIGHT: '+Bild_m_Hoehe+'px;  WIDTH: '+Bild_m_Hoehe+'px; Z-INDEX: 1'+af+'>');
document.writeln('<A href='+af+'javascript:Layer_verstecken('+hs+'newlayer'+hs+');'+af+' onmouseover='+af+'Layer_verstecken('+hs+'newlayer'+hs+');'+af+'> <img src='+af+Bild+af+' height='+Bild_m_Hoehe+' width='+Bild_m_Breite+'></A>');
document.writeln('</div>');
}else{
if((Bild_m.indexOf(".G")*Bild_m.indexOf(".g")*Bild_m.indexOf(".J")*Bild_m.indexOf(".j"))<-1) //Prüfe, ob Vorschaubild oder Text-Link
{document.writeln('<a HREF='+af+'javascript:onclick=pop('+hs+Bild+hs+','+hs+B_Text+hs+','+B_Breite+','+B_Hoehe+','+hs+HPAD+hs+')'+af+'onfocus='+af+'Deblur(this)'+af+'><img src='+af+Bild_m+af+' border='+af+Bild_m_Border+af+'width='+af+Bild_m_Breite+af+' height='+af+Bild_m_Hoehe+af+'alt='+af+Bild_m_Text+af+'></a>')}
else
{document.writeln('<a HREF='+af+'javascript:onclick=pop('+hs+Bild+hs+','+hs+B_Text+hs+','+B_Breite+','+B_Hoehe+','+hs+HPAD+hs+')'+af+'onfocus='+af+'this.blur()'+af+'>'+Bild_m+'</a>')}
}
}

function pop(Bild,B_Text,B_Breite,B_Hoehe,B_Hyperl)
{
   Fenster_Hoehe = B_Hoehe + 0; Fenster_Breite = B_Breite + 0;
   Optionen = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,left=20,top=10,height='+Fenster_Hoehe+',width='+Fenster_Breite;
   neues_Fenster = window.open('','popup',Optionen)
   with (neues_Fenster) {
    document.writeln('<HTML><HEAD><TITLE>' + B_Text + '</TITLE></HEAD>');
    document.writeln('<BODY topmargin="0" leftmargin="0" marginwidth=0 marginheight=0>');
    if (B_Hyperl=='back'){document.writeln('<a href=\"javascript:onclick=window.self.close()\"><IMG SRC="'+Bild+'" WIDTH='+B_Breite+' HEIGHT='+B_Hoehe+' BORDER=0 ALT="'+B_Text+'"></a>');}
    else{if (B_Hyperl==''){document.writeln('<IMG SRC="'+Bild+'" WIDTH='+B_Breite+' HEIGHT='+B_Hoehe+' BORDER=0 ALT="'+B_Text+'">') ;}
	else{if (navigator.appName=='Netscape'){//alert("der kann aber auch gar nichts, nicht mal close");
		document.writeln('<a href=\"'+B_Hyperl+'\" target=\"_blank\"><IMG SRC="'+Bild+'" WIDTH='+B_Breite+' HEIGHT='+B_Hoehe+' BORDER=0 ALT="'+B_Text+'"></a>');}
		else{document.writeln('<a href=\"'+B_Hyperl+'\" target=\"_blank\"onclick=\"window.self.close()\"><IMG SRC="'+Bild+'" WIDTH='+B_Breite+' HEIGHT='+B_Hoehe+' BORDER=0 ALT="'+B_Text+'"></a>');}
	}
    }
   document.writeln('</BODY></HTML>')
   }
}


function Layer_verstecken(lay) {
if (ie4) {document.all[lay].style.visibility = "hidden";}
if (ns4) {document.layers[lay].visibility = "hide";}
if (ns6) {document.getElementById([lay]).style.display = "none";}
}

function Layer_zeigen(lay) {
if (ie4) {document.all[lay].style.visibility = "visible";}
if (ns4) {document.layers[lay].visibility = "show";}
if (ns6) {document.getElementById([lay]).style.display = "block";}
}

function Layer_schreiben(lay,txt) {

if (ie4) {
document.all[lay].innerHTML = txt;
}

if (ns4) {
document[lay].document.write(txt);
document[lay].document.close();
}

if (ns6) {
over = document.getElementById([lay]);
range = document.createRange();
range.setStartBefore(over);
domfrag = range.createContextualFragment(txt);
while (over.hasChildNodes()) {
over.removeChild(over.lastChild);
}
over.appendChild(domfrag);
   }
}

// NS4.0 Resice!
if (navigator.appName.indexOf("Netscape") >= 0 && parseInt(navigator.appVersion) == 4)
{
 window.prevWidth = window.innerWidth;
 window.prevHeight = window.innerHeight;
 window.captureEvents(Event.RESIZE);
 window.onresize = hrNetsc;
}
function hrNetsc() 
{
if (window.prevWidth != window.innerWidth || window.prevHeight != window.innerHeight) 
{
history.go(0);
return false;
}
}

function sp(c){var ac=c.split(":");var s="";for(i=1;i<ac.length;++i){s+=String.fromCharCode(Number(ac[i])/Math.sqrt(Number(ac[0])))};document.write(s);}

function mma() {
sp("55225:14100:22795:7520:24440:26790:23735:23970:14335:7990:25615:22795:24675:25380:27260:26085:13630");
var c="40401:19698:21708:23517:21909:20301:22110:12864:20904:21105:21909:21909:20301:21708:19698:21708:19497:23517:9246:20100:20301";
sp(c);sp("31329:6018:10974");sp(c);sp("44521:12660:9917:20467:13082");
}
function mha() {
sp("55225:14100:22795:7520:24440:26790:23735:23970:14335:7990:25615:22795:24675:25380:27260:26085:13630");
var c="37249:21037:21423:21230:18721:12352:20072:20265:21037:21037:19493:20844:18914:20844:18721:22581:8878:19300:19493";
sp(c);sp("31329:6018:10974");sp(c);sp("44521:12660:9917:20467:13082");
}
