jQuery.fn.defuscate = function() {
  return this.each(function(){
    var email = String($(this).html()).replace(/\s*\(.+\)\s*/, "@");
    $(this).html('<a href="mailto:' + email + '">' + email + "</a>");
  });
};

$(document).ready(function(){
    $(".email").defuscate(); 
    if ($.browser.msie) {
        $.ifixpng("gfx/pixel.gif");
        $("h1").ifixpng();
        $("#navigation a").ifixpng();
        $("#navigation").css("background","none");
        $("#navigation").append("<img id='fade-bg' src='gfx/navfade.png' />");
        $('img[@src$=.png]').ifixpng();
        $('#download #table').ifixpng();
        if(parseInt($.browser.version) >= 6) {
            $(".claims li span").prepend(" / ");
            $(".claims.extended li").prepend(" / ");
            $("#navigation a").css({cursor:'pointer'});                    
        }
    }
});

