<!--
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);

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

/*
function P7_autoLayers is called
  a) onLoad with no argument
  b) on click on one of the navigation elements with one argument
*/
function P7_autoLayers() { //v1.1 PVII
 var g,b,k,f,args=P7_autoLayers.arguments;

/* Create array p7, if it does not exist yet (i.e. first call of current page) */
 if (!document.p7setc) {
      p7c=new Array();
      document.p7setc=true;
 }
 // if ( args.length == 0 ) { window.alert( "Called with no argument." ); }
 //window.alert( "#p7c is " + p7c.length );
 //window.alert( "1: p7c contains " + p7c.length + " elements, args contains " + args.length + " elements" );
 
 /* hide all elements currently contained in p7c */
 for( k=0; k<p7c.length; k++ ) {
   if((g=MM_findObj(p7c[k]))!=null) {
     b=(document.layers)?g:g.style;
     b.visibility="hidden";
   }
 }

 /* for each element given as argument do:
      - make the element visible
	  - add the element to array p7c if the element is not already a member of p7c
	    (note: all elements not in p7c are invisible??)
 */
 for( k=0; k<args.length; k++ ) {
   if((g=MM_findObj(args[k])) != null) {
     b=(document.layers)?g:g.style;
     b.visibility="visible";
     f=false;
	 /* check, if args[k] is already member of array p7c */
     for(j=0;j<p7c.length;j++) {
       if(args[k]==p7c[j]) {
	     f=true;
       }
     }
     if(!f) { // args[k] was _not_ already member of array p7c. Add it
       p7c[p7c.length++]=args[k];
     }
   }
 }
}
//-->

