$define("wgt_readyload",["wgt_util"],function(h){var v=!1,l=0,c=!1;window.tenant&&window.tenant.createtime&&(c=1538928000194<=window.tenant.createtime.time);var f=!!h("body").attr("data-loadnew");if(h("body").attr("data-layout")!=undefined)var g=!h.isabsstyle();var u=function(){var t=h("div[id^='w_fbox'] .w_fbox").css("margin-top");return math.abs(t&&t.replace("px",""))||h(document).scrolltop()},p=u();h(".p_fbox").length&&isfrontenv()&&h("div[id^='c_'],div[id^='w_']",".w_fbox-001 .p_fboxchild:not(:first)").filter("div[data-animation]").css("visibility","hidden");var i=function(e,t){var i=e.attr("id").replace("c_",""),r=i.split("-"),n=(r[r.length-1],r[0].split("_")),o=window.location.search;-1!=o.indexof("?")&&(o=o.replace("?","&")),compurl="/comp/"+n[0]+"/"+n[1]+"?compid="+i+o,h.ajax({url:compurl,type:"get",datatype:"html",cache:!1,error:function(){},success:function(t){e.empty().html(t)}})},e={defobj:"body",defheight:0};window.doscroll=function(t){n(e)};var m=function(){document;var t=u();return h(window).height()+1*t},r=function(t,n){n="string"==typeof n?h("#"+n):undefined;var e=h(document).outerheight(!0);n||function c(){for(var t=document.documentelement.clientheight||window.screen.height,e=h("div[id^='c_'],div[id^='w_']",n).filter("div[data-animation]"),i=0;ir.offset().top&&r.attr("animated","true")}}();var i=h("div[id^='c_'],div[id^='w_']",n).filter("div[data-animation]").not("div[animated='true']"),d="animated",s={times:"once",style:"item_hide"};p=u();for(var r=0;r=t.top||-1!=t.id.indexof("ads_banner"))return!0;t.left>n||t.right=n&&(n=t.right))}),i}(t)}(r);o.each(function(e){var i=o.eq(e);if("false"==i.children("div").attr("resetcomp")||"fixed"==i.css("position")||-1!=i.attr("id").indexof("ads_banner")||-1!=i.attr("id").indexof("customer_nav")||-1!=i.attr("id").indexof("nav_main"))return!0;d(i),t=parseint(i.css("top"))||i.offset().top,i.css("top",t+n+"px"),i.attr("compmoved",n),i.attr("targetcomp",r.attr("id"))})}},d=function(t){t.hasclass("item_hide")&&t.removeclass("item_hide")},_=function(t){var e=o(t),i=t.attr("min-height"),r=t.outerheight(!0);return null!=i&&0!=i||(t.attr("min-height",t.outerheight(!0)),i=r),e.pagebox").children("div[id^='w_sfbox']").length)&&v){var i,r=t;null==r&&(r=h("div[id^='c_']")),r.each(function(t){if("false"==(i=r.eq(t)).children("div").attr("resetcomp")||"fixed"==i.css("position")||-1!=i.attr("id").indexof("ads_banner")||-1!=i.attr("id").indexof("customer_nav")||-1!=i.attr("id").indexof("nav_main"))return!0;d(i);var e=_(i);if(i.css("height",i.outerheight(!0)+e),0==e)return!0;a(i,e)});var e=h(".pagebox").children("div[id^='w_bbox']");if(1<=e.length){var n=document.documentelement.clientheight,o=function s(){var t=0,e=h();e=(e=e.add(h(".pagebox").children("div[id^='w_']").not("div[id^='w_bbox']"))).add(h(".pagebox").find("div[id^='c_']"));for(var i=0,r=0;re.outerheight(!0)+o&&(o=n-e.outerheight(!0)),o-=h(".newyear_img .p_headbox").height()||0,e.css("top",o)}}},removecache:function(t){for(var e in t)comp=t[e],i(comp)},ainimate:function(e){var t=function(t){r(t,e)};h(window).off("scroll",t).on("scroll",t),h(window).off("resize",t).on("resize",t),t()}}});