﻿function jsfnSetCurrentStyle() {
    var links = document.getElementsByTagName('a');
    for (var i = 0; i < links.length; i++) {
        //alert(links[i].pathname.replace("/", "").toLowerCase() + "||" + document.location.pathname.replace("/", "").toLowerCase() + "||" + links[i].parentNode.nodeName.toUpperCase())
        if ((links[i].pathname.replace("/", "").toLowerCase() == document.location.pathname.replace("/", "").toLowerCase() || (links[i].pathname.replace("/", "").toLowerCase() == "default.aspx" && document.location.pathname.replace("/", "").toLowerCase()=="") ) && links[i].parentNode.nodeName.toUpperCase() == "LI") {

            links[i].className = "current";
            i = links.length;
            
        }
    }
}

//if (browserok) {
//    window.onload = initsnow
//}
window.onload = function() { jsfnSetCurrentStyle();  }

