// This is to handle the z-index bug in IE > 7 for the dropdown menus

var MenuRewrite = function() {
       if (document.all&&document.getElementById) {
               // Get the first child node - the UL containing our menu items
               navRoot = document.getElementById("nav"); //.childNodes[0];
               for (i=0; i<navRoot.childNodes.length; i++) {
                       node = navRoot.childNodes[i];
                       if (node.nodeName=="LI") {
                               node.onmouseover=function() {
                                       // Make the menu appear
                                       this.className+=" over";
                                       // Take the focus off the inputFocusTarget
                                       if(document.getElementById("inputFocusTarget")) {
                                               document.getElementById("inputFocusTarget").blur();
                                       }
                                     

                               }
                               node.onmouseout=function() {
                                       // Make the menu disappear
                                       this.className=this.className.replace(" over", "");
                                 

                               }
                       }
               }
       }
}
