/********************************************************************************** FoldoutMenu2 * Copyright (C) 2001 Thomas Brattli * This script was released at DHTMLCentral.com * Visit for more great scripts! * This may be used and changed freely as long as this msg is intact! * We will also appreciate any links you could give us. * * Made by Thomas Brattli *********************************************************************************/ function lib_bwcheck(){ //Browsercheck (needed) this.ver=navigator.appVersion this.agent=navigator.userAgent this.dom=document.getElementById?1:0 this.opera5=this.agent.indexOf("Opera 5")>-1 this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0; this.ie7=(this.ver.indexOf("MSIE 7")>-1 && this.dom && !this.opera5)?1:0; this.ie8=(this.ver.indexOf("MSIE 8")>-1 && this.dom && !this.opera5)?1:0; this.ie4=(document.all && !this.dom && !this.opera5)?1:0; this.ie=this.ie4||this.ie5||this.ie6||this.ie7||this.ie8 this.mac=this.agent.indexOf("Mac")>-1 this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; this.ns4=(document.layers && !this.dom)?1:0; this.bw=(this.ie8 || this.ie7 || this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5) return this } var bw=new lib_bwcheck() if(document.layers){ //NS4 resize fix... scrX= innerWidth; scrY= innerHeight; onresize= function(){if(scrX!= innerWidth || scrY!= innerHeight){history.go(0)} } } if(navigator.userAgent.indexOf('Opera')>-1 && document.getElementById){ //Opera 5 resize fix. scrX= innerWidth; scrY= innerHeight; document.onmousemove= function(){ if(scrXinnerWidth+10 || scrY>innerHeight+10){ scrX = innerWidth; scrY = innerHeight; foldInit(); } }; } /************************************************************************************ This is the new foldoutmenu, with more levels! This is in some ways a rather advanced menu so please read every note in this script and in the comments in the page to understand how it works. NOTE: if you change the position of divFoldCont from absolute to relative, you can put the menu in a table. HOWEVER it will no longer work in netscape 4. If you wish to support netscape 4, you have to use absolute positioning. ************************************************************************************/ //Do you want images (if not set to 0 and remove the images from the body)? foldImg=1 //Here are the images for the top links. foldinImg=new Image(); foldinImg.src="/C1256CF30038E736/foldoutmenu2_arrow.gif" //The image for the closed state. foldoutImg=new Image(); foldoutImg.src="/C1256CF30038E736/foldoutmenu2_arrow_open.gif" //The image for the open state. //Here are the images for the sub links. foldsubinImg=new Image(); foldsubinImg.src="/C1256CF30038E736/foldoutmenu2_arrow.gif" //The image for the "in" state. foldsuboutImg=new Image(); foldsuboutImg.src="/C1256CF30038E736/foldoutmenu2_arrow_open.gif" //The image for the "out" state. //If you change the images above please remember to change the images in the actual page as well. // add by mni start foldsubinImgLink=new Image(); foldsubinImgLink.src="/C1256CF30038E736/branch.gif" foldsubinImgNotLink=new Image(); foldsubinImgNotLink.src="/C1256CF30038E736/foldoutmenu2_arrow2.gif" foldsuboutImgNotLink=new Image(); foldsuboutImgNotLink.src="/C1256CF30038E736/foldoutmenu2_arrow_open2.gif" function openMenuPunkt(varTopPunkt,varSubPunkt){ if (varTopPunkt != ''){ foldmenu(varTopPunkt); if (varSubPunkt != ''){ subfoldmenu(varTopPunkt,varSubPunkt); } } } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i-1 && document.getElementById)?true:false if (bw.opera5) bw.ns6 = 0 //Creating the foldoutmenu oFold = new Array(); y = 0; for (var i=0; i