﻿$(document).ready(function() {
    $(".tabs-contentpanel").hide();
    $(".tabs-contentpanel:eq(0)").show();
    $(".tabs-header ul li a:eq(0)").addClass("selected");
    $("a.tab").click(function() {
        $(".selected").removeClass("selected");
        $(this).addClass("selected");
        $(".tabs-contentpanel").hide();
        $("#" + $(this).attr("id") + "_panel").show();
        sIFR.replace(formata, { selector: 'h2', wmode: 'transparent', css: '.sIFR-root { background-color:#FFFFFF; color:#000000; font-size:22px; font-weight:normal;}' });
        sIFR.replace(formatamediumcond, { selector: 'h3', wmode: 'transparent', css: '.sIFR-root { background-color:#FFFFFF; color:#000000; font-size:18px; font-weight:normal;}' }); 
        $(this).blur();
    });
    if (window.location.hash) {var u = document.URL; var i = u.toString().replace(/^[^#]*#/, '#'); var t = $('a.tab[href=' + i + ']'); $(t).trigger('click'); }
});  
