window.location.querystring = (function() {
    var collection = {};
    var querystring = window.location.search;
    if (!querystring) {
        return { toString: function() { return ""; } };
    }
    querystring = decodeURI(querystring.substring(1));
    var pairs = querystring.split("&");
    for (var i = 0; i < pairs.length; i++) {
        if (!pairs[i]) {
            continue;
        }
        var seperatorPosition = pairs[i].indexOf("=");

        if (seperatorPosition == -1) {
            collection[pairs[i]] = "";
        }
        else {
            collection[pairs[i].substring(0, seperatorPosition)]
        = pairs[i].substr(seperatorPosition + 1);
        }
    }
    collection.toString = function() {
        return "?" + querystring;
    };

    return collection;
})();

function hideAccessTool() {
    document.getElementById('accessToolContainer').style.display = 'none';
    var alliframes = document.getElementsByTagName('iframe');
    for (i = 0; i != alliframes.length; i++) 
    {
        alliframes[i].style.visibility = 'visible';
    }

    var allFlashObjects = document.getElementsByTagName('object');
    for (i = 0; i != allFlashObjects.length; i++) 
    {
        allFlashObjects[i].setAttribute('wmode', 'window');
        allFlashObjects[i].style.visibility = 'visible';
    }

    var allEmbedTags = document.getElementsByTagName('embed');
    var embedTags = document.allEmbedTags;
    if (embedTags != null) {
        for (embedTags, i = 0, embeded; embeded = embedTags[i]; i++) {
            if (navigator.appName == 'Microsoft Internet Explorer') {
                embeded.setAttribute('wmode', 'window');
                embeded.style.visibility = 'visible';
            }
            else {
                embeded.setAttribute('wmode', 'window');
                var parentNode = embeded.parentNode;
                parentNode.removeChild(embeded);
                var nextSibling = embeded.nextSibling
                parentNode.insertBefore(embeded, nextSibling);
            }
        }
    }
}