/*****************************************************************
  changes style of item with given id               28.04.04 22:08
*****************************************************************
*
*
*/
 var style_navactive = "navakt";
 var style_navinactive = "nav";


 function stylechange(idname) {
    if ( idname == "" ) {
        var lastslash = document.URL.lastIndexOf('/')+1;
        var filename = document.URL.slice(lastslash);
        var lastdot = document.URL.lastIndexOf('.');
        var idname = document.URL.slice(lastslash,lastdot);
    }
    document.getElementById(idname).className = style_navactive;
}

// show divs

function showdiv( divid )
/*****************************************************************
  shows defined div-layers                         16.07.03 15:11
*****************************************************************/
{
   if (DOM || MS) { getElem("id",divid,null).style.visibility = "visible";  }
   else if (NS)   { getElem("id",divid,null).visibility = "show";    }

}  // showdiv

function hidediv( divid )
/*****************************************************************
  shows defined div-layers                         16.07.03 15:11
*****************************************************************/
{
   if (DOM || MS) { getElem("id",divid,null).style.visibility = "hidden";  }
   else if (NS)   { getElem("id",divid,null).visibility = "hide";    }

}  // showdiv

function show2( divid )
/*****************************************************************
  shows defined div-layers second attempt           16.07.03 15:16
*****************************************************************/
{
 if(document.getElementById)
    document.getElementById(divid).style.visibility = "visible";

}  // show2

function hide2( divid )
/*****************************************************************
  shows defined div-layers second attempt           16.07.03 15:16
*****************************************************************/
{
 if(document.getElementById)
    document.getElementById(divid).style.visibility = "hidden";

}  // show2

function siteinit(  )
/*****************************************************************
  initializing vars and functions                   16.07.03 15:56
*****************************************************************/
{
  hidediv('berlinimpressum');
  hidediv('wienimpressum');
}  // siteinit

