$(document).ready(function () {

    // Tab Effect
    $("#news-tab .tab-content").hide(); //Hide all content
    $("#news-tab .tab-title ul li:first").addClass("active").show(); //Activate first tab
    $("#news-tab .tab-content:first").show(); //Show first tab content

    //On Click Event
    $("#news-tab .tab-title ul li").click(function () {
        $("#news-tab .tab-title ul li").removeClass("active"); //Remove any "active" class
        $(this).addClass("active"); //Add "active" class to selected tab
        $("#news-tab .tab-content").hide(); //Hide all tab content

        var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
        $(activeTab).fadeIn(); //Fade in the active ID content
        return false;
    });


    //Text Resizer
    $(".size a").textresizer({
        target: "body",
        sizes: ["0.9em", "1.3em", "1.5em"]
    });




    //Stylesheet switcher
    //if ($.cookie("css")) {
       // $("link").attr("href", $.cookie("css"));
    //}
    $("#usertools .color a").click(function () {
        $("link").attr("href", $(this).attr('rel'));
        $.cookie("css", $(this).attr('rel'), { expires: 365, path: '/' });
        return false;
    });


});  


