        var fontsize =  100;    

function SetCookie(cookieName,cookieValue,nDays) {
 var today = new Date();
 var expire = new Date();
 if (nDays==null || nDays==0) nDays=1;
 expire.setTime(today.getTime() + 3600000*24*nDays);
 document.cookie = cookieName+"="+escape(cookieValue)
                 + ";expires="+expire.toGMTString();
}



function readCookie(cookieName) {
 var theCookie=""+document.cookie;
 var ind=theCookie.indexOf(cookieName);
 if (ind==-1 || cookieName=="") return ""; 
 var ind1=theCookie.indexOf(';',ind);
 if (ind1==-1) ind1=theCookie.length; 
 return unescape(theCookie.substring(ind+cookieName.length+1,ind1))+"%";
}


function getIncFontSize(){
        var size = fontsize + 20;
        fontsize = size;  
        SetCookie("fontSize",fontsize,365);
        return size+'%';
}
        
        
            
function getDecFontSize(){
          var size = fontsize - 20;
          fontsize = size;  
         SetCookie("fontSize",fontsize,365);                        
        return size+'%';
        }
        
        
function closeAll(id){
    elem = document.getElementById(id).getElementsByTagName('ul');
    for (var i = 0; i < elem.length; i++){
        if (elem[i].className != "selected") {
        elem[i].style.display = 'none';
        }
    }
}

function toggle(id) {
    document.getElementById(id).style.display = (document.getElementById(id).style.display == 'block')?'none':'block';
 }
 
 /***********************************************
 * Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
 * This notice MUST stay intact for legal use
 * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
 ***********************************************/
 
 function bookmark(url,title){

 if (document.all)
 window.external.AddFavorite(url, title);
 else if (window.sidebar)
 window.sidebar.addPanel(title, url, "")
 }

 
    function runSearch(keyword) {
       
      if (keyword=='') {
        alert("Please enter a word or phrase")
        }
      else {
        var SearchURL = "/servlet/HsPublic?context=ir.access.jsp&ir_client_id=3672&ir_option=HTML_SEARCH&keys=dir2005";
        SearchURL = SearchURL + "&queryString=" + keyword + "&start=1" + navpage +"&header=search_results&right=blank";
                location.href = SearchURL;
        }
    }
    
    
    function highlightCurrentLink() {
      
        var currentLocation = document.location.href;
        var targetNode;
        
        targetNode = document.getElementById("navigation");
        
        if (targetNode != null)
        {
            links = targetNode.getElementsByTagName("a");
            
            // Search thorugh all links
            for (i = 0; i < links.length; i++) {                
                linkHref = links[i].href;
                if (linkHref == currentLocation) {
                    // Set class for different browsers, if link is this link
                    links[i].setAttribute("className", "seld");
                    links[i].setAttribute("class", "seld");                     
                }
            }
        }
}
