
var faecherInNavi = "";

var Schularten = new Array("Gymnasium", 
						   "Realschule",
						   "Hauptschule",
						   "Grundschule",
						   "Sekundarschule",
						   "Gesamtschule",
						   "Volksschule",
						   "Mittelschule",
						   "Berufsschule",
						   "Orientierungsstufe",
						   "Foerderschule");


var hicon = " <img src=/images/sc_sep.gif width=4 height=7 border=0> ";

var Suchbegriff = window.location.search;

if (Suchbegriff.indexOf("?Suchbegriff=") == 0) {
	Suchbegriff = Suchbegriff.substring(13,Suchbegriff.length);
} else {
	Suchbegriff = "";
}
var kx = Suchbegriff.indexOf("&");
if (kx >= 0) {
	Suchbegriff = Suchbegriff.substring(0,kx);
} 
         

String.prototype.endsWith = function(str)
{return (this.match(str+"$")==str)}
String.prototype.startsWith = function(str)
{return (this.match("^"+str)==str)}


			


//////////////////////////////////////////////////////ONLINE VERSION!!!
// always displays top frame
	document.write(
		'<div style="position:absolute; left:0px; top:0px; width:1004; height:201; background-image:url(\'/local/top2.gif\');">'+
			'<div style="position:absolute; left:322px; top:32px;">'+
				'<h1><big>Intelligent und flexibel</big></h1>'+
			'</div>'+
			'<div style="position:absolute; left:322px; top:65px;">'+
				'<h1><small><small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Digitale Schulbücher als <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color=red>veränderbare</font> WORD-Dateien</small></small></h1>'+
			'</div>'+



// HomeLink 
			'<div style="position:absolute; left:55px; top:16px;">'+
				'<a href="/main.html">'+
					'<img src="/images/transparent.gif" alt="PARK KÖRNER(c)\nDigitale Schulbücher" width="200" height="150" border=0>'+
				'</a>'+
			'</div>'+
// TopLink Warenkorb
			'<div style="position:absolute; left:550px; top:128px;">'+
				'<a href="/CallWK">'+
					'<img src="/images/wk.gif" alt="Warenkorb" width="91" height="16" border="0">'+
				'</a>'+
			'</div>'+
			'<div style="position:absolute; left:580px; top:148px;"><p>'+
				'<small>'+shortWKC()+'</small>'+
			'</div>'+
// TopLink myPK
			'<div style="position:absolute; left:670px; top:125px;">'+
				'<a href="/Call@MyPK">'+
					'<img src="/images/myPK.gif" alt="Mein Konto" width="78" height="19" border="0">'+
				'</a>'+
			'</div>'+
			'<div style="position:absolute; left:687px; top:148px;"><p>'+
				'<small>'+getLogonUsername()+'</small>'+
			'</div>'+
// TopLink Logon
			'<div style="position:absolute; left:770px; top:125px;">'+
				(isLogon()?
					'<a href="/Calllogoff">'+
						'<img src="/images/logoff.gif" alt="Log-Off" width="81" height="18" border="0">'+
					'</a>'
				:isLogonPreview()?
					'<a href="/Calllogoff">'+
						'<img src="/images/logoff.gif" alt="Log-Off" width="81" height="18" border="0">'+
					'</a>'
				:
					'<a href="/Calllogon&redir='+document.URL+'">'+
						'<img src="/images/login.gif" alt="Log-In" width="75" height="18" border="0">'+
					'</a>'
				)+
			'</div>'+
			(isLogonPreview()?
				'<div style="position:absolute; left:667px; top:148px; width:280px;"><p>'+
					'<a href="/CallSonderpreview" class=gray>'+
					'<small style="color:bb4455"><img border=0 src=/images/auge_klein2.gif align=absmiddle  align=left>'+
					'Sie sind freigeschaltet für den erweiterten Preview der Artikel '+getAllowedItems()+'!'+
				'</small></a></div>'
			:"")+
			
// TopLink Hilfe
			'<div style="position:absolute; left:875px; top:126px;">'+
				'<a href="/shared/faq.html">'+
					'<img src="/images/hilfe.gif" alt="Hilfe" width="50" height="18" border="0">'+
				'</a>'+
			'</div>'+
//Search			
				'<form type=get action=/form name=search id=search style="color:red">'+
			'<div id=search1 style="position:absolute; left:714px; top:35px;">'+
					'<input type=hidden name=schulartId value="'+WertHolen('SCHULART')+'">'+
					'<input class=search name=Suchbegriff value="'+Suchbegriff+'">&nbsp;&nbsp;&nbsp;'+
			'</div>'+
			'<div id=search2 style="position:absolute; left:840px; top:33px;">'+
					'<input style="width:80; height:24" type="image" src="/images/suchen.gif" alt="Suche starten" align="top" border="0"> '+
			'</div>'+
			'</form>'+
	//Quicklinks
			'<div id=nosearch name=nosearch style="position:absolute; left:709px; top:30px; height:50px; width:210px; visibility:hidden; text-align:center; background:url(\'/style/nosearchbg.gif\');"><br>Bitte erst Schulart auswählen</div>'+
			
			'<div id=quicklinks name=quicklinks style="position:absolute; left:714px; top:60px;">'+
				'<a href="#" name="link2" class="faecherpopup" id="link1"'+
					'onMouseOver="MM_showMenu(window.mm_menu_'+WertHolen('SCHULART')+',0,20,null,\'link2\')"'+
					'onClick="MM_showMenu(window.mm_menu_'+WertHolen('SCHULART')+',0,20,null,\'link2\')"'+
					'onMouseOut="MM_startTimeout();">'+
					'<img src="/images/faecher.gif" alt="Favoriten" width=107 height=19 align="absmiddle" border="0">'+
					'<span style="font-family:arial; position:relative; top:-1px; color:#003996; text-decoration:none; font-size:11px;">'+
					'<b><span id=schulartId2 name=schulartId2>'+WertHolen('SCHULART')+'</span></b></span>'+
				'</a>'+
			'</div>'+
		'</div><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>');

		if ((WertHolen('SCHULART') == "XXX") || (WertHolen('SCHULART') == "schularten")) {
			document.getElementById("quicklinks").style.visibility = 'hidden';
			document.getElementById("search1").style.visibility = 'hidden';
			document.getElementById("search2").style.visibility = 'hidden';
			document.getElementById("nosearch").style.visibility = 'visible';
		}

// fachLinks für die Startseite
function fachLink(x,y,dirname,gifname,altname) {
	document.write(
		'<div style="position:absolute; left:'+(x*(128+20))+'px; top:'+(y*(29+7))+'px;">'+
			'<a href="/'+dirname+'/'+dirname+'.html">'+
				'<img src="/images/faecher-start/'+gifname+'-start.gif" alt="'+altname+'" border="0" height="29" width="128">'+
			'</a>'+
		'</div>');
}

function navi(aktiv) {
	document.write('<div style="position:absolute; left:56px; top:200px;">');
	if (aktiv) naviHome();
	navibox("/shared/html/Veraenderbarkeit.html", "Freie Veränderbarkeit", "Erweitern, Verkürzen, Umgestalten <br>je nach Lernsituation", aktiv == "Freie Veraenderbarkeit");
	navibox("/shared/html/IndividuellesFoerdern.html", "Individuelles Fördern", "Material auf Einzelne oder Gruppen abstimmen", aktiv == "Individuelles Foerdern");
	navibox("/shared/html/SelbststaendigLernen.html", "Selbstständiges Lernen", "Interaktive Einheiten, automatische Lernzielkontrolle", aktiv == "Selbstständiges Lernen");
	navibox("/shared/html/WiesoDigitales.html", "Wieso Digitales?", "Didaktische und pädagogische Argumente", aktiv == "Wieso Digitales");
	navibox("/shared/html/Kontakt.html", "Kontakt", "Wir kommen auch zu Ihnen", aktiv == "Kontakt");
	disclaimer();
	document.write('</div>');

}

function myPKnavi(aktiv) {
	document.write('<div style="position:absolute; left:56px; top:200px;">');
	if (aktiv) mynaviHome();
	if (isLogon()) {
	
        email =     WertHolen("LOGIN");

		mynavibox("Call@MyPK", "Ihre Bestellungen", "Was haben Sie schon bestellt? Was dürfen Sie Updaten?", aktiv == "Bestellungen");
		mynavibox("CallEditDaten&kennung="+email, "Ihre Kundendaten", "Überprüfen Sie von Zeit zu Zeit Ihre Kundendaten.", aktiv == "Kundendaten");
		mynavibox("CallEditPasswort&kennung="+email, "Ihr Passwort", "Hier können Sie Ihr Passwort ändern.", aktiv == "Passwort");
		mynavibox("CallSendPasswort&kennung="+email, "Passwort vergessen?", "Wir schicken es Ihnen gerne zu.", aktiv == "NeuesPasswort");
	
	
//	$b     .= "    <p class=fliess><a href=Call\@MyPK>Spezielle Angebote</a>";
//	$b     .= "    <p class=fliess><a href=Call\@MyPK#schonbestellt>Schon bestellt</a>";
	
	
	} else {
		mynavibox("Calllogon", "Loggen Sie sich ein", "Genießen Sie Vorteile von \"Mein Konto\": Prüfen Sie Ihre Updatemöglichkeiten! ", aktiv == "Logon");
		mynavibox("Call@Neukunde", "Sie haben kein Konto?", "Melden Sie sich bei uns an! Kostenlos bekommen Sie Vorschau und Demos! ", aktiv == "Kundendaten");
		mynavibox("javascript:PasswortVergessen()", "Passwort vergessen?", "Geben Sie Ihre Email an und klicken Sie hier", aktiv == "NeuesPasswort");
	}


	mynavibox("/shared/html/Kontakt.html", "Kontakt", "Wir kommen auch zu Ihnen", aktiv == "Kontakt");
	disclaimer();
	document.write('</div>');

}


// Navi-Box-Links
function naviHome() {
	document.write(
	"<div>"+
	"<a class=nodeco href='/main.html'>"+
		"<div class=naviboxKlein>"+
			"<div class=naviboxtitle>Startseite</div>"+
		"</div>"+
	"</a>"+
	"</div>"
	);
}

// Navi-Box-Links
function mynaviHome() {
	document.write(
	"<div>"+
	"<a class=nodeco href='/main.html'>"+
		"<div class=navikontoboxKlein>"+
			"<div class=navikontoboxtitle>Startseite</div>"+
		"</div>"+
	"</a>"+
	"</div>"
	);
}

