jQuery(document).ready(function ($) {

    if (jQuery.browser.msie && jQuery.browser.version == "7.0") {
        $(".servicetitles").removeClass('servicetitles');
    }

    $("#ctl00_ctl00_FormPlaceHolder_FormPlaceHolder2_fvComments").removeAttr("style");

    $("input.reset,textarea.reset").focus(function () {
        var v = $(this).val();
        $(this).addClass('txtActive');
        if (jQuery.data(this, "oldValue") == undefined)
            jQuery.data(this, "oldValue", v);
        if (jQuery.data(this, "oldValue") == v || v.trim() == "")
            $(this).val("");
    });
    $("input.reset,textarea.reset").blur(function () {
        if (jQuery.data(this, "oldValue" != undefined) && $(this).val().trim() == "") {
            $(this).val(jQuery.data(this, "oldValue"));
            $(this).removeClass('txtActive');
        }
    });


    //$("#ctl00_ctl00_chpHeader_imgBanner").attr("src", $("#ctl00_ctl00_cphMain_cphBoatMain_rptItem_ctl00_ssPhotos_Image").attr("src"));
    //$("#ctl00_ctl00_chpHeader_imgBanner").width(892);
    //$("#ctl00_ctl00_chpHeader_imgBanner").height(324);

    $("#lblItem").hide();
    var cartItemsCount = $.ajax({
        url: "/achat/?ACT=getCartItemsCount",
        async: true,
        success: function (data) {
            $("#lblItem").show();
            $("#ajaxloader").hide()
            $("#spanItems").html(data);
        },
        statusCode: {
            404: function () {
                $("#lblItem").show();
                $("#ajaxloader").hide()
                $("#spanItems").html("0");
            }
        },
        error: function () {
            $("#lblItem").show();
            $("#ajaxloader").hide()
            $("#spanItems").html("0");
        }
    }).responseText;
});
