<!--

/*
-- adapted from
Copyright © MaXimuS 1999-2001, All Rights Reserved.
Site: http://www.absolutegb.com/maximus
E-mail: maximus@nsimail.com
Script: Static Slide Menu
Version: 6.5.3.5 (Temporary)
*/

/* modified by swosh-media 9.01:
z-indices for NS-Browser,
checking for NS4,
moveOutfirst(),
sliding for NS6,
wechsel for document.write in other frame;

© Kai Wangnick 2001 - Kai@swosh-media.de

*/



NS6 = (document.getElementById&&!document.all);
IE = (document.all);
NS = (navigator.appName.indexOf("Netscape")>-1 && navigator.appVersion.charAt(0)=="4");
OP = (navigator.userAgent.indexOf("Opera")>-1);
htm="";

tempBar='';barBuilt=0;lastY=0;sI=new Array();

var first=0;
var moving=setTimeout('null',1);
var init=window.setTimeout('null',1);



function moveOut(){

if (parseInt(ssm.left)<0)
   {
slideMenu(10);
window.clearTimeout(moving);
moving = window.setTimeout('moveOut()', slideSpeed);

              }
else {
     window.clearTimeout(moving);moving=window.setTimeout('null',1);
     if(first==1) {moveBackfirst();}
     }
}


function movefirst(){
clearTimeout(moving);
moving = window.setTimeout('moveOut()', 40);
first=1;
}

function moveBackfirst() {
moving = window.setTimeout('moveBack1()', 4000)
}

function moveBack() {
window.clearTimeout(moving);
moving = window.setTimeout('moveBack1()', waitTime);
}
function moveBack1() {

if (parseInt(ssm.left)>(-menuWidth)) {
window.clearTimeout(moving);
moving = window.setTimeout('moveBack1()', slideSpeed);
slideMenu(-10);
}
else {
window.clearTimeout(moving);
moving=window.setTimeout('null',1);
}
}

function slideMenu(num){
if (NS6)
{
t=parseInt(ssm.left)+num+"px";
ssm.left = t;
document.getElementById("thessm").style.left=t;
}
else{
ssm.left=parseInt(ssm.left)+num;
                       if (NS) {
                       bssm.clip.right+=num;
                       bssm2.clip.right+=num;
                       if(bssm.left+bssm.clip.right>document.width)document.width+=num
                       }
}
}

function makeStatic() {
winY=(IE)?document.body.scrollTop:window.pageYOffset;
if (winY!=lastY&&winY>YOffset-staticYOffset) {
smooth = .2 * (winY - lastY - YOffset + staticYOffset);}
else if (YOffset-staticYOffset+lastY>YOffset-staticYOffset) {
smooth = .2 * (winY - lastY - (YOffset-(YOffset-winY)));}
else {smooth=0}
if(smooth > 0) smooth = Math.ceil(smooth);
else smooth = Math.floor(smooth);
bssm.top=parseInt(bssm.top)+smooth
lastY = lastY+smooth;
setTimeout('makeStatic()', 10)}

function buildBar() {
if(barText.toLowerCase().indexOf('<img')>-1) {tempBar=barText}
else{for (b=0;b<barText.length;b++) {tempBar+=barText.charAt(b)+"<BR>"}}
btx=('<td align="center" rowspan="7" width="'+barWidth+'" bgcolor="'+barBGColor+'" valign="'+barVAlign+'"><font face="'+barFontFamily+'" Size="'+barFontSize+'" COLOR="'+barFontColor+'"><B>'+tempBar+'</B></font></td>')
return btx;
}



function initSlide() {

if (IE){
ssm=document.all("thessm");
bssm=document.all("basessm").style;
bssm.clip="rect(0 "+ssm.offsetWidth+" "+((document.body.clientHeight)+ssm.offsetHeight)+" 0)";
bssm.visibility="visible";
ssm=ssm.style;
ssm.left="-110px";

}

if (NS6){

ssm=document.getElementById("thessm");
bssm=document.getElementById("basessm").style;
bssm.clip="rect(0px "+ssm.offsetWidth+"px "+ssm.offsetHeight+"px 0px)";
bssm.visibility="visible";
ssm=ssm.style;
ssm.left="-100px";
ssm.visibility="visible";

}


if (NS) {
bssm=document.layers["basessm1"];
bssm2=bssm.document.layers["basessm2"];
ssm=bssm2.document.layers["thessm"];
bssm2.clip.left=0;
ssm.visibility = "show";

}

if (menuIsStatic=="yes") makeStatic();
}

