// BEGIN Shows date on intro page
function ZeitAnzeigen() {
var Wochentagname =  new Array("So","Mo","Di","Mi","Do","Fr","Sa");

 var Jetzt = new Date();
 var Tag = Jetzt.getDate();
 var Monat = Jetzt.getMonth() + 1;
 var Jahr = Jetzt.getYear();
 if(Jahr < 999) Jahr += 1900;
 var Stunden = Jetzt.getHours();
 var Minuten = Jetzt.getMinutes();
 var Sekunden = Jetzt.getSeconds();
 var WoTag = Jetzt.getDay();
 var Vortag  = ((Tag < 10) ? "0" : "");
 var Vormon  = ((Monat < 10) ? ".0" : ".");
 var Vorstd  = ((Stunden < 10) ? "0" : "");
 var Vormin  = ((Minuten < 10) ? ":0" : ":");
 var Vorsek  = ((Sekunden < 10) ? ":0" : ":");
 var Datum = Vortag + Tag + Vormon + Monat  + "." + Jahr;
 var Uhrzeit = Vorstd + Stunden + Vormin + Minuten + Vorsek + Sekunden;
 var Gesamt = Wochentagname[WoTag] + ", " + Datum; // + ", " + Uhrzeit;

 if(DHTML) {
   if(NS) setCont("id","Uhr",null,"<span class=\"Uhr\">" + Gesamt + "<\/span>");
   else   setCont("id","Uhr",null,Gesamt);
 }
 else return;

 window.setTimeout("ZeitAnzeigen()",1000);
}
// End Shows date on intro page

// BEGIN SITEMAP
function sitemap(quelle){
f1=open(quelle,"Sitemap","width=790,height=470,screenX=50,screenY=50,resizable=no,scrollbars=yes");
window.f1.focus();
}
// END SITEMAP

// BEGIN LARGE IMAGE VIEW
function magnify(quelle){
f2=open(quelle,"Inhalt","width=670,height=600 screenX=50,screenY=50,resizable=no,scrollbars=no");
window.f2.focus();
}
// END LARGE IMAGE VIEW

// BEGIN INVISIBLE PRINT WINDOW
function invisiblePrint(quelle){
f3=open(quelle,"Druck","width=1,height=1 screenX=0,screenY=0,resizable=no,scrollbars=no");
}
// BEGIN INVISIBLE PRINT WINDOW

// BEGIN SITEMAP Navigation
function sitemapNavi(loc1,loc2,loc3){
top.opener.parent.primNavi.location.href = loc1;
top.opener.parent.secNavi.location.href = loc2;
top.opener.parent.centerCont.location.href = loc3;
top.window.self.close();
}
// END SITEMAP Navigation

// BEGIN Add Bookmark of Page
function addBookmark(title,url) {
	if (window.sidebar) {
		window.sidebar.addPanel(title, url,"");
	} else if( document.all ) {
		window.external.AddFavorite( url, title);
	} else if( window.opera && window.print ) {
	return true;
	}
}
// END Add Bookmark of Page

// BEGIN Reload Frameset after external call
// Relaods frameset after content page is loaded without it
// E.G after bookmarking or call from search engine
 function checkFrameset(thisPage) {
  if(!parent.primNavi)
   location.href="../../content.htm?" + thisPage;
 }
 // END Reload Frameset after external call

// BEGIN Frameset Navigation
// Extracts actual position from query string submitted
// either by start page
// or single content page called from searchengine or bookmark
function getQuery(){
position = this.location.href;
query = position.split("?");
if (query[1]){
searches = query[1];	// Divide query by "&"
searches = searches.split("&")
lang = searches[0]		// Get string for language
prim = searches[1]		// Get string for primary navigation
sec = searches[2]		// Get string for secondary navigation
cont = searches[3]		// Get string for content frame

language = lang.split("=");		// Get language directory
primaryNav = prim.split("=");	// Get file for primary navigation
secondaryNav = sec.split("=");	// Get file for secondary navigation
contentMain = cont.split("=");		// Get file for content frame

primSource = language[1]+ "/navigation/" + primaryNav[1] + ".htm";	// concatenate complete path for primary navigation
secSource = language[1]+ "/" + primaryNav[1] + "/navigation/" + secondaryNav[1] + ".htm";	// concatenate complete path for secondary navigation
contMainSource = language[1]+ "/" + primaryNav[1] + "/" + contentMain[1] + ".htm"; 	// concatenate complete path for content

primNavi.location = primSource;	// Load primary Navigation into Frameset
secNavi.location = secSource;	// Load secondary Navigation into Framest
centerCont.location = contMainSource;	// Load content page into Frameset
	} else {
	// if noch Query String: do nothing!
	}
}
// END Frameset Navigation

// BEGIN PRIMARY NAVIGATION
function primaryNavi(loc1, loc2, loc3){
	parent.frames[0].location = loc1;
	parent.frames[1].location = loc2;
	parent.frames[2].location = loc3;
}
// END PRIMARY NAVIGATION

// BEGIN SECONDARY NAVIGATION
function secondaryNavi(loc01, loc02){
	parent.frames[1].location = loc01;
	parent.frames[2].location = loc02;
}
// END SECONDARY NAVIGATION

// BEGIN RELOAD PAGE ON RESIZE OF WINDOW (Netscape bugfix)
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// END RELOAD PAGE ON RESIZE OF WINDOW (Netscape bugfix)

// BEGIN FIND OBJECT ON PAGE
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
// END FIND OBJECT ON PAGE

// BEGIN SHOW/HIDE LAYERS
function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
// END SHOW/HIDE LAYERS

// BEGIN PRELOADING IMAGES FOR IMAGE SWAPPING
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
// BEGIN PRELOADING IMAGES FOR IMAGE SWAPPING

// BEGIN IMAGE SWAPPING RESTORE
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
// END IMAGE SWAPPING RESTORE

// BEGIN IMAGE SWAPPING
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
// END IMAGE SWAPPING