﻿// JScript File

        function startList() {
            if (document.all&&document.getElementById) {
                navRoot = document.getElementById("nav");
                
                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", "");
                        }
                    }
                }
            }
        }
        
        function increaseFont(divID)
        {
            var x = document.getElementById(divID);
            
            if (x.currentStyle)
            {
		        var y = x.currentStyle["fontSize"];
		    }
	        else if (window.getComputedStyle)
	        {
		        var y = document.defaultView.getComputedStyle(x,null)["fontSize"];
            }
            
            var z = y.substring(0, y.length-2);
            var fz = ((z*1)+2).toString()+'px';
            x.style.fontSize = fz;
        }
        
        function decreaseFont(divID)
        {
            var x = document.getElementById(divID);
            
            if (x.currentStyle)
            {
		        var y = x.currentStyle["fontSize"];
		    }
	        else if (window.getComputedStyle)
	        {
		        var y = document.defaultView.getComputedStyle(x,null)["fontSize"];
		    }
	        
            var z = y.substring(0, y.length-2);
            
            if(z*1 >= 6)
            {
                var fz = ((z*1)-2).toString()+'px';
                x.style.fontSize = fz;
            }
        }
        
        function hideDiv(divID)
        {
            document.getElementById(divID).style.display = 'none';
        }
        
        function showDiv(divID)
        {
            document.getElementById(divID).style.display = 'block';
        }