/* INITIALISATION */
// READ CURRENT LOCATION URL
var separator = "-"
var mybuffer = location.pathname
var mypath = mybuffer.split(".nsf/pages/")
var myarray = mypath[1].split("-")
var basepos = 0
var basepath = mypath[0] + ".nsf"
var pagespath = mypath[0] + ".nsf/pages/"
var imgpath = mypath[0] + ".nsf"
var initial_first = -1
var initial_second = -1 
var initial_third = -1
var initial_fourth = -1
var pathpos0 = -1
var pathpos1 = -1
var pathpos2 = -1
var pathleft = ""
if (initial_first < 0) {
	for (pathpos=basepos; pathpos<myarray.length; pathpos++) {
		if (myarray[pathpos]!="") {
			i=0
			while (nav[i] && pathpos<myarray.length) {
				nav0url = nav[i].url.split(separator)
				if (nav0url.length > 0) {
					if (nav0url[0] == myarray[pathpos]) {
						initial_first = i
						i=-1
						pathleft = myarray[pathpos] + separator
						pathpos0 = pathpos + 1
						pathpos = myarray.length
					}
				} else {
					if (nav0url[0] == myarray[pathpos]) {
						initial_first = i
						pathpos0 = pathpos + 1
						pathpos = myarray.length
						i=-1
					}
				}
				i++
			}
		}
	}
}
if (initial_second < 0 && pathpos0 > -1) {
	j=0
	while(initial_second<0 && nav[initial_first][j]) {
		if (nav[initial_first][j].url) {
			nav1url = nav[initial_first][j].url.split(separator)
			if (pathleft == nav1url[0]+"-") {
				if (nav1url.length > 0) {
					if (nav1url[1] == myarray[pathpos0]) {
						initial_second = j
						j=-1
						pathleft += myarray[pathpos0] + separator
						pathpos1 = pathpos0 + 1
					}
				}
			}
		}
		j++
	}
}
if (initial_third < 0 && pathpos1 > -1) {
	k=0
	while(initial_third<0 && nav[initial_first][initial_second][k]) {
		if (nav[initial_first][initial_second][k].url) {
			nav2url = nav[initial_first][initial_second][k].url.split(separator)
			if (pathleft == nav2url[0]+"-"+nav2url[1]+"-") {
				if (nav2url.length > 0) {
					if (nav2url[2] == myarray[pathpos1]) {
						initial_third = k
						k=-1
						pathleft += myarray[pathpos1] + separator
						pathpos2 = pathpos1 + 1
					}
				}
			}
		}
		k++
	}
}
if (initial_fourth < 0 && pathpos2 > -1) {
	l=0
	while(initial_fourth<0 && nav[initial_first][initial_second][initial_third][l]) {
		if (nav[initial_first][initial_second][initial_third][l].url) {
			nav3url = nav[initial_first][initial_second][initial_third][l].url.split(separator)
			if (pathleft == nav3url[0]+"-"+nav3url[1]+"-"+nav3url[2]+"-") {
				if (nav3url.length > 0) {
					if (nav3url[3] == myarray[pathpos2]) {
						initial_fourth = l
						l=-1
						pathleft += myarray[pathpos2] + separator
						pathpos3 = pathpos2 + 1
					}
				}
			}
		}
		l++
	}
}
/* END INITIALISATION */
document.write("<style>")
for (x=0; x<nav.length; x++) {
	document.write("a.navbar"+x+" {")
	document.write("	width:100%;")
	document.write("	line-height:19px;")
	document.write("	padding-left:12px;")
	document.write("	padding-top:2px;")
	document.write("	padding-right:12px;")
	document.write("	padding-bottom:3px;")
	document.write("	text-decoration:none;")
document.write("	font-family: arial, helvetica, sans-serif;")
	document.write("	font-size:11px;")
	document.write("	font-weight:bold;")
	document.write("	background-color:#333399;")
	document.write("	color:#"+nav[x].highlight_fg_color+";")
	document.write("	color:#FFFFFF;")
	document.write("}\n")
	document.write("a.navbar"+x+":hover {")
	document.write("	width:100%;")
	document.write("	line-height:19px;")
	document.write("	padding-left:12px;")
	document.write("	padding-top:2px;")
	document.write("	padding-right:12px;")
	document.write("	padding-bottom:3px;")
	document.write("	text-decoration:none;")
document.write("	font-family: arial, helvetica, sans-serif;")
	document.write("	font-size:11px;")
	document.write("	font-weight:bold;")
	document.write("	background-color:#"+nav[x].dark_border_color+";")
	document.write("	color:#"+nav[x].highlight_fg_color+";")
	document.write("}\n")
	document.write("a.navbar"+x+"Highlight {")
	document.write("	width:100%;")
	document.write("	line-height:19px;")
	document.write("	padding-left:12px;")
	document.write("	padding-top:2px;")
	document.write("	padding-right:12px;")
	document.write("	padding-bottom:3px;")
	document.write("	text-decoration:none;")
document.write("	font-family: arial, helvetica, sans-serif;")
	document.write("	font-size:11px;")
	document.write("	font-weight:bold;")
	document.write("	background-color:#"+nav[x].dark_border_color+";")
	document.write("	color:#"+nav[x].highlight_fg_color+";")
	document.write("}\n")
	document.write("a.navbar"+x+"Highlight:hover {")
	document.write("	width:100%;")
	document.write("	line-height:19px;")
	document.write("	padding-left:12px;")
	document.write("	padding-top:2px;")
	document.write("	padding-right:12px;")
	document.write("	padding-bottom:3px;")
	document.write("	text-decoration:none;")
document.write("	font-family: arial, helvetica, sans-serif;")
	document.write("	font-size:11px;")
	document.write("	font-weight:bold;")
	document.write("	background-color:#"+nav[x].dark_border_color+";")
	document.write("	color:#"+nav[x].highlight_fg_color+";")
	document.write("}\n")
	/* write navbar positioners */
	document.write("#navtd" + x + " {")
	document.write("  position: relative;")
	document.write("}\n")
	/* write pathinfo positioner */
	document.write("#pathinfo {")
	document.write("	position:relative;")
	document.write("	top:0;")
	document.write("	color:"+(initial_first>-1 ?nav[initial_first].dark_border_color :"white")+";")
	document.write("}\n")
}
document.write("</style>")
function showMenu(section) {
	if (initial_first != section) {
		document.getElementById('nav'+section).style.visibility = "visible"
	}
}
function hideMenu(section) {
	if (initial_first != section) {
		document.getElementById('nav'+section).style.visibility = "hidden"
	}
}
function showSubMenu(section,subsection) {
	document.getElementById('nav'+section+"x"+subsection).style.visibility = "visible"
}
function hideSubMenu(section,subsection) {
	document.getElementById('nav'+section+"x"+subsection).style.visibility = "hidden"
}
function thenavigator(section,arg) {
	if(arg == "open") {
		window.clearTimeout(nav[section].timeout_flag)	
		/* close menues */
		for (m=0; m<nav.length; m++) {
			if (m!=section && nav[m][0]) {
				hideMenu(m)
			}
		}
		
		/* open this menu, if first subsection exists */
		if (nav[section][0]) {
			showMenu(section)
		}
	} else if(arg == "delay") {
		window.clearTimeout(nav[section].timeout_flag)
		nav[section].timeout_flag = window.setTimeout("thenavigator("+section+",'close')",333)
	} else {
		if (nav[section][0]) {
			hideMenu(section)
			sub = 0
			while (nav[section][sub]) {
				/* close all submenues */
				if (nav[section][sub][0]) {
					hideSubMenu(section,sub)
				}
				sub++
			}
		}
	}
}
function subnavigator(section,subsection,arg) {
	if(arg == "open") {
		showMenu(section)
		window.clearTimeout(nav[section].timeout_flag)
		window.clearTimeout(nav[section][subsection].timeout_flag)
		if (nav[section][subsection-1] && nav[section][subsection-1][0]) {
			document.getElementById('nav'+section+"x"+(subsection-1)).style.visibility = "hidden"
		}
		if (nav[section][subsection+1] && nav[section][subsection+1][0]) {
			document.getElementById('nav'+section+"x"+(subsection+1)).style.visibility = "hidden"
		}
		if (nav[section][subsection][0]) {
			document.getElementById('nav'+section+"x"+subsection).style.visibility = "visible"
		}
	} else if(arg == "delay") {
		window.clearTimeout(nav[section][subsection].timeout_flag)
		nav[section][subsection].timeout_flag = window.setTimeout("subnavigator("+section+","+subsection+",'close')",333)
	} else {
		if (nav[section][subsection][0]) {
			document.getElementById('nav'+section+"x"+subsection).style.visibility = "hidden"
		}
	}
}
function resizer(section,width,height) {
	nav[section].width = width
	nav[section].height = height
	document.getElementById("nav"+section).style.width = width
	document.getElementById("nav"+section).style.height = height
}
function subresizer(section,subsection,width,height) {
	nav[section][subsection].width = width
	nav[section][subsection].height = height
	document.getElementById("nav"+section+"x"+subsection).style.width = width
	document.getElementById("nav"+section+"x"+subsection).style.height = height
}
function writeNavBar() {
	document.write("<table class=\"mainNav-bg\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">")
	document.write("<tr height=\"19\">\n")
	for(x=0; x<nav.length; x++) {
//var tmpTitle = "Hugo\\u0027Fritz";
//var tmpTitle1 = "Hugo'Fritz"; //nav[x].title;
var jsTitle = myEscapeString(nav[x].title);
var htmlTitle = '';
htmlTitle = nav[x].title;
//alert(nav[x].title +' = '+jsTitle+' = '+htmlTitle);
		var tableCell = "	<td><span id=\"navtd"+x+"\"><a class=\"navbar"+x+(initial_first==x ?"Highlight" :"")+"\" href=\""+pagespath+nav[x].url+"\" "+
"target=\""+nav[x].target+"\" "+
"onmouseover=\"thenavigator("+x+",'open');window.status = '"+jsTitle+"'; return true\" onmouseout=\"thenavigator("+x+",'delay');window.status=''; return true\">"+htmlTitle+"</a>"+
"</span></td>";
//alert(tableCell);
document.write(tableCell);
		document.write("	<td class=\"mainNav-dist\" width=\"1\"> </td>\n")
	}
	document.write("</tr>")
	document.write("</table>")
}
// get the true offset of anything on NS4, IE4/5 & NS6, even if it's in a table!
function getAbsX(elt) { return (elt.x) ? elt.x : getAbsPos(elt,"Left"); }
function getAbsY(elt) { return (elt.y) ? elt.y : getAbsPos(elt,"Top"); }
function getAbsPos(elt,which) {
 iPos = 0;
 while (elt != null) {
  iPos += elt["offset" + which];
  elt = elt.offsetParent;
 }
 return iPos;
}
var nav_left = 13
var nav_top = 130
var nav_offset_dropdown = 3
var nav_offset_fixed_1 = 244
var nav_offset_fixed_2 = 109
var nav_width_dropdown = 170
var nav_width_fixed = 170
function writeNav(){
	for(x=0; x<nav.length; x++) {
		/* write iframe positions menues */
		if (nav[x][0]) {
	
			document.write("<style>")
			document.write("#nav" + x + " {")
			document.write("  position: absolute;")
			if (initial_first == x) {
				document.write("  visibility: visible;")
				if (initial_second >= 0) {
					document.write("  left: " + nav_left + "px;")
					document.write("  top: " + (nav_offset_fixed_2+42) + "px;")
					document.write("  width: " + nav_width_fixed + "px;")
					document.write("  line-height: 19px;")
					document.write("  z-index: 11;")
				} else {
					document.write("  left: " + nav_left + "px;")
					document.write("  top: " + (nav_offset_fixed_1+42) + "px;")
					document.write("  width: " + nav_width_fixed + "px;")
					document.write("  line-height: 19px;")
					document.write("  z-index: 11;")
				}
			} else {
				document.write("  visibility: hidden;")
				document.write("  left: " + getAbsX(document.getElementById("navtd"+x)) + ";")
				document.write("  top: " + nav_top + ";")
				document.write("  width: " + nav_width_dropdown + ";")
				document.write("  line-height: 0;")
				document.write("  z-index: 12;")
			}
			document.write("}\n")
			y = 0;
			while (nav[x][y]) {
				/* write iframe positions submenues */
				if (nav[x][y][0]) {
					document.write("#nav" + x + "x" + y + " {")
					document.write("  visibility: hidden;")
					document.write("  position: absolute;")
					document.write("  left: " + ((initial_first == x ?getAbsX(document.getElementById("navtd0")) + nav_width_fixed :getAbsX(document.getElementById("navtd"+x)) + nav_width_dropdown) -20) + ";")
					document.write("  top: " + (nav_top + y*19 + ((initial_first == x) ?((initial_second >= 0) ?nav_offset_fixed_2-76 :nav_offset_fixed_1-76) :nav_offset_dropdown)) + ";")
					document.write("  top: " + (nav_top + y*19 + ((initial_first == x) ?((initial_second >= 0) ?nav_offset_fixed_2-64 :nav_offset_fixed_1-64) :nav_offset_dropdown)) + ";")
					document.write("  width: 170;")
					document.write("  line-height: 33;")
					document.write("  z-index: 13;")
					document.write("}\n")
				}
				y++
			}
			document.write("</style>\n")
			/* write menues  Open& eingefügt 01.06.03*/
			document.write("<iframe name='nav"+x+"' id='nav"+x+"' src='"+basepath+"/navFF.html?open&section="+x+"' marginwidth='0' marginheight='0' scrolling='no' frameborder='0' allowTransparency='true' onMouseover=\"thenavigator("+x+",'open')\" onMouseout=\"thenavigator("+x+",'delay')\"></iframe>\n")
			y = 0
			while (nav[x][y]) {
				/* write submenues */
				if (nav[x][y][0]) {
					var s = "<iframe name='nav"+x+"x"+y+"' id='nav"+x+"x"+y+"' src='"+basepath+"/subnavFF.html?open&section="+x+"&subsection="+y+"' marginwidth='0' marginheight='0' scrolling='no' frameborder='0' allowTransparency='true'></iframe>\n";
					document.write(s);
				}
				y++;
			}
		}
	}
}
function writeHome(){
	document.write("<a href=\""+pagespath+home.url+"\" onmouseover=\"window.status='Home'; return true\" onmouseout=\"window.status=''; return true\"><img src=\""+imgpath+"/files/code-nav-home.gif/$file/nav-home.gif\" alt=\"Home\" border=\"0\" width=\"24\" height=\"24\"></a>")
}
function writeLogo(){
	document.write("<a href=\""+pagespath+home.url+"\" onmouseover=\"window.status='Home'; return true\" onmouseout=\"window.status=''; return true\"><img src=\""+imgpath+"/files/code-logo_schindler.gif/$file/logo_schindler.gif\" alt=\"Home\" border=\"0\" width=\"140\" height=\"233\"></a>")
}
var pathEnd = ""
var pathTimeout = -1
function rewritePath(text) {
	window.clearTimeout(pathTimeout)
	document.getElementById("pathinfo").innerHTML = text
}
function resetPathNow() {
	document.getElementById("pathinfo").innerHTML = pathEnd
}
function resetPath() {
	pathTimeout = window.setTimeout("resetPathNow()",333)
}
function writePath(){
	n1 = initial_first
	n2 = initial_second
	n3 = initial_third
	n4 = initial_fourth
	document.write("<font size=1>")
	if (nav[n1]) {
var jsTitle = myEscapeString(nav[n1].title);
		document.write("&nbsp;<a href=\""+pagespath+nav[n1].url+"\" onMouseover=\"rewritePath('"+jsTitle+"')\" onMouseout=\"resetPath()\"><img src=\""+imgpath+"/files/code-navPath.gif/$file/navPath.gif\" alt=\"\" border=\"0\"></a>")
/*<a href=\""+pagespath+nav[n1].url+"\" onMouseover=\"rewritePath('"+nav[n1].title+"')\" onMouseout=\"resetPath()\"><img src=\""+imgpath+"navPath"+n1+".gif\" alt=\"\" border=\"0\"></a>*/
		if(nav[n1][n2]) {
jsTitle = myEscapeString(nav[n1][n2].title);
var s = "&nbsp;<a href=\""+pagespath+nav[n1][n2].url+"\" onMouseover=\"rewritePath('"+jsTitle+"')\" onMouseout=\"resetPath()\"><img src=\""+imgpath+"/files/code-navPath.gif/$file/navPath.gif\" alt=\"\" border=\"0\"></a>";
			document.write(s);
			if(nav[n1][n2][n3]) {
jsTitle = myEscapeString(nav[n1][n2][n3].title);
				document.write("&nbsp;<a href=\""+pagespath+nav[n1][n2][n3].url+"\" onMouseover=\"rewritePath('"+jsTitle+"')\" onMouseout=\"resetPath()\"><img src=\""+imgpath+"/files/code-navPath.gif/$file/navPath.gif\" alt=\"\" border=\"0\"></a>")
				if(nav[n1][n2][n3][n4]) {
				document.write("&nbsp;<ahref=\""+pagespath+nav[n1][n2][n3][n4].url+"\" onMouseover=\"rewritePath('"+nav[n1][n2][n3][n4].title+"')\" onMouseout=\"resetPath()\"><img src=\""+imgpath+"/files/code-navPath.gif/$file/navPath.gif\" alt=\"\" border=\"0\"></a>")
					pathEnd = nav[n0][n1][n2][n3][n4].title
					document.write("&nbsp;<span id=\"pathinfo\">"+nav[n1][n2][n3][n4].title+"</span>")
				} else {
					pathEnd = nav[n1][n2][n3].title
					document.write("&nbsp;<span id=\"pathinfo\">"+nav[n1][n2][n3].title+"</span>")
				}
			} else {
				pathEnd = nav[n1][n2].title
				document.write("&nbsp;<span id=\"pathinfo\">"+nav[n1][n2].title+"</span>")
			}
		} else {
			pathEnd = nav[n1].title
			document.write("&nbsp;<span id=\"pathinfo\">"+nav[n1].title+"</span>")
		}
	}
	document.write("</font>")
}

