// JavaScript Document

function doDisplaySub(x){
resetAllStyles2()  
  
 tmp=document.getElementById('subsub' + x)
 bgImgLi=document.getElementById('li' + x)
 bgImgLi_X=document.getElementById('asub' + x)
 tmpAlink=document.getElementById('l' + x)
 if (bgImgLi_X){bgImgLi_X.style.color="#BFD2DF";}
 if (tmp) {
  if (tmp.style.display!='') {
  
   tmp.style.display=''
   //bgImgLi.style.backgroundImage='url(images/knapp_pil3.gif)'
   //tmpAlink.className="indexlinkActive"
  }
  else {
  alert("1");
   tmp.style.display='none'
   //bgImgLi.style.backgroundImage='url(images/knapp_pil1.gif)'
   //tmpAlink.style.display='none'
  }
//  tmp=document.getElementById('l' + x)
//   tmp.className="indexlinktd"
 }
}

//-->


function doDisp(x) {
 resetAllStyles() 

 tmp=document.getElementById('sub' + x)

  bgImgLi=document.getElementById('ll' + x)

 tmpAlink=document.getElementById('l' + x)

 if (bgImgLi) {
    					 bgImgLi.style.backgroundImage='url(images/knapp_pil3.gif)'
						 tmpAlink.style.color='#FFFFFF'
						 tmpAlink.style.fontweight='bold'
  				
 					} else {
					  if(bgImgLi) {bgImgLi.style.backgroundImage='url(images/knapp_pil1.gif)'}
					   //bgImgLi.style.color='#FFFFFF'
 }
  if (tmp) {
  					if (tmp.style.display!='') {
  						 tmp.style.display='' 
  					}
 					 else {
 						  tmp.style.display='none'
   					}
  }
}
 

function resetAllStyles() {

 for (i=0; i<900; i++) {

  tmp=document.getElementById('sub' + i)

  bgImgLi=document.getElementById('ll' + i)

  tmpAlink=document.getElementById('li' + i)
if (bgImgLi){bgImgLi.style.backgroundImage='url(images/knapp_pil1.gif)'}
  if (tmp) {
   tmp.style.display='none'
   
   //tmp=document.getElementById('l' + i)
   //tmp.className=""
  }
  if (tmpAlink){tmpAlink.className="ali"}
 }
}

 function resetAllStyles2() {
 for (i=0; i<900; i++) {
  tmp=document.getElementById('subsub' + i)
  bgImgLi=document.getElementById('li' + i)
  //tmpAlink=document.getElementById('ll' + i)
  if (tmp) {
   tmp.style.display='none'
   //bgImgLi.style.backgroundImage='url(images/knapp_pil1.gif)'
   //tmp=document.getElAementById('l' + i)
   //tmp.className=""
  }
 // if (tmpAlink){tmpAlink.className="ali"}
 }
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0

if (targ=="_blank"){
  window.open(selObj,'mywindow','');
  if (restore) selObj.selectedIndex=0;
  }else{
    eval("parent.location.href='"+selObj+"'");
  if (restore) selObj.selectedIndex=0;

  }
}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
