// check if the current url matches a given string
function CurrentURL (theURL) {
        // store the current url (well, uri)
        currentURL = window.location;

        // check if the url matches the passed url
        if (currentURL == theURL) {
                // it matches, success
                return true;
        }
        else {
                // no match
                return false;
        }
		
}

// try and grab a given <a> tag's href
function TargetURL() {
        // grab all anchor tags in the page
        var anchorTags = document.getElementsByTagName("a");

        // loop through anchor tags and see if any match the current url
        for (var i = 0; i < anchorTags.length ; i++)
        {
                if (CurrentURL(anchorTags[i].href)) {
                        // create a new string with the html of this anchor tag
                        //oldHTML = new String(anchorTags[i].innerHTML);
						oldHTML = new String(anchorTags[i]);

						anchorTags[i].className += " on";

                        // replace _off with _on (clicked state of button)
                        //newHTML = oldHTML.replace("\">","\" class=\"on\">");
                        //newHTML = "<span style=\"font-weight: bold;text-decoration: none;\">" + oldHTML + "</span>";

                        // send the new html back to the browser
                        //anchorTags[i].innerHTML = newHTML;
                }
        }
}
