//var $J = jQuery.noConflict();
var pPage=1;
jQuery(document).ready(function(){
        jQuery('a.lightbox').lightBox();

        clouds();

        $("a").focus(function(){
                $(this).blur();
        });

        $(".corner_top").corner('10px top');

        //$("#feedback").corner('10px bottom cc:#02192d');

        $(".info_content, .info_content td").each(function(){
                $("ul:last", this).css({'border-bottom': 'none'});
        });


        $("#carousel").jCarouselLite({
                btnNext: "#next",
                btnPrev: "#prev",
                visible: 2,
                scroll: 2,
                circular: false,
                afterEnd: function(a,d) {
                   LoadNewImage(a,d);
                }
        });
        $("#carousel2").jCarouselLite({
                        btnNext: "#next",
                        btnPrev: "#prev",
                        visible: 4,
                        scroll: 4,
                        circular: false,
                        afterEnd: function(a,d) {
                           LoadNewImage(a,d);
                        }
        });


});

$(window).resize(function(){
        clouds();
});

clouds = function () {
        if ($("#layout_body").width() < 1196) {
                $("#cloud5").hide();
        } else {
                $("#cloud5").show();
        };
        if ($("#layout_body").width() < 1480) {
                $("#cloud3").hide();
                $("#center1, #center2").css({'background-image': 'none'});
                $("#center3").css({'background-image': 'none', 'padding-right': '0px'});
        } else {
                $("#cloud3").show();
                $("#center1").css({'background-image': 'url(/data/img/bg_center.jpg)'});
                $("#center2").css({'background-image': 'url(/data/img/bg_center_t.jpg)'});
                $("#center3").css({'background-image': 'url(/data/img/bg_center_b.jpg)', 'padding-right': '42px'});
        }
};
