﻿



//$(document).ready(function () {

function allMaster() {

    $(function () {

        $("#faqs h3")
        .prepend('<img class="ui-icon-expander ui-icon-expander-closed" src="/images/blank.gif" />')

		.prepend('<img class="ui-icon-expander ui-icon-expander-open" src="/images/blank.gif" />');


    });


    /*
    $(function () {


        // Code for category 1 selection :

        $("#CategoryTabs li a").bind('click', function () {
            var target = $(this);
            $(".tabs1 a").removeClass('ui_selected_tab1');
            selectedCategory = $(this).text();
            $(target).addClass('ui_selected_tab1');

            $("#results").load("FAQDetails.aspx"+"?categoryInput="+escape(selectedCategory), function () { rebindHovers(); });


        });



        // Code for category 1 selection :


    });

    */


    $(function () {

        $("#faqs h3").bind('click', function () {

            $("#faqs h3 > .ui-icon-expander-open").hide();
            $("#faqs h3 > .ui-icon-expander-closed").show();

            $(this)
                .find("> .ui-icon-expander-open").show()
        		.end()
				.find("> .ui-icon-expander-closed").hide()
				.end();

            $("#faqs .Answer").slideUp("fast");

            $(this).parent()
                .find("> .Answer").slideDown("fast");



        });



    });


} // End of AllMaster Functions.
//});
