var pdfImg2='&nbsp;<img src="images/adobe2SM.gif" border="0" align="top">';

var navStyleValue = "";



function showNav(menuArray, tStyleValue, imgLinks){
     navStyleValue = tStyleValue;

     document.write('<ul id="' + tStyleValue + '">');
    var count = 0;
     var temp = new Array();
     var styleVar = "";
    
   for(i=0; i < menuArray.length; i++){
        temp = menuArray[i];

        
        for(j=0; j < temp.length; j++){

         
   	
           

             
            if(j == 0) {
                   
                    document.write('<li class="mainli"><a href="' + temp[j] + '" style="' + styleVar + '">'); //parent link
	
           }
            else if(j == 1){ 
                
                    
                
                 if(imgLinks == "true")
                       document.write('<img border="0" src="' + temp[j] + '"></a>'); //parent image
                 else
                       document.write(temp[j] + '</a>'); //parent image

                if(temp.length <= 2)
                   document.write('</li>');
                  
            }
            else if(j > 1 && j % 2 == 0){ 
                  
                  if(j == 2){
                        count = 1;
                        document.write('<ul class="subul">');
                  }
                  else count = 0;

	
	   //if(count == 1)
                       // document.write('<li class="subli"><a href="' + temp[j] + '">');  //these are the sublinks - took top bdr out
                 //else
                       document.write('<li class="subli"><a href="' + temp[j] + '">');  //these are the sublinks
	        
	         
                 

           }
           else{ 
                document.write(temp[j] + '</a></li>');  //these are the link contents
           }
      }//end inner for
        if(temp.length > 2){
             document.write('</ul></li>');   
        }
         
  }//end outer for
   document.write('</ul>');

     
     count++;



}

function initNavMenu(sv){
   if (document.all && document.getElementById) {
       navRoot = document.getElementById(sv); 
       for (i=0; i < navRoot.childNodes.length; i++) {
             node = navRoot.childNodes[i];
             if (node.nodeName=="LI") {
	        node.onmouseover=function() {
		   this.className+=" over";
                               
	        }
	        node.onmouseout=function() {
		   this.className=this.className.replace(" over", "");
	        }
	     }
       }
   }
}