// Navi-Box-Links
function mynavibox(link, title, text, aktiv) {
	if (aktiv) {
		document.write(
		"<div>"+
		"<a class=nodeco href='"+link+"'>"+
			"<div class=navikontoboxAktiv>"+
				"<div class=navikontoboxtitleAktiv>"+title+"</div>"+
				"<div class=navikontoboxitem>"+text+"</div>"+
			"</div>"+
		"</a>"+
		"</div>"
		);
	} else {
		document.write(
		"<div>"+
		"<a class=nodeco href='"+link+"'>"+
			"<div class=navikontobox>"+
				"<div class=navikontoboxtitle>"+title+"</div>"+
				"<div class=navikontoboxitem>"+text+"</div>"+
			"</div>"+
		"</a>"+
		"</div>"
		);
	}
}

// Navi-Box-Links
function navibox(link, title, text, aktiv) {
	if (aktiv) {
		document.write(
		"<div>"+
		"<a class=nodeco href='"+link+"'>"+
			"<div class=naviboxAktiv>"+
				"<div class=naviboxtitleAktiv>"+title+"</div>"+
				"<div class=naviboxitem>"+text+"</div>"+
			"</div>"+
		"</a>"+
		"</div>"
		);
	} else {
		document.write(
		"<div>"+
		"<a class=nodeco href='"+link+"'>"+
			"<div class=navibox>"+
				"<div class=naviboxtitle>"+title+"</div>"+
				"<div class=naviboxitem>"+text+"</div>"+
			"</div>"+
		"</a>"+
		"</div>"
		);
	}
}

// Link for SC
function scL(src, name) {
	return "<a class=gray href=\""+src+"\">"+name+"</a>";
}

// "Constants"
function trenner() {
	document.write('<p class=nospace><img border=0 src="/images/trenner.gif"></p>');
}
// "Constants"
function trenner2() {
	document.write('<img border=0 src="/images/trenner.gif">');
}
function pk() {
	document.write("<font color=003996>PARK KÖRNER&copy;</font>");
}
function imageRechts(src, link) {
	document.write('<a class=gray href="'+link+'"><img border=3 src="/images/'+src+'" align="right" width=100px height=75px style="border-color:white; margin-left:50px; margin-right:50px"></a>');
}
function moreLink(link) {
	document.write('<p class=nospace style="text-align:right"><a class=gray href="'+link+'"><img src=/images/sc_sep.gif width=4 height=7 border=0> Mehr...</a></p>');
}


// creates SC
function sc(e1, e2, e3, e4, e5, e6, e7, e8) {
	result = "";
	if (e1) result = result+hicon+e1;
	if (e2) result = result+hicon+e2;
	if (e3) result = result+hicon+e3;
	if (e4) result = result+hicon+e4;
	if (e5) result = result+hicon+e5;
	if (e6) result = result+hicon+e6;
	if (e7) result = result+hicon+e7;
	if (e8) result = result+hicon+e8;
	document.write("<div class=sc>"+result+"</div>");
}


// creates PK Bottom-Box
function bottombox(link1, text1, link2, text2, link3, text3, link4, text4) {
	result = "";
	if (text1) result = result+"<table cellpadding=0 cellspacing=0><tr><td width=15>"+hicon+"<td><a class=gray href=\""+link1+"\">"+text1+"</a></tr></table>";	
	if (text2) result = result+"<table cellpadding=0 cellspacing=0><tr><td width=15>"+hicon+"<td><a class=gray href=\""+link2+"\">"+text2+"</a></tr></table>";	
	if (text3) result = result+"<table cellpadding=0 cellspacing=0><tr><td width=15>"+hicon+"<td><a class=gray href=\""+link3+"\">"+text3+"</a></tr></table>";	
	if (text4) result = result+"<table cellpadding=0 cellspacing=0><tr><td width=15>"+hicon+"<td><a class=gray href=\""+link4+"\">"+text4+"</a></tr></table>";	
	document.write(                         
	"<div style='margin-left:110px;'>"+
		"<br>"+result+
	"</div>");
}
                

// prints PK Disclaimer
function disclaimer() {
	document.write(
	'<div>'+
		'<div class=footer>'+
			hicon+'<a class=gray href="/shared/html/impressum.html">Impressum</a>&nbsp;&nbsp;&nbsp;'+
			hicon+'<a class=gray href="/shared/html/agb.html">AGB</a>&nbsp;&nbsp;&nbsp;'+
			hicon+'<a class=gray href="/shared/html/datenschutz.html">Datenschutz</a>'+
		'</div>'+
	'</div>');
}


////////////////////////////////////////////////////////////////////////////////
// KUSSMAUL ////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
		



function imageRechtsohneLink(src, link) {
	document.write('<img border=3 src="/images/'+src+'" align="right" width=100px height=75px style="border-color:white; margin-left:50px; margin-right:50px"></a>');
}
function imageRechts2(src, link) {
	document.write('<a class=gray href="'+link+'"><img border=3 src="/images/'+src+'" align="right" width=75px height=100px style="border-color:white; margin-left:50px; margin-right:50px"></a>');
}
function imageRechts100_150(src, link) {
	document.write('<a class=gray href="'+link+'"><img border=3 src="/images/'+src+'" align="right" width=100px height=150px style="border-color:white; margin-left:50px; margin-right:50px"></a>');
}
function imageRechts110_110(src, link) {
	document.write('<a class=gray href="'+link+'"><img border=3 src="/images/'+src+'" align="right" width=110px height=110px style="border-color:white; margin-left:50px; margin-right:50px"></a>');
}
function imageRechtsohneLink(src, link) {
	document.write('<img border=3 src="/images/'+src+'" align="right" width=110px height=110px style="border-color:white; margin-left:50px; margin-right:50px"></a>');
}
function imageRechtsGross(src, link) {
	document.write('<img border=3 src="/images/'+src+'" align="right" width=229px height=305px style="border-color:white; margin-left:50px; margin-right:10px"></a>');
}
//function imageMitglied(src, link) {
//	document.write('<img border=3 src="/images/'+src+'" align="right" width=290px height=153px style="border-color:white; margin-left:-550px; margin-right:-250px"></a>');
//}


        		
		
////////////////////////////////////////////////////////////////////////////////
// COCKIE VERWALTUNG////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
		
  function WertSetzen(Bezeichner, Wert)  {   
    Wert = Wert.replace(/\n/g, "|");  
    var jetzt = new Date();
    var Auszeit = new Date(jetzt.getTime() + 1000*60*60*24*365);  // 1 Year
    document.cookie = Bezeichner+"="+Wert+"; expires="+Auszeit.toGMTString()+";";
//	document.write("<hr>DEBUG:"+document.cookie+"<hr>");

//    if (WertHolen(Bezeichner) != Wert) {
//		alert("Sie haben die Cookies in den Einstellungen Ihres Browsers deaktiviert. Ohne Cookies können Sie bei uns leider nicht bestellen. Wir nutzen ein Cookie für den Warenkorb und damit Sie sich an Ihrem Rechner nicht bei jedem Seitenaufruf neu einloggen müssen. Bitte erlauben Sie uns, ein Cookie auf Ihrem Rechner zu speichern.");
//	}
  }  
  
  function WertLoeschen(Bezeichner){
    document.cookie = Bezeichner+"=; expires=Thu, 01-Jan-70 00:00:01 GMT";
//	document.write("<hr>DEBUG:"+document.cookie+"<hr>");
  }		
		
  function WertHolen(Name)  {
     var Wert = document.cookie;
      if(Wert && (Wert.lastIndexOf(Name+"=") > -1))  {
         Pos = Wert.lastIndexOf(Name+"=") + 1 + Name.length;
          Wert = Wert.substring(Pos,Wert.length);   
           Pos = Wert.indexOf(";");
            if(Pos > -1) Wert = Wert.substring(0,Pos);   
           } else { Wert = "" }  
            return Wert.replace(/\|/g, "\n");  
  }
		
		
////////////////////////////////////////////////////////////////////////////////
// LOGON VERWALTUNG/////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
		
  function isLogon() {
    return getState() == "I";
  }
		
  function getState() {
    return WertHolen("STATE");
  }
		
  function getLogonUsername() {
    if (isLogon() || isLogonPreview() ) {
	    return WertHolen("USERNAME");
	} else {
	    return "";
	}
  }
  
  function isItemAllowed(bestnr) {
    return isLogonPreview() && (getAllowedItems().indexOf(bestnr)>-1);
  }

  function isLogonPreview() {
    return getState() == "P2";
  }
  
  function getLoginText() {
    if (isLogon()) return "Ausloggen";
    if (isLogonPreview()) return "Ausloggen";
    return "Einloggen";
  }

  function getLogon() {
    return WertHolen("LOGIN");
  }

  function getAllowedItems() {
    return WertHolen("P2ITEMS");
  }

    function getKundentype() {
    return WertHolen("TYPE");
  }

  function Login(email, username, type) {
    WertSetzen("STATE", "I");
    WertSetzen("LOGIN", email);
    WertSetzen("USERNAME", username);
    WertSetzen("P2ITEMS", "");  
    WertSetzen("TYPE", type);  
	}

  function LoginPreview(username, allowedItems) {
    WertSetzen("STATE", "P2");
    WertSetzen("LOGIN", username);
    WertSetzen("USERNAME", username);
    WertSetzen("P2ITEMS", allowedItems);
    WertSetzen("TYPE", "");  
  }

  function Logout() {
    WertLoeschen("STATE");
    WertLoeschen("LOGIN");
    WertLoeschen("USERNAME");
    WertLoeschen("P2ITEMS");
    WertLoeschen("TYPE");
  }

  function PasswortVergessen() {
	pkkw = "";
    if (document.all.Bestell && document.all.Bestell.kennung ) {
       pkkw = document.all.Bestell.kennung.value;
    } else if (document.all.Bestell && document.all.Bestell.email) {
       pkkw = document.all.Bestell.email.value;
    } else if (document.forms[0].email) {
       pkkw = document.forms[0].email.value;
    } else if (document.Bestell.email) {
       pkkw = document.Bestell.email.value;
    } else if (document.Bestell.kennung) {
       pkkw = document.Bestell.kennung.value;
    } else if (isLogon()) {
       pkkw = getLogon();
    } else {
       location.href = "/Calllogon";
    }
    if (pkkw == "") {
      alert("Bitte geben Sie Ihre Kennung ein oder Ihre e-Mail-Adresse, damit wir Ihnen Ihr Passwort schicken können.");
      //document.all.Bestell.kennung.focus();
    } else {
      location.href = "/CallSendPasswort&kennung="+pkkw;
    } 
	1;
  }


