$(document).ready(function () {
    /* Show Selected Navigation : Hover */
    $("#navigation span.headmenu a").mouseover(function () {

        /* Fade In */
        $("#navigation .headmenu").addClass('over');
        $("#navigation .submenu").fadeIn();
    });

    /* Hide Navigation 	*/
    $(document).mouseover(function (event) {

        var target = $(event.target);
        if (target.parents("#navigation").length == 0) {
            $("#navigation .headmenu").removeClass('over');
            $("#navigation .submenu").hide();
        }
    }, function () { });

    /* FAQ Accordian */
    $('div.accordian> div').hide();
    $('div.accordian> h4').click(function () {
        $(this).next('div').slideToggle('fast')
    	    .siblings('div:visible').slideUp('fast');
    });

    /* COUNTRY PROFILES */
    $("[id*=ddlCountries]").change(function () {
        if ($(this).val() != "0") {
            window.location = $(this).val(); //This will be changed to ajax. Possibly.
            //$("#countryContainer").load($(this).val() + " #countryFrame");
            //window.location.hash = $(this).find("option:selected").text();

        }
    });

    /* SALES REP PROFILE LISTING */
    $("[id*=ddlStates]").change(function () {
        if ($(this).val() != "") {
            window.location.hash = $(this).find("option:selected").text();
        }
    });

});
