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 }); jquery(".inewpicul").bxslider({ mode: "fade", auto: true, speed: 500, controls: false }); jquery(".newlist").bxslider({ auto: false, pager: false, nextselector: '.newbtns .btnright', prevselector: '.newbtns .btnleft', nexttext: '', prevtext: '' }); jquery(".iprobox").mouseenter(function () { jquery(this).addclass("iproact"); jquery(this).find("p").stop(false, false).animate({ top: -10 }, 400); }).mouseleave(function () { jquery(this).removeclass("iproact"); jquery(this).find("p").stop(false, false).animate({ top: 0 }, 400); }); jquery('.iprodemo').bxslider({ auto: true, speed: 500 }); jquery(document).on('click', '#newitem a', function (e) { e.preventdefault(); var $this = jquery(this); gotopro($this, $this.attr("chref")); }); function gotopro(item, address) { $.ajax({ url: address, datatype: "html", success: function (data) { if (data == "" || data == null) { return; } else { jquery(".pusher").after(data); settimeout(function () { jquery('.framehtml').addclass("framehtmlact"); }, 100); jquery("html").addclass("open"); } }, error: function (xmlhttprequest, textstatus, errorthrown) { jquery('html').removeclass('open'); jquery('.framehtml').remove(); } }); }; jquery(document).on("click", ".infolist .paging a", function (e) { e.preventdefault(); var address = jquery(this).attr("chref"); if (address != "javascript:void(0)") { $.ajax({ url: address, datatype: "html", success: function (data) { if (data == "" || data == null) { return; } else { jquery(".frame-ct").html(data); jquery(".framehtml").animate({ scrolltop: 0 }, 200); } }, error: function (xmlhttprequest, textstatus, errorthrown) { jquery('html').removeclass('open'); jquery('.framehtml').remove(); } }); } }); });