jQuery(function () {

    jQuery(".ibox").stop(false, false).delay(300).animate({ "bottom": 0 }, 500);

    var bItem = 0,

		bannerInv = null,

		$bannerPanel = jQuery('.bannerPanel'),

		$banner = jQuery('.banner'),

		$bannerPic = $banner.find(".pic"),

		$bannerImg = $banner.find(".pimg"),

		$bannerBtn = jQuery(".banerBtns");

    function initBox() {

        if (w_width >= 861) {

            $bannerPanel.css({ height: w_height - $mtoph });

            $banner.css({ height: w_height - $mtoph });

            $bannerPic.css({ height: w_height - $mtoph });

            setImgMax($bannerImg, 1440, 652, w_width, w_height - $mtoph);

        } else {

            $bannerPanel.css({ height: "auto" });

            $banner.css({ height: "auto" });

            $bannerPic.css({ height: "auto" });

            $bannerImg.attr("style", "").css({ position: "relative" });

        };

        if (!isMobile) {

            setImgMax($(".inewPicUl .wimg"), 360, 333, w_width / 3.98, 333);

            setImgMax($(".iproDemo .wimg"), 360, 333, w_width / 4, 333);

        } else {

            $(".inewPicUl .wimg,.iproDemo .wimg").attr("style", "");

        };

    };

    initBox();

    jQuery(window).resize(function () {

        initBox();

    });

    var bannerSider = $('.bannerBox');



    bannerSider.bxSlider({

        auto: true,

        speed: 1000,

        controls: false

    });

});