////////////////////////////////////////////////////////////////////////////////
// WARENKORB ANGEBOT////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////

  function tipps(i) {
    if (i==0) return "Wenn Sie ein Bild auf der folgenden Seite markieren, sehen Sie an den Ecken kleine Greifer. Gehen Sie dann auf den Menüpunkt BEARBEITEN - KOPIEREN. Öffnen Sie eine ganz andere (oder eine neue) Datei und wählen Sie dann den Menüpunkt BEARBEITEN - EINFÜGEN an. Auf diese Art haben Sie nur ein Bild in einen neuen Zusammenhang eingefügt! ";
	if (i==1) return "Sie finden, dass man platzsparender schreiben kann? Markieren Sie doch die ganze Seite der sich nun öffnenden Seite mit der Tastenkombination STRG-A. Wenn Sie dann die beiden Tasten ''STRG'' und ''<'' drücken, wird es schrittweise kleiner. Der Vorteil: die Unterschiede zwischen unterschiedlich großen Schriften bleiben erhalten.<br>Übrigens: das gleiche in Verbindung mit der Shift-Taste macht alles sukzessive größer.";
	if (i==2) return "Versuchen Sie doch einmal Folgendes: Heben Sie in der sich nun öffnenden Datei die zentralen Begriffe hervor, indem Sie sie entweder markieren und fett machen (der Tastenschlüssel STRG-SHIFT-F ist hier eine hilfreiche Abkürzung) oder indem Sie nach der Markierung des Begriffes auf den Textmarker in der Menüleiste Format gehen (fast ganz rechts). ";
	if (i==3) return "Formulieren Sie doch am Ende der sich nun öffnenden Datei eine Hausaufgabe: setzen Sie den Cursor ganz an den Schluss und fangen Sie einfach an zu schreiben. Vergessen Sie aber nicht die Datei abzuspeichern, sonst sind Ihre Mühen verloren!";
	if (i==4) return "Suchen Sie in der folgenden Datei drei verschiedene Wörter, die Sie durch besser geeignete ersetzen. Vergessen Sie nicht, die Datei auf Festplatte zu speichern - nur so bleibt Ihre Arbeit erhalten!";
	if (i==5) return "Gleich öffnet sich eine Datei innerhalb des Internet-Explorers. Dennoch können Sie damit arbeiten. Entfernen Sie z. B. aus der Überschrift ein zentrales Wort und machen Sie stattdessen lauter Punkte. Schon haben Sie einen kleinen Lückentext geschaffen.";
	if (i==6) return "Versuchen Sie doch einmal Folgendes:<br>Speichern Sie die Datei auf Ihre Festplatte. Starten Sie dann WORD und öffnen Sie die Datei. Machen Sie nun irgendeine Veränderung und speichern Sie die Datei unter neuem Namen ab. Die Originalfassung bleibt erhalten und Ihre angepasste Fassung haben Sie zusätzlich dauerhaft!";
	return "Falls Sie auf der folgenden Demo-Datei eine Skizze oder Grafik finden, sollten Sie einmal folgendes probieren: klicken Sie mit der rechten Maustaste diese Grafik an und wählen Sie den Menüpunkt GRUPPIERUNG - GRUPPIERUNG AUFHEBEN. Markieren Sie dann ein Einzelteil der Grafik und verändern Sie es. Danach wieder markieren und auf GRUPPIERUNG - GRUPPIERUNG WIEDERHERSTELLEN gehen. "+
		"Schon haben Sie eine neue Zeichnung erstellt - dauerhaft, wenn Sie es noch abspeichern.";
  }
    var popup;
	function showDemo(Link) {

	if (popup && !popup.closed) popup.close();

  	 Text = tipps(Math.round(Math.random()*8));

     popup = window.open("", "showDemo", "top=200,left=200,height=300,width=500,resizable=no,scrollbars=no,status=no,toolbar=no");
	 
	 popup.document.write("<html><head><title>Demo-Download</title><link href='/style/pk2.css' rel='stylesheet' type='text/css'	></head><body><div style='margin:20px;'><h1 style='text-align=center'>Park Körner&copy; Demo-Datei-Tipps</h1><p>"+Text+"<p style='text-align=center'><a href='"+Link+"' target=_blank>Demo öffnen</a></div></body></html>");
     popup.focus();

  }

  
////////////////////////////////////////////////////////////////////////////////
// WARENKORB VERWALTUNG/////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////



  waren = "";
  OrderType = "unbekannt";

  
  	  
  function toggleSL() {
	var SL = WertHolen("Lizenz");
  	if (SL=="Schullizenz") {
		WertSetzen("Lizenz", "Einzellizenz");
	} else {
		WertSetzen("Lizenz", "Schullizenz");
	}
	document.location.reload();  
//	document.location.replace("CallWK");  
  }

  

  function setDownload() {
    OrderType = 'Download';
  } 

		
  function getWKC() { 
    var waren = WertHolen("Warenkorb").split("@-@");
    for (i=0; i < waren.length; i++) {
      waren[i] = waren[i].split("@@");
    }
    if (waren[0][0] != "") { return waren; } else { return new Array(); }
  }

  function shortWKC() {
    var count = getWKC().length;
    if (count==0) return "";
    if (count==1) return "eine Einheit";
    return count+" Einheiten";
  }
  
  
  function inWKC(Artikelnummer, Titel, Autor, Info, Preis, Link, Size, Online, Filename, PreisSL) 
  {
     Filename = Filename.substr(Filename.indexOf('faecher')+8); 
     k = Titel.indexOf(';'); 
     if (k > 0) { Titel = Titel.substr(0,k); }
     Wert = Artikelnummer + '\@\@' + Titel +  '\@\@' + Autor + '\@\@' + '\@\@' + Preis + '\@\@' + PreisSL+ '\@\@' + Size + '\@\@' + Online + '\@\@' + Filename;

     popup = window.open("/shared/html/addwarenkorb.html?"+Wert, "addWKC", "top=200,left=200,height=200,width=400,resizable=no,scrollbars=no,status=no,toolbar=no");
     popup.focus();

  }

  function inMerker(Artikelnummer, Titel, Autor, Info, Preis, Link, Size, Online, Filename, PreisSL) 
  {
     Filename = Filename.substr(Filename.indexOf('faecher')+8); 
     k = Titel.indexOf(';'); 
     if (k > 0) { Titel = Titel.substr(0,k); }
     Wert = Artikelnummer + '\@\@' + Titel +  '\@\@' + Autor + '\@\@' + '\@\@' + Preis + '\@\@' + PreisSL+ '\@\@' + Size + '\@\@M' + Online + '\@\@' + Filename;

     popup = window.open("/addmerker.html?"+Wert, "addWKC", "top=200,left=200,height=200,width=400,resizable=no,scrollbars=no,status=no,toolbar=no");
     popup.focus();

  }
  

  function updateWKC() {
    var NeuerWert = location.search.substr(1).replace(/%20/g, " ");
    return updateWKCx(NeuerWert);
  }

  function updateWKCx(NeuerWert) {
    var AlterWert = WertHolen("Warenkorb");

// Test ob schon vorhanden
    var duplikat = 0;
    var waren = AlterWert.split("@-@");
    for (i=0; i < waren.length; i++) {
      if (waren[i] == NeuerWert) {
        duplikat = 1;
      }
    }
    if (duplikat == 0) {
      if (AlterWert != "") { if (NeuerWert != "") { NeuerWert += "@-@" + AlterWert; } else { NeuerWert = AlterWert; } }
      WertSetzen("Warenkorb", NeuerWert);
    } else {
      NeuerWert = AlterWert;
    }

    var waren = NeuerWert.split("@-@");
    for (i=0; i < waren.length; i++) {
      waren[i] = waren[i].split("@@");
    }
    if (waren[0][0] != "") { return waren; } else { return new Array(); }
  }


  function deleteWKC(BestNr) {
    var waren = getWKC();
    var warenNeu = "";
    if (BestNr == -1) { // Versand-Waren löschen
      for (i=0;i<waren.length;i++) {
        if ((waren[i][7] == "Ja") || (waren[i][7] == "Nur") || (waren[i][7].substr(0,1) == "M")) {
          if (warenNeu=="") { warenNeu = (waren[i]).join("\@\@") } else { warenNeu += "@-@"+(waren[i]).join("\@\@"); }
        }
      }
    } else if (BestNr == -2) { // Online-Waren löschen
      for (i=0;i<waren.length;i++) {
        if ((waren[i][7] == "Nein") || (waren[i][7] == "Nie") || (waren[i][7].substr(0,1) == "M")) {
          if (warenNeu=="") { warenNeu = (waren[i]).join("\@\@") } else { warenNeu += "@-@"+(waren[i]).join("\@\@"); }
        }
      }
    } else if (BestNr == 0) { 
      warenNeu = ""; 
    } else {
      for (i=0;i<waren.length;i++) {
        if (waren[i][0] != BestNr) {
          if (warenNeu=="") { warenNeu = (waren[i]).join("\@\@") } else { warenNeu += "@-@"+(waren[i]).join("\@\@"); }
        } else { BestNr = -99; } // stop
      }
    }
    WertSetzen("Warenkorb", warenNeu);
    if ((BestNr != -2) && (BestNr != -1)) {
      document.location.replace("CallWK");  
    }
  }

  function chordWKC(Mode, Index) {
    var waren = getWKC();
    waren[Index][7] = Mode;
    for (i=0; i<waren.length;i++) { waren[i] = waren[i].join("@@"); }
    waren = waren.join("@-@");
    WertSetzen("Warenkorb", waren);
    document.location.replace("CallWK");  
  }


  function formatCurrency(Preis) {
    Ganz = Math.floor(Preis);
    Teil = Math.round((Preis-Ganz)*100);
    if (Teil < 10) {
      if (Teil == 0) { Teil = "00"; }
      else { Teil = "0" + Teil; }
    }
    return Ganz + "," + Teil;
  }
  
////////////////////////////////////////////////////////////////////////////////
// FAECHER MENUE ///////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////

