document.version = parseFloat(navigator.appVersion);

document.hostApplication = navigator.appName.substring(0,3);

document.browserClass = parseInt(document.version);



if(document.browserClass < 4) {

        document.write('sorry no css support');

}

else

if(document.browserClass == 4)

{



if(document.hostApplication == "Net"){

 function

 _style(){

  this.layerRef = null;

  this.watch("visibility",

     function(id, old, nval) {

       eval("this.layerRef." + id + " = '" + nval + "'");

       return nval; });

  this.watch("top",

     function(id, old, nval) {

       eval("this.layerRef." + id + " = '" + nval + "'");

      return nval;});

  this.watch("left",

     function(id, old, nval) {

       eval("this.layerRef." + id + " = '" + nval + "'");

      return nval;});

 }

 Layer.prototype.style = new _style();

}





document.getElementById = function(name){

  if(document.hostApplication == "Net"){

   var lyr = eval("document." + name);

    lyr.style.layerRef = lyr;

   return lyr;

  }else {

   return eval("document.all." + name);

  }

 }

}



function getObj(id){

        d = document[id];

        if (d) return d;

        for (i=0 ; i < document.layers.length ;i++){

                d = document.layers[i].document[id];

                if (d) return d;

        }

}



function imageObj(id,on_src,off_src){

        this.id = id;

        this.on = new Image();

        this.on.src= on_src;

        this.off = new Image();

        this.off.src= off_src;



}

function setOn(){



        getObj(this.id).src = this.on.src;

}

function setOff(){

        getObj(this.id).src = this.off.src;

}





function divObj(left,topNet,topMs,width,height,z,id){

        this.left=left;

        this.topNet=topNet;

        this.topMs=topMs;

        this.width=width;

        this.height=height;

        this.z=z;

        this.id=id;

        d = document.getElementById(id);

        if(document.hostApplication == "Net")

                d.style.top = topNet;

         else

                 d.style.top = topMs;



         d.style.left = left;

         d.style.width = width;

         d.style.height = height;

         d.style.z = z;

}







function hideDiv(obj){

        var d = document.getElementById(obj);

        d.style.visibility = 'hidden';

}

function hideAllDiv(){

        for (var i=0 ; i<divCon.length ; i++){

                document.getElementById(divCon[i].id).style.visibility = 'hidden';

        }

}

function showDiv(obj){

        for (var i=0 ; i<divCon.length ; i++){

                document.getElementById(divCon[i].id).style.visibility = 'hidden';

        }

        document.getElementById(obj).style.visibility = 'visible';

}



function setAllNaviOff(){



        for (i = 0 ; i < 5 ; i++)

                imgNavi[i].setOff();

}





function setup(){

        for (i =  1 ; i<6;i++){

                id =  "navihead"+i;

                on ="images/navi_head_" + i + "b.gif";

                off ="images/navi_head_" + i + "a.gif";

                imgNavi[i-1] =  new imageObj(id,on,off);

        }

        for ( i =  1 ; i<6;i++){

                imgSub[i-1] = new Array();

                for (ii = 1 ; ii<7 ; ii++) {

                        id =  "subnavi"+ i + "_" + ii ;

                        on ="images/subnavi_" + i + "_" + ii + "b.gif";

                        off ="images/subnavi_" + i + "_" + ii + "a.gif";

                        imgSub[i-1][ii-1] =  new imageObj(id,on,off);

                }

        }

        i=0;

        // var order

        // left

        // top netscape4.0

        // top other

        // width

        // height

        // z index

        // id

        divCon[i++] =new divObj(207,148,148,159,87,2,'subnavi1');

        divCon[i++] = new divObj(297,148,148,159,108,2,'subnavi2');

        divCon[i++] = new divObj(419,148,148,159,134,2,'subnavi3');

        divCon[i++] = new divObj(513,148,148,159,134,2,'subnavi4');

        divCon[i++] = new divObj(617,148,148,159,134,2,'subnavi5');

        clearDiv = new divObj(207,148,148,665,145,1,'clearsubnavi');



}



imageObj.prototype.setOn = setOn;

imageObj.prototype.setOff= setOff;

var imgNavi = new Array ();

var imgSub = new  Array ();

var divCon = new Array();

var clearDiv;





function openWindows(URL,breite,hoehe) {



    win1 =open(URL,"Fenster1","width="+breite+",height="+hoehe+",statusbar=yes,toolbar=no,scrollbars=yes");
    win1.focus();


}


function openWindows2(URL,breite,hoehe) {



    win2 =open(URL,"Fenster2","width="+breite+",height="+hoehe+",statusbar=yes,toolbar=no,scrollbars=yes");
    win2.focus();



}


function openWindows3(URL,breite,hoehe) {



    win2 =open(URL,"Fenster2","width="+breite+",height="+hoehe+",statusbar=yes,toolbar=no,scrollbars=no");
    win2.focus();



}

