﻿function activeIconTop() {
    var txt = "";
    try {        
        $("#iconTop ul li.iconTxt a").each(function() {
            if (location.href.indexOf(this.href) >= 0) {
                this.parentNode.className = "iconTxt active";
            }
        })
        /*
        $(".iconTxt").each(function(i, childDivId) {

            if (location.href.indexOf(childDivId.children[0].href) >= 0) {
        childDivId.className = "iconTxt active";
        }

        })
        */
    } catch (err) {
        txt = "There was an error on this page.\n\n";
        txt += "Error description: " + err.description + "\n\n";
        txt += "Click OK to continue.\n\n";
        alert(txt);
    }
}