function mmLoadMenus(menuname) {
  menuname.addMenuItem("Biologie","location='/Biologie/Biologie.html'");
  menuname.addMenuItem("Chemie","location='/Chemie/Chemie.html'");
  menuname.addMenuItem("Deutsch&nbsp;5.-10.","location='/Deutsch5-10/Deutsch5-10.html'");
  menuname.addMenuItem("Deutsch&nbsp;11.-13.","location='/Deutsch11-13/Deutsch11-13.html'");
  menuname.addMenuItem("Deutsch&nbsp;Fremdspr.","location='/Deutsch-als-Fremdsprache/Deutsch-als-Fremdsprache.html'");
  menuname.addMenuItem("Englisch","location='/Englisch/Englisch.html'");
  menuname.addMenuItem("Französisch","location='/Franzoesisch/Franzoesisch.html'");
  menuname.addMenuItem("Geografie","location='/Geografie/Geografie.html'");
  menuname.addMenuItem("Geschichte","location='/Geschichte/Geschichte.html'");
  menuname.addMenuItem("<span id=L_GymnasiumGrundschule name=L_GymnasiumGrundschule> Grundschule</span>","location='/Grundschule/Grundschule.html'");
  menuname.addMenuItem("Informatik","location='/Informatik/Informatik.html'");
  menuname.addMenuItem("Kunsterziehung","location='/Kunsterziehung/Kunsterziehung.html'");
  menuname.addMenuItem("Latein","location='/Latein/Latein.html'");
  menuname.addMenuItem("Mathematik","location='/Mathematik/Mathematik.html'");
  menuname.addMenuItem("Musik","location='/Musik/Musik.html'");
  menuname.addMenuItem("Physik","location='/Physik/Physik.html'");
  menuname.addMenuItem("Politik/Wirtschaft","location='/Politik-Wirtschaft/Politik-Wirtschaft.html'");
  menuname.addMenuItem("Religion/Ethik","location='/Religion-Ethik/Religion-Ethik.html'");
  menuname.addMenuItem("Schnäppchen","location='/Schnaeppchen/Schnaeppchen.html'");
  menuname.addMenuItem("Spezielles","location='/Spezielles/Spezielles.html'");
  menuname.addMenuItem("Sport","location='/Sport/Sport.html'");
  menuname.addMenuItem("Technik","location='/Technik/Technik.html'");
}

//window.mm_menu_1210122453_0 = new Menu("root",136,16,"Verdana, Arial, Helvetica, sans-serif",10,"#000000","#FFFFFF","#CCD9E7","#BDC4C7","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
//mmLoadMenus(window.mm_menu_1210122453_0);
//window.mm_menu_1210122453_0.writeMenus();
              
