﻿/// <reference path="jquery-1.3.2-vsdoc2.js" />

$(function () {
    $("#topNav_UL a").hover(function () {
        $(this).parent("li").addClass("topNav_selected");
    }, function () {
        $(this).parent("li").removeClass("topNav_selected");
    });


    $(".onoffUpDown").hover(function () {
        $(this).css({ "background-position": "0 -24px", "cursor": "pointer" });
    }, function () {
        $(this).css("background-position", "0 0");
    });

    $(".onoff").hover(function () {
        $(this).css("cursor", "pointer");
        this.src = this.src.replace("_off", "_on");
    }, function () {
        this.src = this.src.replace("_on", "_off");
    });

    $(".surveyUL input:radio").click(function () {
        $(".surveyUL input:radio").each(function () {
            $(this).attr("checked", false);
        });
        $(this).attr("checked", true);
    });

    $(".inputOther").focus(function () {
        $(".surveyUL input:radio").each(function () {
            $(this).attr("checked", false);
        });
        var item = $(this).parents("li").find("input:radio").attr("checked", true);
    });
});