function buildMenu() {


htm="";
if (IE||OP) {htm+=('<DIV ID="basessm" style="visibility:hidden ;Position : Absolute ;Left : '+XOffset+' ;Top : '+YOffset+' ;Z-Index : 20;width:'+(menuWidth+barWidth+10)+'"><DIV ID="thessm" style="Position : Absolute ;Left : '+(-menuWidth)+'px ;Top : 0px ;Z-Index : 21;'+((IE)?"width:1px":"")+'" onmouseover="moveOut()" onmouseout="moveBack()">')}

if (NS6) {htm+=('<DIV ID="basessm" style="background-image:url(images/b.gif);visibility: hidden ; Position : Absolute ;Left :'+XOffset+'px ;Top : '+YOffset+'px ;Z-Index :20 ;width:'+(menuWidth+barWidth+10)+'px" ><DIV ID="thessm" style="background-image:url(images/b.gif);Position : Absolute ;Left : '+(-menuWidth)+'px ;Top : 0px ;Z-Index : 21; " onMouseOver="moveOut()" onmouseout="moveBack()">')}

if (NS) {
htm+=('<LAYER name="basessm1" top='+YOffset+' Left='+XOffset+' visibility="show" Z-Index=20  onmouseover="moveOut()" onmouseout="moveBack()" ><ILAYER name="basessm2"><LAYER visibility="hide" name="thessm" bgcolor="'+menuBGColor+'" left="'+(-menuWidth)+'" Z-Index=21 onmouseover="moveOut()" onmouseout="moveBack()">')
}



htm+=('<table border="0" cellpadding="0" cellspacing="1" width="'+(menuWidth+barWidth+2)+'" bgcolor="'+menuBGColor+'">');



for(i=0;i<sI.length;i++) // für alle Menueinträge
{
if(!sI[i][3]) // wenn keine Angabe menuanzahl
{
sI[i][3]=menuCols;  //(Menuanzahl) setzen
sI[i][5]=109; // neuer wert für breite ergibt 109
}
else if(sI[i][3]!=menuCols) // wenn falsche Menuanzahl
{
sI[i][5]=109; //breite =109
}

if(sI[i-1]&&sI[i-1][4]!="no") //wenn nicht letzte zeile
{htm+=('<TR>')} //neue Tabellenzeile
if(!sI[i][1]) //wenn headline
{
htm+=('<TD BGCOLOR="'+hdrBGColor+'" ALIGN="'+hdrAlign+'" VALIGN="'+hdrVAlign+'" WIDTH="'+sI[i][5]+'" COLSPAN="'+sI[i][3]+'"><font face="'+hdrFontFamily+'" size="'+hdrFontSize+'" COLOR="'+hdrFontColor+'"><b>&nbsp;'+sI[i][0]+'</TD>');
}
else {
if(!sI[i][2]){ // wenn normale zeile und kein Target definiert, target auf top setzen
sI[i][2]=linkTarget;
}
//linkzeile einfügen

htm+=('<TD BGCOLOR="'+linkBGColor+'" onmouseover="moveOut();bgColor=\''+linkOverBGColor+'\'" onmouseup="'+sI[i][1]+'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="'+sI[i][5]+'"height="32px" COLSPAN="'+sI[i][3]+'"><ILAYER><LAYER onmouseover="moveOut(); bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'"  WIDTH="100%" ALIGN="'+linkAlign+'"><b>&nbsp;<img src="../images/blind.gif" width="1" height="32" border="0" alt="" align="absmiddle"><A HREF="'+sI[i][1]+'" target="'+sI[i][2]+'" onfocus="if(IE||NS6)this.blur()" CLASS="ssmItems">'+sI[i][0]+'</A></LAYER></ILAYER></TD>');
}
if(sI[i][4]!="no"&&barBuilt==0){htm+=(buildBar());barBuilt=1}//keine endrow und bar noch nicht da, Bar machen
if(sI[i][4]!="no"){document.writeln('</TR>')}
}

htm+=('</table>')
if (IE||NS6){htm+=('</TD></TR></TABLE>')}
if (IE||NS6) {htm+=('</DIV></DIV>')}
if (NS) {htm+=('</LAYER></ILAYER></LAYER>')}



return(htm);


}

function addHdr(name, cols, endrow){sI[sI.length]=[name, '', '', cols, endrow]}

function addItem(name, link, target, cols, endrow){
if(!link)link="javascript://";
sI[sI.length]=[name, link, target, cols, endrow];
}



function wechsel(m,n)
{

 t='<html><head><link rel="stylesheet" href="std.css" type="text/css"><style type="text/css">body  {background-color:#044284; margin-left:10px; margin-top:0px; color:#FBEAB5;  background-image:url(images/b.gif);}</style></head><body background="images/b.gif"><center><h1 Style=" font-size:12pt; color:#FBEAB5; font-family:Arial,sans-serif;">'+n+'</h1></center></body></html>';
 l='<center><h1 Style=" font-size:12pt; margin-top:5px; color:#FBEAB5; font-family:Arial,sans-serif;">'+n+'</h1></center>';
 if (NS){
    top.titelf.document.layers[0].document.open();
    top.titelf.document.layers[0].document.writeln(l);
    top.titelf.document.layers[0].document.close();
    }
 else
 {
      top.titelf.document.open();
      top.titelf.document.writeln(t);
      top.titelf.document.close();

 }
 top.content.location=m;
}




//-->
