function img_nb(n,s) { eval(n+'=new Image()'); eval(n+'.src="'+s+'"'); } function getObject(obj) { var theObj; if(document.all) theObj=eval('document.all.'+ obj +'.style'); if(document.layers) theObj=eval('document.'+ obj); if(!document.all && document.getElementById) theObj=document.getElementById(obj).style; return theObj; } function show_overview(obj){ var theObj=getObject(obj); theObj.visibility='visible'; } function hide_overview(obj){ var theObj=getObject(obj); theObj.visibility='hidden'; } nav_group = new Array(); nav_group[0]=''; nav_group[1]='navigationID1'; nav_group[2]='navigationID2'; nav_group[3]='navigationID3'; nav_group[4]='navigationID4'; nav_group[5]='navigationID5'; nav_group[6]='navigationID6'; nav_timer_id = false ; navtimer = 1 ; /* zufuegung ma 2004-01-06, IE abgefangen und in xtra funktion umgeleitet, er hat definitv probleme bei der verarbeitung von schleifen */ var oldObj="navigationID0"; var bx; if(navigator.appName.indexOf("Microsoft Internet Explorer")!=-1)bx=0; else bx=1; //ie umleiten function show_groupnav(obj){ if(bx==0)swapL(obj); else show_groupnavNS(obj); } function hide_groupnav(fromwhere,obj){ if(bx==0)clearL(obj); else { if(typeof fromwhere=='string' && fromwhere=='main')hide_groupnav1NS(obj); else hide_groupnavNS(obj) } } //ie-functions function swapL(obj){ hide_overview(oldObj); var i=oldObj.split('ID'); changeImage3(i[1],'navID'+i[1],'nav'+i[1]); var j=obj.split('ID'); changeImage3(j[1],'navID'+j[1],'nav'+j[1]+'o'); show_overview(obj); oldObj=obj; //alert(obj+' '+oldObj); } function clearL(obj){ hide_overview(obj); var i=obj.split('ID'); changeImage3(i[1],'navID'+i[1],'nav'+i[1]); show_overview('navigationID0'); oldObj='navigationID0'; } function changeImage3(index,name,aktiv){ if(index!='0'){ if(document.layers) { eval('document.images["'+name+'"].src = '+eval('"'+aktiv+'"')+'.src'); } else document.images[name].src = eval(aktiv+'.src'); return true; } } /* ende zufuegung */ //ns-functions function show_groupnavNS(obj){ nav_timer_id=false; hide_timer_stop(); for(i=1;i<7;i++){ if(obj==nav_group[i]){ changeImage2('navID'+i,'nav'+i+'o'); var theObj=getObject(nav_group[i]); theObj.visibility='visible'; } else { changeImage2('navID'+i,'nav'+i); var theObj=getObject(nav_group[i]); theObj.visibility='hidden'; } } } function hide_groupnavNS(obj){ i=obj.split('ID'); changeImage2('navID'+i[1],'nav'+i[1]); var theObj=getObject(obj); theObj.visibility='hidden'; if(nav_group[0]!=''){ j=nav_group[0].split('ID'); changeImage2('navID'+j[1],'nav'+j[1]+'a'); } } function hide_groupnav1NS(obj){ nav_timer_id=true; navtimer = window.setTimeout("hide_timer2('"+obj+"')",500); } function hide_timer2(obj){ if(nav_timer_id){hide_groupnav('lay',obj);} //zufuegung des 'fromwhere'-param, ma } function hide_timer_stop(){ window.clearTimeout(navtimer); return true; } function show_lang(obj){ var theObj=getObject(obj); theObj.visibility='visible'; } function hide_lang(obj){ var theObj=getObject(obj); theObj.visibility='hidden'; } function show_pua(obj){ var theObj=getObject(obj); theObj.visibility='visible'; var theObj=getObject('dummy1'); theObj.visibility='visible'; var theObj=getObject('dummy2'); theObj.visibility='visible'; var theObj=getObject('dummy3'); theObj.visibility='visible'; var theObj=getObject('dummy4'); theObj.visibility='visible'; } function hide_pua(obj){ var theObj=getObject(obj); theObj.visibility='hidden'; var theObj=getObject('dummy1'); theObj.visibility='hidden'; var theObj=getObject('dummy2'); theObj.visibility='hidden'; var theObj=getObject('dummy3'); theObj.visibility='hidden'; var theObj=getObject('dummy4'); theObj.visibility='hidden'; } function changeImage(name,aktiv,ov_layer){ if(document.layers) { eval('document.'+ov_layer+'.document.images["'+name+'"].src = '+eval('"'+aktiv+'"')+'.src'); } else document.images[name].src = eval(aktiv+'.src'); } function changeImage2(name,aktiv){ if(document.layers) { eval('document.images["'+name+'"].src = '+eval('"'+aktiv+'"')+'.src'); } else document.images[name].src = eval(aktiv+'.src'); return true; } function bs_quick_nav() { location=document.bsquicknavform.bsnavpa[document.bsquicknavform.bsnavpa.selectedIndex].value; } function sprach_quick_nav() { location=document.lang_selectfrom2.lang_select2[document.lang_selectfrom2.lang_select2.selectedIndex].value; } function OpenFeedback(pfad){ var base = "https://"+location.host; w=window.open(base+'/'+pfad+'/feedbackform.html','Feedback','width=500,height=500,left=100,top=100'); } function OpenIdee(pfad){ var base = "https://"+location.host; w=window.open(base+'/'+pfad+'/ideenform.html','Idee','width=500,height=650,left=100,top=100'); } function LangPos(){ if(document.all){ var leftpos=document.all.laylanguage.offsetLeft; document.all.service3layer.style.left = leftpos+211; } if(document.layers){ var leftpos=document.anchors["laylanguage"].x; document.layers["service3layer"].left = leftpos; } if(!document.all && document.getElementById){ var leftpos=document.getElementById("laylanguage").offsetLeft; document.getElementById("service3layer").style.left = leftpos+211; } } //Menueedit Functions function scrollToAnker(){ var para1 = window.location.search.split("&"); var text = ""; for (i=0;i< para1.length;i++){ if(para1[i].indexOf("ANKER=anker")>-1){ if(document.all){ a = eval("document.all."+para1[i].slice(para1[i].indexOf("anker"))); a.scrollIntoView('true'); window.scrollBy(0,-200); } else if(!document.all && document.getElementById) { a = eval("document.getElementById('"+para1[i].slice(para1[i].indexOf("anker"))+"')"); a.scrollIntoView('true'); window.scrollBy(0,-200); } else if(document.layers) { //a = eval("document."+para1[i].slice(para1[i].indexOf("anker"))); //a.scrollIntoView('true'); //window.scrollBy(0,-200); } } } } function startfunc(){ scrollToAnker(); } function getImage(name){ bild = "/images/red/count"+name+".gif"; document.images["counterimg"].src = bild; //alert(bild); } // Popup function funcOpenPopup(thisPath, thisName, thisWidth, thisHeight, thisPosX, thisPosY){ newPopup = window.open(thisPath,thisName,'width='+thisWidth+',height='+thisHeight+',left='+thisPosX+',top='+thisPosY); }