function hide(){
        document.getElementById('pre').style.visibility="hidden";

}

function show(){
        document.getElementById('pre').style.visibility="visible";

}

function clo(){
        document.getElementById(oldOpen).style.display='none';
        document.getElementById('slider').style.display='none';
        document.getElementById('slider').style.display='none';
        document.getElementById(newOpen).style.display=elem;
        oldOpen = newOpen;
}


function ope(){
        document.getElementById(newOpen).style.display=elem;
        document.getElementById('slider').style.display = "none";
        document.getElementById('slider').style.height = 0;
        hei = 0;
}

var oldOpen = "slider_n";
var oldOpen2 = "slider_n";
var newOpen = "slider_n";
var hei = 0;
var hei2 = 0;
var freigabe = 0;

var browser = navigator.appName;

if (browser.substring(0,5) == "Netsc" && navigator.appVersion.substring(0,1) >= "5"){
        var elem = "table-row";
}else{
        var elem = "inline";
}

function openSlow(){

        var obj = document.getElementById('slider');
        obj.style.height = hei;
        obj.style.display = elem;

        if (hei < 80){
                window.setTimeout("openSlow()",1);
        }else{
                clo();
                ope();
                obj.style.display = "none";
                obj.style.height = 0;
                freigabe =0;

        }

        hei = hei + 20;
}

function closeSlow(){

        var obj = document.getElementById('slider');
        obj.style.height = 80 - hei2 ;

        if (hei2 < 80){
                window.setTimeout("closeSlow()",1);
        }else{
                obj.style.height = 0;
        }

        hei2 = hei2 + 20;
}


function op(theID){

        if (freigabe == 0){



                        if (theID == "ueber" && oldOpen != "slider_n" && oldOpen != "ueber" ){
                                location.href="index.html";
                                newOpen = "ueber";
                                oldOpen == "ueber";

                        }


                if (document.getElementById(theID).style.display == elem){
                        op('slider_n');
                        unShow();
                }else{
                        freigabe = 1;
                        newOpen = theID;
                        hei         = 0;
                        hei2         = 0;


                        if ( (theID != oldOpen) && (document.getElementById(oldOpen).style.display == elem )){
                                document.getElementById('slider').style.height = 80;
                                document.getElementById('slider').style.display=elem;
                                window.setTimeout("closeSlow()",2);
                                        if (theID == "ueber")var tx = "";
                                        if (theID == "gesch")var tx = "";
                                        if (theID == "untern")var tx = "";
                                        if (theID == "gewerb")var tx = "";
                                        if (theID == "serv")var tx = "";
                                        if (theID == "kont")var tx = "";

                                        document.getElementById("zwisch").style.display=elem;
                                        document.getElementById("tex").innerText = tx;
                                        //document.getElementById("tex2").innerText = tx;
                                        //document.getElementById("tex3").innerText = tx;


                        }

                        document.getElementById(oldOpen).style.display='none';



                        window.setTimeout("openSlow()",400);








                        document.getElementById(oldOpen+"2").className  = "borderWhite3Out";
                        document.getElementById(theID+"2").className    = "borderWhite3Active";
                        document.getElementById(oldOpen+"_c").className = "borderWhite3";
                        document.getElementById(theID+"_c").className   = "borderWhite3Hover";

                }
        }
}

function unShow(){
        document.getElementById("tex").innerText = tx;
        //document.getElementById("tex2").innerText = tx;
        //document.getElementById("tex3").innerText = tx;

        document.getElementById("zwisch").style.display="none";
        //document.getElementById("tex1").style.display=elem;
}

function co_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.co_p) d.co_p=new Array();
    var i,j=d.co_p.length,a=co_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.co_p[j]=new Image; d.co_p[j++].src=a[i];}}
}

function co_swapImage() { //v3.0
  var i,j=0,x,a=co_swapImage.arguments; document.co_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=co_findObj(a[i]))!=null){document.co_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function openWin(url, windowname, w, h) {
  newWin=window.open(url, windowname, "scrollbars=no,width=" + w + ",height=" + h)
  newWin.focus()
}

function co_showHideLayers() { //v3.0
  var i,p,v,obj,args=co_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=co_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; }
    }

function co_findObj(n, d) { //v4.0
  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=co_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function co_swapImgRestore() { //v3.0
  var i,x,a=document.co_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function co_goToURL() { //v3.0
  var i, args=co_goToURL.arguments; document.co_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
var winRet = null;
var exit= true;
function newWin (URL, Name, width, height, scroll) {
LeftPosition = (screen.width) ? (screen.width-width)/2 : 0;
TopPosition = (screen.height) ? (screen.height-height)/2 : 0;
settings ='height='+height+',width='+width+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
winRet = window.open(URL, Name,settings)
}
function MM_validateForm() { //v3.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (val!=''+num) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}
function cl1() { if(exit)open("cle1.html","new_window1","left=500,top=320,width=300,height=200");}
function cl2() { if(exit)open("cle2.html","new_window1","left=500,top=320,width=300,height=200");}
function cl3() { if(exit)open("cle3.html","new_window1","left=500,top=320,width=300,height=200");}
function cl4() { if(exit)open("cle4.html","new_window1","left=500,top=320,width=225,height=170");}




function stoperror(){return true}
function click(){if (event.button==2) { alert('       SecuritySite read off \n'+'         *** G.Boenke *** \n'+'Bitte linke Maustaste benutzen!') }}
function security() {
window.onerror=stoperror
document.onmousedown=click
}