");Fai.top.$("body").append(c);c.css({border:"1px solid #ff4400",position:"absolute","z-index":"9999",top:b.offset().top,left:b.offset().left,height:b.height()+"px",width:b.width()+"px"});var a=Fai.top.$("body").find(f);if(a.length<1){a=c}c.animate({top:a.offset().top+"px",left:a.offset().left+"px",width:a.width()+"px",height:a.height()+"px"},"slow",function(){if(typeof d=="function"){d()}c.remove()})};Fai.addPopupWindowBtn=function(h,b){var f=Fai.top.$("#popupWindow"+h);f.find(".formBtns").show();var g="popup"+h+b.id;var d=f.find(".formBtns td");var c=d.find("#"+g);if(c.length>0){c.remove()}if(b.click!="help"){if(typeof b.extClass!="undefined"){var a=b.extClass;Fai.top.$("
").appendTo(d)}else{Fai.top.$("
").appendTo(d)}}c=d.find("#"+g);if(typeof c.faiButton=="function"){c.faiButton()}if(b.callback&&Object.prototype.toString.call(b.callback)==="[object Function]"){c.click(function(){b.callback();if(Fai.isNull(b.msg)){Fai.top.Fai.closePopupWindow(h)}else{Fai.top.Fai.closePopupWindow(h,undefined,b.msg)}})}if(b.click=="close"){c.click(function(){if(Fai.isNull(b.msg)){Fai.top.Fai.closePopupWindow(h)}else{Fai.top.Fai.closePopupWindow(h,undefined,b.msg)}})}else{if(b.click=="help"){if(f.find("a.formH").length==0){f.append("
")}}else{c.click(b.click)}}if(b.disable){c.attr("disabled",true);c.faiButton("disable")}$(document).keydown(function(j){if(j.keyCode==13){var i=f.find("#popup"+h+"save"),k;if(i.length>0&&!i.prop("disabled")){k=$(":focus");if(k.is("input[type='text']")||k.is("textarea")){return}i.trigger("click")}}})};Fai.enablePopupWindowBtn=function(f,d,a){var c=Fai.top.$("#popupWindow"+f);d="popup"+f+d;var b=c.find("#"+d);if(a){b.removeAttr("disabled");if(typeof b.faiButton==="function"){b.faiButton("enable")}}else{b.attr("disabled",true);if(typeof b.faiButton==="function"){b.faiButton("disable")}}};Fai.popupBodyWindow=function(d){var s={title:"",width:500,height:300,bannerDisplay:true,opacity:"0.3",displayBg:true,window_extClass:"",bg_extClass:""};s=$.extend(s,d);var o=parseInt(s.width);var r=parseInt(s.height);var c=$("body").scrollTop();if(c==0){c=$("html").scrollTop()}var f=document.documentElement.clientWidth;if(!$.browser.msie){f=document.body.clientWidth}var i=document.documentElement.clientHeight;var w="";var t="";if(!s.bannerDisplay){w="display:none;";t="background:none;"}var g=20;if(s.leftMar!=null){g=s.leftMar}else{g=(f-o)/2}var m=20;if(s.topMar!=null){m=s.topMar}else{m=(i-r-80)/2}var q="";if(s.content!=null){q=s.content}var n=parseInt(Math.random()*10000);if(s.displayBg){Fai.bodyBg(n,s.opacity,{extClass:s.bg_extClass})}var p="left:"+g+"px; top:"+(m+c)+"px;";if(Fai.isIE6()||Fai.isIE7()){p+="width:"+o+"px;"}var b="position:relative;width:"+o+"px;height:"+r+"px;";var l=['"];$(l.join("")).appendTo("body");var k=$("#popupWindow"+n);if(Fai.isIE6()||Fai.isIE7()){var a=k.find(".formBL");var j=Fai.getCssInt(a,"padding-left")+Fai.getCssInt(a,"padding-right")+Fai.getCssInt(a,"border-left-width")+Fai.getCssInt(a,"border-right-width");var y=k.find(".formBR");var v=Fai.getCssInt(y,"padding-left")+Fai.getCssInt(y,"padding-right")+Fai.getCssInt(y,"border-left-width")+Fai.getCssInt(y,"border-right-width");var h=k.find(".formBC");var u=Fai.getCssInt(h,"padding-left")+Fai.getCssInt(h,"padding-right")+Fai.getCssInt(h,"border-left-width")+Fai.getCssInt(h,"border-right-width");var x=k.find(".formMSG");var z=Fai.getCssInt(x,"margin-left")+Fai.getCssInt(x,"margin-right")+Fai.getCssInt(x,"border-left-width")+Fai.getCssInt(x,"border-right-width");k.css("width",(o+j+v+u+z)+"px")}k.ready(function(){$(".formDialog").draggable({handle:".formTL"});$(".formTL").disableSelection();$(".formX").click(function(){if(s.beforeClose){s.beforeClose()}Fai.closePopupBodyWindow(n);Fai.top.$("#popupBgTitle"+n).remove()})});k.data("settings",s);return n};Fai.closePopupBodyWindow=function(c){if(c){Fai.removeBodyBg(c);var a=$("#popupWindow"+c);var b=a.data("settings");if(b&&typeof b.closeFunc=="function"){b.closeFunc()}a.remove();$("body").focus()}else{Fai.removeBodyBg();$(".formDialog").remove()}};Fai.addPopupBodyWindowBtn=function(i,c){var g=$("#popupWindow"+i);g.find(".formBtns").show();var h="popup"+i+c.id;var f=g.find(".formBtns td");var d=f.find("#"+h);if(d.length>0){d.remove()}if(g.find(".popupButtons").length!=1){$("").appendTo(f)}if(g.find(".popupCheckboxs").length===1){$(g.find(".popupButtons")[0]).css("margin-right","10px").css("float","right").css("margin-top","-3px");if(Fai.isIE6()){$(g.find(".popupButtons")[0]).css("margin-top","-20px")}}var a="";if(typeof c.extClass!="undefined"){var b=" "+c.extClass;a="
"}else{a="
"}$(a).appendTo($(f).find(".popupButtons"));d=f.find("#"+h);if(typeof d.faiButton=="function"){d.faiButton()}if(c.click=="close"){d.click(function(){Fai.closePopupBodyWindow(i)})}else{d.click(c.click)}if(c.disable){d.attr("disabled",true);d.faiButton("disable")}};Fai.addPopupBodyWindowCheckBox=function(h,b){var f=$("#popupWindow"+h);f.find(".formBtns").show();var g="popup"+h+b.id;var d=f.find(".formBtns td");var c=d.find("#"+g);if(c.length>0){c.remove()}var a="
";if(f.find(".popupCheckboxs").length!=1){d.removeAttr("align").css("line-height","22px");$(d.find(".popupButtons")[0]).css("margin-right","10px").css("float","right");$("").appendTo(d)}else{$(a).appendTo($(f.find(".popupCheckboxs")[0]))}if(b.init==="checked"){$("#"+g).attr("checked","checked")}c=d.find("#"+g);c.click(b.click);if(b.disable){c.attr("disabled",true)}};Fai.enablePopupBodyWindowBtn=function(f,d,a){var c=$("#popupWindow"+f);d="popup"+f+d;var b=c.find("#"+d);if(a){b.removeAttr("disabled");b.faiButton("enable")}else{b.attr("disabled",true);b.faiButton("disable")}};Fai.successHandle=function(a,i,d,g,h,b){Fai.top.$("#ing").find(".tips").remove();var j=jQuery.parseJSON(a);var c="";if(j.success){if(j.msg){c=j.msg}if(i!=""){c=i}if(c&&c!=""){if(b==0){Fai.top.Fai.removeIng(true);alert(c)}else{if(b==1){Fai.ing(c,true)}else{if(b==2){Fai.ing(c,false)}else{if(b==3){}else{Fai.top.Fai.removeIng(true);alert(c)}}}}}if(g!=""){if(h==1){g=g.replace(/#.*/,"");if(Fai.top.location.href==g){Fai.top.location.reload()}else{Fai.top.location.href=g}}else{if(h==2){g=g.replace(/#.*/,"");if(parent.location.href==g){parent.location.reload()}else{parent.location.href=g}}else{if(h==3){return j.success}else{if(h==4){Fai.fkEval(g)}else{if(h==5){if(Fai.top.location.href==g){Fai.top.location.reload()}else{Fai.top.location.href=g}}else{g=g.replace(/#.*/,"");if(document.location.href==g){document.location.reload()}else{document.location.href=g}}}}}}}}else{if(j.msg){c=j.msg}if(c==""){c=d}if(c==""){c="绯荤粺閿欒"}if(b==0){alert(c)}else{if(b==1||b==2){if(b==1&&j.rt===-4&&typeof Site!="undefined"){f(j.siteModuleLimitInfo,j.href)}else{Fai.ing(c,false)}}else{alert(c)}}}function f(o,l){var t=parseInt(Math.random()*10000);var p=[];o=o||{};l=l||"";if($.isEmptyObject(o)){return}var k=o.name;var m=o.maxLimit;var n=o.nextMaxLimit;var u=o.nextVerName;var v=false;var r="#cancel";if(n===0&&u===""){v=true;r="#cancel, #confirm"}p.push("
");p.push("
");p.push("");p.push("");p.push("
");p.push("
");p.push("
");p.push("
");if(v){p.push("鎮ㄥ凡杈惧埌鐗堟湰鑷畾涔夋ā鍧楁暟閲忛檺鍒讹紝鏃犳硶缁х画娣诲姞妯″潡銆?)}else{p.push("鎮ㄥ凡杈惧埌
"+k+"鑷畾涔夋ā鍧?+m+"涓紝鍗囩骇
"+u+"鍙墿瀹瑰埌"+n+"涓€?)}p.push("
");p.push("
锛堝鏋滄偍宸插垹闄ゆā鍧楋紝璇蜂繚瀛樼綉绔欒璁″悗鍐嶆坊鍔狅級
");p.push("
");p.push("
");p.push("
");p.push("
");p.push("
");var w={boxId:t,htmlContent:p.join(""),width:580,height:420};var s=Site.popupBox(w);var q=s.find("button");Site.logDog(200355,2);s.on("click",r,function(){s.find(".popupBClose").click()});q.hover(function(){$(this).css({background:"#5874d8","border-color":"#5874d8",color:"#fff"});$(this).find("a").css({"border-color":"#5874d8",color:"#fff"})},function(){$(this).css({background:"#fff","border-color":"#e3e2e8",color:"#333"});$(this).find("a").css({"border-color":"#e3e2e8",color:"#333"})})}return j.success};$(function(){try{Number.prototype.toFixed=function(f){var c=(parseInt(Math.round(this*Math.pow(10,f)+Math.pow(10,-(f+2))))/Math.pow(10,f)).toString();var b=c.indexOf(".");var d;if(b<0&&f>0){c=c+".";for(d=0;d
=b){return false}}}});if(a>=b){setTimeout("Fai.doDelayLoadImg("+b+")",200)}};Fai.doDelayLoadMaterial=function(c){var b=0;var a=[];$("img").each(function(){var f=$(this).attr("faiSrc");if(!Fai.isNull(f)&&f!=""){if(f!=$(this).attr("src")){++b;$(this).show();$(this).attr("src",f);var d=parseInt($(this).attr("dog"));if(!isNaN(d)){a.push(d)}if(b>=c){return false}}}});if(a.length!=0){Site.logDog(200167,$.toJSON(a))}if(b>=c){setTimeout("Fai.doDelayLoadMaterial("+c+")",200)}};Fai.refreshClass=function(a){a.children().each(function(){$(this).attr("class",$(this).attr("class"));Fai.refreshClass($(this))})};Fai.addInterval=function(d,c,a){if(Fai.isNull(Fai.intervalFunc)){Fai.intervalFunc=new Array()}for(var b=0;b");if(c.closeSwitch){a.push("");a.push("
")}else{a.push("
")}a.push(c.content);a.push("
");var d=a.join("");var b={content:d,className:"tip-yellowsimple",showTimeout:1,hideTimeout:0,alignTo:"target",alignX:"center",alignY:"top",offsetY:5,showOn:"none",hideAniDuration:0,id:"tip-yellowsimple"+parseInt(Math.random()*10000)};if(c.id){$.extend(b,{id:c.id})}if(c.showMode){if(c.showMode=="left"){$.extend(b,{alignX:"left",alignY:"center",offsetY:0,offsetX:5})}else{if(c.showMode=="right"){$.extend(b,{alignX:"right",alignY:"center",offsetY:0,offsetX:5})}else{if(c.showMode=="top"){$.extend(b,{alignX:"center",alignY:"top",offsetY:0,offsetX:5})}else{if(c.showMode=="bottom"){$.extend(b,{alignX:"center",alignY:"bottom",offsetY:0,offsetX:5})}}}}}if(c.data){$.extend(b,c.data)}if(c.appendToId){$.extend(b,{appendToId:c.appendToId})}if(c.autoLocation){$.extend(b,{autoLocation:c.autoLocation})}if(c.cusStyle){$.extend(b,{cusStyle:c.cusStyle})}var f=$(c.tid);f.poshytip("destroy");f.poshytip(b);f.poshytip("show");if(c.cls){$("#"+b.id).addClass(c.cls)}$("#"+b.id).find(".tip-btnClose").live("click",function(){if(c.beforeClose){c.beforeClose()}Fai.closeTip(c.tid)});if(c.autoTimeout){window.setTimeout(function(){if(c.beforeClose){c.beforeClose()}Fai.closeTip(c.tid)},c.autoTimeout)}};Fai.closeTip=function(a){if(typeof $(a).poshytip=="function"){$(a).poshytip("destroy")}};Fai.refreshTip=function(a){$(a).poshytip("hide");$(a).poshytip("show")};Fai.rgb2hex=function(b){if(b.charAt(0)=="#"){return b}var d=b.split(/\D+/);var a=Number(d[1])*65536+Number(d[2])*256+Number(d[3]);var c=a.toString(16);while(c.length<6){c="0"+c}return"#"+c};Fai.int2hex=function(a){var b=a.toString(16);while(b.length<6){b="0"+b}return"#"+b};(function(){Fai.setCtrlStyleCss=function(d,c,m,l,k){var b=$("#"+d);var j=new Array();if(b.length==1){var h=b.html();h=h.replace(/{\r\n/g,"{").replace(/\t/g,"").replace(/\r\n}/g,";}");j=h.split("\n");b.remove()}var f=new RegExp("#"+c+" +"+a(m)+" *{ *"+l+"s*:[^;]*;","gi");if(c==""||c=="undefined"){f=new RegExp(a(m)+" *{ *"+l+"s*:[^;]*;","gi")}for(var g=j.length-1;g>=0;--g){var n=j[g];if(n.length==0||/^\s$/.test(n)||f.test(n)){j.splice(g,1)}}if(c==""||c=="undefined"){j.push(m+"{"+l+":"+k+";}")}else{j.push("#"+c+" "+m+"{"+l+":"+k+";}")}$("head").append('")};Fai.setCtrlStyleCssList=function(d,c,k,q){var b=$("#"+d);var l=new Array();var g;if(b.length==1){var j=b.html();j=j.replace(/{\r\n/g,"{").replace(/\t/g,"").replace(/\r\n}/g,";}");l=j.split("\n");b.remove()}for(var h=l.length-1;h>=0;--h){var p=l[h];for(g=0;g
'+l.join("\n")+"")};Fai.getCtrlStyleCss=function(f,d,l,k){var c=$("#"+f);if(c.length==0){return""}var j=c.html().split("\n");var g=new RegExp("#"+d+" +"+a(l)+" *{ *"+k+"[^;]*;","gi");if(d==""||d=="undefined"){g=new RegExp(a(l)+" *{ *"+k+"[^;]*;","gi")}for(var h=j.length-1;h>=0;--h){var m=j[h];var b=m.match(g);if(b&&b.length>=2){return b[1]}}return""};Fai.removeCtrlStyleCss=function(d,c,l,k){var b=$("#"+d);var j=new Array();if(b.length==1){var h=b.html();h=h.replace(/{\r\n/g,"{").replace(/\t/g,"").replace(/\r\n}/g,";}");j=h.split("\n");b.remove()}var f=new RegExp("#"+c+" +"+a(l)+" *{ *"+k+"s*:[^;]*;","gi");if(c==""||c=="undefined"){f=new RegExp(a(l)+" *{ *"+k+"s*:[^;]*;","gi")}for(var g=j.length-1;g>=0;--g){var m=j[g];if(m.length==0||/^\s$/.test(m)||f.test(m)){j.splice(g,1)}}$("head").append('")};Fai.removeCtrlStyleCssList=function(d,c,k){var b=$("#"+d);var l=new Array();if(b.length==1){var j=b.html();j=j.replace(/{\r\n/g,"{").replace(/\t/g,"").replace(/\r\n}/g,";}");l=j.split("\n");b.remove()}for(var h=l.length-1;h>=0;--h){var p=l[h];for(var g=0;g'+l.join("\n")+"")};function a(c){var f=["\\",".","?","$","*","^","[","]","{","}","|","(",")","/"];for(var d=0,b=f.length;d'+f.join("\n")+"")};Fai.scrollTop=function(){Fai.top.$("#g_main").animate({scrollTop:0},{duration:500,easing:"swing"});Fai.top.$("html, body").animate({scrollTop:0},{duration:500,easing:"swing"})};Fai.addBookmark=function(d,a){d=d==""?document.title:d;a=a==""?"http://"+window.location.host:a;try{try{window.sidebar.addPanel(d,a,"")}catch(b){window.external.AddFavorite(a,d)}}catch(c){alert("鏀惰棌缃戠珯澶辫触锛岃浣跨敤Ctrl+D杩涜娣诲姞銆?)}};Fai.singleTextAreaAddMaxLength=function(b,a){if(typeof b!="undefined"&&typeof a!="undefined"){var c=$("#"+b);c.attr("maxlength",a);c.bind("keydown keyup change blur",function(){var d=c.val();var g=d.length;if(g>a){var f=d.substr(0,a);c.val(f)}})}};Fai.parseFileSize=function(c){if(typeof c!="undefined"&&typeof c=="number"){var b;var a;if(c<1024){b=c+"B"}else{if(c<1024*1024){a=c/1024;b=a.toFixed(2)+"KB"}else{a=c/(1024*1024);b=a.toFixed(2)+"MB"}}return b}else{return"-"}};Fai.compareObj=function(c,a,b){if(c===""){if(a===""){return 0}return 1}if(a===""){return -1}if(!isNaN(c)){if(!isNaN(a)){c=Math.floor(c);a=Math.floor(a)}else{if(b){return 1}else{return -1}}}else{if(!isNaN(a)){if(b){return -1}else{return 1}}}if(c>a){if(b){return -1}else{return 1}}else{if(c==a){return 0}else{if(b){return 1}else{return -1}}}};Fai.getScrollWidth=function(){var a;var b=document.createElement("div");b.style.cssText="overflow:scroll; width:100px; height:100px; background:transparent;";document.body.appendChild(b);a=b.offsetWidth-b.clientWidth;document.body.removeChild(b);return a};(function(a){a.cookie=function(f,g,c){if(arguments.length>1&&(g===null||typeof g!=="object")){c=a.extend({},c);if(g===null){c.expires=-1}if(typeof c.expires==="number"){var i=c.expires,d=c.expires=new Date();d.setDate(d.getDate()+i)}return(document.cookie=[encodeURIComponent(f),"=",c.raw?String(g):encodeURIComponent(String(g)),c.expires?"; expires="+c.expires.toUTCString():"",c.path?"; path="+c.path:"",c.domain?"; domain="+c.domain:"",c.secure?"; secure":""].join(""))}c=g||{};var b,h=c.raw?function(j){return j}:decodeURIComponent;return(b=new RegExp("(?:^|; )"+encodeURIComponent(f)+"=([^;]*)").exec(document.cookie))?h(b[1]):null}})(jQuery);(function(c){var b=/["\\\x00-\x1f\x7f-\x9f]/g,d={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},a=Object.prototype.hasOwnProperty;c.toJSON=function(h){if(h===null){return"null"}var g,l,f,i,q=c.type(h);if(q==="undefined"){return undefined}if(q==="number"||q==="boolean"){return String(h)}if(q==="string"){return c.quoteString(h)}if(typeof h.toJSON==="function"){return c.toJSON(h.toJSON())}if(q==="date"){var n=h.getUTCMonth()+1,r=h.getUTCDate(),p=h.getUTCFullYear(),s=h.getUTCHours(),j=h.getUTCMinutes(),t=h.getUTCSeconds(),m=h.getUTCMilliseconds();if(n<10){n="0"+n}if(r<10){r="0"+r}if(s<10){s="0"+s}if(j<10){j="0"+j}if(t<10){t="0"+t}if(m<100){m="0"+m}if(m<10){m="0"+m}return'"'+p+"-"+n+"-"+r+"T"+s+":"+j+":"+t+"."+m+'Z"'}g=[];if(c.isArray(h)){for(l=0;l=12?"PM":"AM";t="";break;case" ":q+=v;t="";break;case"/":q+=v;t="";break;case":":q+=v;t="";break;default:if(t.length===2&&t.indexOf("y")!==0&&t!="SS"){q+=t.substring(0,1);t=t.substring(1,2)}else{if((t.length===3&&t.indexOf("yyy")===-1)){t=""}}}}return q}catch(r){return y}}}}())}(jQuery));(function(b,a){var c=b(a);b.fn.lazyload=function(d){var f={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:a,data_attribute:"original",skip_invisible:true,appear:null,load:null,lazyRemoveclass:""};if(d){if(undefined!==d.failurelimit){d.failure_limit=d.failurelimit;delete d.failurelimit}if(undefined!==d.effectspeed){d.effect_speed=d.effectspeed;delete d.effectspeed}b.extend(f,d)}var g=this;if(0==f.event.indexOf("scroll")){b(f.container).off("scroll.lazy");b(f.container).on("scroll.lazy",function(){var h=0;g.each(function(){var i=b(this);if(f.skip_invisible&&!i.is(":visible")){return}if(b.abovethetop(this,f)||b.leftofbegin(this,f)){}else{if(!b.belowthefold(this,f)&&!b.rightoffold(this,f)){i.trigger("appear")}else{if(++h>f.failure_limit){}}}})})}this.each(function(){var h=this;var i=b(h);h.loaded=false;i.one("appear",function(){if(!this.loaded){if(f.appear){var j=g.length;f.appear.call(h,j,f)}b("").bind("load",function(){i.hide().removeClass(f.lazyRemoveclass).attr("src",i.data(f.data_attribute));i[f.effect](f.effect_speed);h.loaded=true;var k=b.grep(g,function(m){return !m.loaded});g=b(k);if(f.load){var l=g.length;f.load.call(h,l,f)}b(this).unbind("load")}).attr("src",i.data(f.data_attribute)).removeClass(f.lazyRemoveclass)}});if(0!=f.event.indexOf("scroll")){i.bind(f.event,function(){if(!h.loaded){i.trigger("appear")}})}});c.bind("resize",function(){b(f.container).trigger(f.event)});b(f.container).trigger(f.event);return this};b.belowthefold=function(f,g){var d;if(g.container===undefined||g.container===a){d=c.height()+c.scrollTop()}else{d=b(g.container).offset().top+b(g.container).height()}return d<=b(f).offset().top-g.threshold};b.rightoffold=function(f,g){var d;if(g.container===undefined||g.container===a){d=c.width()+c.scrollLeft()}else{d=b(g.container).offset().left+b(g.container).width()}return d<=b(f).offset().left-g.threshold};b.abovethetop=function(f,g){var d;if(g.container===undefined||g.container===a){d=c.scrollTop()}else{d=b(g.container).offset().top}return d>=b(f).offset().top+g.threshold+b(f).height()};b.leftofbegin=function(f,g){var d;if(g.container===undefined||g.container===a){d=c.scrollLeft()}else{d=b(g.container).offset().left}return d>=b(f).offset().left+g.threshold+b(f).width()};b.inviewport=function(d,f){return !b.rightofscreen(d,f)&&!b.leftofscreen(d,f)&&!b.belowthefold(d,f)&&!b.abovethetop(d,f)};b.extend(b.expr[":"],{"below-the-fold":function(d){return b.belowthefold(d,{threshold:0,container:a})},"above-the-top":function(d){return !b.belowthefold(d,{threshold:0,container:a})},"right-of-screen":function(d){return b.rightoffold(d,{threshold:0,container:a})},"left-of-screen":function(d){return !b.rightoffold(d,{threshold:0,container:a})},"in-viewport":function(d){return !b.inviewport(d,{threshold:0,container:a})},"above-the-fold":function(d){return !b.belowthefold(d,{threshold:0,container:a})},"right-of-fold":function(d){return b.rightoffold(d,{threshold:0,container:a})},"left-of-fold":function(d){return !b.rightoffold(d,{threshold:0,container:a})}})})(jQuery,window);(function(a){a.flag=function(k,m,j){if(typeof k!="number"){return null}var f={key:0,digit:32,options:"",setBoolean:""};var c;var h;if(m||m===0){a.extend(f,{key:k,options:m,setBoolean:j});if(typeof m==="number"){if(typeof f.setBoolean!="boolean"){if(f.options>=0&&f.options=0&&f.options0||l.length>0)){var b={};for(h=0;h>16)+(z>>16)+(w>>16);return(v<<16)|(w&65535)}function s(u,v){return(u<>>(32-v))}function c(A,w,v,u,z,y){return o(s(o(o(w,A),o(u,y)),z),v)}function b(w,v,B,A,u,z,y){return c((v&B)|((~v)&A),w,v,u,z,y)}function i(w,v,B,A,u,z,y){return c((v&A)|(B&(~A)),w,v,u,z,y)}function n(w,v,B,A,u,z,y){return c(v^B^A,w,v,u,z,y)}function a(w,v,B,A,u,z,y){return c(B^(v|(~A)),w,v,u,z,y)}function d(F,A){F[A>>5]|=128<<((A)%32);F[(((A+64)>>>9)<<4)+14]=A;var w,z,y,v,u,E=1732584193,D=-271733879,C=-1732584194,B=271733878;for(w=0;w>5]>>>(w%32))&255)}return u}function j(v){var w,u=[];u[(v.length>>2)-1]=undefined;for(w=0;w>5]|=(v.charCodeAt(w/8)&255)<<(w%32)}return u}function k(u){return p(d(j(u),u.length*8))}function f(w,z){var v,y=j(w),u=[],x=[],A;u[15]=x[15]=undefined;if(y.length>16){y=d(y,w.length*8)}for(v=0;v<16;v+=1){u[v]=y[v]^909522486;x[v]=y[v]^1549556828}A=d(u.concat(j(z)),512+z.length*8);return p(d(x.concat(A),512+128))}function t(w){var z="0123456789abcdef",v="",u,y;for(y=0;y>>4)&15)+z.charAt(u&15)}return v}function m(u){return unescape(encodeURIComponent(u))}function q(u){return k(m(u))}function l(u){return t(q(u))}function h(u,v){return f(m(u),m(v))}function r(u,v){return t(h(u,v))}g.md5=function(v,w,u){if(!w){if(!u){return l(v)}else{return q(v)}}if(!u){return r(w,v)}else{return h(w,v)}}}(typeof jQuery==="function"?jQuery:this));(function(a){a.fn.numeric=function(d,f){if(typeof d==="boolean"){d={decimal:d}}d=d||{};if(typeof d.negative=="undefined"){d.negative=true}var b=(d.decimal===false)?"":d.decimal||".";var c=(d.negative===true);f=(typeof(f)=="function"?f:function(){});return this.data("numeric.decimal",b).data("numeric.negative",c).data("numeric.callback",f).keypress(a.fn.numeric.keypress).keyup(a.fn.numeric.keyup).blur(a.fn.numeric.blur)};a.fn.numeric.keypress=function(h){var b=a.data(this,"numeric.decimal");var c=a.data(this,"numeric.negative");var d=h.charCode?h.charCode:h.keyCode?h.keyCode:0;if(d==13&&this.nodeName.toLowerCase()=="input"){return true}else{if(d==13){return false}}var f=false;if((h.ctrlKey&&d==97)||(h.ctrlKey&&d==65)){return true}if((h.ctrlKey&&d==120)||(h.ctrlKey&&d==88)){return true}if((h.ctrlKey&&d==99)||(h.ctrlKey&&d==67)){return true}if((h.ctrlKey&&d==122)||(h.ctrlKey&&d==90)){return true}if((h.ctrlKey&&d==118)||(h.ctrlKey&&d==86)||(h.shiftKey&&d==45)){return true}if(d<48||d>57){var g=a(this).val();if(g.indexOf("-")!==0&&c&&d==45&&(g.length===0||parseInt(a.fn.getSelectionStart(this),10)===0)){return true}if(b&&d==b.charCodeAt(0)&&g.indexOf(b)!=-1){f=false}if(d!=8&&d!=9&&d!=13&&d!=35&&d!=36&&d!=37&&d!=39&&d!=46){f=false}else{if(typeof h.charCode!="undefined"){if(h.keyCode==h.which&&h.which!==0){f=true;if(h.which==46){f=false}}else{if(h.keyCode!==0&&h.charCode===0&&h.which===0){f=true}}}}if(b&&d==b.charCodeAt(0)){if(g.indexOf(b)==-1){f=true}else{f=false}}}else{f=true}return f};a.fn.numeric.keyup=function(){var l=a(this).val();if(l&&l.length>0){var f=a.fn.getSelectionStart(this);var t=a.fn.getSelectionEnd(this);var q=a.data(this,"numeric.decimal");var n=a.data(this,"numeric.negative");if(q!==""&&q!==null){var d=l.indexOf(q);if(d===0){this.value="0"+l}if(d==1&&l.charAt(0)=="-"){this.value="-0"+l.substring(1)}l=this.value}var c=[0,1,2,3,4,5,6,7,8,9,"-",q];var h=l.length;for(var p=h-1;p>=0;p--){var b=l.charAt(p);if(p!==0&&b=="-"){l=l.substring(0,p)+l.substring(p+1)}else{if(p===0&&!n&&b=="-"){l=l.substring(1)}}var g=false;for(var o=0;o0){for(var m=h-1;m>r;m--){var s=l.charAt(m);if(s==q){l=l.substring(0,m)+l.substring(m+1)}}}this.value=l;a.fn.setSelection(this,[f,t])}};a.fn.numeric.blur=function(){var b=a.data(this,"numeric.decimal");var f=a.data(this,"numeric.callback");var d=this.value;if(d!==""){var c=new RegExp("^\\d+$|^\\d*"+b+"\\d+$");if(!c.exec(d)){f.apply(this)}}};a.fn.removeNumeric=function(){return this.data("numeric.decimal",null).data("numeric.negative",null).data("numeric.callback",null).unbind("keypress",a.fn.numeric.keypress).unbind("blur",a.fn.numeric.blur)};a.fn.getSelectionStart=function(c){if(c.createTextRange){var b=document.selection.createRange().duplicate();b.moveEnd("character",c.value.length);if(b.text===""){return c.value.length}return c.value.lastIndexOf(b.text)}else{return c.selectionStart}};a.fn.getSelectionEnd=function(c){if(c.createTextRange){var b=document.selection.createRange().duplicate();b.moveStart("character",-c.value.length);return b.text.length}else{return c.selectionEnd}};a.fn.setSelection=function(d,c){if(typeof c=="number"){c=[c,c]}if(c&&c.constructor==Array&&c.length==2){if(d.createTextRange){var b=d.createTextRange();b.collapse(true);b.moveStart("character",c[0]);b.moveEnd("character",c[1]);b.select()}else{if(d.setSelectionRange){d.focus();d.setSelectionRange(c[0],c[1])}}}}})(jQuery);(function(d,c){var a,b;d.uaMatch=function(h){h=h.toLowerCase();var g=/(opr)[\/]([\w.]+)/.exec(h)||/(chrome)[ \/]([\w.]+)/.exec(h)||/(webkit)[ \/]([\w.]+)/.exec(h)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(h)||/(msie) ([\w.]+)/.exec(h)||h.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(h)||h.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(h)||[];var f=/(ipad)/.exec(h)||/(iphone)/.exec(h)||/(android)/.exec(h)||[];return{browser:g[1]||"",version:g[2]||"0",platform:f[0]||""}};a=d.uaMatch(c.navigator.userAgent);b={};if(a.browser){b[a.browser]=true;b.version=a.version}if(a.platform){b[a.platform]=true}if(b.chrome||b.opr){b.webkit=true}else{if(b.webkit){b.safari=true}}if(b.rv){b.msie=true}if(b.opr){b.opera=true}d.browser=b})(jQuery,window);(function(a){a.fn.removeCss=function(c){var b=[];var d=a.type(c);if(d==="array"){b=c}else{if(d==="object"){for(var f in c){b.push(f)}}else{if(d==="string"){b=c.replace(/,$/,"").split(",")}}}return this.each(function(){var g=a(this);a.map(b,function(h){g.css(h,"")})})}})(jQuery);(function(a){a.extend(a.fn,{livequery:function(f,d,c){var b=this,g;if(a.isFunction(f)){c=d,d=f,f=undefined}a.each(a.livequery.queries,function(h,j){if(b.selector==j.selector&&b.context==j.context&&f==j.type&&(!d||d.$lqguid==j.fn.$lqguid)&&(!c||c.$lqguid==j.fn2.$lqguid)){return(g=j)&&false}});g=g||new a.livequery(this.selector,this.context,f,d,c);g.stopped=false;g.run();return this},expire:function(f,d,c){var b=this;if(a.isFunction(f)){c=d,d=f,f=undefined}a.each(a.livequery.queries,function(g,h){if(b.selector==h.selector&&b.context==h.context&&(!f||f==h.type)&&(!d||d.$lqguid==h.fn.$lqguid)&&(!c||c.$lqguid==h.fn2.$lqguid)&&!this.stopped){a.livequery.stop(h.id)}});return this}});a.livequery=function(b,d,g,f,c){this.selector=b;this.context=d;this.type=g;this.fn=f;this.fn2=c;this.elements=[];this.stopped=false;this.id=a.livequery.queries.push(this)-1;f.$lqguid=f.$lqguid||a.livequery.guid++;if(c){c.$lqguid=c.$lqguid||a.livequery.guid++}return this};a.livequery.prototype={stop:function(){var b=this;if(this.type){this.elements.unbind(this.type,this.fn)}else{if(this.fn2){this.elements.each(function(c,d){b.fn2.apply(d)})}}this.elements=[];this.stopped=true},run:function(){if(this.stopped){return}var d=this;var f=this.elements,c=a(this.selector,this.context),b=c.not(f);this.elements=c;if(this.type){b.bind(this.type,this.fn);if(f.length>0){a.each(f,function(g,h){if(a.inArray(h,c)<0){a.event.remove(h,d.type,d.fn)}})}}else{b.each(function(){d.fn.apply(this)});if(this.fn2&&f.length>0){a.each(f,function(g,h){if(a.inArray(h,c)<0){d.fn2.apply(h)}})}}}};a.extend(a.livequery,{guid:0,queries:[],queue:[],running:false,timeout:null,checkQueue:function(){if(a.livequery.running&&a.livequery.queue.length){var b=a.livequery.queue.length;while(b--){a.livequery.queries[a.livequery.queue.shift()].run()}}},pause:function(){a.livequery.running=false},play:function(){a.livequery.running=true;a.livequery.run()},registerPlugin:function(){a.each(arguments,function(c,d){if(!a.fn[d]){return}var b=a.fn[d];a.fn[d]=function(){var f=b.apply(this,arguments);a.livequery.run();return f}})},run:function(b){if(b!=undefined){if(a.inArray(b,a.livequery.queue)<0){a.livequery.queue.push(b)}}else{a.each(a.livequery.queries,function(c){if(a.inArray(c,a.livequery.queue)<0){a.livequery.queue.push(c)}})}if(a.livequery.timeout){clearTimeout(a.livequery.timeout)}a.livequery.timeout=setTimeout(a.livequery.checkQueue,20)},stop:function(b){if(b!=undefined){a.livequery.queries[b].stop()}else{a.each(a.livequery.queries,function(c){a.livequery.queries[c].stop()})}}});a.livequery.registerPlugin("append","prepend","after","before","wrap","attr","removeAttr","addClass","removeClass","toggleClass","empty","remove","html");a(function(){a.livequery.play()})})(jQuery);Fai.compareObjNew=function(h,g,a,d,f){var c=h[d];var b=g[d];if(typeof c==="undefined"||typeof b==="undefined"){return}if(f==="number"){return Fai.ber(c,b,a)}if(Fai.isIE6()||Fai.isIE7()||Fai.isIE8()){return Fai.compareObjLocale(h,g,a,d)}return Fai.compareStrings(c,b,a)};Fai.compareObjLocale=function(g,f,a,d){var c=g[d];var b=f[d];if(typeof c==="number"||typeof c==="boolean"){c=c.toString()}if(typeof b==="number"||typeof b==="boolean"){b=b.toString()}if(a=="asc"){return c.localeCompare(b)}else{return b.localeCompare(c)}};Fai.ber=function(c,b,a){if(c===b){return 0}if(a=="asc"){return c>b?1:-1}else{return c>b?-1:1}};Fai.compareStrings=function(i,h,c){if(typeof i==="number"||typeof i==="boolean"){i=i.toString()}if(typeof h==="number"||typeof h==="boolean"){h=h.toString()}var j={str1:i,str2:h,len1:i.length,len2:h.length,pos1:0,pos2:0};var k=0;while(k==0&&j.pos1= 0x80 (not a basic code point)","invalid-input":"Invalid input"};function a(z,x,y){var w=0;z=y?s(z/j):z>>1;z+=s(z/x);for(;z>d*m>>1;w+=i){z=s(z/d)}return s(w+(d+1)*z/(z+f))}function h(z){var y=[],x=0,A=z.length,B,w;while(x=55296&&B<=56319&&x65535){y-=65536;x+=r(y>>>10&1023|55296);y=56320|y&1023}x+=r(y);return x}).join("")}function t(y,w){var x=y.length;while(x--){y[x]=w(y[x])}return y}function g(I){var z,K,F,x,G,E,A,w,D,M,J,y=[],C,B,L,H;I=h(I);C=I.length;z=c;K=0;G=l;for(E=0;E=z&&Js((o-K)/B)){throw RangeError(n.overflow)}K+=(A-z)*B;z=A;for(E=0;Eo){throw RangeError(n.overflow)}if(J==z){for(w=K,D=i;;D+=i){M=D<=G?k:(D>=G+m?m:D-G);if(w=128){throw RangeError(n["not-basic"])}z.push(J.charCodeAt(D))}for(H=B>0?B+1:0;H=C){throw RangeError(n["invalid-input"])}I=b(J.charCodeAt(H++));if(I>=i||I>s((o-F)/K)){throw RangeError(n.overflow)}F+=I*K;M=A<=G?k:(A>=G+m?m:A-G);if(Is(o/L)){throw RangeError(n.overflow)}K*=L}E=z.length+1;G=a(F-x,E,x==0);if(s(F/E)>o-y){throw RangeError(n.overflow)}y+=s(F/E);F%=E;z.splice(F++,0,y)}return u(z)}return{encode:g,decode:p}}();Fai.isFontIcon=function(a){if(!a||a.length==0||a.length<"FontIcon_".length){return false}return a.substring(0,"NewFontIcon_".length)=="NewFontIcon_"||a.substring(0,"FontIcon_".length)=="FontIcon_"};Fai.getLanCode=function(){var c=top.Fai.top._lcid,b="";c=c?c:2052;if(c==2052){b="cn"}if(c==1033){b="en"}else{if(c==1028){b="tcn"}else{if(c==1041){b="jp"}else{if(c==1042){b="kor"}else{if(c==1108){b="lo"}else{if(c==1054){b="th"}else{if(c==11274){b="es"}else{if(c==1049){b="ru"}else{if(c==1036){b="fra"}else{if(c==1040){b="it"}else{if(c==1031){b="de"}}}}}}}}}}}if(!String.prototype.startsWith){String.prototype.startsWith=function(f,d){d=d||0;return this.indexOf(f,d)===d}}var a=window.location.pathname;if(!a.startsWith("/"+b)){b=""}return b};Fai.formatPriceEn=function(d,c,k){c=((c>=0&&c<=20)?c:2);if(k){d=parseFloat((d+"").replace(/[^\d\.-]/g,""))+""}else{d=parseFloat((d+"").replace(/[^\d\.-]/g,"")).toFixed(c)+""}if(c==0||(k&&d.indexOf(".")<0)){var j=d.split("").reverse(),g="";for(b=0;b