$(document).ready(function () {

    //Fixes some RadControl styling that has inline-element settings (Impossible to override with CSS)
    $(".GridRow_Office2007").each(function (index) {
        $(this).children().css('background-color', '#666666');
        $(this).children().css('color', 'White');
    });

    $(".GridAltRow_Office2007").each(function (index) {
        $(this).children().css('background-color', '#999999');
        $(this).children().css('color', 'White');
    });

    //Center images on ItemPane
    var Image = $(".CATListBorder").find(".CATRow").attr("align", "center");

    //Move Price below images
    //var Price = $(".CATListBorder").find(".CATRow").eq(1).detach();
    //Price.appendTo(".CATListBorder:first");
    $(".CATListBorder").each(function () {
        $(this).children().eq(0).addClass("PriceLocation");

    });


    $(".CATListBorder").each(function () {
        var Price = $(this).find(".CATRow").eq(1).detach();
        $(this).find(".PriceLocation:first").append("<tr></tr>");
        $(this).find(".PriceLocation:first").children().eq(2).append(Price);
        //Price.appendTo(this)
    });

    $("[id$=dlProductOptions]").css("background-color", "transparent");


    //    $(".SubHead").each(function () {
    //        var id = $(this).attr('id');
    //        //alert(id.indexOf("FAQs_lstFAQs") != -1);
    //        if (id.indexOf("FAQs_lstFAQs") != -1) {
    //            $(this).children().eq(0).children().eq(0).css("background-color", "transparent");
    //            $(this).children().eq(0).children().eq(0).css("color", "#ffef00");
    //        }
    //    });

    var FAQCats = $("[id*=FAQsCategories_lstCategory]").children().eq(0).children().eq(0).children().eq(0).children().eq(0).children().eq(0).children().each(function (index, value) {
        $(this).children().each(function () {
            $(this).attr("align", "left");
        });
    });
    $("[id*=ViewBulkEmailer_lnkBack]").css("color", "white");
});
