﻿$(document).ready(function() {


    var ApplicationUrl;
    ApplicationUrl = $('#hidApplicationUrl').val();

    $('[id^=FAQLink]').click(function() {
        var faqId = $(this).attr('id').replace('FAQLink', '');

        $('#FAQ' + faqId).toggle();

        // Some browsers don't "understand" the #xxxxxx format
        if ($(this).css('color') == 'rgb(97, 106, 115)' || $(this).css('color') == '#616a73') {
            $(this).css('color', 'rgb(154, 25, 65)');
            $(this).css('color', '#9a1941');
        }
        else {
            $(this).css('color', 'rgb(97, 106, 115)');
            $(this).css('color', '#616a73');
        }
    });



    $(".imgTabs").click(function() {
        if ($(this).attr('src').indexOf('_off.png') > 0) {
            $(this).attr('src', $(this).attr('src').replace("_off.png", "_on.png"));
        }
        //        alert($(this).attr('src').indexOf('_off.png'));

        //        $('.imgTabs').each(function() {
        //            alert($(this).attr('src').replace("_off.png", "_on.png"));
        //            $(this).attr('src') = $(this).attr('src').replace("_off.png", "_on.png");
        //            alert($(this).attr('src'));
        //        });
        //        $(this).attr('src').replace("_off.png", "_on.png");

        //var $img = $(this).find("a > img");
        //$img[0].src = $img[0].src.replace(".gif", "_f2.gif");


    });
    $('.SearchTopTxt').click(function() {
            $(this).val(' ');


    });
});





