function Show_Menu(Menu_Nr) { var cur_scrollTop_MSIE = parseInt(top.Content.window.document.body.scrollTop); var cur_scrollTop_NN6 = parseInt(top.Content.window.pageYOffset); if( isNaN( cur_scrollTop_MSIE ) ){ var cur_scrollTop = cur_scrollTop_NN6 }else{ var cur_scrollTop = cur_scrollTop_MSIE } var CounterB = Menu_Nr.substr(2,Menu_Nr.substr(2,3).indexOf('x')); var cur_LevC_top = (parseInt(CounterB)-1)*21; //for LevC entry if ( top.Content.window.document.getElementById(Menu_Nr) ){ if( Menu_Nr.substr(2,1)!='0'){ if( CounterB=='1'){ top.Content.window.document.getElementById(Menu_Nr).style.top = cur_scrollTop; //LevC 1st entry }else{ top.Content.window.document.getElementById(Menu_Nr).style.top = cur_scrollTop + cur_LevC_top; //LevC other entries } }else{ top.Content.window.document.getElementById(Menu_Nr).style.top = cur_scrollTop; //LevB } } Hide_All_Menues_LevAB(); Highlight_Menu_LevA(Menu_Nr.substr(0,1),true) Highlight_Menu(Menu_Nr,true); } function Hide_Menu(Menu_Nr) { //Hides only one menu, e.g. mouseover LevB -> Hide previously used Menu LevC (2x3x0 -> 2x4x0) Highlight_Menu_LevA(Menu_Nr.substr(0,1),false); Highlight_Menu(Menu_Nr,false); //Variante 1: bessere Performance //resetNav(); //Variante 2: schlechtere Performance Highlight_Menu_LevA(top.GlobNav.Active_Menu,true); } function resetNav() { //LevB called by LevA for(i=0;i<=10;i++){ Highlight_Menu(i+'x0x0',false) for(j=1;j<=20;j++){ Highlight_Menu(i+'x'+j+'x0',false) //LevC } } //end for } function Hide_All_Menues_LevAB() { for(i=0;i<=10;i++){ Highlight_Menu_LevA(i,false); Highlight_Menu(i+'x0x0',false); } //end for } function Set_Active_Menu(Menu_Nr){ top.GlobNav.Active_Menu=Menu_Nr; Highlight_Menu_LevA(Menu_Nr,true); } function Highlight_Active_Menu() { Hide_All_Menues_LevAB(); if( top.Content ){ top.Content.resetNav(); } Highlight_Menu_LevA( top.GlobNav.Active_Menu , true ); } function Highlight_Menu_LevA(Menu_Nr, status) { vis = (status) ? "visible" : "hidden"; if( top.GlobNav.window.document.getElementById('divx'+Menu_Nr+'hover')){ top.GlobNav.window.document.getElementById('divx'+Menu_Nr+'hover').style.visibility = vis; } } function Highlight_Menu(Menu_Nr, status) { vis = (status) ? "visible" : "hidden"; if( top.Content.window.document.getElementById(Menu_Nr)){ top.Content.window.document.getElementById(Menu_Nr).style.visibility = vis; } } function Dark_BG(Menu_Name) { window.document.getElementById(Menu_Name).style.background="#F49F03"; } function Light_BG(Menu_Name) { document.getElementById(Menu_Name).style.background= "#DDE0FB"; } function Photo(Name) { if( top.LokNav.window.document.leftPic ){ top.LokNav.window.document.leftPic.src= Name; } if( top.GlobNav.window.document.NavPic ){ suffix = Name.substr(Name.length-3,Name.length); //gif or jpg top.GlobNav.window.document.NavPic.src= Name.substr(0,Name.length-4) + '2.' + suffix; } }