
function find_current_link() 
{
    var myUrl      = window.location.href;      // complete uri
    var myPathName = window.location.pathname;  // path without parameter info
    var myQuery    = window.location.search;    // query part
    var myFileName = myPathName + myQuery;      // compare with complete root-dir

    if (document.layers) {
        // exclude scripting for NS 4.
    }
    else {
        var links;
        // collect links
        if (document.all) {
            links = document.all.tags('a');
        }
        else if (document.getElementsByTagName) {
            links = document.getElementsByTagName('a');
        }
        if (links) {
            // highlight current item of menu
            for (var i = 0; i < links.length; i++) {
                if ( links[i].className == 'menu' ) {
                    if ( myUrl == links[i].href ) {
                        // alert('MATCH FOUND!!');
                        links[i].className = 'menuActive';
                        break;  // stop searching for more matches
                    }
                }
            }
        }
    }
}
