jQuery.noConflict();
jQuery().ready(function () {







    jQuery(function () {
        jQuery('.date-pick').datePicker({ clickInput: true })
    });


    jQuery("#Radio1").click(function () {
        jQuery("#capcons").show();
    });

    jQuery("#Radio2").click(function () {
        jQuery("#capcons").hide();
    });

    jQuery("#commentForm").validate();


    jQuery("#forumform").validate();


    jQuery("#eventForm").validate();



    jQuery("#togglechoices").click(function () {
        jQuery(".contentchoiceform").toggle();
    });



    jQuery("#bultog").click(function () {
        jQuery(".bform").toggle();
        jQuery("#pagetext").toggle();

    });


    jQuery(".regform_dtop_q a").click(function () {
        jQuery("#dir_adv").hide();
        jQuery("#dir_quick").show();
        jQuery(".regform_dtop_a").css('background-color', '#ffffff')
        jQuery(".regform_dtop_a a").css('color', 'gray')

        jQuery(".regform_dtop_q").css('background-color', '#3a689a')
        jQuery(".regform_dtop_q a").css('color', 'white')

    });

    jQuery(".regform_dtop_a a").click(function () {
        jQuery("#dir_adv").show();
        jQuery("#dir_quick").hide();
        jQuery(".regform_dtop_q").css('background-color', '#ffffff')
        jQuery(".regform_dtop_q a").css('color', 'gray')

        jQuery(".regform_dtop_a").css('background-color', '#3a689a')
        jQuery(".regform_dtop_a a").css('color', 'white')

    });




    jQuery("#searchbackq").click(function () {
        jQuery("#dir_adv").hide();
        jQuery("#dir_quick").show();
        jQuery("#dsearch_forms").show();
        jQuery("#searchlinks").hide();
        jQuery("#searchresultblock").hide();

    });

    jQuery("#searchbacka").click(function () {
        jQuery("#dir_adv").show();
        jQuery("#dir_quick").hide();
        jQuery("#dsearch_forms").show();
        jQuery("#searchlinks").hide();
        jQuery("#searchresultblock").hide();

    });




    jQuery("#contypeALL").click(function () {
        var checked_status = this.checked;

        jQuery("input[name=contypeid]").each(function () {
            this.checked = checked_status;
        });


    });


    jQuery("#catsidALL1").click(function () {
        var checked_status = this.checked;

        jQuery("input[name=catsid1]").each(function () {
            this.checked = checked_status;
        });


    });


    jQuery("#catsidALL2").click(function () {
        var checked_status = this.checked;

        jQuery("input[name=catsid2]").each(function () {
            this.checked = checked_status;
        });


    });



    jQuery("#tog1").click(function () {

        jQuery(".showEmp2").toggle();

    });



    jQuery("#tog2").click(function () {

        jQuery(".showInf13").toggle();

    });






    jQuery("#tog3").click(function () {

        jQuery(".showTra24").toggle();

    });







    jQuery("#tog4").click(function () {

        jQuery(".showAge51").toggle();

    });





    jQuery("#tog5").click(function () {

        jQuery(".showBen65").toggle();

    });





    jQuery("#tog6").click(function () {

        jQuery(".showEmp56").toggle();

    });



    jQuery("#tog7").click(function () {

        jQuery(".showLoc38").toggle();

    });


    jQuery("#tog8").click(function () {

        jQuery(".showOth71").toggle();

    });









    jQuery("#Emp2all").click(function () {
        var checked_status = this.checked;

        jQuery("input[name=Emp2]").each(function () {
            this.checked = checked_status;
        });


    });


    jQuery("#Inf13all").click(function () {
        var checked_status = this.checked;

        jQuery("input[name=Inf13]").each(function () {
            this.checked = checked_status;
        });


    });

    jQuery("#Tra24all").click(function () {
        var checked_status = this.checked;

        jQuery("input[name=Tra24]").each(function () {
            this.checked = checked_status;
        });


    });

    jQuery("#Age51all").click(function () {
        var checked_status = this.checked;

        jQuery("input[name=Age51]").each(function () {
            this.checked = checked_status;
        });


    });

    jQuery("#Ben65all").click(function () {
        var checked_status = this.checked;

        jQuery("input[name=Ben65]").each(function () {
            this.checked = checked_status;
        });


    });

    jQuery("#Emp56all").click(function () {
        var checked_status = this.checked;

        jQuery("input[name=Emp56]").each(function () {
            this.checked = checked_status;
        });


    });

    jQuery("#Loc38all").click(function () {
        var checked_status = this.checked;

        jQuery("input[name=Loc38]").each(function () {
            this.checked = checked_status;
        });


    });

    jQuery("#Oth71all").click(function () {
        var checked_status = this.checked;

        jQuery("input[name=Emp2]").each(function () {
            this.checked = checked_status;
        });


    });


    jQuery("#checkall17").click(function () {
        var checked_status = this.checked;
        jQuery(".cl17").each(function () {
            this.checked = checked_status;
        });


    });


    jQuery("#checkall2").click(function () {
        var checked_status = this.checked;

        jQuery(".cl2").each(function () {
            this.checked = checked_status;
        });


    });


    jQuery("#checkall36").click(function () {
        var checked_status = this.checked;

        jQuery(".cl36").each(function () {
            this.checked = checked_status;
        });


    });









});