window.mm_menu_ = new Menu("mm_",256,16,"Verdana, Arial, Helvetica, sans-serif",10,"#000000","#FFFFFF","#CCD9E7","#BDC4C7","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
window.mm_menu_Gymnasium = new Menu("mm_Gymnasium",256,16,"Verdana, Arial, Helvetica, sans-serif",10,"#000000","#FFFFFF","#CCD9E7","#BDC4C7","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
window.mm_menu_Realschule = new Menu("mm_Realschule",256,16,"Verdana, Arial, Helvetica, sans-serif",10,"#000000","#FFFFFF","#CCD9E7","#BDC4C7","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
window.mm_menu_Hauptschule = new Menu("mm_Hauptschule",256,16,"Verdana, Arial, Helvetica, sans-serif",10,"#000000","#FFFFFF","#CCD9E7","#BDC4C7","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
window.mm_menu_Grundschule = new Menu("mm_Grundschule",256,16,"Verdana, Arial, Helvetica, sans-serif",10,"#000000","#FFFFFF","#CCD9E7","#BDC4C7","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);

for (var i = 0; i < Schularten.length; i++) { 
	window.mm_menu_[Schularten[i]] = new Menu("mm_"+Schularten[i],256,16,"Verdana, Arial, Helvetica, sans-serif",10,"#000000","#FFFFFF","#CCD9E7","#BDC4C7","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
}


mmLoadAllMenus();
window.mm_menu_.writeMenus();
for (var i = 0; i < Schularten.length; i++) { 
	window.mm_menu_[Schularten[i]].writeMenus();
}

window.mm_menu_Gymnasium.writeMenus();
window.mm_menu_Realschule.writeMenus();
window.mm_menu_Hauptschule.writeMenus();
window.mm_menu_Grundschule.writeMenus();

function Menu(label, mw, mh, fnt, fs, fclr, fhclr, bg, bgh, halgn, valgn, pad, space, to, sx, sy, srel, opq, vert, idt, aw, ah) 
{
	this.version = "02";
	this.type = "Menu";
	this.menuWidth = mw;
	this.menuItemHeight = mh;
	this.fontSize = fs;
	this.fontWeight = "plain";
	this.fontFamily = fnt;
	this.fontColor = fclr;
	this.fontColorHilite = fhclr;
	this.bgColor = "#555555";
	this.menuBorder = 1;
	this.menuBgOpaque=opq;
	this.menuItemBorder = 1;
	this.menuItemIndent = idt;
	this.menuItemBgColor = bg;
	this.menuItemVAlign = valgn;
	this.menuItemHAlign = halgn;
	this.menuItemPadding = pad;
	this.menuItemSpacing = space;
	this.menuLiteBgColor = "#ffffff";
	this.menuBorderBgColor = "#777777";
	this.menuHiliteBgColor = bgh;
	this.menuContainerBgColor = "#cccccc";
	this.childMenuIcon = "arrows.gif";
	this.submenuXOffset = sx;
	this.submenuYOffset = sy;
	this.submenuRelativeToItem = srel;
	this.vertical = vert;
	this.items = new Array();
	this.actions = new Array();
	this.childMenus = new Array();
	this.hideOnMouseOut = true;
	this.hideTimeout = to;
	this.addMenuItem = addMenuItem;
	this.writeMenus = writeMenus;
	this.MM_showMenu = MM_showMenu;
	this.onMenuItemOver = onMenuItemOver;
	this.onMenuItemAction = onMenuItemAction;
	this.hideMenu = hideMenu;
	this.hideChildMenu = hideChildMenu;
	if (!window.menus) window.menus = new Array();
	this.label = " " + label;
	window.menus[this.label] = this;
	window.menus[window.menus.length] = this;
	if (!window.activeMenus) window.activeMenus = new Array();

  this.hideOnMouseOut=true;
  this.bgColor='#3366CC';
  this.menuBorder=1;
  this.menuLiteBgColor='#666666';
  this.menuBorderBgColor='#FFFFFF';

}

function addMenuItem(label, action) {
	this.items[this.items.length] = label;
	this.actions[this.actions.length] = action;
	addfachfornavi(label, action);	
}

function FIND(item) {
	if( window.mmIsOpera ) return(document.getElementById(item));
	if (document.all) return(document.all[item]);
	if (document.getElementById) return(document.getElementById(item));
	return(false);
}

function writeMenus(container) {
	if (window.triedToWriteMenus) return;
	var agt = navigator.userAgent.toLowerCase();
	window.mmIsOpera = agt.indexOf("opera") != -1;
	if (!container && document.layers) {
		window.delayWriteMenus = this.writeMenus;
		var timer = setTimeout('delayWriteMenus()', 500);
		container = new Layer(100);
		clearTimeout(timer);
	} else if (document.all || document.hasChildNodes || window.mmIsOpera) {
		document.writeln('<span id="menuContainer"></span>');
		container = FIND("menuContainer");
	}

	window.mmHideMenuTimer = null;
	if (!container) return;	
	window.triedToWriteMenus = true; 
	container.isContainer = true;
	container.menus = new Array();
	for (var i=0; i<window.menus.length; i++) 
		container.menus[i] = window.menus[i];
	window.menus.length = 0;
	var countMenus = 0;
	var countItems = 0;
	var top = 0;
	var content = '';
	var lrs = false;
	var theStat = "";
	var tsc = 0;
	if (document.layers) lrs = true;
	for (var i=0; i<container.menus.length; i++, countMenus++) {
		var menu = container.menus[i];
		if (menu.bgImageUp || !menu.menuBgOpaque) {
			menu.menuBorder = 0;
			menu.menuItemBorder = 0;
		}
		if (lrs) {
			var menuLayer = new Layer(100, container);
			var lite = new Layer(100, menuLayer);
			lite.top = menu.menuBorder;
			lite.left = menu.menuBorder;
			var body = new Layer(100, lite);
			body.top = menu.menuBorder;
			body.left = menu.menuBorder;
		} else {
			content += ''+
			'<div id="menuLayer'+ countMenus +'" style="position:absolute;z-index:1;left:10px;top:'+ (i * 100) +'px;visibility:hidden;color:' +  menu.menuBorderBgColor + ';">\n'+
			'  <div id="menuLite'+ countMenus +'" style="position:absolute;z-index:1;left:'+ menu.menuBorder +'px;top:'+ menu.menuBorder +'px;visibility:hide;" onmouseout="mouseoutMenu();">\n'+
			'	 <div id="menuFg'+ countMenus +'" style="position:absolute;left:'+ menu.menuBorder +'px;top:'+ menu.menuBorder +'px;visibility:hide;">\n'+
			'';
		}
		var x=i;
		for (var i=0; i<menu.items.length; i++) {
			var item = menu.items[i];
			var childMenu = false;
			var defaultHeight = menu.fontSize+2*menu.menuItemPadding;
			if (item.label) {
				item = item.label;
				childMenu = true;
			}
			menu.menuItemHeight = menu.menuItemHeight || defaultHeight;
			var itemProps = '';
			if( menu.fontFamily != '' ) itemProps += 'font-family:' + menu.fontFamily +';';
			itemProps += 'font-weight:' + menu.fontWeight + ';fontSize:' + menu.fontSize + 'px;';
			if (menu.fontStyle) itemProps += 'font-style:' + menu.fontStyle + ';';
			if (document.all || window.mmIsOpera) 
				itemProps += 'font-size:' + menu.fontSize + 'px;" onmouseover="onMenuItemOver(null,this);" onclick="onMenuItemAction(null,this);';
			else if (!document.layers) {
				itemProps += 'font-size:' + menu.fontSize + 'px;';
			}
			var l;
			if (lrs) {
				var lw = menu.menuWidth;
				if( menu.menuItemHAlign == 'right' ) lw -= menu.menuItemPadding;
				l = new Layer(lw,body);
			}
			var itemLeft = 0;
			var itemTop = i*menu.menuItemHeight;
			if( !menu.vertical ) {
				itemLeft = i*menu.menuWidth;
				itemTop = 0;
			}
			var dTag = '<div id="menuItem'+ countItems +'" style="position:absolute;left:' + itemLeft + 'px;top:'+ itemTop +'px;'+ itemProps +'">';
			var dClose = '</div>'
			if (menu.bgImageUp) dTag = '<div id="menuItem'+ countItems +'" style="background:url('+menu.bgImageUp+');position:absolute;left:' + itemLeft + 'px;top:'+ itemTop +'px;'+ itemProps +'">';

			var left = 0, top = 0, right = 0, bottom = 0;
			left = 1 + menu.menuItemPadding + menu.menuItemIndent;
			right = left + menu.menuWidth - 2*menu.menuItemPadding - menu.menuItemIndent;
			if( menu.menuItemVAlign == 'top' ) top = menu.menuItemPadding;
			if( menu.menuItemVAlign == 'bottom' ) top = menu.menuItemHeight-menu.fontSize-1-menu.menuItemPadding;
			if( menu.menuItemVAlign == 'middle' ) top = ((menu.menuItemHeight/2)-(menu.fontSize/2)-1);
			bottom = menu.menuItemHeight - 2*menu.menuItemPadding;
			var textProps = 'position:absolute;left:' + left + 'px;top:' + top + 'px;';
			if (lrs) {
				textProps +=itemProps + 'right:' + right + ';bottom:' + bottom + ';';
				dTag = "";
				dClose = "";
			}
			
			if(document.all && !window.mmIsOpera) {
				item = '<div align="' + menu.menuItemHAlign + '">' + item + '</div>';
			} else if (lrs) {
				item = '<div style="text-align:' + menu.menuItemHAlign + ';">' + item + '</div>';
			} else {
				var hitem = null;
				if( menu.menuItemHAlign != 'left' ) {
					if(window.mmIsOpera) {
						var operaWidth = menu.menuItemHAlign == 'center' ? -(menu.menuWidth-2*menu.menuItemPadding) : (menu.menuWidth-6*menu.menuItemPadding);
						hitem = '<div id="menuItemHilite' + countItems + 'Shim" style="position:absolute;top:1px;left:' + menu.menuItemPadding + 'px;width:' + operaWidth + 'px;text-align:' 
							+ menu.menuItemHAlign + ';visibility:visible;">' + item + '</div>';
						item = '<div id="menuItemText' + countItems + 'Shim" style="position:absolute;top:1px;left:' + menu.menuItemPadding + 'px;width:' + operaWidth + 'px;text-align:' 
							+ menu.menuItemHAlign + ';visibility:visible;">' + item + '</div>';
					} else {
						hitem = '<div id="menuItemHilite' + countItems + 'Shim" style="position:absolute;top:1px;left:1px;right:-' + (left+menu.menuWidth-3*menu.menuItemPadding) + 'px;text-align:' 
							+ menu.menuItemHAlign + ';visibility:visible;">' + item + '</div>';
						item = '<div id="menuItemText' + countItems + 'Shim" style="position:absolute;top:1px;left:1px;right:-' + (left+menu.menuWidth-3*menu.menuItemPadding) + 'px;text-align:' 
							+ menu.menuItemHAlign + ';visibility:visible;">' + item + '</div>';
					}
				} else hitem = null;
			}
			if(document.all && !window.mmIsOpera) item = '<div id="menuItemShim' + countItems + '" style="position:absolute;left:0px;top:0px;">' + item + '</div>';
			var dText	= '<div id="menuItemText'+ countItems +'" style="' + textProps + 'color:'+ menu.fontColor +';">'+ item +'&nbsp</div>\n'
						+ '<div id="menuItemHilite'+ countItems +'" style="' + textProps + 'color:'+ menu.fontColorHilite +';visibility:hidden;">' 
						+ (hitem||item) +'&nbsp</div>';
			if (childMenu) content += ( dTag + dText + '<div id="childMenu'+ countItems +'" style="position:absolute;left:0px;top:3px;"><img src="'+ menu.childMenuIcon +'"></div>\n' + dClose);
			else content += ( dTag + dText + dClose);
			if (lrs) {
				l.document.open("text/html");
				l.document.writeln(content);
				l.document.close();	
				content = '';
				theStat += "-";
				tsc++;
				if (tsc > 50) {
					tsc = 0;
					theStat = "";
				}
				status = theStat;
			}
			countItems++;  
		}
		if (lrs) {
			var focusItem = new Layer(100, body);
			focusItem.visiblity="hidden";
			focusItem.document.open("text/html");
			focusItem.document.writeln("&nbsp;");
			focusItem.document.close();	
		} else {
		  content += '	  <div id="focusItem'+ countMenus +'" style="position:absolute;left:0px;top:0px;visibility:hide;" onclick="onMenuItemAction(null,this);">&nbsp;</div>\n';
		  content += '   </div>\n  </div>\n</div>\n';
		}
		i=x;
	}
	if (document.layers) {		
		container.clip.width = window.innerWidth;
		container.clip.height = window.innerHeight;
		container.onmouseout = mouseoutMenu;
		container.menuContainerBgColor = this.menuContainerBgColor;
		for (var i=0; i<container.document.layers.length; i++) {
			proto = container.menus[i];
			var menu = container.document.layers[i];
			container.menus[i].menuLayer = menu;
			container.menus[i].menuLayer.Menu = container.menus[i];
			container.menus[i].menuLayer.Menu.container = container;
			var body = menu.document.layers[0].document.layers[0];
			body.clip.width = proto.menuWidth || body.clip.width;
			body.clip.height = proto.menuHeight || body.clip.height;
			for (var n=0; n<body.document.layers.length-1; n++) {
				var l = body.document.layers[n];
				l.Menu = container.menus[i];
				l.menuHiliteBgColor = proto.menuHiliteBgColor;
				l.document.bgColor = proto.menuItemBgColor;
				l.saveColor = proto.menuItemBgColor;
				l.onmouseover = proto.onMenuItemOver;
				l.onclick = proto.onMenuItemAction;
				l.mmaction = container.menus[i].actions[n];
				l.focusItem = body.document.layers[body.document.layers.length-1];
				l.clip.width = proto.menuWidth || body.clip.width;
				l.clip.height = proto.menuItemHeight || l.clip.height;
				if (n>0) {
					if( l.Menu.vertical ) l.top = body.document.layers[n-1].top + body.document.layers[n-1].clip.height + proto.menuItemBorder + proto.menuItemSpacing;
					else l.left = body.document.layers[n-1].left + body.document.layers[n-1].clip.width + proto.menuItemBorder + proto.menuItemSpacing;
				}
				l.hilite = l.document.layers[1];
				if (proto.bgImageUp) l.background.src = proto.bgImageUp;
				l.document.layers[1].isHilite = true;
				if (l.document.layers.length > 2) {
					l.childMenu = container.menus[i].items[n].menuLayer;
					l.document.layers[2].left = l.clip.width -13;
					l.document.layers[2].top = (l.clip.height / 2) -4;
					l.document.layers[2].clip.left += 3;
					l.Menu.childMenus[l.Menu.childMenus.length] = l.childMenu;
				}
			}
			if( proto.menuBgOpaque ) body.document.bgColor = proto.bgColor;
			if( proto.vertical ) {
				body.clip.width  = l.clip.width +proto.menuBorder;
				body.clip.height = l.top + l.clip.height +proto.menuBorder;
			} else {
				body.clip.height  = l.clip.height +proto.menuBorder;
				body.clip.width = l.left + l.clip.width  +proto.menuBorder;
				if( body.clip.width > window.innerWidth ) body.clip.width = window.innerWidth;
			}
			var focusItem = body.document.layers[n];
			focusItem.clip.width = body.clip.width;
			focusItem.Menu = l.Menu;
			focusItem.top = -30;
            focusItem.captureEvents(Event.MOUSEDOWN);
            focusItem.onmousedown = onMenuItemDown;
			if( proto.menuBgOpaque ) menu.document.bgColor = proto.menuBorderBgColor;
			var lite = menu.document.layers[0];
			if( proto.menuBgOpaque ) lite.document.bgColor = proto.menuLiteBgColor;
			lite.clip.width = body.clip.width +1;
			lite.clip.height = body.clip.height +1;
			menu.clip.width = body.clip.width + (proto.menuBorder * 3) ;
			menu.clip.height = body.clip.height + (proto.menuBorder * 3);
		}
	} else {
		if ((!document.all) && (container.hasChildNodes) && !window.mmIsOpera) {
			container.innerHTML=content;
		} else {
			container.document.open("text/html");
			container.document.writeln(content);
			container.document.close();	
		}
		if (!FIND("menuLayer0")) return;
		var menuCount = 0;
		for (var x=0; x<container.menus.length; x++) {
			var menuLayer = FIND("menuLayer" + x);
			container.menus[x].menuLayer = "menuLayer" + x;
			menuLayer.Menu = container.menus[x];
			menuLayer.Menu.container = "menuLayer" + x;
			menuLayer.style.zindex = 1;
		    var s = menuLayer.style;
			s.pixeltop = -300;
			s.pixelleft = -300;
			s.top = '-300px';
			s.left = '-300px';

			var menu = container.menus[x];
			menu.menuItemWidth = menu.menuWidth || menu.menuIEWidth || 140;
			if( menu.menuBgOpaque ) menuLayer.style.backgroundColor = menu.menuBorderBgColor;
			var top = 0;
			var left = 0;
			menu.menuItemLayers = new Array();
			for (var i=0; i<container.menus[x].items.length; i++) {
				var l = FIND("menuItem" + menuCount);
				l.Menu = container.menus[x];
				l.Menu.menuItemLayers[l.Menu.menuItemLayers.length] = l;
				if (l.addEventListener || window.mmIsOpera) {
					l.style.width = menu.menuItemWidth + 'px';
					l.style.height = menu.menuItemHeight + 'px';
					l.style.pixelWidth = menu.menuItemWidth;
					l.style.pixelHeight = menu.menuItemHeight;
					l.style.top = top + 'px';
					l.style.left = left + 'px';
					if(l.addEventListener) {
						l.addEventListener("mouseover", onMenuItemOver, false);
						l.addEventListener("click", onMenuItemAction, false);
						l.addEventListener("mouseout", mouseoutMenu, false);
					}
					if( menu.menuItemHAlign != 'left' ) {
						l.hiliteShim = FIND("menuItemHilite" + menuCount + "Shim");
						l.hiliteShim.style.visibility = "inherit";
						l.textShim = FIND("menuItemText" + menuCount + "Shim");
						l.hiliteShim.style.pixelWidth = menu.menuItemWidth - 2*menu.menuItemPadding - menu.menuItemIndent;
						l.hiliteShim.style.width = l.hiliteShim.style.pixelWidth;
						l.textShim.style.pixelWidth = menu.menuItemWidth - 2*menu.menuItemPadding - menu.menuItemIndent;
						l.textShim.style.width = l.textShim.style.pixelWidth;	
					}
				} else {
					l.style.pixelWidth = menu.menuItemWidth;
					l.style.pixelHeight = menu.menuItemHeight;
					l.style.pixelTop = top;
					l.style.pixelLeft = left;
					if( menu.menuItemHAlign != 'left' ) {
						var shim = FIND("menuItemShim" + menuCount);
						shim[0].style.pixelWidth = menu.menuItemWidth - 2*menu.menuItemPadding - menu.menuItemIndent;
						shim[1].style.pixelWidth = menu.menuItemWidth - 2*menu.menuItemPadding - menu.menuItemIndent;
						shim[0].style.width = shim[0].style.pixelWidth + 'px';
						shim[1].style.width = shim[1].style.pixelWidth + 'px';
					}
				}
				if( menu.vertical ) top = top + menu.menuItemHeight+menu.menuItemBorder+menu.menuItemSpacing;
				else left = left + menu.menuItemWidth+menu.menuItemBorder+menu.menuItemSpacing;
				l.style.fontSize = menu.fontSize + 'px';
				l.style.backgroundColor = menu.menuItemBgColor;
				l.style.visibility = "inherit";
				l.saveColor = menu.menuItemBgColor;
				l.menuHiliteBgColor = menu.menuHiliteBgColor;
				l.mmaction = container.menus[x].actions[i];
				l.hilite = FIND("menuItemHilite" + menuCount);
				l.focusItem = FIND("focusItem" + x);
				l.focusItem.style.pixelTop = -30;
				l.focusItem.style.top = '-30px';
				var childItem = FIND("childMenu" + menuCount);
				if (childItem) {
					l.childMenu = container.menus[x].items[i].menuLayer;
					childItem.style.pixelLeft = menu.menuItemWidth -11;
					childItem.style.left = childItem.style.pixelLeft + 'px';
					childItem.style.pixelTop = (menu.menuItemHeight /2) -4;
					childItem.style.top = childItem.style.pixelTop + 'px';
					l.Menu.childMenus[l.Menu.childMenus.length] = l.childMenu;
				}
				l.style.cursor = "hand";
				menuCount++;
			}
			if( menu.vertical ) {
				menu.menuHeight = top-1-menu.menuItemSpacing;
				menu.menuWidth = menu.menuItemWidth;
			} else {
				menu.menuHeight = menu.menuItemHeight;
				menu.menuWidth = left-1-menu.menuItemSpacing;
			}

			var lite = FIND("menuLite" + x);
			var s = lite.style;
			s.pixelHeight = menu.menuHeight +(menu.menuBorder * 2);
			s.height = s.pixelHeight + 'px';
			s.pixelWidth = menu.menuWidth + (menu.menuBorder * 2);
			s.width = s.pixelWidth + 'px';
			if( menu.menuBgOpaque ) s.backgroundColor = menu.menuLiteBgColor;

			var body = FIND("menuFg" + x);
			s = body.style;
			s.pixelHeight = menu.menuHeight + menu.menuBorder;
			s.height = s.pixelHeight + 'px';
			s.pixelWidth = menu.menuWidth + menu.menuBorder;
			s.width = s.pixelWidth + 'px';
			if( menu.menuBgOpaque ) s.backgroundColor = menu.bgColor;

			s = menuLayer.style;
			s.pixelWidth  = menu.menuWidth + (menu.menuBorder * 4);
			s.width = s.pixelWidth + 'px';
			s.pixelHeight  = menu.menuHeight+(menu.menuBorder*4);
			s.height = s.pixelHeight + 'px';
		}
	}
	if (document.captureEvents) document.captureEvents(Event.MOUSEUP);
	if (document.addEventListener) document.addEventListener("mouseup", onMenuItemOver, false);
	if (document.layers && window.innerWidth) {
		window.onresize = NS4resize;
		window.NS4sIW = window.innerWidth;
		window.NS4sIH = window.innerHeight;
		setTimeout("NS4resize()",500);
	}
	document.onmouseup = mouseupMenu;
	window.mmWroteMenu = true;
	status = "";
}

function NS4resize() {
	if (NS4sIW != window.innerWidth || NS4sIH != window.innerHeight) window.location.reload();
}

function onMenuItemOver(e, l) {
	MM_clearTimeout();
	l = l || this;
	a = window.ActiveMenuItem;
	if (document.layers) {
		if (a) {
			a.document.bgColor = a.saveColor;
			if (a.hilite) a.hilite.visibility = "hidden";
			if (a.Menu.bgImageOver) a.background.src = a.Menu.bgImageUp;
			a.focusItem.top = -100;
			a.clicked = false;
		}
		if (l.hilite) {
			l.document.bgColor = l.menuHiliteBgColor;
			l.zIndex = 1;
			l.hilite.visibility = "inherit";
			l.hilite.zIndex = 2;
			l.document.layers[1].zIndex = 1;
			l.focusItem.zIndex = this.zIndex +2;
		}
		if (l.Menu.bgImageOver) l.background.src = l.Menu.bgImageOver;
		l.focusItem.top = this.top;
		l.focusItem.left = this.left;
		l.focusItem.clip.width = l.clip.width;
		l.focusItem.clip.height = l.clip.height;
		l.Menu.hideChildMenu(l);
	} else if (l.style && l.Menu) {
		if (a) {
			a.style.backgroundColor = a.saveColor;
			if (a.hilite) a.hilite.style.visibility = "hidden";
			if (a.hiliteShim) a.hiliteShim.style.visibility = "inherit";
			if (a.Menu.bgImageUp) a.style.background = "url(" + a.Menu.bgImageUp +")";;
		} 
		l.style.backgroundColor = l.menuHiliteBgColor;
		l.zIndex = 1;
		if (l.Menu.bgImageOver) l.style.background = "url(" + l.Menu.bgImageOver +")";
		if (l.hilite) {
			l.hilite.style.visibility = "inherit";
			if( l.hiliteShim ) l.hiliteShim.style.visibility = "visible";
		}
		l.focusItem.style.pixelTop = l.style.pixelTop;
		l.focusItem.style.top = l.focusItem.style.pixelTop + 'px';
		l.focusItem.style.pixelLeft = l.style.pixelLeft;
		l.focusItem.style.left = l.focusItem.style.pixelLeft + 'px';
		l.focusItem.style.zIndex = l.zIndex +1;
		l.Menu.hideChildMenu(l);
	} else return;
	window.ActiveMenuItem = l;
}

function onMenuItemAction(e, l) {
	l = window.ActiveMenuItem;
	if (!l) return;
	hideActiveMenus();
	if (l.mmaction) eval("" + l.mmaction);
	window.ActiveMenuItem = 0;
}

function MM_clearTimeout() {
	if (mmHideMenuTimer) clearTimeout(mmHideMenuTimer);
	mmHideMenuTimer = null;
	mmDHFlag = false;
}

function MM_startTimeout() {
	if( window.ActiveMenu ) {
		mmStart = new Date();
		mmDHFlag = true;
		mmHideMenuTimer = setTimeout("mmDoHide()", window.ActiveMenu.Menu.hideTimeout);
	}
}

function mmDoHide() {
	if (!mmDHFlag || !window.ActiveMenu) return;
	var elapsed = new Date() - mmStart;
	var timeout = window.ActiveMenu.Menu.hideTimeout;
	if (elapsed < timeout) {
		mmHideMenuTimer = setTimeout("mmDoHide()", timeout+100-elapsed);
		return;
	}
	mmDHFlag = false;
	hideActiveMenus();
	window.ActiveMenuItem = 0;
}

function MM_showMenu(menu, x, y, child, imgname) {
	if (!window.mmWroteMenu) return;
	MM_clearTimeout();
	if (menu) {
		var obj = FIND(imgname) || document.images[imgname] || document.links[imgname] || document.anchors[imgname];
		x = moveXbySlicePos (x, obj);
		y = moveYbySlicePos (y, obj);
	}
	if (document.layers) {
		if (menu) {
			var l = menu.menuLayer || menu;
			l.top = l.left = 1;
			hideActiveMenus();
			if (this.visibility) l = this;
			window.ActiveMenu = l;
		} else {
			var l = child;
		}
		if (!l) return;
		for (var i=0; i<l.layers.length; i++) { 			   
			if (!l.layers[i].isHilite) l.layers[i].visibility = "inherit";
			if (l.layers[i].document.layers.length > 0) MM_showMenu(null, "relative", "relative", l.layers[i]);
		}
		if (l.parentLayer) {
			if (x != "relative") l.parentLayer.left = x || window.pageX || 0;
			if (l.parentLayer.left + l.clip.width > window.innerWidth) l.parentLayer.left -= (l.parentLayer.left + l.clip.width - window.innerWidth);
			if (y != "relative") l.parentLayer.top = y || window.pageY || 0;
			if (l.parentLayer.isContainer) {
				l.Menu.xOffset = window.pageXOffset;
				l.Menu.yOffset = window.pageYOffset;
				l.parentLayer.clip.width = window.ActiveMenu.clip.width +2;
				l.parentLayer.clip.height = window.ActiveMenu.clip.height +2;
				if (l.parentLayer.menuContainerBgColor && l.Menu.menuBgOpaque ) l.parentLayer.document.bgColor = l.parentLayer.menuContainerBgColor;
			}
		}
		l.visibility = "inherit";
		if (l.Menu) l.Menu.container.visibility = "inherit";
	} else if (FIND("menuItem0")) {
		var l = menu.menuLayer || menu;	
		hideActiveMenus();
		if (typeof(l) == "string") l = FIND(l);
		window.ActiveMenu = l;
		var s = l.style;
		s.visibility = "inherit";
//	document.getElementById("schulartId2").innerText="Step X x="+x;
		if (x != "relative") {
			s.pixelLeft = x || (window.pageX + document.body.scrollLeft) || 0;
			s.left = s.pixelLeft + 'px';
		}
		if (y != "relative") {
			s.pixelTop = y || (window.pageY + document.body.scrollTop) || 0;
			s.top = s.pixelTop + 'px';
		}
		l.Menu.xOffset = document.body.scrollLeft;
		l.Menu.yOffset = document.body.scrollTop;
	}
	if (menu) window.activeMenus[window.activeMenus.length] = l;
	MM_clearTimeout();
}

function onMenuItemDown(e, l) {
	var a = window.ActiveMenuItem;
	if (document.layers && a) {
		a.eX = e.pageX;
		a.eY = e.pageY;
		a.clicked = true;
    }
}

function mouseupMenu(e) {
	hideMenu(true, e);
	hideActiveMenus();
	return true;
}

function getExplorerVersion() {
	var ieVers = parseFloat(navigator.appVersion);
	if( navigator.appName != 'Microsoft Internet Explorer' ) return ieVers;
	var tempVers = navigator.appVersion;
	var i = tempVers.indexOf( 'MSIE ' );
	if( i >= 0 ) {
		tempVers = tempVers.substring( i+5 );
		ieVers = parseFloat( tempVers ); 
	}
	return ieVers;
}

function mouseoutMenu() {
	if ((navigator.appName == "Microsoft Internet Explorer") && (getExplorerVersion() < 4.5))
		return true;
	hideMenu(false, false);
	return true;
}

function hideMenu(mouseup, e) {
	var a = window.ActiveMenuItem;
	if (a && document.layers) {
		a.document.bgColor = a.saveColor;
		a.focusItem.top = -30;
		if (a.hilite) a.hilite.visibility = "hidden";
		if (mouseup && a.mmaction && a.clicked && window.ActiveMenu) {
 			if (a.eX <= e.pageX+15 && a.eX >= e.pageX-15 && a.eY <= e.pageY+10 && a.eY >= e.pageY-10) {
				setTimeout('window.ActiveMenu.Menu.onMenuItemAction();', 500);
			}
		}
		a.clicked = false;
		if (a.Menu.bgImageOver) a.background.src = a.Menu.bgImageUp;
	} else if (window.ActiveMenu && FIND("menuItem0")) {
		if (a) {
			a.style.backgroundColor = a.saveColor;
			if (a.hilite) a.hilite.style.visibility = "hidden";
			if (a.hiliteShim) a.hiliteShim.style.visibility = "inherit";
			if (a.Menu.bgImageUp) a.style.background = "url(" + a.Menu.bgImageUp +")";
		}
	}
	if (!mouseup && window.ActiveMenu) {
		if (window.ActiveMenu.Menu) {
			if (window.ActiveMenu.Menu.hideOnMouseOut) MM_startTimeout();
			return(true);
		}
	}
	return(true);
}

function hideChildMenu(hcmLayer) {
	MM_clearTimeout();
	var l = hcmLayer;
	for (var i=0; i < l.Menu.childMenus.length; i++) {
		var theLayer = l.Menu.childMenus[i];
		if (document.layers) theLayer.visibility = "hidden";
		else {
			theLayer = FIND(theLayer);
			theLayer.style.visibility = "hidden";
			if( theLayer.Menu.menuItemHAlign != 'left' ) {
				for(var j = 0; j < theLayer.Menu.menuItemLayers.length; j++) {
					var itemLayer = theLayer.Menu.menuItemLayers[j];
					if(itemLayer.textShim) itemLayer.textShim.style.visibility = "inherit";
				}
			}
		}
		theLayer.Menu.hideChildMenu(theLayer);
	}
	if (l.childMenu) {
		var childMenu = l.childMenu;
		if (document.layers) {
			l.Menu.MM_showMenu(null,null,null,childMenu.layers[0]);
			childMenu.zIndex = l.parentLayer.zIndex +1;
			childMenu.top = l.Menu.menuLayer.top + l.Menu.submenuYOffset;
			if( l.Menu.vertical ) {
				if( l.Menu.submenuRelativeToItem ) childMenu.top += l.top + l.parentLayer.top;
				childMenu.left = l.parentLayer.left + l.parentLayer.clip.width - (2*l.Menu.menuBorder) + l.Menu.menuLayer.left + l.Menu.submenuXOffset;
			} else {
				childMenu.top += l.top + l.parentLayer.top;	
				if( l.Menu.submenuRelativeToItem ) childMenu.left = l.Menu.menuLayer.left + l.left + l.clip.width + (2*l.Menu.menuBorder) + l.Menu.submenuXOffset;
				else childMenu.left = l.parentLayer.left + l.parentLayer.clip.width - (2*l.Menu.menuBorder) + l.Menu.menuLayer.left + l.Menu.submenuXOffset;
			}
			if( childMenu.left < l.Menu.container.clip.left ) l.Menu.container.clip.left = childMenu.left;
			var w = childMenu.clip.width+childMenu.left-l.Menu.container.clip.left;
			if (w > l.Menu.container.clip.width)  l.Menu.container.clip.width = w;
			var h = childMenu.clip.height+childMenu.top-l.Menu.container.clip.top;
			if (h > l.Menu.container.clip.height) l.Menu.container.clip.height = h;
			l.document.layers[1].zIndex = 0;
			childMenu.visibility = "inherit";
		} else if (FIND("menuItem0")) {
			childMenu = FIND(l.childMenu);
			var menuLayer = FIND(l.Menu.menuLayer);
			var s = childMenu.style;
			s.zIndex = menuLayer.style.zIndex+1;
			if (document.all || window.mmIsOpera) {
				s.pixelTop = menuLayer.style.pixelTop + l.Menu.submenuYOffset;
				if( l.Menu.vertical ) {
					if( l.Menu.submenuRelativeToItem ) s.pixelTop += l.style.pixelTop;
					s.pixelLeft = l.style.pixelWidth + menuLayer.style.pixelLeft + l.Menu.submenuXOffset;
					s.left = s.pixelLeft + 'px';
				} else {
					s.pixelTop += l.style.pixelTop;
					if( l.Menu.submenuRelativeToItem ) s.pixelLeft = menuLayer.style.pixelLeft + l.style.pixelLeft + l.style.pixelWidth + (2*l.Menu.menuBorder) + l.Menu.submenuXOffset;
					else s.pixelLeft = (menuLayer.style.pixelWidth-4*l.Menu.menuBorder) + menuLayer.style.pixelLeft + l.Menu.submenuXOffset;
					s.left = s.pixelLeft + 'px';
				}
			} else {
				var top = parseInt(menuLayer.style.top) + l.Menu.submenuYOffset;
				var left = 0;
				if( l.Menu.vertical ) {
					if( l.Menu.submenuRelativeToItem ) top += parseInt(l.style.top);
					left = (parseInt(menuLayer.style.width)-4*l.Menu.menuBorder) + parseInt(menuLayer.style.left) + l.Menu.submenuXOffset;
				} else {
					top += parseInt(l.style.top);
					if( l.Menu.submenuRelativeToItem ) left = parseInt(menuLayer.style.left) + parseInt(l.style.left) + parseInt(l.style.width) + (2*l.Menu.menuBorder) + l.Menu.submenuXOffset;
					else left = (parseInt(menuLayer.style.width)-4*l.Menu.menuBorder) + parseInt(menuLayer.style.left) + l.Menu.submenuXOffset;
				}
				s.top = top + 'px';
				s.left = left + 'px';
			}
			childMenu.style.visibility = "inherit";
		} else return;
		window.activeMenus[window.activeMenus.length] = childMenu;
	}
}

function hideActiveMenus() {
	if (!window.activeMenus) return;
	for (var i=0; i < window.activeMenus.length; i++) {
		if (!activeMenus[i]) continue;
		if (activeMenus[i].visibility && activeMenus[i].Menu && !window.mmIsOpera) {
			activeMenus[i].visibility = "hidden";
			activeMenus[i].Menu.container.visibility = "hidden";
			activeMenus[i].Menu.container.clip.left = 0;
		} else if (activeMenus[i].style) {
			var s = activeMenus[i].style;
			s.visibility = "hidden";
			s.left = '-200px';
			s.top = '-200px';
		}
	}
	if (window.ActiveMenuItem) hideMenu(false, false);
	window.activeMenus.length = 0;
}

function moveXbySlicePos (x, img) { 
	if (!document.layers) {
		var onWindows = navigator.platform ? navigator.platform == "Win32" : false;
		var macIE45 = document.all && !onWindows && getExplorerVersion() == 4.5;
		var par = img;
		var lastOffset = 0;
		while(par){
			if( par.leftMargin && ! onWindows ) x += parseInt(par.leftMargin);
			if( (par.offsetLeft != lastOffset) && par.offsetLeft ) x += parseInt(par.offsetLeft);
			if( par.offsetLeft != 0 ) lastOffset = par.offsetLeft;
			par = macIE45 ? par.parentElement : par.offsetParent;
		}
	} else if (img.x) x += img.x;
	return x;
}

function moveYbySlicePos (y, img) {
	if(!document.layers) {
		var onWindows = navigator.platform ? navigator.platform == "Win32" : false;
		var macIE45 = document.all && !onWindows && getExplorerVersion() == 4.5;
		var par = img;
		var lastOffset = 0;
		while(par){
			if( par.topMargin && !onWindows ) y += parseInt(par.topMargin);
			if( (par.offsetTop != lastOffset) && par.offsetTop ) y += parseInt(par.offsetTop);
			if( par.offsetTop != 0 ) lastOffset = par.offsetTop;
			par = macIE45 ? par.parentElement : par.offsetParent;
		}		
	} else if (img.y >= 0) y += img.y;
	return y;
}


////////////////////////////////////////////////////////////////////////////////
// ETRACKER ////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
   
   			var et_easy = 1;
			var et_ssl = 0;
			var et_pagename = "";
			var et_areas = "";
			var et_ilevel = 0;

			var et_server="http://www.etracker.de";
			var et_sslserver="https://www.etracker.de";
			var et_referer=et_server+"/soverview.php?c=1&amp;et=";
			var et_sw,et_sc="na";var et_pl,tmp,cex="";if(navigator.appName==
			'Netscape'||navigator.appName=='Opera'){for(i=0;i<navigator.plugins.length;++i)
			et_pl+=navigator.plugins[i].name+';';et_pl=escape(et_pl);}function et_pQ(param)
			{var ll,fl;var qS,pV,rS;qS=document.location.search;pV="";if(qS.length>1){qS=qS.
			substr(1);fl=qS.indexOf(param);if(fl!=-1){fl+=param.length+1;ll=qS.indexOf('&',
			fl);if(ll==-1) ll=qS.length;pV=qS.substring(fl,ll);rS=new RegExp(" ","g");pV=
			pV.replace(rS,"+");f1=pV.indexOf('=',0);pV=pV.substring(f1+1);}} return pV;}
			function et_eC(param){var et_a='',et_t='',et_p='';var et_ref=escape(document.
			referrer);if(typeof(top.document)=="object")et_ref=escape(top.document.referrer);
			if(et_ref!="")et_ref="&amp;ref="+et_ref;et_sw="&amp;swidth="+et_sw;et_sc=
			"&amp;scolor="+et_sc;if(et_easy)et_easy="&amp;et_easy=1";else et_easy="";if(
			et_pl!="")et_pl="&amp;p="+et_pl;if(et_areas!="")et_a="&amp;et_areas="+
			escape(et_areas);if(typeof(et_target)=="undefined"||typeof(et_target)==
			"unknown"){et_target="";et_tval="0";et_tonr="0";et_tsale=0;}if(typeof(
			et_lpage)=="undefined"||typeof(et_lpage)=="unknown")et_lpage="";else
			et_lpage="&amp;et_lpage="+et_lpage;if(typeof(et_trig)=="undefined"||typeof(
			et_trig)=="unknown")et_trig="";if(et_trig!="")cex="&amp;et_trig="+
			et_trig;if((tc=et_pQ("et_cid"))&&(tl=et_pQ("et_lid")))cex=cex+"&amp;et_cid="+
			tc+"&amp;et_lid="+tl;if(tmp=et_pQ("et_target")||et_target!=""){tv=et_pQ
			("et_tval");to=et_pQ("et_tonr");ts=et_pQ("et_tsale");et_t="&amp;et_target="+
			escape(tmp.length?tmp:et_target)+","+(tv?tv:et_tval)+","+(to?to:et_tonr)+
			","+(ts?ts:et_tsale);}if(et_pagename!="")et_p="&amp;et_pagename="+escape(
			et_pagename);tc=new Date();document.write("<a target='_blank' href='"+et_referer+
			param+"'><img border='0' width=1 height=1 alt='' src='"+(et_ssl==1?et_sslserver:et_server)+
			"/cnt.php?java=y&amp;tc="+tc.getTime()+"&amp;et="+param+"&amp;et_ilevel="+
			et_ilevel+et_easy+et_p+et_a+cex+et_t+et_lpage+et_sw+et_sc+et_ref+et_pl+"'/>"+
			"<\/a>");}

			et_sw=screen.width;et_sc=
			navigator.appName!='Netscape'?screen.colorDepth:screen.pixelDepth;

			et_eC('kbgLr3');
			
			
/////////////////////////////////////////////////////////////////////
// index.html Schularten Support
/////////////////////////////////////////////////////////////////////




			function hideFach(division1) {
				element = document.getElementById(division1);
				if (element) {
				  element.style.visibility = 'hidden';
				}
				element = document.getElementById("L_"+division1);
				if (element) {
				  element.style.visibility = 'hidden';
				}
			}

			function hide(division2) {
				if (document.getElementById(division2)) { 
			
				document.getElementById(division2).style.visibility = 'hidden';
				document.getElementById(division2+"Link").style.backgroundColor = '#eff4f8'; 
//				document.getElementById(division2+"Link").style.background = ""; 
				if (division2 != "schularten") {
					document.getElementById(division2+"Link").style.left = '933px';
					document.getElementById(division2+"Link").style.width = '40px';
				}
				
				}
			}
			function activate(division) {
				if ("" == division) { division = "schularten"; }
				hide("schularten");
				for (var i = 0; i < Schularten.length; i++) { hide(Schularten[i]); }

				document.getElementById(division).style.visibility = 'visible';
				document.getElementById(division+"Link").style.backgroundColor = '#dee7ef';  
				if (division != "schularten") {
					document.getElementById(division+"Link").style.left = '929px';
					document.getElementById(division+"Link").style.width = '44px';
					document.getElementById("quicklinks").style.visibility = 'visible'; 
					document.getElementById("search1").style.visibility = 'visible';
					document.getElementById("search2").style.visibility = 'visible';
					document.getElementById("nosearch").style.visibility = 'hidden';
					document.getElementById("search").schulartId.value=division;
					
					
				} else {
					document.getElementById("quicklinks").style.visibility = 'hidden'; 
					document.getElementById("search1").style.visibility = 'hidden';
					document.getElementById("search2").style.visibility = 'hidden';
					document.getElementById("nosearch").style.visibility = 'visible';
					document.getElementById("search").schulartId.value=division;

				}
				WertSetzen("SCHULART", division);
				
				document.search.schulartId.value=division; 
//				document.getElementById("schulartId2").innerText=division; 
				document.getElementById("quicklinks").innerHTML=
				  '<a href="#" name="link2" class="faecherpopup" id="link1"'+
					'onMouseOver="MM_showMenu(window.mm_menu_'+division+',0,20,null,\'link2\')"'+
					'onClick="MM_showMenu(window.mm_menu_'+division+',0,20,null,\'link2\')"'+
					'onMouseOut="MM_startTimeout();">'+
					'<img src="/images/faecher.gif" alt="Favoriten" width=107 height=19 align="absmiddle" border="0">'+
					'<span style="font-family:arial; position:relative; top:-1px; color:#003996; text-decoration:none; font-size:11px;">'+
					'<b><span id=schulartId2 name=schulartId2></span></b></span></a>';
				document.getElementById("schulartId2").innerHTML=division;


			}

			
			
/////////////////////////////////////////////////////////////////////
// Angebot Pakete Support
/////////////////////////////////////////////////////////////////////




function hidePaket(division2) {
//	alert ("-"+division2);
	document.getElementById(division2).style.display = 'none';
	document.getElementById(division2+"Link").style.backgroundPosition = '100% 0px'; 	
	document.getElementById(division2+"LinkA").style.backgroundPosition = '0% 0px'; 	
	
}

function showPaket(division2) {
//	alert ("+"+division2);
//	alert (pakete.length);

	for (var i = 0; i < pakete.length; ++i) {
//		alert (pakete[i].substr(0,5)+" --- "+division2.substr(0,5));

//Nur benötigt bei Suche mit Paketen!!!		
//		if (pakete[i].substr(0,5) == division2.substr(0,5)) {
			hidePaket(pakete[i]);
//		}
	}
	document.getElementById(division2).style.display = 'block';
	document.getElementById(division2+"Link").style.backgroundPosition = '100% -42px'; 	
	document.getElementById(division2+"LinkA").style.backgroundPosition = '0% -42px'; 	
	
	navip("naviFach"+division2.substr(0,5));
	navip("naviPaket"+division2.substr(5,4));
	navipp("naviFach"+division2.substr(0,5));
	navipp("naviPaket"+division2.substr(5,4));
}


/////////////////////////////////////////////////////////////////////
// Angebot Pakete Support
/////////////////////////////////////////////////////////////////////


function ___navi(title, link, icon, pre, start) {

	if (!icon) icon='';
	if (!pre) pre="<img src=/images/navi_.gif>&nbsp;";
	if (!start) start='';

	var mySplit = title.split("|");
	var i;
	var last;

	for(i = 0; i < mySplit.length; i++){
		last = mySplit[i];
    } 

	var url = location.href;
	
	var highlight = (link != "") && ( url.match(link+"$")==link);
	
	var ht = highlight?" background-color:yellow; ":"";

//	if (link == "") return  '<li style="margin-left:'+(i*20+20)+'px; '+ht+'">'+last;
	if (link == "") return  '<div style="'+ht+'">'+pre+icon+'&nbsp;'+last+'</div>'+start;

//	return '<li style="margin-left:'+(i*20+20)+'px; '+ht+'"><a href="'+link+'">'+last+'</a>';
	return '<div style="'+ht+'">'+pre+'<a href="'+link+'">'+icon+'&nbsp;'+last+'</a></div>'+start;
}

function addfachfornavi(fach, link) {
    faecherInNavi = faecherInNavi + ___navi("Fächer|"+fach, link.substring(10,link.length-1));
}

function naviline(title, link, icon, pre, start) {
	
	document.write(___navi(title, link, icon, pre, start));
	
//	if (title == "Fächer") { document.write(faecherInNavi); }

}

function navipm(id)
{
 var img = id + '_img';
 if(document.getElementById(id).style.display == 'none')
 {
  document.getElementById(id).style.display = 'block';
  document.getElementById(img).src = '/images/navi-.gif';
  WertSetzen("navi_"+id, "+");
 }
 else
 {
  document.getElementById(id).style.display = 'none';
  document.getElementById(img).src = '/images/navi+.gif';
  WertLoeschen("navi_"+id);
 }
}

function navip(id)
{
  WertSetzen("navi_"+id, "+");
}

function navipp(id)
{
 var img = id + '_img';
 if(document.getElementById(id).style.display == 'none')
 {
  document.getElementById(id).style.display = 'block';
  document.getElementById(img).src = '/images/navi-.gif';
  WertSetzen("navi_"+id, "+");
 }
}

function naviplus(id) {
	if (WertHolen("navi_"+id)=="+") return "<a href='javascript:navipm(\""+id+"\");'><img id='"+id+"_img' src='/images/navi-.gif' border=0></a>&nbsp;";
 	return "<a href='javascript:navipm(\""+id+"\");'><img id='"+id+"_img' src='/images/navi+.gif' border=0></a>&nbsp;";
}
function navistart(id, visible) {
	if (visible)  	return "<div style='margin-left:20px; id='"+id+"'>";
	if (WertHolen("navi_"+id)=="+") return "<div style='margin-left:20px; display:block;' id='"+id+"' name='"+id+"'>";
 	return "<div style='margin-left:20px; display:none;' id='"+id+"' name='"+id+"'>";
}
function naviend(id) {
 	document.write("</div>");
}

if (document.referrer != "") {
	if (! document.referrer.startsWith("http://www.park-koerner")) {
		if (! document.referrer.startsWith("http://www.parkkoerner")) {
			if (! document.referrer.startsWith("http://park-koerner")) {
				if (! document.referrer.startsWith("http://parkkoerner")) {
					WertSetzen("ref", document.referrer.replace(/=/g, "_"));
				}
			}
		}
	}
}

				


