if (typeof String.prototype.trim !== 'function') {
    String.prototype.trim = function() {
        return this.replace(/^\s+|\s+$/g, '');
    }
}

jQuery(document).ready(function(){
    if(jQuery.browser.msie && (jQuery.browser.version == 6.0 || jQuery.browser.version == 7.0)) {
       jQuery("#Wrapper").show(); 
       
    } else {
         var container = jQuery("#Wrapper");
            container.fadeIn(200);
        
        jQuery("#Logo a, #QuickLinks a, #Navigation ul li a, #Navigation_2nd li a, .NewsItemPreviewContent a, .NewsItemPreviewText a, #Footer ul a, #pagenews-box-plugins a").live('click', function(e) {
           e.preventDefault();
            var link = this;
           container.fadeOut(200, function() {
                document.location = link.href;                       
            });
        });
    }
});
