text: !function(e,t){var n=e.document,i=e.navigator,r=e.location;var a=function(){var r=function(e,t){return new r.fn.init(e,t,s)},a=e.jQuery,o=e.$,s,l=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,f=/\S/,u=/^\s+/,c=/\s+$/,d=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,p=/^[\],:{}\s]*$/,h=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,m=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,g=/(?:^|:|,)(?:\s*\[)+/g,y=/(webkit)[ \/]([\w.]+)/,v=/(opera)(?:.*version)?[ \/]([\w.]+)/,b=/(msie) ([\w.]+)/,x=/(mozilla)(?:.*? rv:([\w.]+))?/,w=/-([a-z]|[0-9])/gi,T=/^-ms-/,N=function(e,t){return(t+"").toUpperCase()},C=i.userAgent,E,k,S,A=Object.prototype.toString,L=Object.prototype.hasOwnProperty,j=Array.prototype.push,F=Array.prototype.slice,D=String.prototype.trim,M=Array.prototype.indexOf,O={};r.fn=r.prototype={constructor:r,init:function(e,i,a){var o,s,f,u;if(!e){return this}if(e.nodeType){this.context=this[0]=e;this.length=1;return this}if(e==="body"&&!i&&n.body){this.context=n;this[0]=n.body;this.selector=e;this.length=1;return this}if(typeof e==="string"){if(e.charAt(0)==="<"&&e.charAt(e.length-1)===">"&&e.length>=3){o=[null,e,null]}else{o=l.exec(e)}if(o&&(o[1]||!i)){if(o[1]){i=i instanceof r?i[0]:i;u=i?i.ownerDocument||i:n;f=d.exec(e);if(f){if(r.isPlainObject(i)){e=[n.createElement(f[1])];r.fn.attr.call(e,i,true)}else{e=[u.createElement(f[1])]}}else{f=r.buildFragment([o[1]],[u]);e=(f.cacheable?r.clone(f.fragment):f.fragment).childNodes}return r.merge(this,e)}else{s=n.getElementById(o[2]);if(s&&s.parentNode){if(s.id!==o[2]){return a.find(e)}this.length=1;this[0]=s}this.context=n;this.selector=e;return this}}else{if(!i||i.jquery){return(i||a).find(e)}else{return this.constructor(i).find(e)}}}else{if(r.isFunction(e)){return a.ready(e)}}if(e.selector!==t){this.selector=e.selector;this.context=e.context}return r.makeArray(e,this)},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(e){return e==null?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e,t,n){var i=this.constructor();if(r.isArray(e)){j.apply(i,e)}else{r.merge(i,e)}i.prevObject=this;i.context=this.context;if(t==="find"){i.selector=this.selector+(this.selector?" ":"")+n}else{if(t){i.selector=this.selector+"."+t+"("+n+")"}}return i},each:function(e,t){return r.each(this,e,t)},ready:function(e){r.bindReady();k.add(e);return this},eq:function(e){e=+e;return e===-1?this.slice(e):this.slice(e,e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(e){return this.pushStack(r.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:j,sort:[].sort,splice:[].splice};r.fn.init.prototype=r.fn;r.extend=r.fn.extend=function(){var e,n,i,a,o,s,l=arguments[0]||{},f=1,u=arguments.length,c=false;if(typeof l==="boolean"){c=l;l=arguments[1]||{};f=2}if(typeof l!=="object"&&!r.isFunction(l)){l={}}if(u===f){l=this;--f}for(;f<u;f++){if((e=arguments[f])!=null){for(n in e){i=l[n];a=e[n];if(l===a){continue}if(c&&a&&(r.isPlainObject(a)||(o=r.isArray(a)))){if(o){o=false;s=i&&r.isArray(i)?i:[]}else{s=i&&r.isPlainObject(i)?i:{}}l[n]=r.extend(c,s,a)}else{if(a!==t){l[n]=a}}}}}return l};r.extend({noConflict:function(t){if(e.$===r){e.$=o}if(t&&e.jQuery===r){e.jQuery=a}return r},isReady:false,readyWait:1,holdReady:function(e){if(e){r.readyWait++}else{r.ready(true)}},ready:function(e){if(e===true&&!--r.readyWait||e!==true&&!r.isReady){if(!n.body){return setTimeout(r.ready,1)}r.isReady=true;if(e!==true&&--r.readyWait>0){return}k.fireWith(n,[r]);if(r.fn.trigger){r(n).trigger("ready").off("ready")}}},bindReady:function(){if(k){return}k=r.Callbacks("once memory");if(n.readyState==="complete"){return setTimeout(r.ready,1)}if(n.addEventListener){n.addEventListener("DOMContentLoaded",S,false);e.addEventListener("load",r.ready,false)}else{if(n.attachEvent){n.attachEvent("onreadystatechange",S);e.attachEvent("onload",r.ready);var t=false;try{t=e.frameElement==null}catch(i){}if(n.documentElement.doScroll&&t){_()}}}},isFunction:function(e){return r.type(e)==="function"},isArray:Array.isArray||function(e){return r.type(e)==="array"},isWindow:function(e){return e&&typeof e==="object"&&"setInterval"in e},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return e==null?String(e):O[A.call(e)]||"object"},isPlainObject:function(e){if(!e||r.type(e)!=="object"||e.nodeType||r.isWindow(e)){return false}try{if(e.constructor&&!L.call(e,"constructor")&&!L.call(e.constructor.prototype,"isPrototypeOf")){return false}}catch(n){return false}var i;for(i in e){}return i===t||L.call(e,i)},isEmptyObject:function(e){for(var t in e){return false}return true},error:function(e){throw new Error(e)},parseJSON:function(t){if(typeof t!=="string"||!t){return null}t=r.trim(t);if(e.JSON&&e.JSON.parse){return e.JSON.parse(t)}if(p.test(t.replace(h,"@").replace(m,"]").replace(g,""))){return new Function("return "+t)()}r.error("Invalid JSON: "+t)},parseXML:function(n){var i,a;try{if(e.DOMParser){a=new DOMParser;i=a.parseFromString(n,"text/xml")}else{i=new ActiveXObject("Microsoft.XMLDOM");i.async="false";i.loadXML(n)}}catch(o){i=t}if(!i||!i.documentElement||i.getElementsByTagName("parsererror").length){r.error("Invalid XML: "+n)}return i},noop:function(){},globalEval:function(t){if(t&&f.test(t)){(e.execScript||function(t){e["eval"].call(e,t)})(t)}},camelCase:function(e){return e.replace(T,"ms-").replace(w,N)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toUpperCase()===t.toUpperCase()},each:function(e,n,i){var a,o=0,s=e.length,l=s===t||r.isFunction(e);if(i){if(l){for(a in e){if(n.apply(e[a],i)===false){break}}}else{for(;o<s;){if(n.apply(e[o++],i)===false){break}}}}else{if(l){for(a in e){if(n.call(e[a],a,e[a])===false){break}}}else{for(;o<s;){if(n.call(e[o],o,e[o++])===false){break}}}}return e},trim:D?function(e){return e==null?"":D.call(e)}:function(e){return e==null?"":e.toString().replace(u,"").replace(c,"")},makeArray:function(e,t){var n=t||[];if(e!=null){var i=r.type(e);if(e.length==null||i==="string"||i==="function"||i==="regexp"||r.isWindow(e)){j.call(n,e)}else{r.merge(n,e)}}return n},inArray:function(e,t,n){var i;if(t){if(M){return M.call(t,e,n)}i=t.length;n=n?n<0?Math.max(0,i+n):n:0;for(;n<i;n++){if(n in t&&t[n]===e){return n}}}return-1},merge:function(e,n){var i=e.length,r=0;if(typeof n.length==="number"){for(var a=n.length;r<a;r++){e[i++]=n[r]}}else{while(n[r]!==t){e[i++]=n[r++]}}e.length=i;return e},grep:function(e,t,n){var i=[],r;n=!!n;for(var a=0,o=e.length;a<o;a++){r=!!t(e[a],a);if(n!==r){i.push(e[a])}}return i},map:function(e,n,i){var a,o,s=[],l=0,f=e.length,u=e instanceof r||f!==t&&typeof f==="number"&&(f>0&&e[0]&&e[f-1]||f===0||r.isArray(e));if(u){for(;l<f;l++){a=n(e[l],l,i);if(a!=null){s[s.length]=a}}}else{for(o in e){a=n(e[o],o,i);if(a!=null){s[s.length]=a}}}return s.concat.apply([],s)},guid:1,proxy:function(e,n){if(typeof n==="string"){var i=e[n];n=e;e=i}if(!r.isFunction(e)){return t}var a=F.call(arguments,2),o=function(){return e.apply(n,a.concat(F.call(arguments)))};o.guid=e.guid=e.guid||o.guid||r.guid++;return o},access:function(e,n,i,a,o,s){var l=e.length;if(typeof n==="object"){for(var f in n){r.access(e,f,n[f],a,o,i)}return e}if(i!==t){a=!s&&a&&r.isFunction(i);for(var u=0;u<l;u++){o(e[u],n,a?i.call(e[u],u,o(e[u],n)):i,s)}return e}return l?o(e[0],n):t},now:function(){return(new Date).getTime()},uaMatch:function(e){e=e.toLowerCase();var t=y.exec(e)||v.exec(e)||b.exec(e)||e.indexOf("compatible")<0&&x.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},sub:function(){function e(t,n){return new e.fn.init(t,n)}r.extend(true,e,this);e.superclass=this;e.fn=e.prototype=this();e.fn.constructor=e;e.sub=this.sub;e.fn.init=function i(n,i){if(i&&i instanceof r&&!(i instanceof e)){i=e(i)}return r.fn.init.call(this,n,i,t)};e.fn.init.prototype=e.fn;var t=e(n);return e},browser:{}});r.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(e,t){O["[object "+t+"]"]=t.toLowerCase()});E=r.uaMatch(C);if(E.browser){r.browser[E.browser]=true;r.browser.version=E.version}if(r.browser.webkit){r.browser.safari=true}if(f.test(" ")){u=/^[\s\xA0]+/;c=/[\s\xA0]+$/}s=r(n);if(n.addEventListener){S=function(){n.removeEventListener("DOMContentLoaded",S,false);r.ready()}}else{if(n.attachEvent){S=function(){if(n.readyState==="complete"){n.detachEvent("onreadystatechange",S);r.ready()}}}}function _(){if(r.isReady){return}try{n.documentElement.doScroll("left")}catch(e){setTimeout(_,1);return}r.ready()}return r}();var o={};function s(e){var t=o[e]={},n,i;e=e.split(/\s+/);for(n=0,i=e.length;n<i;n++){t[e[n]]=true}return t}a.Callbacks=function(e){e=e?o[e]||s(e):{};var n=[],i=[],r,l,f,u,c,d=function(t){var i,r,o,s,l;for(i=0,r=t.length;i<r;i++){o=t[i];s=a.type(o);if(s==="array"){d(o)}else{if(s==="function"){if(!e.unique||!h.has(o)){n.push(o)}}}}},p=function(t,a){a=a||[];r=!e.memory||[t,a];l=true;c=f||0;f=0;u=n.length;for(;n&&c<u;c++){if(n[c].apply(t,a)===false&&e.stopOnFalse){r=true;break}}l=false;if(n){if(!e.once){if(i&&i.length){r=i.shift();h.fireWith(r[0],r[1])}}else{if(r===true){h.disable()}else{n=[]}}}},h={add:function(){if(n){var e=n.length;d(arguments);if(l){u=n.length}else{if(r&&r!==true){f=e;p(r[0],r[1])}}}return this},remove:function(){if(n){var t=arguments,i=0,r=t.length;for(;i<r;i++){for(var a=0;a<n.length;a++){if(t[i]===n[a]){if(l){if(a<=u){u--;if(a<=c){c--}}}n.splice(a--,1);if(e.unique){break}}}}}return this},has:function(e){if(n){var t=0,i=n.length;for(;t<i;t++){if(e===n[t]){return true}}}return false},empty:function(){n=[];return this},disable:function(){n=i=r=t;return this},disabled:function(){return!n},lock:function(){i=t;if(!r||r===true){h.disable()}return this},locked:function(){return!i},fireWith:function(t,n){if(i){if(l){if(!e.once){i.push([t,n])}}else{if(!(e.once&&r)){p(t,n)}}}return this},fire:function(){h.fireWith(this,arguments);return this},fired:function(){return!!r}};return h};var l=[].slice;a.extend({Deferred:function(e){var t=a.Callbacks("once memory"),n=a.Callbacks("once memory"),i=a.Callbacks("memory"),r="pending",o={resolve:t,reject:n,notify:i},s={done:t.add,fail:n.add,progress:i.add,state:function(){return r},isResolved:t.fired,isRejected:n.fired,then:function(e,t,n){l.done(e).fail(t).progress(n);return this},always:function(){l.done.apply(l,arguments).fail.apply(l,arguments);return this},pipe:function(e,t,n){return a.Deferred(function(i){a.each({done:[e,"resolve"],fail:[t,"reject"],progress:[n,"notify"]},function(e,t){var n=t[0],r=t[1],o;if(a.isFunction(n)){l[e](function(){o=n.apply(this,arguments);if(o&&a.isFunction(o.promise)){o.promise().then(i.resolve,i.reject,i.notify)}else{i[r+"With"](this===l?i:this,[o])}})}else{l[e](i[r])}})}).promise()},promise:function(e){if(e==null){e=s}else{for(var t in s){e[t]=s[t]}}return e}},l=s.promise({}),f;for(f in o){l[f]=o[f].fire;l[f+"With"]=o[f].fireWith}l.done(function(){r="resolved"},n.disable,i.lock).fail(function(){r="rejected"},t.disable,i.lock);if(e){e.call(l,l)}return l},when:function(e){var t=l.call(arguments,0),n=0,i=t.length,r=new Array(i),o=i,s=i,f=i<=1&&e&&a.isFunction(e.promise)?e:a.Deferred(),u=f.promise();function c(e){return function(n){t[e]=arguments.length>1?l.call(arguments,0):n;if(!--o){f.resolveWith(f,t)}}}function d(e){return function(t){r[e]=arguments.length>1?l.call(arguments,0):t;f.notifyWith(u,r)}}if(i>1){for(;n<i;n++){if(t[n]&&t[n].promise&&a.isFunction(t[n].promise)){t[n].promise().then(c(n),f.reject,d(n))}else{--o}}if(!o){f.resolveWith(f,t)}}else{if(f!==e){f.resolveWith(f,i?[e]:[])}}return u}});a.support=function(){var t,i,r,o,s,l,f,u,c,d,p,h,m,g=n.createElement("div"),y=n.documentElement;g.setAttribute("className","t");g.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";i=g.getElementsByTagName("*");r=g.getElementsByTagName("a")[0];if(!i||!i.length||!r){return{}}o=n.createElement("select");s=o.appendChild(n.createElement("option"));l=g.getElementsByTagName("input")[0];t={leadingWhitespace:g.firstChild.nodeType===3,tbody:!g.getElementsByTagName("tbody").length,htmlSerialize:!!g.getElementsByTagName("link").length,style:/top/.test(r.getAttribute("style")),hrefNormalized:r.getAttribute("href")==="/a",opacity:/^0.55/.test(r.style.opacity),cssFloat:!!r.style.cssFloat,checkOn:l.value==="on",optSelected:s.selected,getSetAttribute:g.className!=="t",enctype:!!n.createElement("form").enctype,html5Clone:n.createElement("nav").cloneNode(true).outerHTML!=="<:nav></:nav>",submitBubbles:true,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true};l.checked=true;t.noCloneChecked=l.cloneNode(true).checked;o.disabled=true;t.optDisabled=!s.disabled;try{delete g.test}catch(v){t.deleteExpando=false}if(!g.addEventListener&&g.attachEvent&&g.fireEvent){g.attachEvent("onclick",function(){t.noCloneEvent=false});g.cloneNode(true).fireEvent("onclick")}l=n.createElement("input");l.value="t";l.setAttribute("type","radio");t.radioValue=l.value==="t";l.setAttribute("checked","checked");g.appendChild(l);u=n.createDocumentFragment();u.appendChild(g.lastChild);t.checkClone=u.cloneNode(true).cloneNode(true).lastChild.checked;t.appendChecked=l.checked;u.removeChild(l);u.appendChild(g);g.innerHTML="";if(e.getComputedStyle){f=n.createElement("div");f.style.width="0";f.style.marginRight="0";g.style.width="2px";g.appendChild(f);t.reliableMarginRight=(parseInt((e.getComputedStyle(f,null)||{marginRight:0}).marginRight,10)||0)===0}if(g.attachEvent){for(h in{submit:1,change:1,focusin:1}){p="on"+h;m=p in g;if(!m){g.setAttribute(p,"return;");m=typeof g[p]==="function"}t[h+"Bubbles"]=m}}u.removeChild(g);u=o=s=f=g=l=null;a(function(){var e,i,r,o,s,l,f,u,d,p,h,y=n.getElementsByTagName("body")[0];if(!y){return}f=1;u="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;";d="visibility:hidden;border:0;";p="style='"+u+"border:5px solid #000;padding:0;'";h="<div "+p+"><div></div></div><table "+p+" cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";e=n.createElement("div");e.style.cssText=d+"width:0;height:0;position:static;top:0;margin-top:"+f+"px";y.insertBefore(e,y.firstChild);g=n.createElement("div");e.appendChild(g);g.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";c=g.getElementsByTagName("td");m=c[0].offsetHeight===0;c[0].style.display="";c[1].style.display="none";t.reliableHiddenOffsets=m&&c[0].offsetHeight===0;g.innerHTML="";g.style.width=g.style.paddingLeft="1px";a.boxModel=t.boxModel=g.offsetWidth===2;if(typeof g.style.zoom!=="undefined"){g.style.display="inline";g.style.zoom=1;t.inlineBlockNeedsLayout=g.offsetWidth===2;g.style.display="";g.innerHTML="<div style='width:4px;'></div>";t.shrinkWrapBlocks=g.offsetWidth!==2}g.style.cssText=u+d;g.innerHTML=h;i=g.firstChild;r=i.firstChild;s=i.nextSibling.firstChild.firstChild;l={doesNotAddBorder:r.offsetTop!==5,doesAddBorderForTableAndCells:s.offsetTop===5};r.style.position="fixed";r.style.top="20px";l.fixedPosition=r.offsetTop===20||r.offsetTop===15;r.style.position=r.style.top="";i.style.overflow="hidden";i.style.position="relative";l.subtractsBorderForOverflowNotVisible=r.offsetTop===-5;l.doesNotIncludeMarginInBodyOffset=y.offsetTop!==f;y.removeChild(e);g=e=null;a.extend(t,l)});return t}();var f=/^(?:\{.*\}|\[.*\])$/,u=/([A-Z])/g;a.extend({cache:{},uuid:0,expando:"jQuery"+(a.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},hasData:function(e){e=e.nodeType?a.cache[e[a.expando]]:e[a.expando];return!!e&&!d(e)},data:function(e,n,i,r){if(!a.acceptData(e)){return}var o,s,l,f=a.expando,u=typeof n==="string",c=e.nodeType,d=c?a.cache:e,p=c?e[f]:e[f]&&f,h=n==="events";if((!p||!d[p]||!h&&!r&&!d[p].data)&&u&&i===t){return}if(!p){if(c){e[f]=p=++a.uuid}else{p=f}}if(!d[p]){d[p]={};if(!c){d[p].toJSON=a.noop}}if(typeof n==="object"||typeof n==="function"){if(r){d[p]=a.extend(d[p],n)}else{d[p].data=a.extend(d[p].data,n)}}o=s=d[p];if(!r){if(!s.data){s.data={}}s=s.data}if(i!==t){s[a.camelCase(n)]=i}if(h&&!s[n]){return o.events}if(u){l=s[n];if(l==null){l=s[a.camelCase(n)]}}else{l=s}return l},removeData:function(e,t,n){if(!a.acceptData(e)){return}var i,r,o,s=a.expando,l=e.nodeType,f=l?a.cache:e,u=l?e[s]:s;if(!f[u]){return}if(t){i=n?f[u]:f[u].data;if(i){if(!a.isArray(t)){if(t in i){t=[t]}else{t=a.camelCase(t);if(t in i){t=[t]}else{t=t.split(" ")}}}for(r=0,o=t.length;r<o;r++){delete i[t[r]]}if(!(n?d:a.isEmptyObject)(i)){return}}}if(!n){delete f[u].data;if(!d(f[u])){return}}if(a.support.deleteExpando||!f.setInterval){delete f[u]}else{f[u]=null}if(l){if(a.support.deleteExpando){delete e[s]}else{if(e.removeAttribute){e.removeAttribute(s)}else{e[s]=null}}}},_data:function(e,t,n){return a.data(e,t,n,true)},acceptData:function(e){if(e.nodeName){var t=a.noData[e.nodeName.toLowerCase()];if(t){return!(t===true||e.getAttribute("classid")!==t)}}return true}});a.fn.extend({data:function(e,n){var i,r,o,s=null;if(typeof e==="undefined"){if(this.length){s=a.data(this[0]);if(this[0].nodeType===1&&!a._data(this[0],"parsedAttrs")){r=this[0].attributes;for(var l=0,f=r.length;l<f;l++){o=r[l].name;if(o.indexOf("data-")===0){o=a.camelCase(o.substring(5));c(this[0],o,s[o])}}a._data(this[0],"parsedAttrs",true)}}return s}else{if(typeof e==="object"){return this.each(function(){a.data(this,e)})}}i=e.split(".");i[1]=i[1]?"."+i[1]:"";if(n===t){s=this.triggerHandler("getData"+i[1]+"!",[i[0]]);if(s===t&&this.length){s=a.data(this[0],e);s=c(this[0],e,s)}return s===t&&i[1]?this.data(i[0]):s}else{return this.each(function(){var t=a(this),r=[i[0],n];t.triggerHandler("setData"+i[1]+"!",r);a.data(this,e,n);t.triggerHandler("changeData"+i[1]+"!",r)})}},removeData:function(e){return this.each(function(){a.removeData(this,e)})}});function c(e,n,i){if(i===t&&e.nodeType===1){var r="data-"+n.replace(u,"-$1").toLowerCase();i=e.getAttribute(r);if(typeof i==="string"){try{i=i==="true"?true:i==="false"?false:i==="null"?null:a.isNumeric(i)?parseFloat(i):f.test(i)?a.parseJSON(i):i}catch(o){}a.data(e,n,i)}else{i=t}}return i}function d(e){for(var t in e){if(t==="data"&&a.isEmptyObject(e[t])){continue}if(t!=="toJSON"){return false}}return true}function p(e,t,n){var i=t+"defer",r=t+"queue",o=t+"mark",s=a._data(e,i);if(s&&(n==="queue"||!a._data(e,r))&&(n==="mark"||!a._data(e,o))){setTimeout(function(){if(!a._data(e,r)&&!a._data(e,o)){a.removeData(e,i,true);s.fire()}},0)}}a.extend({_mark:function(e,t){if(e){t=(t||"fx")+"mark";a._data(e,t,(a._data(e,t)||0)+1)}},_unmark:function(e,t,n){if(e!==true){n=t;t=e;e=false}if(t){n=n||"fx";var i=n+"mark",r=e?0:(a._data(t,i)||1)-1;if(r){a._data(t,i,r)}else{a.removeData(t,i,true);p(t,n,"mark")}}},queue:function(e,t,n){var i;if(e){t=(t||"fx")+"queue";i=a._data(e,t);if(n){if(!i||a.isArray(n)){i=a._data(e,t,a.makeArray(n))}else{i.push(n)}}return i||[]}},dequeue:function(e,t){t=t||"fx";var n=a.queue(e,t),i=n.shift(),r={};if(i==="inprogress"){i=n.shift()}if(i){if(t==="fx"){n.unshift("inprogress")}a._data(e,t+".run",r);i.call(e,function(){a.dequeue(e,t)},r)}if(!n.length){a.removeData(e,t+"queue "+t+".run",true);p(e,t,"queue")}}});a.fn.extend({queue:function(e,n){if(typeof e!=="string"){n=e;e="fx"}if(n===t){return a.queue(this[0],e)}return this.each(function(){var t=a.queue(this,e,n);if(e==="fx"&&t[0]!=="inprogress"){a.dequeue(this,e)}})},dequeue:function(e){return this.each(function(){a.dequeue(this,e)})},delay:function(e,t){e=a.fx?a.fx.speeds[e]||e:e;t=t||"fx";return this.queue(t,function(t,n){var i=setTimeout(t,e);n.stop=function(){clearTimeout(i)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){if(typeof e!=="string"){n=e;e=t}e=e||"fx";var i=a.Deferred(),r=this,o=r.length,s=1,l=e+"defer",f=e+"queue",u=e+"mark",c;function d(){if(!--s){i.resolveWith(r,[r])}}while(o--){if(c=a.data(r[o],l,t,true)||(a.data(r[o],f,t,true)||a.data(r[o],u,t,true))&&a.data(r[o],l,a.Callbacks("once memory"),true)){s++;c.add(d)}}d();return i.promise()}});var h=/[\n\t\r]/g,m=/\s+/,g=/\r/g,y=/^(?:button|input)$/i,v=/^(?:button|input|object|select|textarea)$/i,b=/^a(?:rea)?$/i,x=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,w=a.support.getSetAttribute,T,N,C;a.fn.extend({attr:function(e,t){return a.access(this,e,t,true,a.attr)},removeAttr:function(e){return this.each(function(){a.removeAttr(this,e)})},prop:function(e,t){return a.access(this,e,t,true,a.prop)},removeProp:function(e){e=a.propFix[e]||e;return this.each(function(){try{this[e]=t;delete this[e]}catch(n){}})},addClass:function(e){var t,n,i,r,o,s,l;if(a.isFunction(e)){return this.each(function(t){a(this).addClass(e.call(this,t,this.className))})}if(e&&typeof e==="string"){t=e.split(m);for(n=0,i=this.length;n<i;n++){r=this[n];if(r.nodeType===1){if(!r.className&&t.length===1){r.className=e}else{o=" "+r.className+" ";for(s=0,l=t.length;s<l;s++){if(!~o.indexOf(" "+t[s]+" ")){o+=t[s]+" "}}r.className=a.trim(o)}}}}return this},removeClass:function(e){var n,i,r,o,s,l,f;if(a.isFunction(e)){return this.each(function(t){a(this).removeClass(e.call(this,t,this.className))})}if(e&&typeof e==="string"||e===t){n=(e||"").split(m);for(i=0,r=this.length;i<r;i++){o=this[i];if(o.nodeType===1&&o.className){if(e){s=(" "+o.className+" ").replace(h," ");for(l=0,f=n.length;l<f;l++){s=s.replace(" "+n[l]+" "," ")}o.className=a.trim(s)}else{o.className=""}}}}return this},toggleClass:function(e,t){var n=typeof e,i=typeof t==="boolean";if(a.isFunction(e)){return this.each(function(n){a(this).toggleClass(e.call(this,n,this.className,t),t)})}return this.each(function(){if(n==="string"){var r,o=0,s=a(this),l=t,f=e.split(m);while(r=f[o++]){l=i?l:!s.hasClass(r);s[l?"addClass":"removeClass"](r)}}else{if(n==="undefined"||n==="boolean"){if(this.className){a._data(this,"__className__",this.className)}this.className=this.className||e===false?"":a._data(this,"__className__")||""}}})},hasClass:function(e){var t=" "+e+" ",n=0,i=this.length;for(;n<i;n++){if(this[n].nodeType===1&&(" "+this[n].className+" ").replace(h," ").indexOf(t)>-1){return true}}return false},val:function(e){var n,i,r,o=this[0];if(!arguments.length){if(o){n=a.valHooks[o.nodeName.toLowerCase()]||a.valHooks[o.type];if(n&&"get"in n&&(i=n.get(o,"value"))!==t){return i}i=o.value;return typeof i==="string"?i.replace(g,""):i==null?"":i}return}r=a.isFunction(e);return this.each(function(i){var o=a(this),s;if(this.nodeType!==1){return}if(r){s=e.call(this,i,o.val())}else{s=e}if(s==null){s=""}else{if(typeof s==="number"){s+=""}else{if(a.isArray(s)){s=a.map(s,function(e){return e==null?"":e+""})}}}n=a.valHooks[this.nodeName.toLowerCase()]||a.valHooks[this.type];if(!n||!("set"in n)||n.set(this,s,"value")===t){this.value=s}})}});a.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,i,r,o=e.selectedIndex,s=[],l=e.options,f=e.type==="select-one";if(o<0){return null}n=f?o:0;i=f?o+1:l.length;for(;n<i;n++){r=l[n];if(r.selected&&(a.support.optDisabled?!r.disabled:r.getAttribute("disabled")===null)&&(!r.parentNode.disabled||!a.nodeName(r.parentNode,"optgroup"))){t=a(r).val();if(f){return t}s.push(t)}}if(f&&!s.length&&l.length){return a(l[o]).val()}return s},set:function(e,t){var n=a.makeArray(t);a(e).find("option").each(function(){this.selected=a.inArray(a(this).val(),n)>=0});if(!n.length){e.selectedIndex=-1}return n}}},attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(e,n,i,r){var o,s,l,f=e.nodeType;if(!e||f===3||f===8||f===2){return}if(r&&n in a.attrFn){return a(e)[n](i)}if(typeof e.getAttribute==="undefined"){return a.prop(e,n,i)}l=f!==1||!a.isXMLDoc(e);if(l){n=n.toLowerCase();s=a.attrHooks[n]||(x.test(n)?N:T)}if(i!==t){if(i===null){a.removeAttr(e,n);return}else{if(s&&"set"in s&&l&&(o=s.set(e,i,n))!==t){return o}else{e.setAttribute(n,""+i);return i}}}else{if(s&&"get"in s&&l&&(o=s.get(e,n))!==null){return o}else{o=e.getAttribute(n);return o===null?t:o}}},removeAttr:function(e,t){var n,i,r,o,s=0;if(t&&e.nodeType===1){i=t.toLowerCase().split(m);o=i.length;for(;s<o;s++){r=i[s];if(r){n=a.propFix[r]||r;a.attr(e,r,"");e.removeAttribute(w?r:n);if(x.test(r)&&n in e){e[n]=false}}}}},attrHooks:{type:{set:function(e,t){if(y.test(e.nodeName)&&e.parentNode){a.error("type property can't be changed")}else{if(!a.support.radioValue&&t==="radio"&&a.nodeName(e,"input")){var n=e.value;e.setAttribute("type",t);if(n){e.value=n}return t}}}},value:{get:function(e,t){if(T&&a.nodeName(e,"button")){return T.get(e,t)}return t in e?e.value:null},set:function(e,t,n){if(T&&a.nodeName(e,"button")){return T.set(e,t,n)}e.value=t}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(e,n,i){var r,o,s,l=e.nodeType;if(!e||l===3||l===8||l===2){return}s=l!==1||!a.isXMLDoc(e);if(s){n=a.propFix[n]||n;o=a.propHooks[n]}if(i!==t){if(o&&"set"in o&&(r=o.set(e,i,n))!==t){return r}else{return e[n]=i}}else{if(o&&"get"in o&&(r=o.get(e,n))!==null){return r}else{return e[n]}}},propHooks:{tabIndex:{get:function(e){var n=e.getAttributeNode("tabindex");return n&&n.specified?parseInt(n.value,10):v.test(e.nodeName)||b.test(e.nodeName)&&e.href?0:t}}}});a.attrHooks.tabindex=a.propHooks.tabIndex;N={get:function(e,n){var i,r=a.prop(e,n);return r===true||typeof r!=="boolean"&&(i=e.getAttributeNode(n))&&i.nodeValue!==false?n.toLowerCase():t},set:function(e,t,n){var i;if(t===false){a.removeAttr(e,n)}else{i=a.propFix[n]||n;if(i in e){e[i]=true}e.setAttribute(n,n.toLowerCase())}return n}};if(!w){C={name:true,id:true};T=a.valHooks.button={get:function(e,n){var i;i=e.getAttributeNode(n);return i&&(C[n]?i.nodeValue!=="":i.specified)?i.nodeValue:t},set:function(e,t,i){var r=e.getAttributeNode(i);if(!r){r=n.createAttribute(i);e.setAttributeNode(r)}return r.nodeValue=t+""}};a.attrHooks.tabindex.set=T.set;a.each(["width","height"],function(e,t){a.attrHooks[t]=a.extend(a.attrHooks[t],{set:function(e,n){if(n===""){e.setAttribute(t,"auto");return n}}})});a.attrHooks.contenteditable={get:T.get,set:function(e,t,n){if(t===""){t="false"}T.set(e,t,n)}}}if(!a.support.hrefNormalized){a.each(["href","src","width","height"],function(e,n){a.attrHooks[n]=a.extend(a.attrHooks[n],{get:function(e){var i=e.getAttribute(n,2);return i===null?t:i}})})}if(!a.support.style){a.attrHooks.style={get:function(e){return e.style.cssText.toLowerCase()||t},set:function(e,t){return e.style.cssText=""+t}}}if(!a.support.optSelected){a.propHooks.selected=a.extend(a.propHooks.selected,{get:function(e){var t=e.parentNode;if(t){t.selectedIndex;if(t.parentNode){t.parentNode.selectedIndex}}return null}})}if(!a.support.enctype){a.propFix.enctype="encoding"}if(!a.support.checkOn){a.each(["radio","checkbox"],function(){a.valHooks[this]={get:function(e){return e.getAttribute("value")===null?"on":e.value}}})}a.each(["radio","checkbox"],function(){a.valHooks[this]=a.extend(a.valHooks[this],{set:function(e,t){if(a.isArray(t)){return e.checked=a.inArray(a(e).val(),t)>=0}}})});var E=/^(?:textarea|input|select)$/i,k=/^([^\.]*)?(?:\.(.+))?$/,S=/\bhover(\.\S+)?\b/,A=/^key/,L=/^(?:mouse|contextmenu)|click/,j=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,D=function(e){var t=F.exec(e);if(t){t[1]=(t[1]||"").toLowerCase();t[3]=t[3]&&new RegExp("(?:^|\\s)"+t[3]+"(?:\\s|$)")}return t},M=function(e,t){var n=e.attributes||{};return(!t[1]||e.nodeName.toLowerCase()===t[1])&&(!t[2]||(n.id||{}).value===t[2])&&(!t[3]||t[3].test((n["class"]||{}).value))},O=function(e){return a.event.special.hover?e:e.replace(S,"mouseenter$1 mouseleave$1")};a.event={add:function(e,n,i,r,o){var s,l,f,u,c,d,p,h,m,g,y,v;if(e.nodeType===3||e.nodeType===8||!n||!i||!(s=a._data(e))){return}if(i.handler){m=i;i=m.handler}if(!i.guid){i.guid=a.guid++}f=s.events;if(!f){s.events=f={}}l=s.handle;if(!l){s.handle=l=function(e){return typeof a!=="undefined"&&(!e||a.event.triggered!==e.type)?a.event.dispatch.apply(l.elem,arguments):t};l.elem=e}n=a.trim(O(n)).split(" ");for(u=0;u<n.length;u++){c=k.exec(n[u])||[];d=c[1];p=(c[2]||"").split(".").sort();v=a.event.special[d]||{};d=(o?v.delegateType:v.bindType)||d;v=a.event.special[d]||{};h=a.extend({type:d,origType:c[1],data:r,handler:i,guid:i.guid,selector:o,quick:D(o),namespace:p.join(".")},m);y=f[d];if(!y){y=f[d]=[];y.delegateCount=0;if(!v.setup||v.setup.call(e,r,p,l)===false){if(e.addEventListener){e.addEventListener(d,l,false)}else{if(e.attachEvent){e.attachEvent("on"+d,l)}}}}if(v.add){v.add.call(e,h);if(!h.handler.guid){h.handler.guid=i.guid}}if(o){y.splice(y.delegateCount++,0,h)}else{y.push(h)}a.event.global[d]=true}e=null},global:{},remove:function(e,t,n,i,r){var o=a.hasData(e)&&a._data(e),s,l,f,u,c,d,p,h,m,g,y,v;if(!o||!(h=o.events)){return}t=a.trim(O(t||"")).split(" ");for(s=0;s<t.length;s++){l=k.exec(t[s])||[];f=u=l[1];c=l[2];if(!f){for(f in h){a.event.remove(e,f+t[s],n,i,true)}continue}m=a.event.special[f]||{};f=(i?m.delegateType:m.bindType)||f;y=h[f]||[];d=y.length;c=c?new RegExp("(^|\\.)"+c.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;for(p=0;p<y.length;p++){v=y[p];if((r||u===v.origType)&&(!n||n.guid===v.guid)&&(!c||c.test(v.namespace))&&(!i||i===v.selector||i==="**"&&v.selector)){y.splice(p--,1);if(v.selector){y.delegateCount--}if(m.remove){m.remove.call(e,v)}}}if(y.length===0&&d!==y.length){if(!m.teardown||m.teardown.call(e,c)===false){a.removeEvent(e,f,o.handle)}delete h[f]}}if(a.isEmptyObject(h)){g=o.handle;if(g){g.elem=null}a.removeData(e,["events","handle"],true)}},customEvent:{getData:true,setData:true,changeData:true},trigger:function(n,i,r,o){if(r&&(r.nodeType===3||r.nodeType===8)){return}var s=n.type||n,l=[],f,u,c,d,p,h,m,g,y,v;if(j.test(s+a.event.triggered)){return}if(s.indexOf("!")>=0){s=s.slice(0,-1);u=true}if(s.indexOf(".")>=0){l=s.split(".");s=l.shift();l.sort()}if((!r||a.event.customEvent[s])&&!a.event.global[s]){return}n=typeof n==="object"?n[a.expando]?n:new a.Event(s,n):new a.Event(s);n.type=s;n.isTrigger=true;n.exclusive=u;n.namespace=l.join(".");n.namespace_re=n.namespace?new RegExp("(^|\\.)"+l.join("\\.(?:.*\\.)?")+"(\\.|$)"):null;h=s.indexOf(":")<0?"on"+s:"";if(!r){f=a.cache;for(c in f){if(f[c].events&&f[c].events[s]){a.event.trigger(n,i,f[c].handle.elem,true)}}return}n.result=t;if(!n.target){n.target=r}i=i!=null?a.makeArray(i):[];i.unshift(n);m=a.event.special[s]||{};if(m.trigger&&m.trigger.apply(r,i)===false){return}y=[[r,m.bindType||s]];if(!o&&!m.noBubble&&!a.isWindow(r)){v=m.delegateType||s;d=j.test(v+s)?r:r.parentNode;p=null;for(;d;d=d.parentNode){y.push([d,v]);p=d}if(p&&p===r.ownerDocument){y.push([p.defaultView||p.parentWindow||e,v])}}for(c=0;c<y.length&&!n.isPropagationStopped();c++){d=y[c][0];n.type=y[c][1];g=(a._data(d,"events")||{})[n.type]&&a._data(d,"handle");if(g){g.apply(d,i)}g=h&&d[h];if(g&&a.acceptData(d)&&g.apply(d,i)===false){n.preventDefault()}}n.type=s;if(!o&&!n.isDefaultPrevented()){if((!m._default||m._default.apply(r.ownerDocument,i)===false)&&!(s==="click"&&a.nodeName(r,"a"))&&a.acceptData(r)){if(h&&r[s]&&(s!=="focus"&&s!=="blur"||n.target.offsetWidth!==0)&&!a.isWindow(r)){p=r[h];if(p){r[h]=null}a.event.triggered=s;r[s]();a.event.triggered=t;if(p){r[h]=p}}}}return n.result},dispatch:function(n){n=a.event.fix(n||e.event);var i=(a._data(this,"events")||{})[n.type]||[],r=i.delegateCount,o=[].slice.call(arguments,0),s=!n.exclusive&&!n.namespace,l=[],f,u,c,d,p,h,m,g,y,v,b;o[0]=n;n.delegateTarget=this;if(r&&!n.target.disabled&&!(n.button&&n.type==="click")){d=a(this);d.context=this.ownerDocument||this;for(c=n.target;c!=this;c=c.parentNode||this){h={};g=[];
  d[0]=c;for(f=0;f<r;f++){y=i[f];v=y.selector;if(h[v]===t){h[v]=y.quick?M(c,y.quick):d.is(v)}if(h[v]){g.push(y)}}if(g.length){l.push({elem:c,matches:g})}}}if(i.length>r){l.push({elem:this,matches:i.slice(r)})}for(f=0;f<l.length&&!n.isPropagationStopped();f++){m=l[f];n.currentTarget=m.elem;for(u=0;u<m.matches.length&&!n.isImmediatePropagationStopped();u++){y=m.matches[u];if(s||!n.namespace&&!y.namespace||n.namespace_re&&n.namespace_re.test(y.namespace)){n.data=y.data;n.handleObj=y;p=((a.event.special[y.origType]||{}).handle||y.handler).apply(m.elem,o);if(p!==t){n.result=p;if(p===false){n.preventDefault();n.stopPropagation()}}}}}return n.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){if(e.which==null){e.which=t.charCode!=null?t.charCode:t.keyCode}return e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,i){var r,a,o,s=i.button,l=i.fromElement;if(e.pageX==null&&i.clientX!=null){r=e.target.ownerDocument||n;a=r.documentElement;o=r.body;e.pageX=i.clientX+(a&&a.scrollLeft||o&&o.scrollLeft||0)-(a&&a.clientLeft||o&&o.clientLeft||0);e.pageY=i.clientY+(a&&a.scrollTop||o&&o.scrollTop||0)-(a&&a.clientTop||o&&o.clientTop||0)}if(!e.relatedTarget&&l){e.relatedTarget=l===e.target?i.toElement:l}if(!e.which&&s!==t){e.which=s&1?1:s&2?3:s&4?2:0}return e}},fix:function(e){if(e[a.expando]){return e}var i,r,o=e,s=a.event.fixHooks[e.type]||{},l=s.props?this.props.concat(s.props):this.props;e=a.Event(o);for(i=l.length;i;){r=l[--i];e[r]=o[r]}if(!e.target){e.target=o.srcElement||n}if(e.target.nodeType===3){e.target=e.target.parentNode}if(e.metaKey===t){e.metaKey=e.ctrlKey}return s.filter?s.filter(e,o):e},special:{ready:{setup:a.bindReady},load:{noBubble:true},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(e,t,n){if(a.isWindow(this)){this.onbeforeunload=n}},teardown:function(e,t){if(this.onbeforeunload===t){this.onbeforeunload=null}}}},simulate:function(e,t,n,i){var r=a.extend(new a.Event,n,{type:e,isSimulated:true,originalEvent:{}});if(i){a.event.trigger(r,null,t)}else{a.event.dispatch.call(t,r)}if(r.isDefaultPrevented()){n.preventDefault()}}};a.event.handle=a.event.dispatch;a.removeEvent=n.removeEventListener?function(e,t,n){if(e.removeEventListener){e.removeEventListener(t,n,false)}}:function(e,t,n){if(e.detachEvent){e.detachEvent("on"+t,n)}};a.Event=function(e,t){if(!(this instanceof a.Event)){return new a.Event(e,t)}if(e&&e.type){this.originalEvent=e;this.type=e.type;this.isDefaultPrevented=e.defaultPrevented||e.returnValue===false||e.getPreventDefault&&e.getPreventDefault()?H:_}else{this.type=e}if(t){a.extend(this,t)}this.timeStamp=e&&e.timeStamp||a.now();this[a.expando]=true};function _(){return false}function H(){return true}a.Event.prototype={preventDefault:function(){this.isDefaultPrevented=H;var e=this.originalEvent;if(!e){return}if(e.preventDefault){e.preventDefault()}else{e.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=H;var e=this.originalEvent;if(!e){return}if(e.stopPropagation){e.stopPropagation()}e.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=H;this.stopPropagation()},isDefaultPrevented:_,isPropagationStopped:_,isImmediatePropagationStopped:_};a.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){a.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n=this,i=e.relatedTarget,r=e.handleObj,o=r.selector,s;if(!i||i!==n&&!a.contains(n,i)){e.type=r.origType;s=r.handler.apply(this,arguments);e.type=t}return s}}});if(!a.support.submitBubbles){a.event.special.submit={setup:function(){if(a.nodeName(this,"form")){return false}a.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,i=a.nodeName(n,"input")||a.nodeName(n,"button")?n.form:t;if(i&&!i._submit_attached){a.event.add(i,"submit._submit",function(e){if(this.parentNode&&!e.isTrigger){a.event.simulate("submit",this.parentNode,e,true)}});i._submit_attached=true}})},teardown:function(){if(a.nodeName(this,"form")){return false}a.event.remove(this,"._submit")}}}if(!a.support.changeBubbles){a.event.special.change={setup:function(){if(E.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio"){a.event.add(this,"propertychange._change",function(e){if(e.originalEvent.propertyName==="checked"){this._just_changed=true}});a.event.add(this,"click._change",function(e){if(this._just_changed&&!e.isTrigger){this._just_changed=false;a.event.simulate("change",this,e,true)}})}return false}a.event.add(this,"beforeactivate._change",function(e){var t=e.target;if(E.test(t.nodeName)&&!t._change_attached){a.event.add(t,"change._change",function(e){if(this.parentNode&&!e.isSimulated&&!e.isTrigger){a.event.simulate("change",this.parentNode,e,true)}});t._change_attached=true}})},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||t.type!=="radio"&&t.type!=="checkbox"){return e.handleObj.handler.apply(this,arguments)}},teardown:function(){a.event.remove(this,"._change");return E.test(this.nodeName)}}}if(!a.support.focusinBubbles){a.each({focus:"focusin",blur:"focusout"},function(e,t){var i=0,r=function(e){a.event.simulate(t,e.target,a.event.fix(e),true)};a.event.special[t]={setup:function(){if(i++===0){n.addEventListener(e,r,true)}},teardown:function(){if(--i===0){n.removeEventListener(e,r,true)}}}})}a.fn.extend({on:function(e,n,i,r,o){var s,l;if(typeof e==="object"){if(typeof n!=="string"){i=n;n=t}for(l in e){this.on(l,n,i,e[l],o)}return this}if(i==null&&r==null){r=n;i=n=t}else{if(r==null){if(typeof n==="string"){r=i;i=t}else{r=i;i=n;n=t}}}if(r===false){r=_}else{if(!r){return this}}if(o===1){s=r;r=function(e){a().off(e);return s.apply(this,arguments)};r.guid=s.guid||(s.guid=a.guid++)}return this.each(function(){a.event.add(this,e,r,i,n)})},one:function(e,t,n,i){return this.on.call(this,e,t,n,i,1)},off:function(e,n,i){if(e&&e.preventDefault&&e.handleObj){var r=e.handleObj;a(e.delegateTarget).off(r.namespace?r.type+"."+r.namespace:r.type,r.selector,r.handler);return this}if(typeof e==="object"){for(var o in e){this.off(o,n,e[o])}return this}if(n===false||typeof n==="function"){i=n;n=t}if(i===false){i=_}return this.each(function(){a.event.remove(this,e,i,n)})},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},live:function(e,t,n){a(this.context).on(e,this.selector,t,n);return this},die:function(e,t){a(this.context).off(e,this.selector||"**",t);return this},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return arguments.length==1?this.off(e,"**"):this.off(t,e,n)},trigger:function(e,t){return this.each(function(){a.event.trigger(e,t,this)})},triggerHandler:function(e,t){if(this[0]){return a.event.trigger(e,t,this[0],true)}},toggle:function(e){var t=arguments,n=e.guid||a.guid++,i=0,r=function(n){var r=(a._data(this,"lastToggle"+e.guid)||0)%i;a._data(this,"lastToggle"+e.guid,r+1);n.preventDefault();return t[r].apply(this,arguments)||false};r.guid=n;while(i<t.length){t[i++].guid=n}return this.click(r)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}});a.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){a.fn[t]=function(e,n){if(n==null){n=e;e=null}return arguments.length>0?this.on(t,null,e,n):this.trigger(t)};if(a.attrFn){a.attrFn[t]=true}if(A.test(t)){a.event.fixHooks[t]=a.event.keyHooks}if(L.test(t)){a.event.fixHooks[t]=a.event.mouseHooks}});!function(){var e=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,i="sizcache"+(Math.random()+"").replace(".",""),r=0,o=Object.prototype.toString,s=false,l=true,f=/\\/g,u=/\r\n/g,c=/\W/;[0,0].sort(function(){l=false;return 0});var d=function(t,i,r,a){r=r||[];i=i||n;var s=i;if(i.nodeType!==1&&i.nodeType!==9){return[]}if(!t||typeof t!=="string"){return r}var l,f,u,c,p,g,y,b,x=true,w=d.isXML(i),T=[],N=t;do{e.exec("");l=e.exec(N);if(l){N=l[3];T.push(l[1]);if(l[2]){c=l[3];break}}}while(l);if(T.length>1&&m.exec(t)){if(T.length===2&&h.relative[T[0]]){f=C(T[0]+T[1],i,a)}else{f=h.relative[T[0]]?[i]:d(T.shift(),i);while(T.length){t=T.shift();if(h.relative[t]){t+=T.shift()}f=C(t,f,a)}}}else{if(!a&&T.length>1&&i.nodeType===9&&!w&&h.match.ID.test(T[0])&&!h.match.ID.test(T[T.length-1])){p=d.find(T.shift(),i,w);i=p.expr?d.filter(p.expr,p.set)[0]:p.set[0]}if(i){p=a?{expr:T.pop(),set:v(a)}:d.find(T.pop(),T.length===1&&(T[0]==="~"||T[0]==="+")&&i.parentNode?i.parentNode:i,w);f=p.expr?d.filter(p.expr,p.set):p.set;if(T.length>0){u=v(f)}else{x=false}while(T.length){g=T.pop();y=g;if(!h.relative[g]){g=""}else{y=T.pop()}if(y==null){y=i}h.relative[g](u,y,w)}}else{u=T=[]}}if(!u){u=f}if(!u){d.error(g||t)}if(o.call(u)==="[object Array]"){if(!x){r.push.apply(r,u)}else{if(i&&i.nodeType===1){for(b=0;u[b]!=null;b++){if(u[b]&&(u[b]===true||u[b].nodeType===1&&d.contains(i,u[b]))){r.push(f[b])}}}else{for(b=0;u[b]!=null;b++){if(u[b]&&u[b].nodeType===1){r.push(f[b])}}}}}else{v(u,r)}if(c){d(c,s,r,a);d.uniqueSort(r)}return r};d.uniqueSort=function(e){if(x){s=l;e.sort(x);if(s){for(var t=1;t<e.length;t++){if(e[t]===e[t-1]){e.splice(t--,1)}}}}return e};d.matches=function(e,t){return d(e,null,null,t)};d.matchesSelector=function(e,t){return d(t,null,null,[e]).length>0};d.find=function(e,t,n){var i,r,a,o,s,l;if(!e){return[]}for(r=0,a=h.order.length;r<a;r++){s=h.order[r];if(o=h.leftMatch[s].exec(e)){l=o[1];o.splice(1,1);if(l.substr(l.length-1)!=="\\"){o[1]=(o[1]||"").replace(f,"");i=h.find[s](o,t,n);if(i!=null){e=e.replace(h.match[s],"");break}}}}if(!i){i=typeof t.getElementsByTagName!=="undefined"?t.getElementsByTagName("*"):[]}return{set:i,expr:e}};d.filter=function(e,n,i,r){var a,o,s,l,f,u,c,p,m,g=e,y=[],v=n,b=n&&n[0]&&d.isXML(n[0]);while(e&&n.length){for(s in h.filter){if((a=h.leftMatch[s].exec(e))!=null&&a[2]){u=h.filter[s];c=a[1];o=false;a.splice(1,1);if(c.substr(c.length-1)==="\\"){continue}if(v===y){y=[]}if(h.preFilter[s]){a=h.preFilter[s](a,v,i,y,r,b);if(!a){o=l=true}else{if(a===true){continue}}}if(a){for(p=0;(f=v[p])!=null;p++){if(f){l=u(f,a,p,v);m=r^l;if(i&&l!=null){if(m){o=true}else{v[p]=false}}else{if(m){y.push(f);o=true}}}}}if(l!==t){if(!i){v=y}e=e.replace(h.match[s],"");if(!o){return[]}break}}}if(e===g){if(o==null){d.error(e)}else{break}}g=e}return v};d.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)};var p=d.getText=function(e){var t,n,i=e.nodeType,r="";if(i){if(i===1||i===9){if(typeof e.textContent==="string"){return e.textContent}else{if(typeof e.innerText==="string"){return e.innerText.replace(u,"")}else{for(e=e.firstChild;e;e=e.nextSibling){r+=p(e)}}}}else{if(i===3||i===4){return e.nodeValue}}}else{for(t=0;n=e[t];t++){if(n.nodeType!==8){r+=p(n)}}}return r};var h=d.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(e){return e.getAttribute("href")},type:function(e){return e.getAttribute("type")}},relative:{"+":function(e,t){var n=typeof t==="string",i=n&&!c.test(t),r=n&&!i;if(i){t=t.toLowerCase()}for(var a=0,o=e.length,s;a<o;a++){if(s=e[a]){while((s=s.previousSibling)&&s.nodeType!==1){}e[a]=r||s&&s.nodeName.toLowerCase()===t?s||false:s===t}}if(r){d.filter(t,e,true)}},">":function(e,t){var n,i=typeof t==="string",r=0,a=e.length;if(i&&!c.test(t)){t=t.toLowerCase();for(;r<a;r++){n=e[r];if(n){var o=n.parentNode;e[r]=o.nodeName.toLowerCase()===t?o:false}}}else{for(;r<a;r++){n=e[r];if(n){e[r]=i?n.parentNode:n.parentNode===t}}if(i){d.filter(t,e,true)}}},"":function(e,t,n){var i,a=r++,o=N;if(typeof t==="string"&&!c.test(t)){t=t.toLowerCase();i=t;o=T}o("parentNode",t,a,e,i,n)},"~":function(e,t,n){var i,a=r++,o=N;if(typeof t==="string"&&!c.test(t)){t=t.toLowerCase();i=t;o=T}o("previousSibling",t,a,e,i,n)}},find:{ID:function(e,t,n){if(typeof t.getElementById!=="undefined"&&!n){var i=t.getElementById(e[1]);return i&&i.parentNode?[i]:[]}},NAME:function(e,t){if(typeof t.getElementsByName!=="undefined"){var n=[],i=t.getElementsByName(e[1]);for(var r=0,a=i.length;r<a;r++){if(i[r].getAttribute("name")===e[1]){n.push(i[r])}}return n.length===0?null:n}},TAG:function(e,t){if(typeof t.getElementsByTagName!=="undefined"){return t.getElementsByTagName(e[1])}}},preFilter:{CLASS:function(e,t,n,i,r,a){e=" "+e[1].replace(f,"")+" ";if(a){return e}for(var o=0,s;(s=t[o])!=null;o++){if(s){if(r^(s.className&&(" "+s.className+" ").replace(/[\t\n\r]/g," ").indexOf(e)>=0)){if(!n){i.push(s)}}else{if(n){t[o]=false}}}}return false},ID:function(e){return e[1].replace(f,"")},TAG:function(e,t){return e[1].replace(f,"").toLowerCase()},CHILD:function(e){if(e[1]==="nth"){if(!e[2]){d.error(e[0])}e[2]=e[2].replace(/^\+|\s*/g,"");var t=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(e[2]==="even"&&"2n"||e[2]==="odd"&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=t[1]+(t[2]||1)-0;e[3]=t[3]-0}else{if(e[2]){d.error(e[0])}}e[0]=r++;return e},ATTR:function(e,t,n,i,r,a){var o=e[1]=e[1].replace(f,"");if(!a&&h.attrMap[o]){e[1]=h.attrMap[o]}e[4]=(e[4]||e[5]||"").replace(f,"");if(e[2]==="~="){e[4]=" "+e[4]+" "}return e},PSEUDO:function(t,n,i,r,a){if(t[1]==="not"){if((e.exec(t[3])||"").length>1||/^\w/.test(t[3])){t[3]=d(t[3],null,null,n)}else{var o=d.filter(t[3],n,i,true^a);if(!i){r.push.apply(r,o)}return false}}else{if(h.match.POS.test(t[0])||h.match.CHILD.test(t[0])){return true}}return t},POS:function(e){e.unshift(true);return e}},filters:{enabled:function(e){return e.disabled===false&&e.type!=="hidden"},disabled:function(e){return e.disabled===true},checked:function(e){return e.checked===true},selected:function(e){if(e.parentNode){e.parentNode.selectedIndex}return e.selected===true},parent:function(e){return!!e.firstChild},empty:function(e){return!e.firstChild},has:function(e,t,n){return!!d(n[3],e).length},header:function(e){return/h\d/i.test(e.nodeName)},text:function(e){var t=e.getAttribute("type"),n=e.type;return e.nodeName.toLowerCase()==="input"&&"text"===n&&(t===n||t===null)},radio:function(e){return e.nodeName.toLowerCase()==="input"&&"radio"===e.type},checkbox:function(e){return e.nodeName.toLowerCase()==="input"&&"checkbox"===e.type},file:function(e){return e.nodeName.toLowerCase()==="input"&&"file"===e.type},password:function(e){return e.nodeName.toLowerCase()==="input"&&"password"===e.type},submit:function(e){var t=e.nodeName.toLowerCase();return(t==="input"||t==="button")&&"submit"===e.type},image:function(e){return e.nodeName.toLowerCase()==="input"&&"image"===e.type},reset:function(e){var t=e.nodeName.toLowerCase();return(t==="input"||t==="button")&&"reset"===e.type},button:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&"button"===e.type||t==="button"},input:function(e){return/input|select|textarea|button/i.test(e.nodeName)},focus:function(e){return e===e.ownerDocument.activeElement}},setFilters:{first:function(e,t){return t===0},last:function(e,t,n,i){return t===i.length-1},even:function(e,t){return t%2===0},odd:function(e,t){return t%2===1},lt:function(e,t,n){return t<n[3]-0},gt:function(e,t,n){return t>n[3]-0},nth:function(e,t,n){return n[3]-0===t},eq:function(e,t,n){return n[3]-0===t}},filter:{PSEUDO:function(e,t,n,i){var r=t[1],a=h.filters[r];if(a){return a(e,n,t,i)}else{if(r==="contains"){return(e.textContent||e.innerText||p([e])||"").indexOf(t[3])>=0}else{if(r==="not"){var o=t[3];for(var s=0,l=o.length;s<l;s++){if(o[s]===e){return false}}return true}else{d.error(r)}}}},CHILD:function(e,t){var n,r,a,o,s,l,f,u=t[1],c=e;switch(u){case"only":case"first":while(c=c.previousSibling){if(c.nodeType===1){return false}}if(u==="first"){return true}c=e;case"last":while(c=c.nextSibling){if(c.nodeType===1){return false}}return true;case"nth":n=t[2];r=t[3];if(n===1&&r===0){return true}a=t[0];o=e.parentNode;if(o&&(o[i]!==a||!e.nodeIndex)){l=0;for(c=o.firstChild;c;c=c.nextSibling){if(c.nodeType===1){c.nodeIndex=++l}}o[i]=a}f=e.nodeIndex-r;if(n===0){return f===0}else{return f%n===0&&f/n>=0}}},ID:function(e,t){return e.nodeType===1&&e.getAttribute("id")===t},TAG:function(e,t){return t==="*"&&e.nodeType===1||!!e.nodeName&&e.nodeName.toLowerCase()===t},CLASS:function(e,t){return(" "+(e.className||e.getAttribute("class"))+" ").indexOf(t)>-1},ATTR:function(e,t){var n=t[1],i=d.attr?d.attr(e,n):h.attrHandle[n]?h.attrHandle[n](e):e[n]!=null?e[n]:e.getAttribute(n),r=i+"",a=t[2],o=t[4];return i==null?a==="!=":!a&&d.attr?i!=null:a==="="?r===o:a==="*="?r.indexOf(o)>=0:a==="~="?(" "+r+" ").indexOf(o)>=0:!o?r&&i!==false:a==="!="?r!==o:a==="^="?r.indexOf(o)===0:a==="$="?r.substr(r.length-o.length)===o:a==="|="?r===o||r.substr(0,o.length+1)===o+"-":false},POS:function(e,t,n,i){var r=t[2],a=h.setFilters[r];if(a){return a(e,n,t,i)}}}};var m=h.match.POS,g=function(e,t){return"\\"+(t-0+1)};for(var y in h.match){h.match[y]=new RegExp(h.match[y].source+/(?![^\[]*\])(?![^\(]*\))/.source);h.leftMatch[y]=new RegExp(/(^(?:.|\r|\n)*?)/.source+h.match[y].source.replace(/\\(\d+)/g,g))}var v=function(e,t){e=Array.prototype.slice.call(e,0);if(t){t.push.apply(t,e);return t}return e};try{Array.prototype.slice.call(n.documentElement.childNodes,0)[0].nodeType}catch(b){v=function(e,t){var n=0,i=t||[];if(o.call(e)==="[object Array]"){Array.prototype.push.apply(i,e)}else{if(typeof e.length==="number"){for(var r=e.length;n<r;n++){i.push(e[n])}}else{for(;e[n];n++){i.push(e[n])}}}return i}}var x,w;if(n.documentElement.compareDocumentPosition){x=function(e,t){if(e===t){s=true;return 0}if(!e.compareDocumentPosition||!t.compareDocumentPosition){return e.compareDocumentPosition?-1:1}return e.compareDocumentPosition(t)&4?-1:1}}else{x=function(e,t){if(e===t){s=true;return 0}else{if(e.sourceIndex&&t.sourceIndex){return e.sourceIndex-t.sourceIndex}}var n,i,r=[],a=[],o=e.parentNode,l=t.parentNode,f=o;if(o===l){return w(e,t)}else{if(!o){return-1}else{if(!l){return 1}}}while(f){r.unshift(f);f=f.parentNode}f=l;while(f){a.unshift(f);f=f.parentNode}n=r.length;i=a.length;for(var u=0;u<n&&u<i;u++){if(r[u]!==a[u]){return w(r[u],a[u])}}return u===n?w(e,a[u],-1):w(r[u],t,1)};w=function(e,t,n){if(e===t){return n}var i=e.nextSibling;while(i){if(i===t){return-1}i=i.nextSibling}return 1}}!function(){var e=n.createElement("div"),i="script"+(new Date).getTime(),r=n.documentElement;e.innerHTML="<a name='"+i+"'/>";r.insertBefore(e,r.firstChild);if(n.getElementById(i)){h.find.ID=function(e,n,i){if(typeof n.getElementById!=="undefined"&&!i){var r=n.getElementById(e[1]);return r?r.id===e[1]||typeof r.getAttributeNode!=="undefined"&&r.getAttributeNode("id").nodeValue===e[1]?[r]:t:[]}};h.filter.ID=function(e,t){var n=typeof e.getAttributeNode!=="undefined"&&e.getAttributeNode("id");return e.nodeType===1&&n&&n.nodeValue===t}}r.removeChild(e);r=e=null}();!function(){var e=n.createElement("div");e.appendChild(n.createComment(""));if(e.getElementsByTagName("*").length>0){h.find.TAG=function(e,t){var n=t.getElementsByTagName(e[1]);if(e[1]==="*"){var i=[];for(var r=0;n[r];r++){if(n[r].nodeType===1){i.push(n[r])}}n=i}return n}}e.innerHTML="<a href='#'></a>";if(e.firstChild&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribute("href")!=="#"){h.attrHandle.href=function(e){return e.getAttribute("href",2)}}e=null}();if(n.querySelectorAll){!function(){var e=d,t=n.createElement("div"),i="__sizzle__";t.innerHTML="<p class='TEST'></p>";if(t.querySelectorAll&&t.querySelectorAll(".TEST").length===0){return}d=function(t,r,a,o){r=r||n;if(!o&&!d.isXML(r)){var s=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(t);if(s&&(r.nodeType===1||r.nodeType===9)){if(s[1]){return v(r.getElementsByTagName(t),a)}else{if(s[2]&&h.find.CLASS&&r.getElementsByClassName){return v(r.getElementsByClassName(s[2]),a)}}}if(r.nodeType===9){if(t==="body"&&r.body){return v([r.body],a)}else{if(s&&s[3]){var l=r.getElementById(s[3]);if(l&&l.parentNode){if(l.id===s[3]){return v([l],a)}}else{return v([],a)}}}try{return v(r.querySelectorAll(t),a)}catch(f){}}else{if(r.nodeType===1&&r.nodeName.toLowerCase()!=="object"){var u=r,c=r.getAttribute("id"),p=c||i,m=r.parentNode,g=/^\s*[+~]/.test(t);if(!c){r.setAttribute("id",p)}else{p=p.replace(/'/g,"\\$&")}if(g&&m){r=r.parentNode}try{if(!g||m){return v(r.querySelectorAll("[id='"+p+"'] "+t),a)}}catch(y){}finally{if(!c){u.removeAttribute("id")}}}}}return e(t,r,a,o)};for(var r in e){d[r]=e[r]}t=null}()}!function(){var e=n.documentElement,t=e.matchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.msMatchesSelector;if(t){var i=!t.call(n.createElement("div"),"div"),r=false;try{t.call(n.documentElement,"[test!='']:sizzle")}catch(a){r=true}d.matchesSelector=function(e,n){n=n.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!d.isXML(e)){try{if(r||!h.match.PSEUDO.test(n)&&!/!=/.test(n)){var a=t.call(e,n);if(a||!i||e.document&&e.document.nodeType!==11){return a}}}catch(o){}}return d(n,null,null,[e]).length>0}}}();!function(){var e=n.createElement("div");e.innerHTML="<div class='test e'></div><div class='test'></div>";if(!e.getElementsByClassName||e.getElementsByClassName("e").length===0){return}e.lastChild.className="e";if(e.getElementsByClassName("e").length===1){return}h.order.splice(1,0,"CLASS");h.find.CLASS=function(e,t,n){if(typeof t.getElementsByClassName!=="undefined"&&!n){return t.getElementsByClassName(e[1])}};e=null}();function T(e,t,n,r,a,o){for(var s=0,l=r.length;s<l;s++){var f=r[s];if(f){var u=false;f=f[e];while(f){if(f[i]===n){u=r[f.sizset];break}if(f.nodeType===1&&!o){f[i]=n;f.sizset=s}if(f.nodeName.toLowerCase()===t){u=f;break}f=f[e]}r[s]=u}}}function N(e,t,n,r,a,o){for(var s=0,l=r.length;s<l;s++){var f=r[s];if(f){var u=false;f=f[e];while(f){if(f[i]===n){u=r[f.sizset];break}if(f.nodeType===1){if(!o){f[i]=n;f.sizset=s}if(typeof t!=="string"){if(f===t){u=true;break}}else{if(d.filter(t,[f]).length>0){u=f;break}}}f=f[e]}r[s]=u}}}if(n.documentElement.contains){d.contains=function(e,t){return e!==t&&(e.contains?e.contains(t):true)}}else{if(n.documentElement.compareDocumentPosition){d.contains=function(e,t){return!!(e.compareDocumentPosition(t)&16)}}else{d.contains=function(){return false}}}d.isXML=function(e){var t=(e?e.ownerDocument||e:0).documentElement;return t?t.nodeName!=="HTML":false};var C=function(e,t,n){var i,r=[],a="",o=t.nodeType?[t]:t;while(i=h.match.PSEUDO.exec(e)){a+=i[0];e=e.replace(h.match.PSEUDO,"")}e=h.relative[e]?e+"*":e;for(var s=0,l=o.length;s<l;s++){d(e,o[s],r,n)}return d.filter(a,r)};d.attr=a.attr;d.selectors.attrMap={};a.find=d;a.expr=d.selectors;a.expr[":"]=a.expr.filters;a.unique=d.uniqueSort;a.text=d.getText;a.isXMLDoc=d.isXML;a.contains=d.contains}();var B=/Until$/,P=/^(?:parents|prevUntil|prevAll)/,q=/,/,W=/^.[^:#\[\.,]*$/,I=Array.prototype.slice,$=a.expr.match.POS,R={children:true,contents:true,next:true,prev:true};a.fn.extend({find:function(e){var t=this,n,i;if(typeof e!=="string"){return a(e).filter(function(){for(n=0,i=t.length;n<i;n++){if(a.contains(t[n],this)){return true}}})}var r=this.pushStack("","find",e),o,s,l;for(n=0,i=this.length;n<i;n++){o=r.length;a.find(e,this[n],r);if(n>0){for(s=o;s<r.length;s++){for(l=0;l<o;l++){if(r[l]===r[s]){r.splice(s--,1);break}}}}}return r},has:function(e){var t=a(e);return this.filter(function(){for(var e=0,n=t.length;e<n;e++){if(a.contains(this,t[e])){return true}}})},not:function(e){return this.pushStack(z(this,e,false),"not",e)},filter:function(e){return this.pushStack(z(this,e,true),"filter",e)},is:function(e){return!!e&&(typeof e==="string"?$.test(e)?a(e,this.context).index(this[0])>=0:a.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){var n=[],i,r,o=this[0];if(a.isArray(e)){var s=1;while(o&&o.ownerDocument&&o!==t){for(i=0;i<e.length;i++){if(a(o).is(e[i])){n.push({selector:e[i],elem:o,level:s})}}o=o.parentNode;s++}return n}var l=$.test(e)||typeof e!=="string"?a(e,t||this.context):0;for(i=0,r=this.length;i<r;i++){o=this[i];while(o){if(l?l.index(o)>-1:a.find.matchesSelector(o,e)){n.push(o);break}else{o=o.parentNode;if(!o||!o.ownerDocument||o===t||o.nodeType===11){break}}}}n=n.length>1?a.unique(n):n;return this.pushStack(n,"closest",e)},index:function(e){if(!e){return this[0]&&this[0].parentNode?this.prevAll().length:-1}if(typeof e==="string"){return a.inArray(this[0],a(e))}return a.inArray(e.jquery?e[0]:e,this)},add:function(e,t){var n=typeof e==="string"?a(e,t):a.makeArray(e&&e.nodeType?[e]:e),i=a.merge(this.get(),n);return this.pushStack(X(n[0])||X(i[0])?i:a.unique(i))},andSelf:function(){return this.add(this.prevObject)}});function X(e){return!e||!e.parentNode||e.parentNode.nodeType===11}a.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return a.dir(e,"parentNode")},parentsUntil:function(e,t,n){return a.dir(e,"parentNode",n)},next:function(e){return a.nth(e,2,"nextSibling")},prev:function(e){return a.nth(e,2,"previousSibling")},nextAll:function(e){return a.dir(e,"nextSibling")},prevAll:function(e){return a.dir(e,"previousSibling")},nextUntil:function(e,t,n){return a.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return a.dir(e,"previousSibling",n)},siblings:function(e){return a.sibling(e.parentNode.firstChild,e)},children:function(e){return a.sibling(e.firstChild)},contents:function(e){return a.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:a.makeArray(e.childNodes)}},function(e,t){a.fn[e]=function(n,i){var r=a.map(this,t,n);if(!B.test(e)){i=n}if(i&&typeof i==="string"){r=a.filter(i,r)}r=this.length>1&&!R[e]?a.unique(r):r;if((this.length>1||q.test(i))&&P.test(e)){r=r.reverse()}return this.pushStack(r,e,I.call(arguments).join(","))}});a.extend({filter:function(e,t,n){if(n){e=":not("+e+")"}return t.length===1?a.find.matchesSelector(t[0],e)?[t[0]]:[]:a.find.matches(e,t)},dir:function(e,n,i){var r=[],o=e[n];while(o&&o.nodeType!==9&&(i===t||o.nodeType!==1||!a(o).is(i))){if(o.nodeType===1){r.push(o)}o=o[n]}return r},nth:function(e,t,n,i){t=t||1;var r=0;for(;e;e=e[n]){if(e.nodeType===1&&++r===t){break}}return e},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling){if(e.nodeType===1&&e!==t){n.push(e)}}return n}});function z(e,t,n){t=t||0;if(a.isFunction(t)){return a.grep(e,function(e,i){var r=!!t.call(e,i,e);return r===n})}else{if(t.nodeType){return a.grep(e,function(e,i){return e===t===n})}else{if(typeof t==="string"){var i=a.grep(e,function(e){return e.nodeType===1});if(W.test(t)){return a.filter(t,i,!n)}else{t=a.filter(t,i)}}}}return a.grep(e,function(e,i){return a.inArray(e,t)>=0===n})}function V(e){var t=U.split("|"),n=e.createDocumentFragment();if(n.createElement){while(t.length){n.createElement(t.pop())}}return n}var U="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",G=/ jQuery\d+="(?:\d+|null)"/g,J=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Q=/<([\w:]+)/,K=/<tbody/i,Z=/<|&#?\w+;/,et=/<(?:script|style)/i,tt=/<(?:script|object|embed|option|style)/i,nt=new RegExp("<(?:"+U+")","i"),it=/checked\s*(?:[^=]|=\s*.checked.)/i,rt=/\/(java|ecma)script/i,at=/^\s*<!(?:\[CDATA\[|\-\-)/,ot={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},st=V(n);ot.optgroup=ot.option;ot.tbody=ot.tfoot=ot.colgroup=ot.caption=ot.thead;ot.th=ot.td;if(!a.support.htmlSerialize){ot._default=[1,"div<div>","</div>"]}a.fn.extend({text:function(e){if(a.isFunction(e)){return this.each(function(t){var n=a(this);n.text(e.call(this,t,n.text()))})}if(typeof e!=="object"&&e!==t){return this.empty().append((this[0]&&this[0].ownerDocument||n).createTextNode(e))}return a.text(this)},wrapAll:function(e){if(a.isFunction(e)){return this.each(function(t){a(this).wrapAll(e.call(this,t))})}if(this[0]){var t=a(e,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){t.insertBefore(this[0])}t.map(function(){var e=this;while(e.firstChild&&e.firstChild.nodeType===1){e=e.firstChild}return e}).append(this)}return this},wrapInner:function(e){if(a.isFunction(e)){return this.each(function(t){a(this).wrapInner(e.call(this,t))})}return this.each(function(){var t=a(this),n=t.contents();if(n.length){n.wrapAll(e)}else{t.append(e)}})},wrap:function(e){var t=a.isFunction(e);return this.each(function(n){a(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){if(!a.nodeName(this,"body")){a(this).replaceWith(this.childNodes)}}).end()},append:function(){return this.domManip(arguments,true,function(e){if(this.nodeType===1){this.appendChild(e)}})},prepend:function(){return this.domManip(arguments,true,function(e){if(this.nodeType===1){this.insertBefore(e,this.firstChild)}})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(e){this.parentNode.insertBefore(e,this)})}else{if(arguments.length){var e=a.clean(arguments);e.push.apply(e,this.toArray());return this.pushStack(e,"before",arguments)}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(e){this.parentNode.insertBefore(e,this.nextSibling)})}else{if(arguments.length){var e=this.pushStack(this,"after",arguments);e.push.apply(e,a.clean(arguments));return e}}},remove:function(e,t){for(var n=0,i;(i=this[n])!=null;n++){if(!e||a.filter(e,[i]).length){if(!t&&i.nodeType===1){a.cleanData(i.getElementsByTagName("*"));a.cleanData([i])}if(i.parentNode){i.parentNode.removeChild(i)}}}return this},empty:function(){for(var e=0,t;(t=this[e])!=null;e++){if(t.nodeType===1){a.cleanData(t.getElementsByTagName("*"))}while(t.firstChild){t.removeChild(t.firstChild)}}return this},clone:function(e,t){e=e==null?false:e;t=t==null?e:t;return this.map(function(){return a.clone(this,e,t)})},html:function(e){if(e===t){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(G,""):null}else{if(typeof e==="string"&&!et.test(e)&&(a.support.leadingWhitespace||!J.test(e))&&!ot[(Q.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(Y,"<$1></$2>");try{for(var n=0,i=this.length;n<i;n++){if(this[n].nodeType===1){a.cleanData(this[n].getElementsByTagName("*"));this[n].innerHTML=e}}}catch(r){this.empty().append(e)}}else{if(a.isFunction(e)){this.each(function(t){var n=a(this);n.html(e.call(this,t,n.html()))})}else{this.empty().append(e)}}}return this},replaceWith:function(e){if(this[0]&&this[0].parentNode){if(a.isFunction(e)){return this.each(function(t){var n=a(this),i=n.html();n.replaceWith(e.call(this,t,i))})}if(typeof e!=="string"){e=a(e).detach()}return this.each(function(){var t=this.nextSibling,n=this.parentNode;a(this).remove();if(t){a(t).before(e)}else{a(n).append(e)}})}else{return this.length?this.pushStack(a(a.isFunction(e)?e():e),"replaceWith",e):this}},detach:function(e){return this.remove(e,true)},domManip:function(e,n,i){var r,o,s,l,f=e[0],u=[];if(!a.support.checkClone&&arguments.length===3&&typeof f==="string"&&it.test(f)){return this.each(function(){a(this).domManip(e,n,i,true)})}if(a.isFunction(f)){return this.each(function(r){var o=a(this);
  e[0]=f.call(this,r,n?o.html():t);o.domManip(e,n,i)})}if(this[0]){l=f&&f.parentNode;if(a.support.parentNode&&l&&l.nodeType===11&&l.childNodes.length===this.length){r={fragment:l}}else{r=a.buildFragment(e,this,u)}s=r.fragment;if(s.childNodes.length===1){o=s=s.firstChild}else{o=s.firstChild}if(o){n=n&&a.nodeName(o,"tr");for(var c=0,d=this.length,p=d-1;c<d;c++){i.call(n?lt(this[c],o):this[c],r.cacheable||d>1&&c<p?a.clone(s,true,true):s)}}if(u.length){a.each(u,mt)}}return this}});function lt(e,t){return a.nodeName(e,"table")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function ft(e,t){if(t.nodeType!==1||!a.hasData(e)){return}var n,i,r,o=a._data(e),s=a._data(t,o),l=o.events;if(l){delete s.handle;s.events={};for(n in l){for(i=0,r=l[n].length;i<r;i++){a.event.add(t,n+(l[n][i].namespace?".":"")+l[n][i].namespace,l[n][i],l[n][i].data)}}}if(s.data){s.data=a.extend({},s.data)}}function ut(e,t){var n;if(t.nodeType!==1){return}if(t.clearAttributes){t.clearAttributes()}if(t.mergeAttributes){t.mergeAttributes(e)}n=t.nodeName.toLowerCase();if(n==="object"){t.outerHTML=e.outerHTML}else{if(n==="input"&&(e.type==="checkbox"||e.type==="radio")){if(e.checked){t.defaultChecked=t.checked=e.checked}if(t.value!==e.value){t.value=e.value}}else{if(n==="option"){t.selected=e.defaultSelected}else{if(n==="input"||n==="textarea"){t.defaultValue=e.defaultValue}}}}t.removeAttribute(a.expando)}a.buildFragment=function(e,t,i){var r,o,s,l,f=e[0];if(t&&t[0]){l=t[0].ownerDocument||t[0]}if(!l.createDocumentFragment){l=n}if(e.length===1&&typeof f==="string"&&f.length<512&&l===n&&f.charAt(0)==="<"&&!tt.test(f)&&(a.support.checkClone||!it.test(f))&&(a.support.html5Clone||!nt.test(f))){o=true;s=a.fragments[f];if(s&&s!==1){r=s}}if(!r){r=l.createDocumentFragment();a.clean(e,l,r,i)}if(o){a.fragments[f]=s?r:1}return{fragment:r,cacheable:o}};a.fragments={};a.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){a.fn[e]=function(n){var i=[],r=a(n),o=this.length===1&&this[0].parentNode;if(o&&o.nodeType===11&&o.childNodes.length===1&&r.length===1){r[t](this[0]);return this}else{for(var s=0,l=r.length;s<l;s++){var f=(s>0?this.clone(true):this).get();a(r[s])[t](f);i=i.concat(f)}return this.pushStack(i,e,r.selector)}}});function ct(e){if(typeof e.getElementsByTagName!=="undefined"){return e.getElementsByTagName("*")}else{if(typeof e.querySelectorAll!=="undefined"){return e.querySelectorAll("*")}else{return[]}}}function dt(e){if(e.type==="checkbox"||e.type==="radio"){e.defaultChecked=e.checked}}function pt(e){var t=(e.nodeName||"").toLowerCase();if(t==="input"){dt(e)}else{if(t!=="script"&&typeof e.getElementsByTagName!=="undefined"){a.grep(e.getElementsByTagName("input"),dt)}}}function ht(e){var t=n.createElement("div");st.appendChild(t);t.innerHTML=e.outerHTML;return t.firstChild}a.extend({clone:function(e,t,n){var i,r,o,s=a.support.html5Clone||!nt.test("<"+e.nodeName)?e.cloneNode(true):ht(e);if((!a.support.noCloneEvent||!a.support.noCloneChecked)&&(e.nodeType===1||e.nodeType===11)&&!a.isXMLDoc(e)){ut(e,s);i=ct(e);r=ct(s);for(o=0;i[o];++o){if(r[o]){ut(i[o],r[o])}}}if(t){ft(e,s);if(n){i=ct(e);r=ct(s);for(o=0;i[o];++o){ft(i[o],r[o])}}}i=r=null;return s},clean:function(e,t,i,r){var o;t=t||n;if(typeof t.createElement==="undefined"){t=t.ownerDocument||t[0]&&t[0].ownerDocument||n}var s=[],l;for(var f=0,u;(u=e[f])!=null;f++){if(typeof u==="number"){u+=""}if(!u){continue}if(typeof u==="string"){if(!Z.test(u)){u=t.createTextNode(u)}else{u=u.replace(Y,"<$1></$2>");var c=(Q.exec(u)||["",""])[1].toLowerCase(),d=ot[c]||ot._default,p=d[0],h=t.createElement("div");if(t===n){st.appendChild(h)}else{V(t).appendChild(h)}h.innerHTML=d[1]+u+d[2];while(p--){h=h.lastChild}if(!a.support.tbody){var m=K.test(u),g=c==="table"&&!m?h.firstChild&&h.firstChild.childNodes:d[1]==="<table>"&&!m?h.childNodes:[];for(l=g.length-1;l>=0;--l){if(a.nodeName(g[l],"tbody")&&!g[l].childNodes.length){g[l].parentNode.removeChild(g[l])}}}if(!a.support.leadingWhitespace&&J.test(u)){h.insertBefore(t.createTextNode(J.exec(u)[0]),h.firstChild)}u=h.childNodes}}var y;if(!a.support.appendChecked){if(u[0]&&typeof(y=u.length)==="number"){for(l=0;l<y;l++){pt(u[l])}}else{pt(u)}}if(u.nodeType){s.push(u)}else{s=a.merge(s,u)}}if(i){o=function(e){return!e.type||rt.test(e.type)};for(f=0;s[f];f++){if(r&&a.nodeName(s[f],"script")&&(!s[f].type||s[f].type.toLowerCase()==="text/javascript")){r.push(s[f].parentNode?s[f].parentNode.removeChild(s[f]):s[f])}else{if(s[f].nodeType===1){var v=a.grep(s[f].getElementsByTagName("script"),o);s.splice.apply(s,[f+1,0].concat(v))}i.appendChild(s[f])}}}return s},cleanData:function(e){var t,n,i=a.cache,r=a.event.special,o=a.support.deleteExpando;for(var s=0,l;(l=e[s])!=null;s++){if(l.nodeName&&a.noData[l.nodeName.toLowerCase()]){continue}n=l[a.expando];if(n){t=i[n];if(t&&t.events){for(var f in t.events){if(r[f]){a.event.remove(l,f)}else{a.removeEvent(l,f,t.handle)}}if(t.handle){t.handle.elem=null}}if(o){delete l[a.expando]}else{if(l.removeAttribute){l.removeAttribute(a.expando)}}delete i[n]}}}});function mt(e,t){if(t.src){a.ajax({url:t.src,async:false,dataType:"script"})}else{a.globalEval((t.text||t.textContent||t.innerHTML||"").replace(at,"/*$0*/"))}if(t.parentNode){t.parentNode.removeChild(t)}}var gt=/alpha\([^)]*\)/i,yt=/opacity=([^)]*)/,vt=/([A-Z]|^ms)/g,bt=/^-?\d+(?:px)?$/i,xt=/^-?\d/,wt=/^([\-+])=([\-+.\de]+)/,Tt={position:"absolute",visibility:"hidden",display:"block"},Nt=["Left","Right"],Ct=["Top","Bottom"],Et,kt,St;a.fn.css=function(e,n){if(arguments.length===2&&n===t){return this}return a.access(this,e,n,true,function(e,n,i){return i!==t?a.style(e,n,i):a.css(e,n)})};a.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Et(e,"opacity","opacity");return n===""?"1":n}else{return e.style.opacity}}}},cssNumber:{fillOpacity:true,fontWeight:true,lineHeight:true,opacity:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{"float":a.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,i,r){if(!e||e.nodeType===3||e.nodeType===8||!e.style){return}var o,s,l=a.camelCase(n),f=e.style,u=a.cssHooks[l];n=a.cssProps[l]||l;if(i!==t){s=typeof i;if(s==="string"&&(o=wt.exec(i))){i=+(o[1]+1)*+o[2]+parseFloat(a.css(e,n));s="number"}if(i==null||s==="number"&&isNaN(i)){return}if(s==="number"&&!a.cssNumber[l]){i+="px"}if(!u||!("set"in u)||(i=u.set(e,i))!==t){try{f[n]=i}catch(c){}}}else{if(u&&"get"in u&&(o=u.get(e,false,r))!==t){return o}return f[n]}},css:function(e,n,i){var r,o;n=a.camelCase(n);o=a.cssHooks[n];n=a.cssProps[n]||n;if(n==="cssFloat"){n="float"}if(o&&"get"in o&&(r=o.get(e,true,i))!==t){return r}else{if(Et){return Et(e,n)}}},swap:function(e,t,n){var i={};for(var r in t){i[r]=e.style[r];e.style[r]=t[r]}n.call(e);for(r in t){e.style[r]=i[r]}}});a.curCSS=a.css;a.each(["height","width"],function(e,t){a.cssHooks[t]={get:function(e,n,i){var r;if(n){if(e.offsetWidth!==0){return At(e,t,i)}else{a.swap(e,Tt,function(){r=At(e,t,i)})}return r}},set:function(e,t){if(bt.test(t)){t=parseFloat(t);if(t>=0){return t+"px"}}else{return t}}}});if(!a.support.opacity){a.cssHooks.opacity={get:function(e,t){return yt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?parseFloat(RegExp.$1)/100+"":t?"1":""},set:function(e,t){var n=e.style,i=e.currentStyle,r=a.isNumeric(t)?"alpha(opacity="+t*100+")":"",o=i&&i.filter||n.filter||"";n.zoom=1;if(t>=1&&a.trim(o.replace(gt,""))===""){n.removeAttribute("filter");if(i&&!i.filter){return}}n.filter=gt.test(o)?o.replace(gt,r):o+" "+r}}}a(function(){if(!a.support.reliableMarginRight){a.cssHooks.marginRight={get:function(e,t){var n;a.swap(e,{display:"inline-block"},function(){if(t){n=Et(e,"margin-right","marginRight")}else{n=e.style.marginRight}});return n}}}});if(n.defaultView&&n.defaultView.getComputedStyle){kt=function(e,t){var n,i,r;t=t.replace(vt,"-$1").toLowerCase();if((i=e.ownerDocument.defaultView)&&(r=i.getComputedStyle(e,null))){n=r.getPropertyValue(t);if(n===""&&!a.contains(e.ownerDocument.documentElement,e)){n=a.style(e,t)}}return n}}if(n.documentElement.currentStyle){St=function(e,t){var n,i,r,a=e.currentStyle&&e.currentStyle[t],o=e.style;if(a===null&&o&&(r=o[t])){a=r}if(!bt.test(a)&&xt.test(a)){n=o.left;i=e.runtimeStyle&&e.runtimeStyle.left;if(i){e.runtimeStyle.left=e.currentStyle.left}o.left=t==="fontSize"?"1em":a||0;a=o.pixelLeft+"px";o.left=n;if(i){e.runtimeStyle.left=i}}return a===""?"auto":a}}Et=kt||St;function At(e,t,n){var i=t==="width"?e.offsetWidth:e.offsetHeight,r=t==="width"?Nt:Ct,o=0,s=r.length;if(i>0){if(n!=="border"){for(;o<s;o++){if(!n){i-=parseFloat(a.css(e,"padding"+r[o]))||0}if(n==="margin"){i+=parseFloat(a.css(e,n+r[o]))||0}else{i-=parseFloat(a.css(e,"border"+r[o]+"Width"))||0}}}return i+"px"}i=Et(e,t,t);if(i<0||i==null){i=e.style[t]||0}i=parseFloat(i)||0;if(n){for(;o<s;o++){i+=parseFloat(a.css(e,"padding"+r[o]))||0;if(n!=="padding"){i+=parseFloat(a.css(e,"border"+r[o]+"Width"))||0}if(n==="margin"){i+=parseFloat(a.css(e,n+r[o]))||0}}}return i+"px"}if(a.expr&&a.expr.filters){a.expr.filters.hidden=function(e){var t=e.offsetWidth,n=e.offsetHeight;return t===0&&n===0||!a.support.reliableHiddenOffsets&&(e.style&&e.style.display||a.css(e,"display"))==="none"};a.expr.filters.visible=function(e){return!a.expr.filters.hidden(e)}}var Lt=/%20/g,jt=/\[\]$/,Ft=/\r?\n/g,Dt=/#.*$/,Mt=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Ot=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,_t=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,Ht=/^(?:GET|HEAD)$/,Bt=/^\/\//,Pt=/\?/,qt=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,Wt=/^(?:select|textarea)/i,It=/\s+/,$t=/([?&])_=[^&]*/,Rt=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,Xt=a.fn.load,zt={},Vt={},Ut,Gt,Jt=["*/"]+["*"];try{Ut=r.href}catch(Yt){Ut=n.createElement("a");Ut.href="";Ut=Ut.href}Gt=Rt.exec(Ut.toLowerCase())||[];function Qt(e){return function(t,n){if(typeof t!=="string"){n=t;t="*"}if(a.isFunction(n)){var i=t.toLowerCase().split(It),r=0,o=i.length,s,l,f;for(;r<o;r++){s=i[r];f=/^\+/.test(s);if(f){s=s.substr(1)||"*"}l=e[s]=e[s]||[];l[f?"unshift":"push"](n)}}}}function Kt(e,n,i,r,a,o){a=a||n.dataTypes[0];o=o||{};o[a]=true;var s=e[a],l=0,f=s?s.length:0,u=e===zt,c;for(;l<f&&(u||!c);l++){c=s[l](n,i,r);if(typeof c==="string"){if(!u||o[c]){c=t}else{n.dataTypes.unshift(c);c=Kt(e,n,i,r,c,o)}}}if((u||!c)&&!o["*"]){c=Kt(e,n,i,r,"*",o)}return c}function Zt(e,n){var i,r,o=a.ajaxSettings.flatOptions||{};for(i in n){if(n[i]!==t){(o[i]?e:r||(r={}))[i]=n[i]}}if(r){a.extend(true,e,r)}}a.fn.extend({load:function(e,n,i){if(typeof e!=="string"&&Xt){return Xt.apply(this,arguments)}else{if(!this.length){return this}}var r=e.indexOf(" ");if(r>=0){var o=e.slice(r,e.length);e=e.slice(0,r)}var s="GET";if(n){if(a.isFunction(n)){i=n;n=t}else{if(typeof n==="object"){n=a.param(n,a.ajaxSettings.traditional);s="POST"}}}var l=this;a.ajax({url:e,type:s,dataType:"html",data:n,complete:function(e,t,n){n=e.responseText;if(e.isResolved()){e.done(function(e){n=e});l.html(o?a("<div>").append(n.replace(qt,"")).find(o):n)}if(i){l.each(i,[n,t,e])}}});return this},serialize:function(){return a.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?a.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||Wt.test(this.nodeName)||Ot.test(this.type))}).map(function(e,t){var n=a(this).val();return n==null?null:a.isArray(n)?a.map(n,function(e,n){return{name:t.name,value:e.replace(Ft,"\r\n")}}):{name:t.name,value:n.replace(Ft,"\r\n")}}).get()}});a.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,t){a.fn[t]=function(e){return this.on(t,e)}});a.each(["get","post"],function(e,n){a[n]=function(e,i,r,o){if(a.isFunction(i)){o=o||r;r=i;i=t}return a.ajax({type:n,url:e,data:i,success:r,dataType:o})}});a.extend({getScript:function(e,n){return a.get(e,t,n,"script")},getJSON:function(e,t,n){return a.get(e,t,n,"json")},ajaxSetup:function(e,t){if(t){Zt(e,a.ajaxSettings)}else{t=e;e=a.ajaxSettings}Zt(e,t);return e},ajaxSettings:{url:Ut,isLocal:_t.test(Gt[1]),global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":Jt},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":true,"text json":a.parseJSON,"text xml":a.parseXML},flatOptions:{context:true,url:true}},ajaxPrefilter:Qt(zt),ajaxTransport:Qt(Vt),ajax:function(e,n){if(typeof e==="object"){n=e;e=t}n=n||{};if(!n.jsonpCallback){n.jsonpCallback=n.jsonpName}var i=a.ajaxSetup({},n),r=i.context||i,o=r!==i&&(r.nodeType||r instanceof a)?a(r):a.event,s=a.Deferred(),l=a.Callbacks("once memory"),f=i.statusCode||{},u,c={},d={},p,h,m,g,y,v=0,b,x,w={readyState:0,setRequestHeader:function(e,t){if(!v){var n=e.toLowerCase();e=d[n]=d[n]||e;c[e]=t}return this},getAllResponseHeaders:function(){return v===2?p:null},getResponseHeader:function(e){var n;if(v===2){if(!h){h={};while(n=Mt.exec(p)){h[n[1].toLowerCase()]=n[2]}}n=h[e.toLowerCase()]}return n===t?null:n},overrideMimeType:function(e){if(!v){i.mimeType=e}return this},abort:function(e){e=e||"abort";if(m){m.abort(e)}T(0,e);return this}};function T(e,n,c,d){if(v===2){return}v=2;if(g){clearTimeout(g)}m=t;p=d||"";w.readyState=e>0?4:0;var h,y,x,T=n,N=c?tn(i,w,c):t,C,E;if(e>=200&&e<300||e===304){if(i.ifModified){if(C=w.getResponseHeader("Last-Modified")){a.lastModified[u]=C}if(E=w.getResponseHeader("Etag")){a.etag[u]=E}}if(e===304){T="notmodified";h=true}else{try{y=nn(i,N);T="success";h=true}catch(k){T="parsererror";x=k}}}else{x=T;if(!T||e){T="error";if(e<0){e=0}}}w.status=e;w.statusText=""+(n||T);if(h){s.resolveWith(r,[y,T,w])}else{s.rejectWith(r,[w,T,x])}w.statusCode(f);f=t;if(b){o.trigger("ajax"+(h?"Success":"Error"),[w,i,h?y:x])}l.fireWith(r,[w,T]);if(b){o.trigger("ajaxComplete",[w,i]);if(!--a.active){a.event.trigger("ajaxStop")}}}s.promise(w);w.success=w.done;w.error=w.fail;w.complete=l.add;w.statusCode=function(e){if(e){var t;if(v<2){for(t in e){f[t]=[f[t],e[t]]}}else{t=e[w.status];w.then(t,t)}}return this};i.url=((e||i.url)+"").replace(Dt,"").replace(Bt,Gt[1]+"//");i.dataTypes=a.trim(i.dataType||"*").toLowerCase().split(It);if(i.crossDomain==null){y=Rt.exec(i.url.toLowerCase());i.crossDomain=!!(y&&(y[1]!=Gt[1]||y[2]!=Gt[2]||(y[3]||(y[1]==="http:"?80:443))!=(Gt[3]||(Gt[1]==="http:"?80:443))))}if(i.data&&i.processData&&typeof i.data!=="string"){i.data=a.param(i.data,i.traditional)}Kt(zt,i,n,w);if(v===2){return false}b=i.global;i.type=i.type.toUpperCase();i.hasContent=!Ht.test(i.type);if(b&&a.active++===0){a.event.trigger("ajaxStart")}if(!i.hasContent){if(i.data){i.url+=(Pt.test(i.url)?"&":"?")+i.data;delete i.data}u=i.url;if(i.cache===false){var N=a.now(),C=i.url.replace($t,"$1_="+N);i.url=C+(C===i.url?(Pt.test(i.url)?"&":"?")+"_="+N:"")}}if(i.data&&i.hasContent&&i.contentType!==false||n.contentType){w.setRequestHeader("Content-Type",i.contentType)}if(i.ifModified){u=u||i.url;if(a.lastModified[u]){w.setRequestHeader("If-Modified-Since",a.lastModified[u])}if(a.etag[u]){w.setRequestHeader("If-None-Match",a.etag[u])}}w.setRequestHeader("Accept",i.dataTypes[0]&&i.accepts[i.dataTypes[0]]?i.accepts[i.dataTypes[0]]+(i.dataTypes[0]!=="*"?", "+Jt+"; q=0.01":""):i.accepts["*"]);for(x in i.headers){w.setRequestHeader(x,i.headers[x])}if(i.beforeSend&&(i.beforeSend.call(r,w,i)===false||v===2)){w.abort();return false}for(x in{success:1,error:1,complete:1}){w[x](i[x])}m=Kt(Vt,i,n,w);if(!m){T(-1,"No Transport")}else{w.readyState=1;if(b){o.trigger("ajaxSend",[w,i])}if(i.async&&i.timeout>0){g=setTimeout(function(){w.abort("timeout")},i.timeout)}try{v=1;m.send(c,T)}catch(E){if(v<2){T(-1,E)}else{throw E}}}return w},param:function(e,n){var i=[],r=function(e,t){t=a.isFunction(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(n===t){n=a.ajaxSettings.traditional}if(a.isArray(e)||e.jquery&&!a.isPlainObject(e)){a.each(e,function(){r(this.name,this.value)})}else{for(var o in e){en(o,e[o],n,r)}}return i.join("&").replace(Lt,"+")}});function en(e,t,n,i){if(a.isArray(t)){a.each(t,function(t,r){if(n||jt.test(e)){i(e,r)}else{en(e+"["+(typeof r==="object"||a.isArray(r)?t:"")+"]",r,n,i)}})}else{if(!n&&t!=null&&typeof t==="object"){for(var r in t){en(e+"["+r+"]",t[r],n,i)}}else{i(e,t)}}}a.extend({active:0,lastModified:{},etag:{}});function tn(e,n,i){var r=e.contents,a=e.dataTypes,o=e.responseFields,s,l,f,u;for(l in o){if(l in i){n[o[l]]=i[l]}}while(a[0]==="*"){a.shift();if(s===t){s=e.mimeType||n.getResponseHeader("content-type")}}if(s){for(l in r){if(r[l]&&r[l].test(s)){a.unshift(l);break}}}if(a[0]in i){f=a[0]}else{for(l in i){if(!a[0]||e.converters[l+" "+a[0]]){f=l;break}if(!u){u=l}}f=f||u}if(f){if(f!==a[0]){a.unshift(f)}return i[f]}}function nn(e,n){if(e.dataFilter){n=e.dataFilter(n,e.dataType)}var i=e.dataTypes,r={},o,s,l=i.length,f,u=i[0],c,d,p,h,m;for(o=1;o<l;o++){if(o===1){for(s in e.converters){if(typeof s==="string"){r[s.toLowerCase()]=e.converters[s]}}}c=u;u=i[o];if(u==="*"){u=c}else{if(c!=="*"&&c!==u){d=c+" "+u;p=r[d]||r["* "+u];if(!p){m=t;for(h in r){f=h.split(" ");if(f[0]===c||f[0]==="*"){m=r[f[1]+" "+u];if(m){h=r[h];if(h===true){p=m}else{if(m===true){p=h}}break}}}}if(!(p||m)){a.error("No conversion from "+d.replace(" "," to "))}if(p!==true){n=p?p(n):m(h(n))}}}}return n}var rn=a.now(),an=/(\=)\?(&|$)|\?\?/i;a.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return a.expando+"_"+rn++}});a.ajaxPrefilter("json jsonp",function(t,n,i){var r=t.contentType==="application/x-www-form-urlencoded"&&typeof t.data==="string";if(t.dataTypes[0]==="jsonp"||t.jsonp!==false&&(an.test(t.url)||r&&an.test(t.data))){var o,s=t.jsonpCallback=a.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,l=e[s],f=t.url,u=t.data,c="$1"+s+"$2";if(t.jsonp!==false){f=f.replace(an,c);if(t.url===f){if(r){u=u.replace(an,c)}if(t.data===u){f+=(/\?/.test(f)?"&":"?")+t.jsonp+"="+s}}}t.url=f;t.data=u;e[s]=function(e){o=[e]};i.always(function(){e[s]=l;if(o&&a.isFunction(l)){e[s](o[0])}});t.converters["script json"]=function(){if(!o){a.error(s+" was not called")}return o[0]};t.dataTypes[0]="json";return"script"}});a.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){a.globalEval(e);return e}}});a.ajaxPrefilter("script",function(e){if(e.cache===t){e.cache=false}if(e.crossDomain){e.type="GET";e.global=false}});a.ajaxTransport("script",function(e){if(e.crossDomain){var i,r=n.head||n.getElementsByTagName("head")[0]||n.documentElement;return{send:function(a,o){i=n.createElement("script");i.async="async";if(e.scriptCharset){i.charset=e.scriptCharset}i.src=e.url;i.onload=i.onreadystatechange=function(e,n){if(n||!i.readyState||/loaded|complete/.test(i.readyState)){i.onload=i.onreadystatechange=null;if(r&&i.parentNode){r.removeChild(i)}i=t;if(!n){o(200,"success")}}};r.insertBefore(i,r.firstChild)},abort:function(){if(i){i.onload(0,1)}}}}});var on=e.ActiveXObject?function(){for(var e in ln){ln[e](0,1)}}:false,sn=0,ln;function fn(){try{return new e.XMLHttpRequest}catch(t){}}function un(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}a.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&fn()||un()}:fn;!function(e){a.extend(a.support,{ajax:!!e,cors:!!e&&"withCredentials"in e})}(a.ajaxSettings.xhr());if(a.support.ajax){a.ajaxTransport(function(n){if(!n.crossDomain||a.support.cors){var i;return{send:function(r,o){var s=n.xhr(),l,f;if(n.username){s.open(n.type,n.url,n.async,n.username,n.password)}else{s.open(n.type,n.url,n.async)}if(n.xhrFields){for(f in n.xhrFields){s[f]=n.xhrFields[f]}}if(n.mimeType&&s.overrideMimeType){s.overrideMimeType(n.mimeType)}if(!n.crossDomain&&!r["X-Requested-With"]){r["X-Requested-With"]="XMLHttpRequest"}try{for(f in r){s.setRequestHeader(f,r[f])}}catch(u){}s.send(n.hasContent&&n.data||null);i=function(e,r){var f,u,c,d,p;try{if(i&&(r||s.readyState===4)){i=t;if(l){s.onreadystatechange=a.noop;if(on){delete ln[l]}}if(r){if(s.readyState!==4){s.abort()}}else{f=s.status;c=s.getAllResponseHeaders();d={};p=s.responseXML;if(p&&p.documentElement){d.xml=p}d.text=s.responseText;try{u=s.statusText}catch(h){u=""}if(!f&&n.isLocal&&!n.crossDomain){f=d.text?200:404}else{if(f===1223){f=204}}}}}catch(m){if(!r){o(-1,m)}}if(d){o(f,u,d,c)}};if(!n.async||s.readyState===4){i()}else{l=++sn;if(on){if(!ln){ln={};a(e).unload(on)}ln[l]=i}s.onreadystatechange=i}},abort:function(){if(i){i(0,1)}}}}})}var cn={},dn,pn,hn=/^(?:toggle|show|hide)$/,mn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,gn,yn=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],vn;a.fn.extend({show:function(e,t,n){var i,r;if(e||e===0){return this.animate(wn("show",3),e,t,n)}else{for(var o=0,s=this.length;o<s;o++){i=this[o];if(i.style){r=i.style.display;if(!a._data(i,"olddisplay")&&r==="none"){r=i.style.display=""}if(r===""&&a.css(i,"display")==="none"){a._data(i,"olddisplay",Tn(i.nodeName))}}}for(o=0;o<s;o++){i=this[o];if(i.style){r=i.style.display;if(r===""||r==="none"){i.style.display=a._data(i,"olddisplay")||""}}}return this}},hide:function(e,t,n){if(e||e===0){return this.animate(wn("hide",3),e,t,n)}else{var i,r,o=0,s=this.length;for(;o<s;o++){i=this[o];if(i.style){r=a.css(i,"display");if(r!=="none"&&!a._data(i,"olddisplay")){a._data(i,"olddisplay",r)}}}for(o=0;o<s;o++){if(this[o].style){this[o].style.display="none"}}return this}},_toggle:a.fn.toggle,toggle:function(e,t,n){var i=typeof e==="boolean";if(a.isFunction(e)&&a.isFunction(t)){this._toggle.apply(this,arguments)}else{if(e==null||i){this.each(function(){var t=i?e:a(this).is(":hidden");a(this)[t?"show":"hide"]()})}else{this.animate(wn("toggle",3),e,t,n)}}return this},fadeTo:function(e,t,n,i){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var r=a.speed(t,n,i);if(a.isEmptyObject(e)){return this.each(r.complete,[false])}e=a.extend({},e);function o(){if(r.queue===false){a._mark(this)}var t=a.extend({},r),n=this.nodeType===1,i=n&&a(this).is(":hidden"),o,s,l,f,u,c,d,p,h;t.animatedProperties={};for(l in e){o=a.camelCase(l);if(l!==o){e[o]=e[l];delete e[l]}s=e[o];if(a.isArray(s)){t.animatedProperties[o]=s[1];s=e[o]=s[0]}else{t.animatedProperties[o]=t.specialEasing&&t.specialEasing[o]||t.easing||"swing"}if(s==="hide"&&i||s==="show"&&!i){return t.complete.call(this)}if(n&&(o==="height"||o==="width")){t.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(a.css(this,"display")==="inline"&&a.css(this,"float")==="none"){if(!a.support.inlineBlockNeedsLayout||Tn(this.nodeName)==="inline"){this.style.display="inline-block"}else{this.style.zoom=1}}}}if(t.overflow!=null){this.style.overflow="hidden"}for(l in e){f=new a.fx(this,t,l);s=e[l];if(hn.test(s)){h=a._data(this,"toggle"+l)||(s==="toggle"?i?"show":"hide":0);if(h){a._data(this,"toggle"+l,h==="show"?"hide":"show");f[h]()}else{f[s]()}}else{u=mn.exec(s);c=f.cur();if(u){d=parseFloat(u[2]);p=u[3]||(a.cssNumber[l]?"":"px");if(p!=="px"){a.style(this,l,(d||1)+p);c=(d||1)/f.cur()*c;a.style(this,l,c+p)}if(u[1]){d=(u[1]==="-="?-1:1)*d+c}f.custom(c,d,p)}else{f.custom(c,s,"")}}}return true}return r.queue===false?this.each(o):this.queue(r.queue,o)},stop:function(e,n,i){if(typeof e!=="string"){i=n;n=e;e=t}if(n&&e!==false){this.queue(e||"fx",[])}return this.each(function(){var t,n=false,r=a.timers,o=a._data(this);if(!i){a._unmark(true,this)}function s(e,t,n){var r=t[n];a.removeData(e,n,true);r.stop(i)}if(e==null){for(t in o){if(o[t]&&o[t].stop&&t.indexOf(".run")===t.length-4){s(this,o,t)}}}else{if(o[t=e+".run"]&&o[t].stop){s(this,o,t)}}for(t=r.length;t--;){if(r[t].elem===this&&(e==null||r[t].queue===e)){if(i){r[t](true)}else{r[t].saveState()}n=true;r.splice(t,1)}}if(!(i&&n)){a.dequeue(this,e)}})}});function bn(){setTimeout(xn,0);return vn=a.now()}function xn(){vn=t}function wn(e,t){var n={};a.each(yn.concat.apply([],yn.slice(0,t)),function(){n[this]=e});return n}a.each({slideDown:wn("show",1),slideUp:wn("hide",1),slideToggle:wn("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){a.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}});a.extend({speed:function(e,t,n){var i=e&&typeof e==="object"?a.extend({},e):{complete:n||!n&&t||a.isFunction(e)&&e,duration:e,easing:n&&t||t&&!a.isFunction(t)&&t};i.duration=a.fx.off?0:typeof i.duration==="number"?i.duration:i.duration in a.fx.speeds?a.fx.speeds[i.duration]:a.fx.speeds._default;if(i.queue==null||i.queue===true){i.queue="fx"}i.old=i.complete;i.complete=function(e){if(a.isFunction(i.old)){i.old.call(this)}if(i.queue){a.dequeue(this,i.queue)}else{if(e!==false){a._unmark(this)}}};return i},easing:{linear:function(e,t,n,i){return n+i*e},swing:function(e,t,n,i){return(-Math.cos(e*Math.PI)/2+.5)*i+n}},timers:[],fx:function(e,t,n){this.options=t;this.elem=e;this.prop=n;t.orig=t.orig||{}}});a.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(a.fx.step[this.prop]||a.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var e,t=a.css(this.elem,this.prop);return isNaN(e=parseFloat(t))?!t||t==="auto"?0:t:e},custom:function(e,n,i){var r=this,o=a.fx;this.startTime=vn||bn();this.end=n;this.now=this.start=e;this.pos=this.state=0;this.unit=i||this.unit||(a.cssNumber[this.prop]?"":"px");function s(e){return r.step(e)}s.queue=this.options.queue;s.elem=this.elem;s.saveState=function(){if(r.options.hide&&a._data(r.elem,"fxshow"+r.prop)===t){a._data(r.elem,"fxshow"+r.prop,r.start)}};if(s()&&a.timers.push(s)&&!gn){gn=setInterval(o.tick,o.interval)}},show:function(){var e=a._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=e||a.style(this.elem,this.prop);this.options.show=true;if(e!==t){this.custom(this.cur(),e)}else{this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur())}a(this.elem).show()},hide:function(){this.options.orig[this.prop]=a._data(this.elem,"fxshow"+this.prop)||a.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(e){var t,n,i,r=vn||bn(),o=true,s=this.elem,l=this.options;if(e||r>=l.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();l.animatedProperties[this.prop]=true;for(t in l.animatedProperties){if(l.animatedProperties[t]!==true){o=false}}if(o){if(l.overflow!=null&&!a.support.shrinkWrapBlocks){a.each(["","X","Y"],function(e,t){s.style["overflow"+t]=l.overflow[e]})}if(l.hide){a(s).hide()}if(l.hide||l.show){for(t in l.animatedProperties){a.style(s,t,l.orig[t]);a.removeData(s,"fxshow"+t,true);a.removeData(s,"toggle"+t,true)}}i=l.complete;if(i){l.complete=false;i.call(s)}}return false}else{if(l.duration==Infinity){this.now=r}else{n=r-this.startTime;this.state=n/l.duration;this.pos=a.easing[l.animatedProperties[this.prop]](this.state,n,0,1,l.duration);this.now=this.start+(this.end-this.start)*this.pos}this.update()}return true}};a.extend(a.fx,{tick:function(){var e,t=a.timers,n=0;for(;n<t.length;n++){e=t[n];if(!e()&&t[n]===e){t.splice(n--,1)}}if(!t.length){a.fx.stop()}},interval:13,stop:function(){clearInterval(gn);gn=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(e){a.style(e.elem,"opacity",e.now)},_default:function(e){if(e.elem.style&&e.elem.style[e.prop]!=null){e.elem.style[e.prop]=e.now+e.unit}else{e.elem[e.prop]=e.now}}}});a.each(["width","height"],function(e,t){a.fx.step[t]=function(e){a.style(e.elem,t,Math.max(0,e.now)+e.unit)}});if(a.expr&&a.expr.filters){a.expr.filters.animated=function(e){return a.grep(a.timers,function(t){return e===t.elem}).length}}function Tn(e){if(!cn[e]){var t=n.body,i=a("<"+e+">").appendTo(t),r=i.css("display");i.remove();if(r==="none"||r===""){if(!dn){dn=n.createElement("iframe");dn.frameBorder=dn.width=dn.height=0}t.appendChild(dn);if(!pn||!dn.createElement){pn=(dn.contentWindow||dn.contentDocument).document;pn.write((n.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>");pn.close()}i=pn.createElement(e);pn.body.appendChild(i);r=a.css(i,"display");t.removeChild(dn)}cn[e]=r}return cn[e]}var Nn=/^t(?:able|d|h)$/i,Cn=/^(?:body|html)$/i;if("getBoundingClientRect"in n.documentElement){a.fn.offset=function(e){var t=this[0],n;if(e){return this.each(function(t){a.offset.setOffset(this,e,t)})}if(!t||!t.ownerDocument){return null}if(t===t.ownerDocument.body){return a.offset.bodyOffset(t)}try{n=t.getBoundingClientRect()}catch(i){}var r=t.ownerDocument,o=r.documentElement;if(!n||!a.contains(o,t)){return n?{top:n.top,left:n.left}:{top:0,left:0}}var s=r.body,l=En(r),f=o.clientTop||s.clientTop||0,u=o.clientLeft||s.clientLeft||0,c=l.pageYOffset||a.support.boxModel&&o.scrollTop||s.scrollTop,d=l.pageXOffset||a.support.boxModel&&o.scrollLeft||s.scrollLeft,p=n.top+c-f,h=n.left+d-u;return{top:p,left:h}}}else{a.fn.offset=function(e){var t=this[0];if(e){return this.each(function(t){a.offset.setOffset(this,e,t)})}if(!t||!t.ownerDocument){return null}if(t===t.ownerDocument.body){return a.offset.bodyOffset(t)}var n,i=t.offsetParent,r=t,o=t.ownerDocument,s=o.documentElement,l=o.body,f=o.defaultView,u=f?f.getComputedStyle(t,null):t.currentStyle,c=t.offsetTop,d=t.offsetLeft;while((t=t.parentNode)&&t!==l&&t!==s){if(a.support.fixedPosition&&u.position==="fixed"){break}n=f?f.getComputedStyle(t,null):t.currentStyle;c-=t.scrollTop;d-=t.scrollLeft;if(t===i){c+=t.offsetTop;d+=t.offsetLeft;if(a.support.doesNotAddBorder&&!(a.support.doesAddBorderForTableAndCells&&Nn.test(t.nodeName))){c+=parseFloat(n.borderTopWidth)||0;d+=parseFloat(n.borderLeftWidth)||0}r=i;i=t.offsetParent}if(a.support.subtractsBorderForOverflowNotVisible&&n.overflow!=="visible"){c+=parseFloat(n.borderTopWidth)||0;d+=parseFloat(n.borderLeftWidth)||0}u=n}if(u.position==="relative"||u.position==="static"){c+=l.offsetTop;d+=l.offsetLeft}if(a.support.fixedPosition&&u.position==="fixed"){c+=Math.max(s.scrollTop,l.scrollTop);d+=Math.max(s.scrollLeft,l.scrollLeft)}return{top:c,left:d}}}a.offset={bodyOffset:function(e){var t=e.offsetTop,n=e.offsetLeft;if(a.support.doesNotIncludeMarginInBodyOffset){t+=parseFloat(a.css(e,"marginTop"))||0;n+=parseFloat(a.css(e,"marginLeft"))||0}return{top:t,left:n}},setOffset:function(e,t,n){var i=a.css(e,"position");if(i==="static"){e.style.position="relative"}var r=a(e),o=r.offset(),s=a.css(e,"top"),l=a.css(e,"left"),f=(i==="absolute"||i==="fixed")&&a.inArray("auto",[s,l])>-1,u={},c={},d,p;if(f){c=r.position();d=c.top;p=c.left}else{d=parseFloat(s)||0;p=parseFloat(l)||0}if(a.isFunction(t)){t=t.call(e,n,o)}if(t.top!=null){u.top=t.top-o.top+d}if(t.left!=null){u.left=t.left-o.left+p}if("using"in t){t.using.call(e,u)}else{r.css(u)}}};a.fn.extend({position:function(){if(!this[0]){return null}var e=this[0],t=this.offsetParent(),n=this.offset(),i=Cn.test(t[0].nodeName)?{top:0,left:0}:t.offset();n.top-=parseFloat(a.css(e,"marginTop"))||0;n.left-=parseFloat(a.css(e,"marginLeft"))||0;i.top+=parseFloat(a.css(t[0],"borderTopWidth"))||0;i.left+=parseFloat(a.css(t[0],"borderLeftWidth"))||0;return{top:n.top-i.top,left:n.left-i.left}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||n.body;while(e&&!Cn.test(e.nodeName)&&a.css(e,"position")==="static"){e=e.offsetParent}return e})}});a.each(["Left","Top"],function(e,n){var i="scroll"+n;a.fn[i]=function(n){var r,o;if(n===t){r=this[0];if(!r){return null}o=En(r);return o?"pageXOffset"in o?o[e?"pageYOffset":"pageXOffset"]:a.support.boxModel&&o.document.documentElement[i]||o.document.body[i]:r[i]}return this.each(function(){o=En(this);if(o){o.scrollTo(!e?n:a(o).scrollLeft(),e?n:a(o).scrollTop())}else{this[i]=n}})}});
  function En(e){return a.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:false}a.each(["Height","Width"],function(e,n){var i=n.toLowerCase();a.fn["inner"+n]=function(){var e=this[0];return e?e.style?parseFloat(a.css(e,i,"padding")):this[i]():null};a.fn["outer"+n]=function(e){var t=this[0];return t?t.style?parseFloat(a.css(t,i,e?"margin":"border")):this[i]():null};a.fn[i]=function(e){var r=this[0];if(!r){return e==null?null:this}if(a.isFunction(e)){return this.each(function(t){var n=a(this);n[i](e.call(this,t,n[i]()))})}if(a.isWindow(r)){var o=r.document.documentElement["client"+n],s=r.document.body;return r.document.compatMode==="CSS1Compat"&&o||s&&s["client"+n]||o}else{if(r.nodeType===9){return Math.max(r.documentElement["client"+n],r.body["scroll"+n],r.documentElement["scroll"+n],r.body["offset"+n],r.documentElement["offset"+n])}else{if(e===t){var l=a.css(r,i),f=parseFloat(l);return a.isNumeric(f)?f:l}else{return this.css(i,typeof e==="string"?e:e+"px")}}}}});e.jQuery=e.$=a;if(typeof define==="function"&&define.amd&&define.amd.jQuery){define("jquery",[],function(){return a})}}(window);/*! JSON v3.3.2 | http://bestiejs.github.io/json3 | Copyright 2012-2014, Kit Cambridge | http://kit.mit-license.org */
  (function(){function N(p,r){function q(a){if(q[a]!==w)return q[a];var c;if("bug-string-char-index"==a)c="a"!="a"[0];else if("json"==a)c=q("json-stringify")&&q("json-parse");else{var e;if("json-stringify"==a){c=r.stringify;var b="function"==typeof c&&s;if(b){(e=function(){return 1}).toJSON=e;try{b="0"===c(0)&&"0"===c(new t)&&'""'==c(new A)&&c(u)===w&&c(w)===w&&c()===w&&"1"===c(e)&&"[1]"==c([e])&&"[null]"==c([w])&&"null"==c(null)&&"[null,null,null]"==c([w,u,null])&&'{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}'==
  c({a:[e,!0,!1,null,"\x00\b\n\f\r\t"]})&&"1"===c(null,e)&&"[\n 1,\n 2\n]"==c([1,2],null,1)&&'"-271821-04-20T00:00:00.000Z"'==c(new C(-864E13))&&'"+275760-09-13T00:00:00.000Z"'==c(new C(864E13))&&'"-000001-01-01T00:00:00.000Z"'==c(new C(-621987552E5))&&'"1969-12-31T23:59:59.999Z"'==c(new C(-1))}catch(f){b=!1}}c=b}if("json-parse"==a){c=r.parse;if("function"==typeof c)try{if(0===c("0")&&!c(!1)){e=c('{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}');var n=5==e.a.length&&1===e.a[0];if(n){try{n=!c('"\t"')}catch(d){}if(n)try{n=
  1!==c("01")}catch(g){}if(n)try{n=1!==c("1.")}catch(m){}}}}catch(X){n=!1}c=n}}return q[a]=!!c}p||(p=k.Object());r||(r=k.Object());var t=p.Number||k.Number,A=p.String||k.String,H=p.Object||k.Object,C=p.Date||k.Date,G=p.SyntaxError||k.SyntaxError,K=p.TypeError||k.TypeError,L=p.Math||k.Math,I=p.JSON||k.JSON;"object"==typeof I&&I&&(r.stringify=I.stringify,r.parse=I.parse);var H=H.prototype,u=H.toString,v,B,w,s=new C(-0xc782b5b800cec);try{s=-109252==s.getUTCFullYear()&&0===s.getUTCMonth()&&1===s.getUTCDate()&&
  10==s.getUTCHours()&&37==s.getUTCMinutes()&&6==s.getUTCSeconds()&&708==s.getUTCMilliseconds()}catch(Q){}if(!q("json")){var D=q("bug-string-char-index");if(!s)var x=L.floor,M=[0,31,59,90,120,151,181,212,243,273,304,334],E=function(a,c){return M[c]+365*(a-1970)+x((a-1969+(c=+(1<c)))/4)-x((a-1901+c)/100)+x((a-1601+c)/400)};(v=H.hasOwnProperty)||(v=function(a){var c={},e;(c.__proto__=null,c.__proto__={toString:1},c).toString!=u?v=function(a){var c=this.__proto__;a=a in(this.__proto__=null,this);this.__proto__=
  c;return a}:(e=c.constructor,v=function(a){var c=(this.constructor||e).prototype;return a in this&&!(a in c&&this[a]===c[a])});c=null;return v.call(this,a)});B=function(a,c){var e=0,b,f,n;(b=function(){this.valueOf=0}).prototype.valueOf=0;f=new b;for(n in f)v.call(f,n)&&e++;b=f=null;e?B=2==e?function(a,c){var e={},b="[object Function]"==u.call(a),f;for(f in a)b&&"prototype"==f||v.call(e,f)||!(e[f]=1)||!v.call(a,f)||c(f)}:function(a,c){var e="[object Function]"==u.call(a),b,f;for(b in a)e&&"prototype"==
  b||!v.call(a,b)||(f="constructor"===b)||c(b);(f||v.call(a,b="constructor"))&&c(b)}:(f="valueOf toString toLocaleString propertyIsEnumerable isPrototypeOf hasOwnProperty constructor".split(" "),B=function(a,c){var e="[object Function]"==u.call(a),b,h=!e&&"function"!=typeof a.constructor&&F[typeof a.hasOwnProperty]&&a.hasOwnProperty||v;for(b in a)e&&"prototype"==b||!h.call(a,b)||c(b);for(e=f.length;b=f[--e];h.call(a,b)&&c(b));});return B(a,c)};if(!q("json-stringify")){var U={92:"\\\\",34:'\\"',8:"\\b",
  12:"\\f",10:"\\n",13:"\\r",9:"\\t"},y=function(a,c){return("000000"+(c||0)).slice(-a)},R=function(a){for(var c='"',b=0,h=a.length,f=!D||10<h,n=f&&(D?a.split(""):a);b<h;b++){var d=a.charCodeAt(b);switch(d){case 8:case 9:case 10:case 12:case 13:case 34:case 92:c+=U[d];break;default:if(32>d){c+="\\u00"+y(2,d.toString(16));break}c+=f?n[b]:a.charAt(b)}}return c+'"'},O=function(a,c,b,h,f,n,d){var g,m,k,l,p,r,s,t,q;try{g=c[a]}catch(z){}if("object"==typeof g&&g)if(m=u.call(g),"[object Date]"!=m||v.call(g,
  "toJSON"))"function"==typeof g.toJSON&&("[object Number]"!=m&&"[object String]"!=m&&"[object Array]"!=m||v.call(g,"toJSON"))&&(g=g.toJSON(a));else if(g>-1/0&&g<1/0){if(E){l=x(g/864E5);for(m=x(l/365.2425)+1970-1;E(m+1,0)<=l;m++);for(k=x((l-E(m,0))/30.42);E(m,k+1)<=l;k++);l=1+l-E(m,k);p=(g%864E5+864E5)%864E5;r=x(p/36E5)%24;s=x(p/6E4)%60;t=x(p/1E3)%60;p%=1E3}else m=g.getUTCFullYear(),k=g.getUTCMonth(),l=g.getUTCDate(),r=g.getUTCHours(),s=g.getUTCMinutes(),t=g.getUTCSeconds(),p=g.getUTCMilliseconds();
  g=(0>=m||1E4<=m?(0>m?"-":"+")+y(6,0>m?-m:m):y(4,m))+"-"+y(2,k+1)+"-"+y(2,l)+"T"+y(2,r)+":"+y(2,s)+":"+y(2,t)+"."+y(3,p)+"Z"}else g=null;b&&(g=b.call(c,a,g));if(null===g)return"null";m=u.call(g);if("[object Boolean]"==m)return""+g;if("[object Number]"==m)return g>-1/0&&g<1/0?""+g:"null";if("[object String]"==m)return R(""+g);if("object"==typeof g){for(a=d.length;a--;)if(d[a]===g)throw K();d.push(g);q=[];c=n;n+=f;if("[object Array]"==m){k=0;for(a=g.length;k<a;k++)m=O(k,g,b,h,f,n,d),q.push(m===w?"null":
  m);a=q.length?f?"[\n"+n+q.join(",\n"+n)+"\n"+c+"]":"["+q.join(",")+"]":"[]"}else B(h||g,function(a){var c=O(a,g,b,h,f,n,d);c!==w&&q.push(R(a)+":"+(f?" ":"")+c)}),a=q.length?f?"{\n"+n+q.join(",\n"+n)+"\n"+c+"}":"{"+q.join(",")+"}":"{}";d.pop();return a}};r.stringify=function(a,c,b){var h,f,n,d;if(F[typeof c]&&c)if("[object Function]"==(d=u.call(c)))f=c;else if("[object Array]"==d){n={};for(var g=0,k=c.length,l;g<k;l=c[g++],(d=u.call(l),"[object String]"==d||"[object Number]"==d)&&(n[l]=1));}if(b)if("[object Number]"==
  (d=u.call(b))){if(0<(b-=b%1))for(h="",10<b&&(b=10);h.length<b;h+=" ");}else"[object String]"==d&&(h=10>=b.length?b:b.slice(0,10));return O("",(l={},l[""]=a,l),f,n,h,"",[])}}if(!q("json-parse")){var V=A.fromCharCode,W={92:"\\",34:'"',47:"/",98:"\b",116:"\t",110:"\n",102:"\f",114:"\r"},b,J,l=function(){b=J=null;throw G();},z=function(){for(var a=J,c=a.length,e,h,f,k,d;b<c;)switch(d=a.charCodeAt(b),d){case 9:case 10:case 13:case 32:b++;break;case 123:case 125:case 91:case 93:case 58:case 44:return e=
  D?a.charAt(b):a[b],b++,e;case 34:e="@";for(b++;b<c;)if(d=a.charCodeAt(b),32>d)l();else if(92==d)switch(d=a.charCodeAt(++b),d){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:e+=W[d];b++;break;case 117:h=++b;for(f=b+4;b<f;b++)d=a.charCodeAt(b),48<=d&&57>=d||97<=d&&102>=d||65<=d&&70>=d||l();e+=V("0x"+a.slice(h,b));break;default:l()}else{if(34==d)break;d=a.charCodeAt(b);for(h=b;32<=d&&92!=d&&34!=d;)d=a.charCodeAt(++b);e+=a.slice(h,b)}if(34==a.charCodeAt(b))return b++,e;l();default:h=
  b;45==d&&(k=!0,d=a.charCodeAt(++b));if(48<=d&&57>=d){for(48==d&&(d=a.charCodeAt(b+1),48<=d&&57>=d)&&l();b<c&&(d=a.charCodeAt(b),48<=d&&57>=d);b++);if(46==a.charCodeAt(b)){for(f=++b;f<c&&(d=a.charCodeAt(f),48<=d&&57>=d);f++);f==b&&l();b=f}d=a.charCodeAt(b);if(101==d||69==d){d=a.charCodeAt(++b);43!=d&&45!=d||b++;for(f=b;f<c&&(d=a.charCodeAt(f),48<=d&&57>=d);f++);f==b&&l();b=f}return+a.slice(h,b)}k&&l();if("true"==a.slice(b,b+4))return b+=4,!0;if("false"==a.slice(b,b+5))return b+=5,!1;if("null"==a.slice(b,
  b+4))return b+=4,null;l()}return"$"},P=function(a){var c,b;"$"==a&&l();if("string"==typeof a){if("@"==(D?a.charAt(0):a[0]))return a.slice(1);if("["==a){for(c=[];;b||(b=!0)){a=z();if("]"==a)break;b&&(","==a?(a=z(),"]"==a&&l()):l());","==a&&l();c.push(P(a))}return c}if("{"==a){for(c={};;b||(b=!0)){a=z();if("}"==a)break;b&&(","==a?(a=z(),"}"==a&&l()):l());","!=a&&"string"==typeof a&&"@"==(D?a.charAt(0):a[0])&&":"==z()||l();c[a.slice(1)]=P(z())}return c}l()}return a},T=function(a,b,e){e=S(a,b,e);e===
  w?delete a[b]:a[b]=e},S=function(a,b,e){var h=a[b],f;if("object"==typeof h&&h)if("[object Array]"==u.call(h))for(f=h.length;f--;)T(h,f,e);else B(h,function(a){T(h,a,e)});return e.call(a,b,h)};r.parse=function(a,c){var e,h;b=0;J=""+a;e=P(z());"$"!=z()&&l();b=J=null;return c&&"[object Function]"==u.call(c)?S((h={},h[""]=e,h),"",c):e}}}r.runInContext=N;return r}var K=typeof define==="function"&&define.amd,F={"function":!0,object:!0},G=F[typeof exports]&&exports&&!exports.nodeType&&exports,k=F[typeof window]&&
  window||this,t=G&&F[typeof module]&&module&&!module.nodeType&&"object"==typeof global&&global;!t||t.global!==t&&t.window!==t&&t.self!==t||(k=t);if(G&&!K)N(k,G);else{var L=k.JSON,Q=k.JSON3,M=!1,A=N(k,k.JSON3={noConflict:function(){M||(M=!0,k.JSON=L,k.JSON3=Q,L=Q=null);return A}});k.JSON={parse:A.parse,stringify:A.stringify}}K&&define(function(){return A})}).call(this);
  !function(e){"use strict";var n=function(e,r){return n["string"==typeof r?"compile":"render"].apply(n,arguments)};n.version="2.0.4",n.openTag="<%",n.closeTag="%>",n.isEscape=!0,n.isCompress=!1,n.parser=null,n.render=function(e,r){var t=n.get(e)||i({id:e,name:"Render Error",message:"No Template"});return t(r)},n.compile=function(e,t){function a(r){try{return new s(r,e)+""}catch(o){return u?i(o)():n.compile(e,t,!0)(r)}}var c=arguments,u=c[2],l="anonymous";"string"!=typeof t&&(u=c[1],t=c[0],e=l);try{var s=o(e,t,u)}catch(p){return p.id=e||t,p.name="Syntax Error",i(p)}return a.prototype=s.prototype,a.toString=function(){return s.toString()},e!==l&&(r[e]=a),a};var r=n.cache={},t=n.helpers=function(){var e=function(n,r){return"string"!=typeof n&&(r=typeof n,"number"===r?n+="":n="function"===r?e(n.call(n)):""),n},r={"<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","&":"&#38;"},t=function(n){return e(n).replace(/&(?![\w#]+;)|[<>"']/g,function(e){return r[e]})},i=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},o=function(e,n){if(i(e))for(var r=0,t=e.length;t>r;r++)n.call(e,e[r],r,e);else for(r in e)n.call(e,e[r],r)};return{$include:n.render,$string:e,$escape:t,$each:o}}();n.helper=function(e,n){t[e]=n},n.onerror=function(n){var r="Template Error\n\n";for(var t in n)r+="<"+t+">\n"+n[t]+"\n\n";e.console&&console.error(r)},n.get=function(t){var i;if(r.hasOwnProperty(t))i=r[t];else if("document"in e){var o=document.getElementById(t);if(o){var a=o.value||o.innerHTML;i=n.compile(t,a.replace(/^\s*|\s*$/g,""))}}return i};var i=function(e){return n.onerror(e),function(){return"{Template Error}"}},o=function(){var e=t.$each,r="break,case,catch,continue,debugger,default,delete,do,else,false,finally,for,function,if,in,instanceof,new,null,return,switch,this,throw,true,try,typeof,var,void,while,with,abstract,boolean,byte,char,class,const,double,enum,export,extends,final,float,goto,implements,import,int,interface,long,native,package,private,protected,public,short,static,super,synchronized,throws,transient,volatile,arguments,let,yield,undefined",i=/\/\*[\w\W]*?\*\/|\/\/[^\n]*\n|\/\/[^\n]*$|"(?:[^"\\]|\\[\w\W])*"|'(?:[^'\\]|\\[\w\W])*'|[\s\t\n]*\.[\s\t\n]*[$\w\.]+/g,o=/[^\w$]+/g,a=new RegExp(["\\b"+r.replace(/,/g,"\\b|\\b")+"\\b"].join("|"),"g"),c=/^\d[^,]*|,\d[^,]*/g,u=/^,+|,+$/g,l=function(e){return e.replace(i,"").replace(o,",").replace(a,"").replace(c,"").replace(u,"").split(/^$|,+/)};return function(r,i,o){function a(e){return m+=e.split(/\n/).length-1,n.isCompress&&(e=e.replace(/[\n\r\t\s]+/g," ").replace(/<!--.*?-->/g,"")),e&&(e=x[1]+p(e)+x[2]+"\n"),e}function c(e){var r=m;if($?e=$(e):o&&(e=e.replace(/\n/g,function(){return m++,"$line="+m+";"})),0===e.indexOf("=")){var i=!/^=[=#]/.test(e);if(e=e.replace(/^=[=#]?|[\s;]*$/g,""),i&&n.isEscape){var a=e.replace(/\s*\([^\)]+\)/,"");t.hasOwnProperty(a)||/^(include|print)$/.test(a)||(e="$escape("+e+")")}else e="$string("+e+")";e=x[1]+e+x[2]}return o&&(e="$line="+r+";"+e),u(e),e+"\n"}function u(n){n=l(n),e(n,function(e){e&&!y.hasOwnProperty(e)&&(s(e),y[e]=!0)})}function s(e){var n;"print"===e?n=T:"include"===e?(v.$include=t.$include,n=O):(n="$data."+e,t.hasOwnProperty(e)&&(v[e]=t[e],n=0===e.indexOf("$")?"$helpers."+e:n+"===undefined?$helpers."+e+":"+n)),w+=e+"="+n+","}function p(e){return"'"+e.replace(/('|\\)/g,"\\$1").replace(/\r/g,"\\r").replace(/\n/g,"\\n")+"'"}var f=n.openTag,d=n.closeTag,$=n.parser,g=i,h="",m=1,y={$data:1,$id:1,$helpers:1,$out:1,$line:1},v={},w="var $helpers=this,"+(o?"$line=0,":""),b="".trim,x=b?["$out='';","$out+=",";","$out"]:["$out=[];","$out.push(",");","$out.join('')"],E=b?"$out+=$text;return $text;":"$out.push($text);",T="function($text){"+E+"}",O="function(id,data){data=data||$data;var $text=$helpers.$include(id,data,$id);"+E+"}";e(g.split(f),function(e){e=e.split(d);var n=e[0],r=e[1];1===e.length?h+=a(n):(h+=c(n),r&&(h+=a(r)))}),g=h,o&&(g="try{"+g+"}catch(e){"+"throw {"+"id:$id,"+"name:'Render Error',"+"message:e.message,"+"line:$line,"+"source:"+p(i)+".split(/\\n/)[$line-1].replace(/^[\\s\\t]+/,'')"+"};"+"}"),g=w+x[0]+g+"return new String("+x[3]+");";try{var S=new Function("$data","$id",g);return S.prototype=v,S}catch(P){throw P.temp="function anonymous($data,$id) {"+g+"}",P}}}();"function"==typeof define?define(function(){return n}):"undefined"!=typeof exports&&(module.exports=n),e.template=n}(this);!function(e){"use strict";var n=function(e,r){return n["string"==typeof r?"compile":"render"].apply(n,arguments)};n.version="2.0.4",n.openTag="<%",n.closeTag="%>",n.isEscape=!0,n.isCompress=!1,n.parser=null,n.render=function(e,r){var t=n.get(e)||a({id:e,name:"Render Error",message:"No Template"});return t(r)},n.compile=function(e,t){function o(r){try{return new l(r,e)+""}catch(i){return s?a(i)():n.compile(e,t,!0)(r)}}var c=arguments,s=c[2],u="anonymous";"string"!=typeof t&&(s=c[1],t=c[0],e=u);try{var l=i(e,t,s)}catch(p){return p.id=e||t,p.name="Syntax Error",a(p)}return o.prototype=l.prototype,o.toString=function(){return l.toString()},e!==u&&(r[e]=o),o};var r=n.cache={},t=n.helpers=function(){var e=function(n,r){return"string"!=typeof n&&(r=typeof n,"number"===r?n+="":n="function"===r?e(n.call(n)):""),n},r={"<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","&":"&#38;"},t=function(n){return e(n).replace(/&(?![\w#]+;)|[<>"']/g,function(e){return r[e]})},a=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},i=function(e,n){if(a(e))for(var r=0,t=e.length;t>r;r++)n.call(e,e[r],r,e);else for(r in e)n.call(e,e[r],r)};return{$include:n.render,$string:e,$escape:t,$each:i}}();n.helper=function(e,n){t[e]=n},n.onerror=function(n){var r="Template Error\n\n";for(var t in n)r+="<"+t+">\n"+n[t]+"\n\n";e.console&&console.error(r)},n.get=function(t){var a;if(r.hasOwnProperty(t))a=r[t];else if("document"in e){var i=document.getElementById(t);if(i){var o=i.value||i.innerHTML;a=n.compile(t,o.replace(/^\s*|\s*$/g,""))}}return a};var a=function(e){return n.onerror(e),function(){return"{Template Error}"}},i=function(){var e=t.$each,r="break,case,catch,continue,debugger,default,delete,do,else,false,finally,for,function,if,in,instanceof,new,null,return,switch,this,throw,true,try,typeof,var,void,while,with,abstract,boolean,byte,char,class,const,double,enum,export,extends,final,float,goto,implements,import,int,interface,long,native,package,private,protected,public,short,static,super,synchronized,throws,transient,volatile,arguments,let,yield,undefined",a=/\/\*[\w\W]*?\*\/|\/\/[^\n]*\n|\/\/[^\n]*$|"(?:[^"\\]|\\[\w\W])*"|'(?:[^'\\]|\\[\w\W])*'|[\s\t\n]*\.[\s\t\n]*[$\w\.]+/g,i=/[^\w$]+/g,o=new RegExp(["\\b"+r.replace(/,/g,"\\b|\\b")+"\\b"].join("|"),"g"),c=/^\d[^,]*|,\d[^,]*/g,s=/^,+|,+$/g,u=function(e){return e.replace(a,"").replace(i,",").replace(o,"").replace(c,"").replace(s,"").split(/^$|,+/)};return function(r,a,i){function o(e){return m+=e.split(/\n/).length-1,n.isCompress&&(e=e.replace(/[\n\r\t\s]+/g," ").replace(/<!--.*?-->/g,"")),e&&(e=x[1]+p(e)+x[2]+"\n"),e}function c(e){var r=m;if($?e=$(e):i&&(e=e.replace(/\n/g,function(){return m++,"$line="+m+";"})),0===e.indexOf("=")){var a=!/^=[=#]/.test(e);if(e=e.replace(/^=[=#]?|[\s;]*$/g,""),a&&n.isEscape){var o=e.replace(/\s*\([^\)]+\)/,"");t.hasOwnProperty(o)||/^(include|print)$/.test(o)||(e="$escape("+e+")")}else e="$string("+e+")";e=x[1]+e+x[2]}return i&&(e="$line="+r+";"+e),s(e),e+"\n"}function s(n){n=u(n),e(n,function(e){e&&!v.hasOwnProperty(e)&&(l(e),v[e]=!0)})}function l(e){var n;"print"===e?n=k:"include"===e?(y.$include=t.$include,n=E):(n="$data."+e,t.hasOwnProperty(e)&&(y[e]=t[e],n=0===e.indexOf("$")?"$helpers."+e:n+"===undefined?$helpers."+e+":"+n)),w+=e+"="+n+","}function p(e){return"'"+e.replace(/('|\\)/g,"\\$1").replace(/\r/g,"\\r").replace(/\n/g,"\\n")+"'"}var f=n.openTag,d=n.closeTag,$=n.parser,g=a,h="",m=1,v={$data:1,$id:1,$helpers:1,$out:1,$line:1},y={},w="var $helpers=this,"+(i?"$line=0,":""),b="".trim,x=b?["$out='';","$out+=",";","$out"]:["$out=[];","$out.push(",");","$out.join('')"],T=b?"$out+=$text;return $text;":"$out.push($text);",k="function($text){"+T+"}",E="function(id,data){data=data||$data;var $text=$helpers.$include(id,data,$id);"+T+"}";e(g.split(f),function(e){e=e.split(d);var n=e[0],r=e[1];1===e.length?h+=o(n):(h+=c(n),r&&(h+=o(r)))}),g=h,i&&(g="try{"+g+"}catch(e){"+"throw {"+"id:$id,"+"name:'Render Error',"+"message:e.message,"+"line:$line,"+"source:"+p(a)+".split(/\\n/)[$line-1].replace(/^[\\s\\t]+/,'')"+"};"+"}"),g=w+x[0]+g+"return new String("+x[3]+");";try{var j=new Function("$data","$id",g);return j.prototype=y,j}catch(O){throw O.temp="function anonymous($data,$id) {"+g+"}",O}}}();"function"==typeof define?define(function(){return n}):"undefined"!=typeof exports&&(module.exports=n),e.templateSimple=n}(this),function(e){e.openTag="{{",e.closeTag="}}",e.parser=function(n){n=n.replace(/^\s/,"");var r=n.split(" "),t=r.shift(),a=r.join(" ");switch(t){case"if":n="if("+a+"){";break;case"else":r="if"===r.shift()?" if("+r.join(" ")+")":"",n="}else"+r+"{";break;case"/if":n="}";break;case"each":var i=r[0]||"$data",o=r[1]||"as",c=r[2]||"$value",s=r[3]||"$index",u=c+","+s;"as"!==o&&(i="[]"),n="$each("+i+",function("+u+"){";break;case"/each":n="});";break;case"echo":n="print("+a+");";break;case"include":n="include("+r.join(",")+");";break;default:e.helpers.hasOwnProperty(t)?n="=#"+t+"("+r.join(",")+");":(n=n.replace(/[\s;]*$/,""),n="="+n)}return n}}(this.templateSimple);(function(e){e.fn.curNav=function(a){var n={nav:".mainnav",css:"cur"};var a=e.extend(n,a),t=a.nav,o=a.css;return this.each(function(){var a=e(t).find("a");for(var n=0;n<a.length;n++){var s=a.eq(n).attr("href");var i=document.location.href;if(i.indexOf(s)!=-1){e(t).find("li").removeClass(o);a.eq(n).parent("li").addClass(o)}}})}})(jQuery);$(function(){$(".mainnav").curNav({css:"cur"});$("#navBox").dropdown({topspeed:!0,current:"bgw",bodyClass:"fullcategory",onchange:function(e){$("#subnav").show();var a=e.attr("data-index");if($("#subnav").attr("flag")==0){$.ajax({url:stageJsServer+"/gmpro/1.0.0/public/1.0.0/js/category-tpl.min.js?versionData="+versionData,dataType:"script",cache:true,success:function(){var e=window.location.href;var n="//ss"+cookieDomain+"/exactNavNew.html";if(e.indexOf("jsp")>-1&&e.indexOf("preview")>-1){n="http://preview.ds"+cookieDomain+"/stage-web/2015/exactNavNew.jsp"}$.ajax({type:"get",url:n,cache:false,jsonpName:"navData",dataType:"JSONP",success:function(e){if(e){var n=gomeTemplate("category",e);$("#loading1-sync").html(n);$("#loading1-sync>div").eq(a).show().siblings().hide()}}})}});$("#subnav").attr("flag","1")}else{$("#loading1-sync>div").eq(a).show().siblings().hide()}var n=$("#subnav");var t=n.find(".loading1-sync");var o=n.offset().top;var s=$(window).scrollTop();var i=s-o;if(s>o){t.css({top:i})}else{t.css({top:0})}},onmouseleave:function(e){$("#subnav").hide();function a(){$("#subnav").hide();$("#lisnav li").removeClass("bgw")}var n;function t(){n=setTimeout(a,100)}$(".sidecategory").hover(function(){clearTimeout(n)},function(){t()})}});function e(){$("#subnav").hide();$("#lisnav li").removeClass("bgw");$(".lisbg,.lisnav").hide();$(".sidecategory h2").removeClass("hover")}var a;function n(){a=setTimeout(e,100)}if(!$("body").hasClass("home")&&!$("body").hasClass("category-opened")){$(".sidecategory").hover(function(){clearTimeout(a)},function(){n()})}else{$(".sidecategory h2").find("span").remove()}$(".category h2").hover(function(){$(".lisbg,.lisnav").show();$(".sidecategory h2").addClass("hover")});$('[data-roll="hdrSideUp"]').gScroll({isAuto:true,isImgLoad:true,showNum:1,stepLen:1,speed:6e3,type:"vertical",dataOriginal:"gome-src",btnGo:{left:'[data-btn="goDown"]',right:'[data-btn="goUp"]'}});function t(e,a){var n=document;var t=n.createElement("script");t.type="text/javascript";if(t.readyState){t.onreadystatechange=function(){if(t.readyState=="loaded"||t.readyState=="complete"){t.onreadystatechange=null;a()}}}else{t.onload=function(){a()}}t.src=e;n.getElementsByTagName("head")[0].appendChild(t)}});(function(){var e=$(".tag_newpic");e.css("background","url("+e.data("bg")+")")})();(function(e){function t(e,t){this.elements={wrap:e,ul:e.children("ul"),li:e.children("ul").children("li")};this.len=this.elements.li.length;this.settings=t;this.cache={allowgScroll:true};this.pos=this.index=0;this.timer=false;this.init()}t.prototype={init:function(){var e=this;e.elements.ul.append(e.elements.ul.html());e.settings.beforeCallback.call(e);e.setStyle();e.move();e.bind();e.settings.afterCallback.call(e);e.imgLoad()},setStyle:function(){var e=this;switch(e.settings.type){case"horizontal":e.leftOrTop="left";e.oneWidth=e.settings.oneWidth?e.settings.oneWidth:e.elements.li.eq(0).outerWidth();e.elements.ul.width(e.oneWidth*e.len*2);break;case"vertical":e.leftOrTop="top";e.oneWidth=e.settings.oneWidth?e.settings.oneWidth:e.elements.li.eq(0).outerHeight();e.elements.li.css({"float":"none",display:"block"});e.elements.ul.height(e.oneWidth*e.len*2);break}e.wraperSize=e.oneWidth*e.len;e.stepWidth=e.oneWidth*e.settings.stepLen;e.elements.ul.css({position:"relative"})},bind:function(){var t=this;e(t.settings.btnGo.left).bind("click",function(){clearInterval(t.timer);t.index++;t.moving(t.elements.ul[0],-t.stepWidth*t.index,function(){t.move()})});e(t.settings.btnGo.right).bind("click",function(){clearInterval(t.timer);t.index--;if(t.index<0){if(t.index===-1){t.pos=-t.stepWidth*t.len}t.index=t.len+t.index}t.moving(t.elements.ul[0],-t.stepWidth*t.index,function(){t.move()})})},move:function(){var e=this;if(e.settings.isAuto){e.timer=setInterval(function(){e.index++;e.moving(e.elements.ul[0],-e.stepWidth*e.index)},e.settings.speed)}},moving:function(e,t,i){var n=this;n.imgLoad();i=i||function(){};clearInterval(e.tLimer);e.tLimer=setInterval(function(){var l=(t-n.pos)/6;l=l>0?Math.ceil(l):Math.floor(l);if(n.pos==t){clearInterval(e.tLimer);i()}n.pos+=l;e.style[n.leftOrTop]=n.pos%n.wraperSize+"px"},30)},imgLoad:function(){var t=this;if(!t.settings.isImgLoad){return false}var i=Math.abs(t.index%t.len)*t.settings.showNum;liNode=t.elements.ul.children().slice(t.index,t.len);liNode.each(function(){var i=e(this).find("img");if(i.attr(t.settings.dataOriginal)){i.attr("src",i.attr(t.settings.dataOriginal)).removeAttr(t.settings.dataOriginal)}})}};e.fn.gScroll=function(i){i=e.extend({},e.fn.gScroll.defaults,i);this.each(function(){new t(e(this),i)})};e.fn.gScroll.defaults={oneWidth:null,isAuto:true,isImgLoad:false,dataOriginal:"data-original",speed:3e3,direction:"forward",duration:500,showNum:1,stepLen:1,type:"horizontal",btnGo:{left:null,right:null},beforeCallback:function(){},afterCallback:function(){}}})(jQuery);(function(t,e,o,i){var s=t;var n="dropdown",l={hasCssLink:!1,item:"nav-item",trigger:!1,current:"active",bodyClass:"dropdown-bd",subBodyClass:"dropdown-sub",topspeed:!1,boundary:10,enterDelay:0,leaveDelay:0,zIndex:1e3,align:"bottom",left:null,top:null,submenuLeft:0,submenuTop:0,onchange:null,onmouseleave:null};function r(e,o){this.el=t(e);this.options=t.extend({},l,o);this._defaults=l;this._name=n;this.init()}t.extend(r.prototype,{init:function(){this.mouseLocs=[],this.lastDelayLoc=null,this.create(),this.bind()},create:function(){var t=this.options;this.item=t.trigger?this.el:this.el.find("."+t.item),this.body=this.el.find("."+t.bodyClass);var e=t.top;var o=t.left;"bottom"==t.align&&null==t.top&&(t.top=this.item.outerHeight()),"right"==t.align&&(t.top=0,null==t.left&&(t.left=this.item.outerWidth())),(null!=e||null!=o)&&this.body.css({position:"absolute",top:t.top,left:t.left,zIndex:t.zIndex}),this.el.find("."+t.subBodyClass).css({zIndex:t.zIndex+1}),this.bodyOuterWidth=this.body.outerWidth(),this.bodyBorderWidth=2*this.getStyle(this.body[0],"borderWidth")},bind:function(){var t=this;var e=this.options;var i=!1;var n,l;var r=3;var u=null;var a=null;var d=!1;this.el.bind("mouseenter",function(){clearTimeout(n)}),this.el.bind("mouseleave",function(){i&&(n=setTimeout(function(){t.removeClass()},e.leaveDelay)),e.onmouseleave&&e.onmouseleave(s(this)),u=null}),this.item.bind("mouseenter",function(){if(d)return!1;var o=s(this);var n=function(){d=!0,u=o.index(),t.removeClass(),o.addClass(e.current),i=!0,e.onchange&&e.onchange(o)};l=setTimeout(function(){0==t.topspeed(o)&&(n(),clearTimeout(a))},e.enterDelay),e.topspeed&&(a=setTimeout(function(){u!=o.index()&&n()},700))}),this.item.bind("mouseleave",function(){clearTimeout(l),clearTimeout(a),d=!1}),this.el.find("."+e.subBodyClass).bind("mouseenter",function(){var o=t.bodyOuterWidth-t.bodyBorderWidth+e.submenuLeft;var i=t.getStyle(s(this)[0],"paddingLeft");o=s.browser.isIE6()?o-i:o;var n=0+e.submenuTop;s(this).find("."+e.bodyClass).show().css({left:o,top:n})}).bind("mouseleave",function(){s(this).find("."+e.bodyClass).hide()}),e.topspeed&&s(o).mousemove(function(e){t.mouseLocs.push({x:e.pageX,y:e.pageY}),t.mouseLocs.length>r&&t.mouseLocs.shift()})},removeClass:function(){this.item.removeClass(this.options.current)},getStyle:function(t,o){if(t){var i=e.getComputedStyle?e.getComputedStyle(t,null)[o]:t.currentStyle[o];return i=parseInt(i),i||(i=0),i}},topspeed:function(){var t=this.options;if(!t.topspeed)return 0;var e=this.el;var o=e.offset(),i={x:o.left,y:o.top},s={x:o.left+e.outerWidth(),y:i.y},n={x:o.left,y:o.top+e.outerHeight()},l={x:o.left+e.outerWidth(),y:n.y};if(loc=this.mouseLocs[this.mouseLocs.length-1],prevLoc=this.mouseLocs[0],!loc)return 0;if(prevLoc||(prevLoc=loc),prevLoc.x<o.left||prevLoc.x>l.x||prevLoc.y<o.top||prevLoc.y>l.y)return 0;if(this.lastDelayLoc&&loc.x==this.lastDelayLoc.x&&loc.y==this.lastDelayLoc.y)return 0;function r(t,e){return(e.y-t.y)/(e.x-t.x)}var u=s,a=l;var d=r(loc,u),h=r(prevLoc,u),c=r(loc,a),f=r(prevLoc,a);return h>d&&c>f?prevLoc.x-i.x<t.boundary?0:(this.lastDelayLoc=loc,300):(this.lastDelayLoc=null,0)}});t.fn[n]=function(e){this.each(function(){if(!t.data(this,"plugin_"+n)){t.data(this,"plugin_"+n,new r(this,e))}});return this}})(jQuery,window,document);$(function(){var a={init:function(){this.adsData=null;this._dealPosterData()},_dealPosterData:function(){if(typeof window.publicdefault!="undefined"){var a="";if($("#gome-sitemap").length>0&&$("#gome-sitemap").attr("data-type")){a="public"+$("#gome-sitemap").attr("data-type")}function t(a,t){if(!t)return a;for(var e in t){if(t[e].length>0){a[e]=t[e]}}return a}this.adsData=t(publicdefault,window[a]);this._dealPoster()}},_removeDomForHomePage:function(){$("#gome-topad-sm, #logo-gif, .hdrsideRoll").remove()},_dealPoster:function(){var a=this.adsData.top;var t=this.adsData.gif;var e=this.adsData.category;if(a&&a.length>0&&$("#gome-topad-sm").length>0){this._dealTopAd()}else{$("#gome-topad-sm").remove()}if(t&&t.length>0&&$("#logo-gif").length>0){var o='<a data-code="'+t[0].code+'" rel="nofollow" target="_blank" href="'+t[0].href+'">'+'    <img width="100" height="50" src="'+t[0].src+'">'+"</a>";$("#logo-gif").html(o)}if($("#gome-head").length&&$("#gome-head").data("need-slogan-judge")&&t.length===0){if($("#logo-gif").length>0){$("#logo-gif").remove()}$("#logo").after('<div id="slogan"></div>')}if(e&&e.length>0&&$(".hdrsideRoll").length>0){this._dealHeadRightSiderAd()}},_dealTopAd:function(){var a,t=this.adsData.top,e=this.adsData.poster,o="",d="",i="",l="";topAdHtml="",curAdData=null;if(e&&e.length>0){curAdData=e[0]}else{a=$.cookie("_index_ad");if(!a){a=0}else{if(a>=t.length-1){a=0}else{a++}}curAdData=t[a];$.cookie("_index_ad",a,{expires:"1",path:"/"})}o=curAdData.href;d=curAdData.code;i=curAdData.src;l=curAdData.bgcolor||"#fff";topAdHtml='<div class="gome-topad-box wbox"><a rel="nofollow" target="_blank" id="gome-topad-sm-pic" data-code="'+d+'"  href="'+o+'">'+'    <img src="'+i+'"/>'+"</a>"+'<a class="close-gome-topad" href="javascript:void(0)">'+"    <i>关闭</i>"+"</a></div>";$("#gome-topad-sm").css("background",l).html(topAdHtml);$("#gome-topad-sm .close-gome-topad").click(function(){$("#gome-topad-sm").remove()})},_dealHeadRightSiderAd:function(){var a='<div class="adnavside" data-roll="hdrSideUp">'+'<ul class="hd-clickscroll js-tads-clsul">';$.each(this.adsData.category,function(t,e){a+="<li>"+'    <a data-code="'+e.code+'" rel="nofollow" target="_blank" href="'+e.href+'">'+'        <img width="170" height="40" src="'+e.src+'"/>'+"    </a>"+"</li>"});a+="</ul></div>"+'<div class="hdrsRollbtn">'+'    <a class="j-hdrbtn-up" href="javascript:;" data-btn="goUp"><i></i></a>'+'    <a class="j-hdrbtn-down" href="javascript:;" data-btn="goDown"><i></i></a>'+"</div>";$(".hdrsideRoll").html(a);$('[data-roll="hdrSideUp"]').gScroll({isAuto:true,isImgLoad:true,showNum:1,stepLen:1,speed:6e3,type:"vertical",dataOriginal:"gome-src",btnGo:{left:'[data-btn="goDown"]',right:'[data-btn="goUp"]'}})}};a.init()});/*
   * bigdata-v2 v1.1.3, bundle: 2017-12-05 11:41
   * (c) 2017 gomeBigData
   */
  !function(){function e(e){return"string"==typeof e?e:"number"==typeof e&&isFinite(e)?""+e:"boolean"==typeof e?e?"true":"false":""}function t(t,n,o,i){n=n||"&",o=o||"=";var r=encodeURIComponent;if(null!==t&&"object"==typeof t){for(var a=Object.keys(t),c=a.length,s=c-1,u="",d=0;d<c;++d){var l=a[d],f=t[l],h=r(e(l))+o;if(Array.isArray(f)){for(var g=f.length,p=g-1,m=0;m<g;++m)u+=h+r(e(f[m])),m<p&&(u+=n);g&&d<s&&(u+=n)}else u+=h+r(e(f)),d<s&&(u+=n)}return u}return""}function n(e){if(0===e.length)return[];if(1===e.length)return[e.charCodeAt(0)];for(var t=[],n=0;n<e.length;++n)t[t.length]=e.charCodeAt(n);return t}function o(e,t,o,i){var r={};if("string"!=typeof e||0===e.length)return r;var a=t?n(t+""):d,c=o?n(o+""):l,s=a.length,u=c.length,f=1e3;i&&"number"==typeof i.maxKeys&&(f=i.maxKeys>0?i.maxKeys:-1);for(var h=[],g=0,p=0,m=0,v="",y="",w=0;w<e.length;++w){var k=e.charCodeAt(w);if(k===a[p]){if(++p===s){var b=w-p+1;if(m<u){if(!(g<b)){if(0==--f)return r;g=w+1,p=m=0;continue}v+=e.slice(g,b)}else g<b&&(y+=e.slice(g,b));if(-1===h.indexOf(v))r[v]=y,h[h.length]=v;else{var I=r[v];I.pop?I[I.length]=y:r[v]=[I,y]}if(0==--f)return r;v=y="",g=w+1,p=m=0}}else{if(p=0,m<u){if(k===c[m]){if(++m===u){var b=w-m+1;g<b&&(v+=e.slice(g,b)),g=w+1}continue}if(m=0,43===k){g<w&&(v+=e.slice(g,w)),v+=" ",g=w+1;continue}}43===k&&(g<w&&(y+=e.slice(g,w)),y+=" ",g=w+1)}}if(g<e.length)m<u?v+=e.slice(g):p<s&&(y+=e.slice(g));else if(0===m)return r;if(-1===h.indexOf(v))r[v]=y,h[h.length]=v;else{var I=r[v];I.pop?I[I.length]=y:r[v]=[I,y]}return r}function i(e){return"function"==typeof e}function r(){for(var e=arguments,t=e.length;t--;)if(!h(e[t]))throw new TypeError;return function(){for(var t=arguments,n=e.length;n--;)t=[e[n].apply(this,t)];return t[0]}}function a(e){var t=new Date,n=arguments;if(n.length>1){var o=n[2]||0,i=n[3]||"/",r=n[4]||0,a=n[5]||0;return o&&t.setTime(t.getTime()+1e3*o),document.cookie=e+"="+escape(n[1])+(o?"; expires="+t.toGMTString():"")+"; path="+i+(r?"; domain="+r:"")+(a?"; secure":""),n[1]}var c=document.cookie.match("(?:^|;)\\s*"+e+"=([^;]*)");return c?unescape(c[1]):0}var c=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};!function(e,t,n){if(!e.BP){var o=t.getElementsByTagName(n)[0],i=t.createElement(n);i.async=!0,e.location.host,i.src="//js.gomein.net.cn/sitemonitor/js-sdk.min.js?v=6122839246",o.parentNode.insertBefore(i,o)}}(window,document,"script");var s="undefined"!=typeof window?window:self,u=document,d=(function(e){/MSIE (\d+\.\d+);/.test(e)&&Number(RegExp.$1)}(navigator.userAgent),function(){try{document.createEvent("TouchEvent")}catch(e){return!1}}(),function(){if("function"==typeof window.URL)return window.URL.prototype.format=function(){var e=t(this.query);return this.search=e&&"?"+e||"",window.URL.prototype.toString.call(this)},function(e){var t=new window.URL(e,window.location.href);return t.query=m(t.search.slice(1)),t};document.createElement("a")}(),[38]),l=[61],f=i,h=f,g=r,p=function(e){return c({},e)},m=g(p,function(e){var t={};return function(n){return t[n]||(t[n]=e(n))}}(o)),v=function(e,t,n,o){if(""===e)return"";o=""===o?"=":o,t+=o;var i=e.indexOf(t);if(i<0)return"";i+=t.length;var r=e.indexOf(n,i);return r<i&&(r=e.length),e.substring(i,r)};s.BPConfig=s.BPConfig||{};var y,w=s.location.host,k=/\.?(.+)\.gomeplus\.com/,b=[{key:"dc-2",rule:/^(.+\.)*(m\.gome\.com\.cn|m\.gomeplus\.com)/},{key:"dc-6",rule:/^(.+\.)*gomehigo\.hk/},{key:"dc-10",rule:/^(.+\.)*diy\.gome\.com\.cn/},{key:"dc-12",rule:/^(.+\.)*m\.gomehigo\.hk/},{key:"dc-13",rule:/^(.+\.)*gomegj\.com/},{key:"dc-14",rule:/^(.+\.)*wap\.gomegj\.com/}],I=decodeURI(function(e){return"__gmz"===undefined?"":v(u.cookie,"__gmz",";","")}()),E=function(){for(var e=0,t=b;e<t.length;e++){var n=t[e];if(n.rule.exec(w))return s.BPConfig?s.BPConfig.tid=n.key:""}}();y=function(){return{isWebView:-1!==navigator.userAgent.indexOf("/gome/")}}().isWebView?I&&"app"===decodeURI(I).split("|")[0]?decodeURI(I).split("|")[3]:"dc-18":s.BPConfig.tid?s.BPConfig.tid:E||"dc-1";var C=y;if(k.test(w),window.ClickiTrackerName="gomeClicki",window.gomeClicki=window.gomeClicki||function(){(window.gomeClicki.queue=window.gomeClicki.queue||[]).push(arguments)},window.gomeClicki.start=+new Date,gomeClicki("create",C,"auto",{clientId:function(e){for(var t;e.length;)if(t=function(e){var t=document.cookie.match("(?:^|;)\\s*"+e+"=([^;]*)");return t?unescape(t[1]):void 0}(e.shift()))return t}(["__clickidc","__c_visitor"])}),gomeClicki("set",function(){var e={};""!=document.referrer&&(e.dimension3=document.referrer),"undefined"!=typeof dsp_gome_c1name&&(e.dimension4=dsp_gome_c1name,e.dimension5=dsp_gome_c2name,e.dimension6=dsp_gome_c3name,e.dimension7=dsp_gome_c1id,e.dimension8=dsp_gome_c3id),"undefined"!=typeof prdInfo&&(e.dimension4=prdInfo.firstCategoryName,e.dimension5=prdInfo.secondCategoryName,e.dimension6=prdInfo.thirdCategoryName,e.dimension7=prdInfo.firstCategoryId,e.dimension8=prdInfo.thirdCategoryId,e.dimension9=prdInfo.prdId,e.dimension10=prdInfo.prdName,e.dimension13=prdInfo.sku,""!==prdInfo.shopNo&&(e.dimension14=prdInfo.shopNo),""!==prdInfo.itemId&&(e.dimension15=prdInfo.itemId),e.metric1=1),"undefined"!=typeof itemId&&(e.dimension15=itemId,"undefined"!=typeof prodid)&&(e.dimension9=prodid);var t=document.getElementById("c8_shop_mId"),n=t&&t.value;return n&&(e.dimension14=n),e.dimension20="20171012",e}()),"search.gome.com.cn"==document.location.hostname||"search.atguat.com.cn"==document.location.hostname){var _=window.document.location.href;if(_.indexOf("question")>-1){var T=document.getElementById("searchTotalNumber"),S=Number(null==T?0:T.innerHTML);is_result="\u6709\u7ed3\u679c",S>0?_+="&ir=1":(_+="&ir=0",is_result="\u65e0\u7ed3\u679c"),window.gomeClicki("send","pageview",{location:_,customActionId:"222",customActionLabel1:is_result})}else window.gomeClicki("send","pageview")}else"undefined"==typeof prdInfo||"item.gome.com.cn"!=document.location.hostname&&"item.atguat.com.cn"!=document.location.hostname?window.gomeClicki("send","pageview"):window.gomeClicki("send","pageview",{customActionId:"555",customActionLabel1:prdInfo.prdId||"",customActionLabel2:prdInfo.sku||"",customActionLabel3:prdInfo.prdType||"",customActionLabel4:prdInfo.gdstats||"",customActionLabel5:prdInfo.hasGoods||"",customActionLabel6:function(e){var t=document.cookie.match("(?:^|;)\\s*atgregion=([^;]*)");return t?decodeURI(t[1]):void 0}()});!function(e,t,n){function o(){}function i(e){return"function"==typeof e}function r(e){return"[object Array]"==ge.call(Object(e))}function a(e){return void 0!=e&&-1<(e.constructor+"").indexOf("String")}function c(e,t){if(a(e)&&(e=t[e]),!i(e))return o;var n=he.call(arguments,2);return function(){return e.apply(t,n.concat(he.call(arguments)))}}function s(t){var n=e.console,r=ve,c=e[r]=e[r]||[];we&&(we&&a(pe)&&(pe+=pe.indexOf("?")>-1?"&":"?",pe+="f="+encodeURIComponent(t)+"&m="+encodeURIComponent(he.call(arguments,1).join(""))+"&hash="+u(),f(pe,o,!0)),c.push(he.call(arguments)),c.length>ye&&c.splice(0,ye-c.length),n&&n.log&&i(n.log)&&(i(n.log.apply)?n.log.apply(n,arguments):n.log(arguments[0])))}function u(){return Math.round(2147483647*Math.random())}function d(e){var t,n=1,o=0;if(e)for(n=0,t=e.length-1;0<=t;t--)o=e.charCodeAt(t),n=(n<<6&268435455)+o+(o<<14),o=266338304&n,n=0!==o?n^o>>21:n;return n}function l(){for(var e,t=[],n=arguments.length,o=0;o<n;o++)e=arguments[o],o>0&&(e=0===e.indexOf("/")?e.slice(1):e),o<n-1&&(e="/"===e.slice(-1)?e.slice(0,e.length-1):e),t.push(e);return t.join("/")}function f(o,i,r){var a,c;try{a="_clickiv4_"+ +new Date+u(),c=e[a]=new Image,c.onload=c.onerror=function(){try{i(),c.onload=c.onerror=e[a]=n}catch(t){}},c.src=o}catch(d){try{c=t.createElement("img"),c.onload=c.onerror=function(){try{i(),c.onload=c.onerror=e[a]=n}catch(t){}},c.src=o}catch(l){r||s("createImage","error message is: ",d.message)}}}function h(e,n,o,i){if(e){var r=t.createElement("script");r.type="text/javascript",r.async=!0,r.src=e,r.id=n,o&&(r.addEventListener?r.onload=o:r.onreadystatechange=function(){r.readyState in{loaded:1,complete:1}&&(r.onreadystatechange=null)}),i&&(r.onerror=i);var a=t.getElementsByTagName("script")[0];a.parentNode.insertBefore(r,a)}}function g(e,t,n,o){e.addEventListener?e.addEventListener(t,n,!!o):e.attachEvent&&e.attachEvent("on"+t,n)}function p(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent&&e.detachEvent("on"+t,n)}function m(e){var n=new Date,o=arguments;if(o.length>1){var i=o[2]||0,r=o[3]||"/",a=o[4]||0,c=o[5]||0;return i&&n.setTime(n.getTime()+1e3*i),t.cookie=e+"="+escape(o[1])+(i?"; expires="+n.toGMTString():"")+"; path="+r+(a&&"none"!=a?"; domain="+a:"")+(c?"; secure":""),o[1]}var s=t.cookie.match("(?:^|;)\\s*"+e+"=([^;]*)");return s?unescape(s[1]):0}function v(){var e=""+t.location.hostname;return 0===e.indexOf("www.")?e.substring(4):e}function y(e){var n=t.referrer;if(/^https?:\/\//i.test(n)){if(e)return n;var o="//"+t.location.hostname,i=n.indexOf(o);if(5===i||6===i){var r=n.charAt(i+o.length);if("/"===r||"?"===r||""===r||":"===r)return}return n}}function w(){var t,n,o;if((o=(o=e.navigator)?o.plugins:null)&&o.length)for(var i=0;i<o.length&&!n;i++){var r=o[i];-1<r.name.indexOf("Shockwave Flash")&&(n=r.description)}if(!n)try{t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"),n=t.GetVariable("$version")}catch(a){}if(!n)try{t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),n="WIN 6,0,21,0",t.AllowScriptAccess="always",n=t.GetVariable("$version")}catch(c){}if(!n)try{t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),n=t.GetVariable("$version")}catch(s){}return n&&(t=n.match(/[\d]+/g))&&3<=t.length&&(n=t[0]+"."+t[1]+" r"+t[2]),n||void 0}function k(e,t){return e.name=t}function b(e,t){var n,o,i=0,r={};for(o=Math.min(e.length+1,t.length);i<o;i++)if("object"==typeof t[i])for(n in t[i])t[i].hasOwnProperty(n)&&(r[n]=t[i][n]);else e.length>i&&(r[e[i]]=t[i]);return r}function I(e,t){return 1==t.length&&null!=t[0]&&"object"==typeof t[0]?t[0]:b(e,t)}function E(){return le.userAgent.indexOf("Firefox")>=0&&![].reduce}function C(e,t){return t=t||o,e.length<=2036?_(e,t):e.length<=8192&&!E()?S(e,t)||T(e,t)||x(e,t):(s("send","request param is to long ",e.length),!1)}function _(e,t){t=t||o,f(l(be,Ie)+"?"+e,t)}function T(t,n){if(n=n||o,!e.XDomainRequest)return!1;var i=new e.XDomainRequest;return i.open("POST",l(be,Ee)),i.onerror=function(){n()},i.onload=n,i.send(t),!0}function S(t,n){if(n=n||o,!e.XMLHttpRequest)return!1;var i=new e.XMLHttpRequest;return"withCredentials"in i&&(i.open("POST",l(be,Ee),!0),i.setRequestHeader("Content-Type","text/plain"),i.onreadystatechange=function(){4==i.readyState&&(n(),n=null)},i.send(t),!0)}function x(n,i){var r,a,c,s,u=0,d=!1;if(i=i||o,c=function(){a.src="",a.parentNode&&a.parentNode.removeChild(a)},s=function(){if(!d)try{if(u>9||a.contentWindow.location.host==t.location.host)return d=!0,c(),p(e,"beforeunload",c),void i()}catch(n){u++,setTimeout(s,200)}},t.body){n+="####==collect_path="+l(be,Ce)+"==####",n=encodeURIComponent(n);try{a=t.createElement('<iframe name="'+n+'"></iframe>')}catch(m){a=t.createElement("iframe"),k(a,n)}a.height="0",a.width="0",a.style.display="none",a.style.visibility="hidden",r=l(be,_e)+"#",r+=encodeURIComponent(t.location.protocol+"//"+t.location.host+"/favicon.ico"),g(e,"beforeunload",c),g(a,"load",s),t.body.appendChild(a),a.src=r}else{var f=arguments,h=arguments.callee;setTimeout(function(){h.apply(e,f)},100)}}function L(){this.keys=[],this.t1={},this.t2={}}function j(e,t,n,o,i){var r=this;k(r,e),r.protocolParameter=t,r.defaultValue=n,r.getter=o,r.setter=i}function A(e,t,n,o,i){var r=new j(e,t,n,o,i);return Se.set(r.name,r),r.name}function N(e,t){Te.push([new RegExp("^"+e+"$"),t])}function O(e,t,n){return A(e,t,n,void 0,o)}function R(e){var t=Se.get(e);if(!t)for(var n=0;n<Te.length;n++){var o=Te[n],i=o[0].exec(e);i&&(t=o[1](i),Se.set(t.name,t))}return t}function P(e){var t;return Se.map(function(n,o){o.protocolParameter==e&&(t=n)}),t}function q(e,t){var n=e.get(t);return void 0==n?"":""+n}function B(e,t){var n=e.get(t);return void 0==n?0:1*n}function M(){var e=this;return function(e,t){return e&&e.hasOwnProperty&&e instanceof t}(e,M)||(e=new M,e.init()),e}function V(){this.data=new L}function z(){this.stack=[]}function F(){var e=t.location.protocol;if("http:"!=e&&"https:"!=e)throw s("checkProtocolTask","current protocol is:",e),"abort"}function U(e){return e.length>1&&e.lastIndexOf("/")==e.length-1&&(e=e.substr(0,e.length-1)),0!==e.indexOf("/")&&(e="/"+e),e}function G(e){return 0===e.indexOf(".")?e.substr(1):e}function D(e){if("cookie"===q(e,mt)){var t=[],n=e.get(ft),o=U(e.get(gt)),i=G(e.get(ht)),r=e.get(pt),a=q(e,Ae),c=v().split(".");if("auto"!=i&&(m(n,a,r,o,i),m(n)==a))return void(St=!0);if(4==c.length&&c[c.length-1]>0)t=["none"];else{for(var s=c.length-2;s>=0;s--)t.push(c.slice(s).join("."));t.push("none")}for(var u=0;u<t.length;u++)if(i=t[u],m(n,a,r,o,i),m(n)==a)return e.set(ht,i),void(St=!0);e.set(ht,"auto")}}function H(e){"cookie"!==q(e,mt)||St||(D(e),St)||e.data.set(Ae,0)}function X(e){if(100!==e.get(yt)&&d(q(e,Ae))%1e4>=100*B(e,yt))throw s("samplerTask","current sampleRate is: ",e.get(yt)),"abort"}function $(e){var t=[];Se.map(function(n,o){if(o.protocolParameter){var i=e.get(n);0!==i&&i!=o.defaultValue&&("boolean"==typeof i&&(i*=1),t.push(o.protocolParameter+"="+encodeURIComponent(""+i)))}}),t.push("z="+u()),e.set(We,t.join("&"),!0)}function K(e){var t=q(e,We),n=e.get(Ke);switch(e.get(je)){case"image":_(t,n);break;case"cors":S(t,n)||T(t,n);break;case"iframe":x(t,n);break;default:C(t,n)}e.set(Ke,o,!0)}function W(){for(var n=le.appName+le.version+le.platform+le.userAgent+(t.cookie||"")+(t.referrer||""),o=n.length,i=e.history.length;i>0;)n+=i--^o++;return[u()^2147483647&d(n),String((new Date).getTime()).substr(2,8)].join("").substr(0,18)}function J(e,t){var n=e.get(ft),o=m(n);t||(t=o||W()),e.data.set(Ae,t),D(e)}function Q(e){var n="CSS1Compat"===t.compatMode?"documentElement":"body";if(e.set("referrer",y(e.get(kt))),fe){var o=fe.pathname||"";"/"!=o.charAt(0)&&(o="/"+o),e.set(Ue,fe.protocol+"//"+fe.hostname+o+fe.search),de&&(e.set(Oe,de.width+"*"+de.height),e.set(qe,de.colorDepth+"-bit")),e.set(Re,t[n].clientWidth+"*"+t[n].clientHeight),e.set(Ve,w()),e.set(Pe,t.characterSet||t.charset);var r="",a=!1;try{a=le&&i(le.javaEnabled)&&le.javaEnabled()||!1}catch(c){s("collectClientInfo","javaEnabled error",c.message)}try{r=(le&&(le.language||le.browserLanguage)||"").toLowerCase()}catch(u){s("collectClientInfo","language error",u.message)}e.set(Me,a),e.set(Be,r)}}function Y(t){var n=e.performance||e.webkitPerformance,o=n&&n.timing;if(!o)return!1;var i=o.navigationStart;return 0!==i&&(t[Ze]=o.loadEventStart-i,t[tt]=o.domainLookupEnd-o.domainLookupStart,t[it]=o.connectEnd-o.connectStart,t[ot]=o.responseStart-o.requestStart,t[et]=o.responseEnd-o.responseStart,t[nt]=o.fetchStart-i,t[rt]=o.domInteractive-i,t[at]=o.domContentLoadedEventStart-i,!0)}function Z(t){if(e.top!=e)return!1;var n=e.external,o=n&&n.onloadT;return n&&!n.isValidLoadTime&&(o=void 0),o>2147483648&&(o=void 0),o>0&&n.setPageReadyTime(),void 0!=o&&(t[Ze]=o,!0)}function ee(e,t){var n=e[t];(isNaN(n)||Infinity==n||0>n)&&(e[t]=void 0)}function te(t,n){var o=Math.min(B(t,wt),100);if(d(q(t,Ae))%100<o){var i=[];if(Y(i)||Z(i)){var r=i[Ze];void 0!=r&&isFinite(r)&&!isNaN(r)&&(r>0?(ee(i,tt),ee(i,it),ee(i,ot),ee(i,et),ee(i,nt),ee(i,rt),ee(i,at),n(i)):g(e,"load",function(){te(t,n)},!1))}}}function ne(e){e.timingIsSended||(e.timingIsSended=!0,te(e.storage,function(t){e.storage.set(Fe,!0,!0),e.send("timing",t)}))}function oe(e){if(e.storage.get(vt))for(var t=0;t<ke.length;t++)!function(e,t){setTimeout(function(){e.storage.set(Fe,!0,!0),e.send("pulse")},1e3*t)}(e,ke[t])}function ie(e){function t(e,t){o.storage.data.set(e,t)}function n(e,n){t(e,n),o.filters.add(e)}var o=this;o.storage=new V,o.filters=new z,t(lt,e[lt]),t(Le,e[Le]),t(ft,e[ft]),t(ht,e[ht]||v()),t(gt,e[gt]),t(pt,e[pt]),t(yt,e[yt]),t(je,e[je]),t(wt,e[wt]),t(vt,e[vt]),t(kt,e[kt]),t(Ne,e[Ne]),n(bt,F),n(It,H),n(Et,X),n(Ct,$),n(_t,K),J(o.storage,e[Ae]),Q(o.storage),oe(o)}function re(e,t){var n=this;n.id=e,n.url=t,n.factory=null,n.instance=null,n.loading=!1,n.ready=!1,n.queue=[],n.prefix="plugin_2015_",n.load()}function ae(){this.plugins={}}function ce(e){return e.indexOf(".")+e.indexOf(":")>-2}function se(e){var t=this;if(i(e[0]))t.ready=e[0];else{var n=Lt.exec(e[0]);if(null!=n&&4==n.length&&(t.name=n[1]||me,t.pluginId=n[2]||"",t.action=n[3],t.opts=he.call(e,1)),!t.action)throw s("Env","no action"),"abort";if("require"===t.action&&(!a(e[1])||""===e[1]))throw s("Env","unexpected require arg: ",e[1]),"abort";if("provide"===t.action&&(!a(e[1])||""===e[1]))throw s("Env","unexpected provide arg: ",e[1]),"abort";if(ce(t.pluginId)||ce(t.action))throw s("Env","pluginId or action has  keyword ."),"abort";if("provide"===t.action&&t.name!=me)throw s("Env","provide not need trackerName"),"abort"}}function ue(){jt.append.apply(jt,[arguments])}var de=e.screen,le=e.navigator,fe=e.location,he=Array.prototype.slice,ge=Object.prototype.toString,pe="",me="t0",ve="clickiLogStack2015",ye=3e3,we=fe.hash.indexOf("clicki/debug/")>-1||!1,ke=[],be=("https:"==fe.protocol?"https:":"http:")+"//sm.gome.com.cn/",Ie="collect/track_proxy",Ee="collect/track_ajax",Ce="collect/track_ajax",_e="collect_iframe.html";L.prototype.set=function(e,t,n){this.keys.push(e),n?this.t2[":"+e]=t:this.t1[":"+e]=t},L.prototype.get=function(e){return this.t2.hasOwnProperty(":"+e)?this.t2[":"+e]:this.t1[":"+e]},L.prototype.map=function(e){for(var t=0;t<this.keys.length;t++){var n=this.keys[t],o=this.get(n);o&&e(n,o)}};var Te=[],Se=new L,xe=M.prototype;xe.init=function(){return this.data=[],this.dataLock=[],this.gestureCache=[],this.gestureBindLock=!1,this.binder=["binderScroll","binderKeydown","binderResize","binderMousedown","binderMousemove","binderSwipe","binderTurn","binderPinch"],this.bindEvents(),this.reset(),this},xe.bindEvents=function(){for(var e=0;e<this.binder.length;e++)this.dataLock[e]=!1,this[this.binder[e]](e)},xe.onGesturesEventTrigger=function(e){for(var t=this.gestureCache,n=e.touches?e.touches.length:1,o=n>=2?"pinch":"swipe",i=0;i<t.length;i++)t[i]&&t[i][0]===o&&this.onEventTrigger(t[i][1])},xe.bindGesturesEvent=function(n,o){this.gestureCache.push([n,o]);var i="ontouchstart"in e;!this.gestureBindLock&&i&&t.addEventListener("touchmove",c(this.onGesturesEventTrigger,this),!1)},xe.onEventTrigger=function(e){this.dataLock[e]||(this.dataLock[e]=!0,this.data[e]=1)},xe.binderScroll=function(t){g(e,"scroll",c(this.onEventTrigger,this,t))},xe.binderKeydown=function(e){g(t,"keydown",c(this.onEventTrigger,this,e))},xe.binderResize=function(t){g(e,"resize",c(this.onEventTrigger,this,t))},xe.binderMousedown=function(e){g(t,"mousedown",c(this.onEventTrigger,this,e))},xe.binderMousemove=function(e){g(t,"mousemove",c(this.onEventTrigger,this,e))},xe.binderSwipe=function(e){this.bindGesturesEvent("swipe",e)},xe.binderTurn=function(t){e.orientation&&e.addEventListener("orientationchange",c(this.onEventTrigger,this,t),!1)},xe.binderPinch=function(e){this.bindGesturesEvent("pinch",e)},xe.reset=function(){for(var e=0;e<this.binder.length;e++)this.data[e]=0},xe.get=function(){var e=this.data.join("-");return this.reset(),e},A("protocolVersion","v");var Le=O("trackingId","tid");A("anonymizeIp","aip"),A("queueTime","qt");var je=A("forceSendMethod"),Ae=O("clientId","cid"),Ne=A("userId","uid");A("miaozhenId","mzid"),A("sessionControl","sc",""),A("referrer","dr"),A("googleCampaignName","cn"),A("googleCampaignSource","cs"),A("googleCampaignMedium","cm"),A("googleCampaignKeyword","ck"),A("googleCampaignContent","cc"),A("miaozhenCampaignId","mzc"),A("miaozhenCampaignId","mzs"),A("miaozhenCampaignId","mzk"),N("customAds([0-9]+)",function(e){return new j(e[0],"ca"+e[1])});var Oe=A("screenResolution","sr"),Re=A("viewportSize","vp"),Pe=A("encoding","de"),qe=A("screenColors","sd"),Be=A("language","ul"),Me=A("javaEnabled","je"),Ve=A("flashVersion","fl"),ze=A("hitType","t"),Fe=A("nonInteraction","ni",void 0,function(e,t,n){return void 0!=n&&n}),Ue=A("location","dl","");A("hostname","dh");var Ge=A("page","dp","");A("title","dt",function(){return t.title||void 0}),A("appName","an"),A("appId","aid",""),A("appVersion","av",""),A("appInstallerId","aiid","");var De=A("eventCategory","ec"),He=A("eventAction","ea"),Xe=A("eventLabel","el"),$e=A("eventValue","ev");A("customActionId","caid"),N("customActionLabel([0-9]+)",function(e){return new j(e[0],"cal"+e[1])}),N("customActionValue([0-9]+)",function(e){return new j(e[0],"cav"+e[1])}),N("dimension([0-9]+)",function(e){return new j(e[0],"cd"+e[1])}),N("metric([0-9]+)",function(e){return new j(e[0],"cm"+e[1])}),function(e,t,n,i){A("userBehavior","ub",void 0,i,o)}(0,0,0,c("get",M()));var Ke=A("hitCallback"),We=A("hitPayload"),Je=A("socialNetwork","sn"),Qe=A("socialAction","sa"),Ye=A("socialTarget","st"),Ze=A("l1","plt"),et=A("l2","pdt"),tt=A("l3","dns"),nt=A("l4","rrt"),ot=A("l5","srt"),it=A("l6","tcp"),rt=A("l7","dit"),at=A("l8","clt"),ct=A("timingCategory","utc"),st=A("timingVar","utv"),ut=A("timingLabel","utl"),dt=A("timingValue","utt"),lt=O("name"),ft=O("cookieName",void 0,"__clickidc"),ht=O("cookieDomain"),gt=O("cookiePath",void 0,"/"),pt=O("cookieExpires",void 0,31536e4),mt=O("storage",void 0,"cookie"),vt=O("sendPulse",void 0,!0),yt=O("sampleRate","sf",100),wt=O("siteSpeedSampleRate",void 0,10),kt=O("alwaysSendReferrer",void 0,!1),bt=A("checkProtocolTask"),It=A("checkStorageTask"),Et=A("samplerTask"),Ct=A("buildHitTask"),_t=A("sendHitTask"),Tt=!1;A("forceSSL",void 0,void 0,function(){return Tt},function(e,t,n){Tt=!!n}),N("\\&(.*)",function(e){var t=new j(e[0],e[1]),n=P(e[0].substring(1));return n&&(t.getter=function(e){return e.get(n)},t.setter=function(e,t,n,o){e.set(t,n,o)},t.protocolParameter=void 0),t}),V.prototype.clearTemp=function(){this.data.t2={}},V.prototype.get=function(e){var t=R(e),n=this.data.get(e);return t&&void 0==n&&(n=i(t.defaultValue)?t.defaultValue():t.defaultValue),t&&i(t.getter)?t.getter(this,e,n):n},V.prototype.set=function(e,t,n){if(e)if("object"==typeof e)for(var o in e)e.hasOwnProperty(o)&&arguments.callee.call(this,o,e[o],n);else{var r=R(e);r&&i(r.setter)?r.setter(this,e,t,n):this.data.set(e,t,n)}},z.prototype.add=function(e){this.stack.push(e)},z.prototype.run=function(t){try{for(var n=0;n<this.stack.length;n++){var r=t.get(this.stack[n]);i(r)&&r.call(e,t)}}catch(c){}var a=t.get(Ke);a!=o&&(t.set(Ke,o,!0),setTimeout(a,10))};var St=!1;ie.prototype.get=function(e){return this.storage.get(e)},ie.prototype.set=function(e,t){return this.storage.set(e,t),this};var xt={pageview:[Ge],event:[De,He,Xe,$e],social:[Je,Qe,Ye],timing:[ct,st,ut,dt]};ie.prototype.send=function(){var e,t;arguments.length>0&&(a(arguments[0])?(e=arguments[0],t=he.call(arguments,1)):(e=arguments[0]&&arguments[0][ze],t=he.call(arguments))),e&&(t=I(xt[e]||[],t),t[ze]=e,this.storage.set(t,void 0,!0),this.filters.run(this.storage),"pageview"===e&&ne(this),this.storage.clearTemp())},re.prototype.load=function(){var e=this;e.loading=!0,h(e.url,e.prefix+e.id)},re.prototype.provide=function(e,t){var n;this.factory=e,this.ready=!0,this.loading=!1;try{this.instance=new e(t)}catch(o){this.instance={},s("plugin provide","factory init error; plugin id is:",this.id,";error message is:",o.message)}for(;n=this.queue.shift();)this.use.apply(this,n)},re.prototype.use=function(e,t){var n=this.instance;if(this.ready)try{n[e].apply(n,t)}catch(o){s("plugin use","action is: ",e,"; plugin id is:",this.id,";error message is:",o.message)}else this.queue.push(he.call(arguments))},ae.prototype.getAll=function(){return this.plugins},ae.prototype.get=function(e){return this.plugins[e]},ae.prototype.set=function(e,t){this.plugins[e]=t},ae.prototype.use=function(e,t,n){var o=this.get(e);o&&o.use&&o.use(t,n)},ae.prototype.require=function(e,t){this.get(e)||this.set(e,new re(e,t))},ae.prototype.provide=function(e,t,n){var o=this.get(e);o&&o.provide&&o.provide.apply(o,he.call(arguments,1))};var Lt=/^(?:(\w+)\.)?(?:(\w+):)?(\w+)$/,jt={};jt.envs=[],jt.pluginM=new ae,jt.process=function(){for(var e=[],t=0;t<arguments.length;t++)try{e.push(new se(arguments[t]))}catch(n){}return e},jt.run=function(t){try{if(t.ready)t.ready.call(e,ue.getByName(me));else{var n=ue.getByName(t.name);if(t.pluginId)return this.pluginM.use(t.pluginId,t.action,t.opts);switch(t.action){case"create":ue.create.apply(ue,t.opts);break;case"remove":ue.remove.call(ue,t.name);break;case"require":this.pluginM.require.apply(this.pluginM,t.opts);break;case"provide":this.pluginM.provide.apply(this.pluginM,t.opts.concat([n]));break;default:n[t.action].apply(n,t.opts)}}}catch(o){s("controller.run",o.message)}},jt.append=function(){var e=this,t=e.process.apply(e,arguments);for(t=e.envs.concat(t),e.envs=[];t.length&&(e.run(t.shift()),!(e.envs.length>0)););e.envs=e.envs.concat(t)};var At=[],Nt=function(e,t,n){var o,i;return a(e.ClickiTrackerName)&&(i=e.ClickiTrackerName,o=i?i.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""):""),o||"dc"}(e);ue.lock=At,ue.cache={},ue.start=0,ue.stack=[];var Ot=[Le,ht,lt];ue.create=function(){var e=I(Ot,he.call(arguments));e[lt]||(e[lt]=me);var t=""+e[lt];if(ue.cache[t])return ue.cache[t];var n=new ie(e);return ue.cache[t]=n,ue.stack.push(n),n},ue.remove=function(e){for(var t=0;t<ue.stack.length;t++)if(ue.stack[t].get(lt)==e){ue.stack.splice(t,1),ue.cache[e]=null;break}},ue.getAll=function(){return ue.stack.slice(0)},ue.getByName=function(e){return ue.cache[e]},ue.init=function(){var t=e[Nt];if(!t||t.lock!=At){we=!!t.debug,pe=t.debugSendUrl,ue.loaded=!0,ue.start=t&&t.start,e[Nt]=ue;var n=t&&t.queue;r(n)&&jt.append.apply(jt,n)}},ue.init()}(window,document);for(var x=a("__clickidc"),L=a("__c_visitor"),j=document.domain.split("."),A=[],N=j.length-2;N>=0;N--)A.push(j.slice(N).join("."));for(var N=0;N<A.length&&(L?a("__c_visitor",L,31536e4,"/",A[N]):a("__c_visitor",x,31536e4,"/",A[N]),a("__clickidc")!=a("__c_visitor"));N++);window._wall_switch===undefined&&window.setTimeout(function(){!function(e,t,n,o,i,r){e[o]=e[o]||[];var a=e[i]=e[i]||{};e.tagmangerGlobalObject=i,a[10402]={dlName:o};var c=t.getElementsByTagName(n)[0],s=t.createElement(n);s.async=!0,s.src="//js.gomein.net.cn/sitemonitor/10402.js",c.parentNode.insertBefore(s,c)}(window,document,"script","dataLayer","tagmanager")},4e3),function(e,t,n,o,i,r){e[o]=e[o]||[];var a=e[i]=e[i]||{};e.tagmangerGlobalObject=i,a[10119]={dlName:o};var c=t.getElementsByTagName(n)[0],s=t.createElement(n);s.async=!0,s.src="//js.gomein.net.cn/sitemonitor/10119.js",c.parentNode.insertBefore(s,c)}(window,document,"script","dataLayer","tagmanager")}();jQuery.cookie=function(e,i,r){if(typeof i!="undefined"){r=r||{};if(i===null){i="";r.expires=-1}var o="";if(r.expires&&(typeof r.expires=="number"||r.expires.toUTCString)){var n;if(typeof r.expires=="number"){n=new Date;n.setTime(n.getTime()+r.expires*24*60*60*1e3)}else{n=r.expires}o="; expires="+n.toUTCString()}var t=r.path?"; path="+r.path:"";var s=r.domain?"; domain="+r.domain:"";var a=r.secure?"; secure":"";document.cookie=[e,"=",encodeURIComponent(i),o,t,s,a].join("")}else{var p=null;if(document.cookie&&document.cookie!=""){var u=document.cookie.split(";");for(var c=0;c<u.length;c++){var m=jQuery.trim(u[c]);if(m.substring(0,e.length+1)==e+"="){p=decodeURIComponent(m.substring(e.length+1));break}}}return p}};window.loginData=window.loginData||{};window.loginstatus=true;window.HeartBeat=1;window.HeartTime;(window.IpHeartBeat=function(){HeartTime=window.setTimeout(function(){if(HeartBeat&&HeartBeat<=10){HeartBeat+=1;IpHeartBeat()}else{signData.init()}},1e3)})();var $domain=cookieDomain;var $atgregion="atgregion";if(location.host.indexOf("hk")!=-1&&location.host.indexOf("item")!=-1){$domain=location.host.replace("item","");$atgregion="hwgregion"}$.ajax({type:"get",url:"//ss"+$domain+"/item/v1/cookie/"+$atgregion+"/flag/public/ipWrite",cache:false,dataType:"jsonp",jsonpName:"ipWrite",success:function(){signData.init()}});window.signData={gloginfn:null,loginEnd:false,init:function(){HeartBeat=null;window.clearTimeout(HeartTime);this.dynUrl=dynSite+contextPath;this.memUrl="//member"+cookieDomain+"/gome/index/loginStyle";this.isAjax=false;this.callName=null;this.getUser();this.bindUser();this.bindMygome();this.toSite="commerceDetail";this.ieUpdater()},setLoginStyle:function(t){loginData=t;if(t){$.cookie("gradeId",t.gradeId||-1)}loginstatus=$.trim(loginData.isTransient)},getUser:function(){var t={type:2};if(typeof window.prdInfo!="undefined")t={type:2,productId:window.prdInfo.prdId,skuId:window.prdInfo.sku};this.login(t,this.getUserDom)},getUserDom:function(t){signData.setLoginStyle(t);signData.isAjax=true;if(loginstatus!="true"){var e=t.accountType=="1"?'<em class="level-g-firm"></em>':'<em class="level-g'+(t.gradeId-10)+'"></em>';if(t.loginStatus==3){$("#loginDiv-name").html('Hi,&nbsp;<a data-code="public01054" href="//club'+cookieDomain+'" target="_blank"><span class="sign-top-member-name">'+t.loginName+"&nbsp;</span>"+e+"<i></i>");$("#loginDiv-link").html('<a rel="nofollow" data-code="public01035" class="gome-link-logout" href="//login'+cookieDomain+'/login?type=logout">退出</a>')}else{$("#loginDiv-name").html('Hi,&nbsp;<a data-code="public01054" href="//club'+cookieDomain+'" target="_blank"><span class="sign-top-member-name">'+t.loginName+"&nbsp;</span>"+e+"<i></i>");$("#loginDiv-link").html('<a rel="nofollow" data-code="public01002"  href="//login'+cookieDomain+'/login">请登录</a>')}}},getUserCall:function(t){if(signData.isAjax){t(loginstatus)}else{signData.callList.push(t)}},callList:[],bindUser:function(){$("#gome-user").hover(function(){if(!$(this).data("open")){$(this).children("div").load("/n/common/global/head_"+$(this).data("load")+".html",function(){$(this).parent().attr("data-open","true");$.ajax({url:stageJsServer+"/gmlib/ui/jcarousellite/1.0.1/jcarousellite.min.js",dataType:"script",cache:true,success:function(){$("#user-icon div").jCarouselLite({btnNext:".user-icon-next",btnPrev:".user-icon-prev",visible:3,circular:false,scroll:3})}});if(loginstatus!="true"){$.ajax({url:"//member"+cookieDomain+"/myaccount/profitAccountDetail/getProfitAccountDetail",type:"get",data:{type:0},dataType:"jsonp",jsonpName:"ckdataPublic",success:function(e){try{t(e)}catch(i){}}})}function t(t){var e=t;if(e.hasOwnProperty("error")){return}var i=e.profitDetail.imagePath?"no-bg":"";UserNameHtml='<a data-code="public01048" href="//club'+cookieDomain+'" target="_blank"><i class="'+i+'"><img src="'+e.profitDetail.imagePath+'"></i></a>                                <div>                                    <p><strong><a data-code="public01036" href="//club'+cookieDomain+'" target="_blank">'+e.profitDetail.login+"</a></strong><em>G"+(e.profitDetail.gradeID-10)+'</em></p>                                    <a data-code="public01047" href="//help.gome.com.cn/question/26.html" target="_blank">                                        <p id="gradeup-amount" class="user-name-level"><span></span><sup>'+e.profitDetail.totalAmount+"/"+e.profitDetail.milestone+'</sup></p>                                        <p id="gradeup-day" class="user-name-level"><span></span><sup>'+e.profitDetail.totalAmount2+"/"+e.profitDetail.milestone2+'</sup></p>                                        <p id="gradeup-tips"></p>                                    </a>                                </div>';$("#user-name").html(UserNameHtml);$("#gradeup-amount").find("span").css("width",Math.round(e.profitDetail.totalAmount*100/e.profitDetail.milestone)+"%");$("#gradeup-day").find("span").css("width",Math.round(e.profitDetail.totalAmount2*100/e.profitDetail.milestone2)+"%");if(e.profitDetail.gradeName=="G5"){$("#gradeup-tips").html("您已达到最高等级，可享受G5会员特权。")}else if(e.profitDetail.gradeName=="G1"){$("#gradeup-tips").html("升级到"+e.profitDetail.nextGradeName+"还需<ins>"+e.profitDetail.gradeUpAmount2+"</ins>个购物天数");$("#gradeup-amount").find("span").css("width","100%")}else if(e.profitDetail.totalAmount<e.profitDetail.milestone&&e.profitDetail.totalAmount2<e.profitDetail.milestone2){$("#gradeup-tips").html("升级到"+e.profitDetail.nextGradeName+"还需<ins>"+e.profitDetail.gradeUpAmount+"</ins>成长值,<ins>"+e.profitDetail.gradeUpAmount2+"</ins>个购物天数")}else if(e.profitDetail.totalAmount>=e.profitDetail.milestone){$("#gradeup-tips").html("升级到"+e.profitDetail.nextGradeName+"还需<ins>"+e.profitDetail.gradeUpAmount2+"</ins>个购物天数")}else{$("#gradeup-tips").html("升级到"+e.profitDetail.nextGradeName+"还需<ins>"+e.profitDetail.gradeUpAmount+"</ins>成长值")}var a=0;$("#user-icon li").each(function(){var t=$(this).data("icon");if(e.profitDetail[t]==true){$(this).addClass("hover");a=a+1}});$("#user-icon p").empty().append('<a data-code="public01037" href="//club.gome.com.cn/" target="_blank">会员俱乐部</a>我的<span>'+a+"</span>项特权")}})}$(this).addClass("hover");$(this).children(".public-dropdown").css("height","auto")},function(){$(this).removeClass("hover");$(this).children(".public-dropdown").css("height","0")})},bindMygome:function(){$("#gome-mygome").hover(function(){if(!$(this).data("open")){$(this).children("div").load("/n/common/global/head_"+$(this).data("load")+".html",function(){$(this).parent().attr("data-open","true");signData.login({type:2},signData.Mygome)})}$(this).addClass("hover");$(this).children(".public-dropdown").css("height","auto")},function(){$(this).removeClass("hover");$(this).children(".public-dropdown").css("height","0")})},Mygome:function(data){signData.setLoginStyle(data);if(data.loginStatus==3){signData.getAjax({Jname:"ckdata_public",Jurl:"//member"+cookieDomain+"/myaccount/couponInfo/getUnusedCouponCount",Jcall:signData.myGome_Coupon})}if(loginstatus!="true"){signData.getAjax({Jname:"ckdata_public",Jurl:"//order"+cookieDomain+"/myOrderCount/queryOrderRemindInfo",Jcall:signData.myGome_Pay});var _prs=$.cookie("proid120517atg"),_p_=[];try{eval("var _p_="+_prs)}catch(e){}if(!_p_)_p_=[];if(_p_.length<=0){}else{signData.getAjax({Jname:"topbrowsed",Jurl:"//ss"+cookieDomain+"/item/v1/browse/prdreturn/"+_p_.join(",")+"/50/flag/publicv1/topbrowsed",Jcall:signData.myGome_MyHistory})}$("#gome-mygome strong").html('<a data-code="public01051" href="//myhome'+cookieDomain+'/member/profileHome" target="_blank">'+data.loginName+"的国美</a>")}},myGome_MyHistory:function(t){if(t.result){var e="",i=t.result;if(t.result.length<4){var a=t.result.length}else{var a=4}for(var o=0;o<a;o++){e+='<li><a data-code="public01039-'+o+'" target="_blank" href="'+i[o].url+'"><img src="'+i[o].pic+'" alt="'+i[o].name+'"/></a></li>'}$("#mygome-track").empty().append(e)}},myGome_Pay:function(t){$("#waitPay").html('<a data-code="public01040" href="//myhome.gome.com.cn/member/myOrder" target="_blank">'+t.result.orderCount.pendingPayOrderCount+"</a>")},myGome_Coupon:function(t){function e(t,e,i,a){if(t&&t!=0){$(e).html('<a data-code="'+i+'" href="//myhome'+cookieDomain+"/member/gomeMyCoupon?type="+a+'" target="_blank">'+t+"</a>")}}e(t.result.buessObj.result.red,"#redCoupon","public01017-1",21);e(t.result.buessObj.result.blue,"#blueCoupon","public01018-1",22);e(t.result.buessObj.result.shopCoupon,"#shopCoupon","public01020-1",24);e(t.result.buessObj.result.platformCoupon,"#platformCoupon","public01022-1",26)},login:function(pram,callback){signData.loginEnd=true;if(loginstatus){this.getAjax({Jname:"logintop",Jurl:this.memUrl,Jdat:pram||{},Jcall:function(t){if(t.loginStatus&&t.loginStatus<2){t.isTransient="true"}else{t.isTransient="false"}if(callback)callback(t);for(var e=0;e<signData.callList.length;e++){signData.callList[e](loginstatus)}signData.callList=[]}})}else{if(callback){eval(callback)}}},loginPop:function(t){this.callName=t||null;this.login({type:2},this.loginPopEvent)},loginPopEvent:function(data){signData.setLoginStyle(data);if(loginstatus!="true"){if(signData.callName)eval(signData.callName)}else{try{g.login(function(){eval(signData.callName)})}catch(exception){}}},ieUpdater:function(){if($.browser.msie&&$.browser.version=="6.0"&&!$.support.style){$.ajax({url:stageJsServer+"/gmlib/unit/ie-updater/1.0.0/ie-updater.min.js",dataType:"script",cache:true})}},getAjax:function(t){try{$.ajax({type:"get",url:t.Jurl,data:t.Jdat||{},dataType:"jsonp",jsonpName:t.Jname,success:function(e){t.Jcall(e)},error:function(){}})}catch(e){}}};$(function(t){t(".gome-top li.drop").hover(function(){if(!t(this).data("open")){var e=t(this).data("load");var i=t(this).data("type");if(e=="sitemap"){t(this).children("div").load("/n/common/"+i+"/head_"+e+".html",function(){t(this).parent().attr("data-open","true")})}if(e=="service"){t(this).children("div").load("/n/common/global/head_"+e+".html",function(){t(this).parent().attr("data-open","true");t("#gome-service .live800-service").click(function(){window.openServiceWindow()})})}}t(this).addClass("hover");t(this).children(".public-dropdown").css("_height","auto")},function(){t(this).removeClass("hover");t(this).children(".public-dropdown").css("_height","0")})});window.pop={layerShow:function(t,e){var i=$.browser.msie,a=i&&$.browser.version<7;if(!$("#Overlay").length>0){if(!a){$("body").append("<div id='Overlay' style='background:#000;cursor:default;display:block;filter:alpha(opacity=15);opacity:0.15;height:100%;width:100%;position:fixed;left:0;top: 0;z-index:9999998'></div>")}else{$("html,body").css({height:"100%"});$("body").append("<div class='overlay' id='Overlay'><iframe  frameborder=0 id='frame1' style='filter:alpha(opacity=85);opacity: 0.15;height:100%;width:100%;'></iframe></div>")}}$("#Overlay").show();var o=$("#"+e);var n=(document.documentElement.clientHeight-o.height())/2;var l=(document.documentElement.clientWidth-o.width())/2;if(!a){o.css({top:n,left:l,position:"fixed","z-index":"9999999"}).addClass("chagetop").show()}else{o.css({position:"absolute",top:n,left:l,"z-index":"9999999"}).show()}},closeLayer:function(t){$("#Overlay,#"+t).hide()}};function popEvent(){signData.init()}$(function(){if(!$("body").attr("data-page")){var t=window.location.href.match(/https?:\/\/(.*?)(?=\.|:)/);$("body").attr("data-page",t[1])}$(document).on("mousedown keydown","[data-code]",function(){var t=$("body").data("page");var i=$(this).data("code");var e=$(this).attr("href");var n=/(intcmp=[^&]+?)(&|$)/i;if(e==null||e==""||e.substring(0,4)!=="http"&&e.substring(0,2)!=="//"){return}else if(e.indexOf("#")>-1&&e.indexOf("?")>-1){mao=e.substring(e.indexOf("#"));e=e.substring(0,e.indexOf("#")).replace(n,"");if(e.substring(e.indexOf("?")+1)==""){$(this).attr("href",e.substring(0,e.indexOf("?"))+"?intcmp="+t+"-"+i+mao)}else{$(this).attr("href",e.substring(0,e.indexOf("?"))+"?intcmp="+t+"-"+i+"&"+e.substring(e.indexOf("?")+1)+mao)}}else if(e.indexOf("#")>-1){$(this).attr("href",e.substring(0,e.indexOf("#"))+"?intcmp="+t+"-"+i+e.substring(e.indexOf("#")))}else if(e.indexOf("?")>-1){e=e.replace(n,"");if(e.substring(e.indexOf("?")+1)==""){$(this).attr("href",e.substring(0,e.indexOf("?"))+"?intcmp="+t+"-"+i)}else{$(this).attr("href",e.substring(0,e.indexOf("?"))+"?intcmp="+t+"-"+i+"&"+e.substring(e.indexOf("?")+1))}}else{$(this).attr("href",e+"?intcmp="+t+"-"+i)}})});var customerServiceInfo={};$(function(){var e;function o(){var o=3;var r=window.loginData.loginId;var t=loginData.loginStatus;if(r&&t){clearInterval(e);$.ajax({type:"get",url:"//ss"+cookieDomain+"/item/v1/online/"+o+"/"+r+"/flag/item/live800",dataType:"jsonp",jsonpName:"live800",success:function(e){if(e.result[0]){if(e.result[0].status<0){return}if(location.href.match(/https?:\/\/(.*?)(?=\.|:)/)[1]=="myhome"){var o=location.href.replace("flag","MemberFlag")}else{var o=location.href}var r=e.result[0].host+"/chatClient/chatbox.jsp?"+"companyID="+e.result[0].customerID+"&customerID="+e.result[0].customerID+"&info="+e.result[0].customerInfo+"&page=0"+"&enterurl="+o+"&areaCode="+encodeURI(encodeURI($.cookie("atgregion")))+"&shopname="+encodeURI(encodeURI("���߿ͷ�"));var n="customerService_"+e.result[0].customerID;customerServiceInfo.openUrl=r;customerServiceInfo.openId=n;customerServiceInfo.loginStatus=t}}})}}o();e=setInterval(o,500)});function openServiceWindow(){var e=customerServiceInfo.openUrl,o=customerServiceInfo.openId,r=customerServiceInfo.loginStatus;if(r&&r<3){location.href="//login"+cookieDomain+"/login?tableName=login&orginURI="+location.href}else{if(e&&o){window.open(e,o,"toolbar=0,scrollbars=yes,location=0,menubar=0,resizable=1,width=1120,height=700")}}}(function(e,t,s,i){"use strict";var a="autopoint",r={url:"",listHoverCSS:"hover",topoffset:10},n,o,h=e.cookie("__clickidc"),c="";function l(t,s){this.$searchTips=e("#searchTips");this.$searchTipsList=e("#searchTipsList");this.$searchTypeDropdown=e("#search-type-dropdown");this.$searchType=this.$searchTypeDropdown.find(".search-type");this.$searchTypeSelected=this.$searchTypeDropdown.find(".search-type-selected");this.$searchTypeList=this.$searchTypeDropdown.find(".search-type-list");this.$elem=e(t);this.options=e.extend({},r,s);this.highlightIndex=null;this.lastKeyword=!1;this.continueInputTimer=!1;this.leaveFocusDivTimer=!1;this.isOnFocusDiv=!1;this.init()}e.extend(l.prototype,{init:function(){this.$elem.attr("alt",e.trim(this.$elem.val()));this.create();e("#his_title").remove();this.bind();this.showSearchType()},showSearchType:function(){var e=this;var t=e.getQueryString("searchType");var s="";switch(t){case"group":s=e.getQueryString("word");if(s){this.$searchTypeSelected.text("圈子").attr("data-selected","group");e.$elem.val(s)}break;case"topic":s=e.getQueryString("word");if(s){this.$searchTypeSelected.text("话题").attr("data-selected","topic");e.$elem.val(s)}break;case"shop":s=e.getQueryString("shop");if(s){this.$searchTypeSelected.text("店铺").attr("data-selected","shop");e.$elem.val(s)}break;default:this.$searchTypeSelected.text("商品").attr("data-selected","goods");s=e.getQueryString("question");if(s){e.$elem.val(s)}}},create:function(){this.$searchTipsList.html('<li class="related-search related-shop-search">'+'    <a href="javascript:void(0);">'+'        <i></i><span>找“</span><em class="related-keyword"></em><span>”相关店铺</span></a>'+"    </a>"+"</li>");this.$searchTips.append('<div class="closeSearch" id="closeSearch"><span>关闭</span></div>')},bind:function(){var t=this;e(s).on("click",function(){if(!t.isOnFocusDiv){t.hideSearchTips()}});t.$elem.on("mouseenter",function(){t.mouseenterFocusDiv()}).on("mouseleave",function(){t.mouseleaveFocusDiv()}).on("keyup",function(e){if(t.$searchTypeSelected.attr("data-selected")==="goods"){t.handleKeyup(e)}}).on("focus click",function(){if(t.$searchTypeSelected.attr("data-selected")==="goods"){var s=e.trim(t.$elem.val());t.toggleRelatedSearchItem(s);t.$searchTipsList.find(".related-keyword").text(s);t.fetchDataEntryForSearch(s)}});this.$searchTips.on("mouseenter",function(){t.mouseenterFocusDiv()}).on("mouseleave",function(){t.mouseleaveFocusDiv()}).on("click","#closeSearch",function(){t.hideSearchTips()});this.$searchTipsList.on("click",".his_del",function(s){s.stopPropagation();t.deleteTipItem(e(this))}).on("click","li",function(){t.submitSearchDataForGoods(e(this))}).on("mouseenter","li",function(){t.mouseenterTipItem(e(this))}).on("mouseleave","li",function(){t.mouseleaveTipItem(e(this))});this.$searchTypeList.on("click","li",function(){t.$searchTypeSelected.text(e(this).text()).attr("data-selected",e(this).attr("data-selector"));t.$searchTypeList.hide();if(t.$searchTypeSelected.attr("data-selected")==="goods"&&t.$elem.val()===""){e("#keyLabel").show()}else{e("#keyLabel").hide()}});this.$searchTypeList.hover(function(){n&&clearTimeout(n)},function(){t.$searchTypeList.hide()});this.$searchType.hover(function(){o=setTimeout(function(){t.$searchTypeList.show()},200)},function(){o&&clearTimeout(o);n=setTimeout(function(){t.$searchTypeList.hide()},50)})},handleKeyup:function(e){var t=this,s=e.keyCode,i=this.$searchTips.css("display")!=="none"?true:false;switch(s){case 38:if(i)t.selectTipItem("KEY_UP");break;case 40:if(i)t.selectTipItem("KEY_DOWN");break;case 13:var a=null;if(t.highlightIndex!==null){this.$searchTipsList.find("li").eq(t.highlightIndex)}if(i)t.submitSearchDataForGoods(a);break;case 27:if(i)t.hideSearchTips();break;case 37:break;case 39:break;default:t.handleKeywordInput()}},handleKeywordInput:function(){var t=this,s=e.trim(t.$elem.val());if(s===t.$elem.attr("alt")){return false}this.$searchTipsList.find(".related-keyword").text(s);t.toggleRelatedSearchItem(s);t.$elem.attr("alt",s);if(t.continueInputTimer)clearTimeout(t.continueInputTimer);t.continueInputTimer=setTimeout(function(){if(s===t.lastKeyword){return false}t.lastKeyword=s;t.fetchDataEntryForSearch(s)},80)},fetchDataEntryForSearch:function(e){var s=this;if(t.loginData.loginStatus>1){s.fetchDataForSearch(e)}else{t.signData.login({},function(i){t.signData.setLoginStyle(i);s.fetchDataForSearch(e)})}},fetchDataForSearch:function(s){s=s.replace(/[()'";,{}~!@#$%^*(){}?\|<>.]/g,"");c=t.loginData.loginId;var i=this,a=i.options.url+"&module=searchSuggest"+"&query="+encodeURIComponent(s)+"&jp=true&user="+c;e.ajax({type:"get",url:a,dataType:"jsonp",jsonpName:"suggest",success:function(e){i.renderDataForSearch(e,s)}})},renderDataForSearch:function(e,t){var s=e.length,i,a,r=[],n=0,o=t===""?10:2;this.highlightIndex=null;if(e&&e.length>0){for(var h=0;h<s;h++){i=e[h];if(i[2]===1){a='<li class="search-item" category="'+i[3].cat[1]+'" keyword="'+i[0]+'">'+'   <span class="fs" style="float:left;">在<b>'+i[3].cat[3]+'</b><i>&gt;</i><a class="akeyword" href="javascript:void(0);">'+i[3].cat[0]+"</a>分类中搜索</span>"+'   <span class="fr color-b">约'+i[3].cat[2]+"条</span>"+"</li>"}else if(i[2]===-1){var c=n>=o?'style="display:none;"':"";a='<li class="J-history-item" '+c+">"+'   <a class="hisakeyword" href="javascript:void(0);">'+'       <span class="fl">'+decodeURIComponent(i[0])+"</span>"+'       <span class="fr color-b his_txt" style="display:block">搜索历史</span>'+'       <span class="fr color-b his_del" style="display:none">删除</span>'+"   </a>"+"</li>";n++}else{a="<li>"+'   <a class="akeyword" href="javascript:void(0);">'+'   <span class="fl">'+i[0]+'</span><span class="fr color-b">约'+i[1]+"条</span>"+"   </a>"+"</li>"}r.push(a)}this.$searchTipsList.find("li:not(.related-search)").remove();this.$searchTipsList.prepend(r.join(""));this.$searchTipsList.find("li.search-item:last").css("border-bottom","1px solid #EEEEEE");this.$searchTips.show()}else{if(t===""){this.hideSearchTips()}else{this.$searchTipsList.find("li:not(.related-search)").remove();this.$searchTips.show()}}},hideSearchTips:function(){this.$searchTipsList.find("li:not(.related-search)").remove();this.$searchTips.hide()},mouseenterTipItem:function(e){var t=this;t.removeAllTipsHoverCss();e.addClass(t.options.listHoverCSS).find("a:first").addClass(t.options.listHoverCSS);if(e.hasClass("J-history-item")){e.find(".his_txt").hide().end().find(".his_del").show()}t.highlightIndex=e.index()},mouseleaveTipItem:function(e){var t=this;e.removeClass(t.options.listHoverCSS).find("a:first").removeClass(t.options.listHoverCSS);if(e.hasClass("J-history-item")){e.find(".his_txt").show().end().find(".his_del").hide()}},mouseenterFocusDiv:function(){var e=this;e.isOnFocusDiv=true;if(e.leaveFocusDivTimer)clearTimeout(e.leaveFocusDivTimer)},mouseleaveFocusDiv:function(){var e=this;e.isOnFocusDiv=false;e.leaveFocusDivTimer=setTimeout(function(){e.hideSearchTips()},300)},removeAllTipsHoverCss:function(){this.$searchTipsList.find("li").removeClass(this.options.listHoverCSS).find("a:first").removeClass(this.options.listHoverCSS)},submitSearchDataForGoods:function(t){var s=this;var i="";if(t!==null){if(t.hasClass("search-item")){var a=t.attr("category");i="//search"+cookieDomain+"/search?question="+encodeURIComponent(s.getPointWord(t))+"&catId="+a;location.href=i;return false}if(t.hasClass("related-shop-search")){var r=t.find(".related-keyword").text();i="//search"+gomeplusDomain+"/search?shop="+encodeURIComponent(r);location.href=i;return false}e("#keyLabel").hide();s.$elem.val(s.getPointWord(t))}doSearch()},selectTipItem:function(e){var t=this,s=this.$searchTipsList.find("li:visible"),i=s.length,a,r;if(e==="KEY_UP"){if(t.highlightIndex===null){t.highlightIndex=-1}if(t.highlightIndex!==-1){t.highlightIndex--}else{t.highlightIndex=i-1}}if(e==="KEY_DOWN"){if(t.highlightIndex===null){t.highlightIndex=-1}t.highlightIndex++;if(t.highlightIndex===i){t.highlightIndex=0}}a=s.eq(t.highlightIndex);if(!a.hasClass("related-search")){r=t.getPointWord(a);this.$searchTipsList.find(".related-keyword").text(r);t.toggleRelatedSearchItem(r);t.$elem.val(r);t.$elem.attr("alt",r)}t.mouseenterTipItem(a)},deleteTipItem:function(t){var s=this,i=t.siblings(".fl").text(),a=s.options.url+"&module=searchSuggest"+"&query="+encodeURIComponent(i)+"&jp=true"+"&user="+c+"&hisDel=1";var r=t.closest("li").siblings(".J-history-item:hidden:first");t.closest("li").remove();r.show();if(this.$searchTipsList.find("li:visible").length===0){s.hideSearchTips()}if(e("#keyLabel").css("display")==="block"){var n=this.$searchTipsList.find(".related-search");n.find(".related-keyword").text(e("#keyLabel").text());n.show()}e.ajax({type:"get",url:a,cache:false,dataType:"jsonp",jsonpName:"suggest",success:function(e){}})},getPointWord:function(e){return e.attr("keyword")?e.attr("keyword"):e.find("span:first").text()},toggleRelatedSearchItem:function(e){if(e===""){this.$searchTipsList.find(".related-search").hide()}else{this.$searchTipsList.find(".related-search").show()}},getQueryString:function(e){var s=new RegExp("(^|&)"+e+"=([^&]*)(&|$)");var i=t.location.search.substr(1).match(s);if(i!=null){return decodeURIComponent(i[2])}return null}});e.fn[a]=function(t){this.each(function(){if(!e.data(this,"plugin_"+a)){e.data(this,"plugin_"+a,new l(this,t))}});return this}})(jQuery,window,document);(function(e){e.fn.ginputfocus=function(t){var s={curClass:"cur"};var t=e.extend(s,t),i=t.curClass;return this.each(function(){var t=e(this).siblings("label");var s=e("#search-type-dropdown").find(".search-type-selected");e(t).click(function(){e(this).hide();e(this).siblings("input").focus()});e(this).focus(function(){if(s.attr("data-selected")==="goods"){e(this).parent().addClass(i);e(this).siblings("label").hide()}});e(this).blur(function(){if(s.attr("data-selected")==="goods"){e(this).parent().removeClass(i);if(this.value==""){e(this).siblings("label").show()}}})})}})(jQuery);var browserRule=/^.*((Safari))+.*$/;if(browserRule.test(navigator.userAgent)){window.onpageshow=function(e){if(e.persisted){window.location.reload()}}}function doSearch(){var e=$("#search-type-dropdown").find(".search-type-selected");var o=e.attr("data-selected");var a={goods:"//search"+cookieDomain+"/search?question=",group:"//group"+cookieDomain+"/search/group?word=",topic:"//group"+cookieDomain+"/search/topics?word=",shop:"//search"+cookieDomain+"/search?shop="};var r=$("#searchInput").val();if(o==="goods"&&$.trim(r)===""){var t=$("#keyLabel").text();$("#keyLabel").hide();$("#searchInput").val(t);r=t}if(r.length>40){r=r.substring(0,40);$("#searchInput").val(r)}if($.trim(r)!==""){location.href=a[o]+encodeURIComponent(r)+"&searchType="+o}return false}$(function(){if($("#searchInput").length>0){$("#searchInput").autopoint({url:"//apis"+gomeplusDomain+"/p/suggest?from=headSearch"})}$("#searchInput").ginputfocus();if(navigator.userAgent.toLowerCase().indexOf("webkit")>=0){$("#topSearchHover").append('<a href="//js.gomein.net.cn/search/voice/search.html" target="_blank"><div class="voice-search"></div></a>')}});function getDefaultKey(e){var o=e.split(";"),a=0,r=[];$.each(o,function(e,o){var t=o.split(","),n=t[1]|0;for(var e=0;e<n;e++)r.push(t[0]);a+=n});return r[Math.random()*a|0]||""}$(function(){var e=$("#keyLabel").attr("default");var o=function(){var o=getDefaultKey(e);$("#keyLabel").text(o.replace(/(^\s*)|(\s*$)/g,""))};if(e){o();setInterval(function(){o()},5e3)}var a=$("#searchInput").val();if(a==null||a==""){$("#keyLabel").show()}else{$("#keyLabel").hide()}});$(function(){var e=$(".hotkeyword");var o={};var a=/cat\d+/;var r="";e.show();if($("body").hasClass("home")){return}if(window.prdInfo&&window.prdInfo.shopFlag=="2"||window.prdInfo&&window.prdInfo.shopFlag=="3"){r=""}else if(window.prdInfo&&window.prdInfo.thirdCategoryId){r=prdInfo.thirdCategoryId}else if(a.test(window.location.href)){r=window.location.href.match(a)[0]}if(r==""||r==null){hotkeywordurl="//ss"+cookieDomain+"/item/v1/hotKeyword/flag/publicv1/gethotkeyword?keyword="+window.location.href}else{hotkeywordurl="//ss"+cookieDomain+"/item/v1/hotKeyword/"+r+"/flag/publicv1/gethotkeyword"}$.ajax({type:"get",url:hotkeywordurl,dataType:"jsonp",jsonpName:"gethotkeyword",success:function(o){if(o.length<=0){return}if(o.length>6){o.length=6}var a="";for(var t=0;t<o.length;t++){if(o[t].href==""){o[t].href=encodeURI("//search"+cookieDomain+"/search?question="+o[t].text+(r?"&catId="+r:""))}a+='<a target="_blank" href="'+o[t].href+'"'+' title="'+o[t].text+'"><span '+(o[t].red=="Y"?'class="highlight"':"")+">"+o[t].text+"</span></a>"}e.html(a)}})});(function(t){var a=function(){var t=n()?"/qiyegou":"/home";return"//cart"+cookieDomain+t+"/api/cart/getCartItemCount"}();var e={0:"home",1:"qyg"};var r={};function n(){if(typeof minCartType!=="undefined"&&minCartType==="QYG"){return true}return false}function c(){var t=$.cookie("cartnum");o(t);if(n()){return r["qyg"]||0}return r["home"]||0}function m(){return"0_"+(r.home||0)+"-1_"+(r.qyg||0)}function o(t){if(!t)return 0;var a=t.split("-");if(!a&&a.length<1){return 0}for(var n=0;n<a.length;n++){var c=a[n];var m=c.split("_");if(!m[0])continue;var o=e[m[0]]||"home";r[o]=m[1]||0}}function i(t){if(n()){r.qyg=t||0}else{r.home=t||0}var a=new Date;a.setTime(a.getTime()+60*60*1e3*24*7);$.cookie("cartnum",m(),{domain:cookieDomain,path:"/",expires:a})}t.mCart={getMcartNum:function(t){if(t){t=t}else{t=0}$("#gome-aside-cart").find(".car_num s").html(t);$(".gome-bar-btn-cart").find(".car_num s").html(t);$("#commerceItemQuantityId").html(t);if(t!=0){if(n()){$("#hdrcarttext").text("企业购物车")}else{$("#hdrcarttext").text("去购物车结算")}$(".gome-bar-btn-cart .car_num, #gome-aside-cart .car_num").css("background","#dd00a7");$("#gome-bar-btn-cart .caricon,#gome-aside-cart .caricon").addClass("caricon_num");$(".gome-bar-btn-cart .car_num, #gome-aside-cart .car_num").removeClass("car_num_0").addClass("car_num_more");$(".mygome-side").addClass("havecount")}else{$(".gome-bar-btn-cart .car_num, #gome-aside-cart .car_num").css("background","#A5A5A5");$("#gome-bar-btn-cart .caricon,#gome-aside-cart .caricon").removeClass("caricon_num");$(".gome-bar-btn-cart .car_num, #gome-aside-cart .car_num").addClass("car_num_0").removeClass("car_num_more");$(".mygome-side").removeClass("havecount");if(n()){$("#hdrcarttext").text("企业购物车")}else{$("#hdrcarttext").text("购物车空了")}return}$("#commerceItemQuantityId").html(t);if(t>0){$("[data-cart='mincart'],.cart").addClass("havecount");if(n()){$("#hdrcarttext").text("企业购物车")}else{$("#hdrcarttext").text("去购物车结算")}}},lazyCart:function(a){var e=c()||0;if(a==false){mCart.getMcartNum(e)}else if(c()&&c()>=0){t.mCart.getMcartNum(c())}else{mCart.getCartNumber()}},getCartNumber:function(){$.ajax({type:"get",url:a,dataType:"jsonp",success:function(t){mCart.lazyCartDom(t)}})},lazyCartDom:function(t){if(t.success===true){i(t.data);var a=c();mCart.getMcartNum(a)}else{mCart.getMcartNum(0);return}},isQyg:n};$(function u(){if(window.$page){t.mCart.lazyCart(false)}else{t.mCart.lazyCart(true)}})})(window);(function(t){function e(){if(typeof minCartType!=="undefined"&&minCartType==="QYG"){return true}return false}var i=e()?"/qiyegou":"/home";var n='<div class="mini-products">                        <h2 class="hdrcartitle">最近加入的商品：</h2>                        <ul class="mini-nProductLists">                            <% for(var i=0;i<miniCommerceItemsGroupVOs.length;i++ ) { %>                            <li class="mini-list clearfix">                                <% var miniVOs = miniCommerceItemsGroupVOs[i] || {}; %>                                <dl class="nProduct-huod realMini">                                    <% if(miniVOs.promotionHeads && miniVOs.promotionHeads.length > 0 ) { %>                                    <% if(!(miniVOs.promotionHeads[0] && miniVOs.promotionHeads[0].type=="TZ")) {%>                                    <dd data-sub="tit-sub" class="huod-hd clearfix">                                        <% for(var k=0; k< miniVOs.promotionHeads.length; k++) {%>                                        <% var promotionHeadItem = miniVOs.promotionHeads[k] || {},label = promotionHeadItem.label ;%>                                        <div class="pCol-name-huod">                                            <% if (promotionHeadItem.type === "MJ") {%>                                                <% var promotionTxt = ""; %>                                                <% if(promotionHeadItem.satisfied) {%>                                                    <span class="ico-l">满减</span>                                                    <% promotionTxt = "活动商品已购满" + ($toFixed(promotionHeadItem.preC)) + "元（已减" + ($toFixed(promotionHeadItem.postC)) + "元）";%>                                                <% } else if (promotionHeadItem.validKindNum) {%>                                                     <span class="ico-l-gray"><i></i>满减</span>                                                     <% promotionTxt = "活动商品购满" + ($toFixed(promotionHeadItem.preC)) + "元不同种类商品，即可享受满减促销活动";%>                                                <% } else {%>                                                    <span class="ico-l-gray"><i></i>满减</span>                                                    <% promotionTxt = "活动商品购满" + ($toFixed(promotionHeadItem.preC)) + "元，即可享受满减";%>                                                <% } %>                                                <span class="nLowLeight " title="<%= promotionTxt %>"><%=$cutstr(promotionTxt,26)  %></span>                                            <% } else if (promotionHeadItem.type === "ZDZ"|| promotionHeadItem.type === "ZD") {%>                                                <% var promotionTxt = ""; %>                                                <% if(promotionHeadItem.satisfied) {%>                                                    <span class="ico-l">满折</span>                                                    <% promotionTxt = "活动商品已购满" + (promotionHeadItem.preC || "0") + "件（已减" + ($toFixed(promotionHeadItem.postC)) + "元）";%>                                                 <% } else if (promotionHeadItem.validKindNum) {%>                                                    <span class="ico-l">满折</span>                                                    <% promotionTxt = "购买" + (promotionHeadItem.preC || "0") + "件不同种类商品，即可享受满折活动";%>                                                 <% } else {%>                                                    <span class="ico-l-gray"><i></i>满折</span>                                                    <% promotionTxt = "活动商品购满" + (promotionHeadItem.preC || "0") + "件，即可享受满折";%>                                                <% } %>                                                <span class="nLowLeight " title="<%= promotionTxt %>"><%=$cutstr(promotionTxt,26)  %></span>                                            <% } else {%>                                                <span><%=$showTypeTitle(promotionHeadItem) %></span>                                            <% } %>                                        </div>                                        <%} %>                                        <% if(miniVOs.miniGroupSummaryVO && miniVOs.miniGroupSummaryVO.promtion && miniVOs.miniGroupSummaryVO.subAmount > 0) {%>                                        <p style="padding-left:8px;">                                            小计：<span class="yuan" style="margin-right:10px;"> <b>¥</b><%= $toFixed(miniVOs.miniGroupSummaryVO.subAmount) %></span>                                            <% if(miniVOs.miniGroupSummaryVO.promoDiscAmount > 0) {%>                                            <span class="nRed">已减：<%= $toFixed(miniVOs.miniGroupSummaryVO.promoDiscAmount)%>元</span>                                            <% } %>                                        </p>                                        <%} %>                                    </dd>                                    <%} %>                                    <%} %>                                    <% var commerceItemsGroup = miniVOs.commerceItemsGroup || [];%>                                    <% if(miniVOs.promotionHeads && miniVOs.promotionHeads.length > 0 && miniVOs.promotionHeads[0].type=="TZ"){ %>                                        <%if(commerceItemsGroup.length>0 && commerceItemsGroup[0]){%>                                        <dd class="mini-huod-list min-sideline-list clearfix">                                            <div class="mini-product-info clearfix">                                                <div class="mini-pCol-img">                                                    <a target="_blank" title="<%= commerceItemsGroup[0].vProductName %>" href="<%= commerceItemsGroup[0].vUrl %>">                                                        <img alt="" src="<%= commerceItemsGroup[0].vImageURL %>" width="50" height="50"></a>                                                </div>                                                <div class="mini-pCol-name">                                                    <p>                                                        <a target="_blank" class="nMinCartBlue" title="<%= commerceItemsGroup[0].vProductName %>" href="<%= commerceItemsGroup[0].vUrl %>">                                                            【套装】<%=commerceItemsGroup[0].vProductName  %></a>                                                    </p>                                                </div>                                                <div class="mini-pCol-row">                                                    <% if(miniVOs.miniGroupSummaryVO && miniVOs.miniGroupSummaryVO.subAmount){ %>                                                        <span class="yuan"><b>¥<%= $toFixed(miniVOs.miniGroupSummaryVO.subAmount) %></b></span>                                                    <% }%>                                                    <span  class="quantity"><%= commerceItemsGroup[0].quantity %></span>                                                    <span isClick="" mcart-count mcart-count-min="1"                                                        mcart-count-change-interval="100"                                                        mcart-change-count                                                        data-cid="<%= commerceItemsGroup[0].itemId %>"                                                        data-limit="<%= commerceItemsGroup[0].limitNum %>"class="mcart-count">                                                            <a href="javascript:;" type="down" mcart-count-sub class="mcart-count-btn mcart-count-sub  <% if(commerceItemsGroup[0].quantity ==1) {%>mcart-count-disabled<% } %> ">-</a>                                                            <a href="javascript:;" type="up" mcart-count-add class=" <% if(commerceItemsGroup[0].quantity >= commerceItemsGroup[0].limitNum  ) {%>mcart-count-disabled<% } %>  mcart-count-btn mcart-count-add  ">+</a>                                                            <div class="mcart-count-input"><input  maxlength="3" name="num" type="text" value="<%= commerceItemsGroup[0].quantity %>">                                                            </div>                                                    </span>                                                    <a class="nLowLeight miniDel" href="javascript:void(0)" title="删除" data-itemid="<%= commerceItemsGroup[0].itemId %>">删除</a>                                                </div>                                            </div>                                                                                </dd>                                        <%}%>                                    <%}else{%>                                        <% for(var j=0; j< commerceItemsGroup.length; j++) {%>                                        <% var commerceItem = commerceItemsGroup[j] || {}; %>                                        <dd class="mini-huod-list min-sideline-list clearfix">                                            <div class="mini-product-info clearfix">                                                <div class="mini-pCol-img">                                                    <a  style="position: relative;" target="_blank" title="<%= commerceItem.itemName %>" href="<%= commerceItem.itemURL %>">                                                       <%=$showTuanProductTip(commerceItem) %>                                                       <img alt="" src="<%= commerceItem.itemImageURL %>" width="50" height="50"></a>                                                </div>                                                <div class="mini-pCol-name">                                                    <p>                                                        <a target="_blank" class="nMinCartBlue" title="<%= commerceItem.itemName %>" href="<%= commerceItem.itemURL %>"><%=$cutstr(commerceItem.itemName,56)  %></a>                                                    </p>                                                </div>                                                <div class="mini-pCol-row">                                                    <span class="yuan"><b>¥<%= $toFixed(commerceItem.salePrice) %></b></span>                                                    <span  class="quantity"><%= commerceItem.quantity %></span>                                                    <span isClick="" mcart-count mcart-count-min="1"                                                        mcart-count-change-interval="100"                                                        mcart-change-count                                                        data-cid="<%= commerceItem.itemId %>"                                                        data-limit="<%= commerceItem.limitNum %>"class="mcart-count">                                                            <a href="javascript:;" type="down" mcart-count-sub class="mcart-count-btn mcart-count-sub  <% if(commerceItem.quantity ==1) {%>mcart-count-disabled<% } %> ">-</a>                                                            <a href="javascript:;" type="up" mcart-count-add class=" <% if(commerceItem.quantity >= commerceItem.limitNum  ) {%>mcart-count-disabled<% } %>  mcart-count-btn mcart-count-add  ">+</a>                                                            <div class="mcart-count-input"><input  maxlength="3" name="num" type="text" value="<%= commerceItem.quantity %>">                                                            </div>                                                    </span>                                                    <% if(commerceItemsGroup[j].commerceitemVOFlag != "SUB"){ %>                                                        <a class="nLowLeight miniDel" href="javascript:void(0)" title="删除" data-itemid="<%= commerceItem.itemId %>">删除</a>                                                    <% }%>                                                </div>                                            </div>                                            <% var incrementServiceItems = commerceItem.miniIncrementServiceInfoVOs || [], commerceItemVOs = commerceItem.showBaseGroupVOList || [];%>                                            <% if(incrementServiceItems.length > 0 || commerceItemVOs.length > 0) {%>                                            <div class="mini-pCol-promotion fl">                                                <%for(var k=0;k<incrementServiceItems.length;k++) {%>                                                    <% var dName = (incrementServiceItems[k].promotionType == "1"  ? "特惠" : "") + $toDisplayName(incrementServiceItems[k]) + "  " + incrementServiceItems[k].numOfYear + "年  ¥" + $toFixed(incrementServiceItems[k].price) %>                                                    <p class="nLowLeight cou-gift" title="<%=dName %>">[<em><%=$toServiceType(incrementServiceItems[k]) %></em>]<%=dName %></p>                                                <% } %>                                                <% for(var h=0;h<commerceItemVOs.length;h++) {%>                                                <% var itemName = commerceItemVOs[h].itemName || ""; %>                                                    <p class="nLowLeight cou-gift" title="<%=itemName %>">[<em>赠品</em>]&nbsp;&nbsp;<%=$cutstr(itemName,24)  %> </p>                                                <% } %>                                            </div>                                            <% } %>                                        </dd>                                        <%}%>                                     <%}%>                                </dl>                            </li>                            <% } %>                        </ul>                        <div id="atg_store_csFooter1" class="cartfooter">                            <h4>                                已选 <i><span id="csQuantity"><%= miniCartProfileVO.itemCount || 0 %></span></i>                                 件 ，共计： <strong><span id="csSubtotal">¥</span><%= $toFixed(miniCartProfileVO.totalAmount) %></strong>                            </h4>                            <% if(isUpCart) {%>                                <a  data-code="cart01002" id="csCheckout" style="text-decoration:none;" class="gocart" href="//cart'+cookieDomain+i+'/cart" title="去购物车">                                    <span>去购物车</span>                                </a>                            <% } else {%>                                <a  data-code="cart01001" id="csCheckout" style="text-decoration:none;" class="gocart" href="//cart'+cookieDomain+i+'/cart" title="去购物车">                                    <span>去购物车 </span>                                </a>                            <% } %>                        </div>                    </div>';var r='<div carttype="asidecart"  id="csEmptyMessage" class="noshop">                        <% if(isUpCart) {%>                            <a data-code="cart01002" href="//cart'+cookieDomain+i+'/cart" title="去购物车" style="text-decoration:underline;">购物车</a>                        <% } else {%>                            <a data-code="cart01001" href="//cart'+cookieDomain+i+'/cart" title="去购物车" style="text-decoration:underline;">购物车</a>                        <% } %>                        中还没有商品，赶紧选购吧！</div>';var o=function(){return{loadCart:"//cart"+cookieDomain+i+"/api/cart/loadMiniCart",delCartItem:"//cart"+cookieDomain+i+"/api/cart/removeItem",changeNum:"//cart"+cookieDomain+i+"/api/cart/changeNum"}}();var c=10*1e3;var m={renderCart:d,reqMiniCart:l,isFail:f,cartEvents:g,isEmptyCart:C,renderEmptyCart:T,minloadCart:O,doActionCart:u,reqChangeNum:h,qtyUpdate:y,tplHelp:p,twoScroll:I,STATE:{scroll:0,scroll2:0},twoCartH:s,firstLoadTime:0,loadMinCartByLazy:x,hoverMinCart:b};function s(t){var e={upCart:0,asideCart:0};if(t.attr("carttype")!=="up"){e.asideCart=$("#gome-bar-cart").height()-154;$(".gminicart .mini-nProductLists").css({"overflow-y":"auto",height:e.asideCart,"overflow-x":"hidden"})}else{return}}function l(){return $.ajax({dataType:"jsonp",type:"get",url:o.loadCart})}function p(){var t=function(t,e){var i=0;var n=0;str_cut=new String;n=t.length;for(var r=0;r<n;r++){a=t.charAt(r);i++;if(escape(a).length>4){i++}str_cut=str_cut.concat(a);if(i>=e){str_cut=str_cut.concat("...");return str_cut}}if(i<e){return t}};template.helper("$cutstr",t);template.helper("$toFixed",function(t){return parseFloat(t||0).toFixed(2)});template.helper("$showTuanProductTip",function(t){var e='<span style="position: absolute;display:inline-block;height:17px;width:17px;background-color:#f95b5a;color:#fff;font-size:12px;line-height:17px;overflow:hidden;text-align:center;font-weight:800;">';if(!t||!t.belonging){return""}if(t.inventoryState=="NO_GOODS"||t.inventoryState=="OFF"){return""}if(t.belonging==="QIANG"){e+="抢"}else if(t.belonging==="TUAN"){e+="团"}e+="</span>";return e});template.helper("$toServiceType",function(t){var e={0:"延保",1:"屏碎保",2:"意外保"};if(!t||typeof t.serviceType==="undefined"){return""}return e[t.serviceType]||""});template.helper("$toDisplayName",function(t){if(!t){return""}return t.displayName||""});var e={MJ:"满减",DPG:"搭配购",ZDZ:"整单折",MZ:"满折",JJHG:"加价购",TZ:"套装",POP_MZE:"满赠",POP_MJ:"满减",POP_MF:"满返",POP_MZH:"多买优惠",POP_GWQ:"购物券",KDP_MJ:"跨店铺满减",KDP_MM:"跨店铺满免",POP_I_MZH:"单品满折",I_ZE_GIFTS:"满赠",MUL_ZE_GIFTS:"满赠",I_ZE_COUPONS:"满返",I_ZE_DO:"满返",MUL_ZE_COUPONS:"满返",MUL_ZE_DO:"满返",NO:"不使用优惠"};template.helper("$isTypeTitle",function(t){return e[t]?true:false});template.helper("$showTypeTitle",function(i){var a=i.type,n=e[a]||"促销",r=i.satisfied,o="";if(r){o+='<span class="ico-l">'+n+"</span>"}else{o+='<span class="ico-l-gray"><i></i>'+n+"</span>"}if(a==="DPG"){i.label="搭配购优惠组合"}o+=' <span class="nLowLeight " title="'+i.label+'">'+t(i.label,26)+"</span>";return o})}function u(t){return function(e){if(f(e)){T(t,e);window.mCart.getCartNumber(true);return}e.isUpCart=t.attr("carttype")=="up";if(e.data)e.data.isUpCart=e.isUpCart;p();if(C(e)){window.mCart.getCartNumber(true);T(t,e);return}d(t,e);I();s(t);$("#miniShoppingcartLoadId .mini-nProductLists").scrollTop(m.STATE.scroll);$(".gminicart .mini-nProductLists").scrollTop(m.STATE.scroll2);g(t,e);window.mCart.getCartNumber(true)}}function d(t,e){var i=template.compile(n);return t.html(i(e.data))}function f(t){return t.errCode!=="0"}function h(t,e){var i=t.next().find("input").val();var a=t.parent("span").data("cid");return $.ajax({type:"get",dataType:"jsonp",data:{cid:a,pcount:e},url:o.changeNum})}function v(t){return $.ajax({type:"get",dataType:"jsonp",data:{cid:t.cid,pcount:t.pcount},url:o.changeNum})}function y(t,e,i,a){var n=t.parent().find("input").val();var r=n;var o=t.parent().data("limit");if(t.hasClass("mcart-count-disabled")){t.off("click")}if(e=="up"){if(t.parent().attr("isClick")==""){t.parent().attr("isClick","yet");r++;if(r>o){t.parent().attr("isClick","");return}h(t,r).then(function(){l().then(u(i))})}}else if(e=="down"){if(t.parent().attr("isClick")==""){t.parent().attr("isClick","yet");if(r>1){r--}else{t.parent().attr("isClick","");return}h(t,r).then(function(){l().then(u(i))})}}t.next(".mcart-count-input").children("input").val(r);t.parent().prev(".quantity").html(r)}function I(){$("#miniShoppingcartLoadId .mini-nProductLists").scroll(function(){m.STATE.scroll=$(this).scrollTop()});$(".gminicart .mini-nProductLists").scroll(function(){m.STATE.scroll2=$(this).scrollTop()})}function g(t,e){t.find(".miniDel").off("click").on("click",function(){var e=$(this).attr("data-itemid");$.ajax({dataType:"jsonp",type:"get",url:o.delCartItem,data:{cid:e}}).then(function(){l().then(u(t))})});t.find(".mcart-count-input input").each(function(){var e=$(this);var i=$(this).parent().parent().prev(".quantity").html();$(this).on("input keyup ",function(a){this.value=this.value.replace(/\D/g,"");var n=e.parent().parent().data("limit");if(a.keyCode=="13"||a.keyCode=="108"){var r=this.value;if(r>n){r=i}if(r<1){r==1}$(this).parent().parent().prev(".quantity").html(r);var o={cid:$(this).parent().parent().data("cid"),pcount:this.value};v(o).then(function(){l().then(u(t))})}}).on("focus",function(){this.value==i}).on("blur",function(){if(i==this.value){return}$(this).parent().parent().prev(".quantity").html(this.value);var e={cid:$(this).parent().parent().data("cid"),pcount:this.value};v(e).then(function(){l().then(u(t))})})});t.find("[mcart-count-add]").each(function(){var i=$(this);var a=$(this).attr("type");$(this).on("click",function(){y(i,a,t,e)})});t.find("[mcart-count-sub]").each(function(){var i=$(this);var a=$(this).attr("type");$(this).on("click",function(){y(i,a,t,e)})})}function C(t){if(t.data.miniCartProfileVO==null||t.data.miniCommerceItemsGroupVOs.length===0){return true}}function T(t,e){var i=template.compile(r);var a=i(e);$("#commerceItemQuantityId").html(0);return t.html(a)}function O(t){t=t||$("#miniShoppingcartLoadId");t.attr("carttype","up");l().then(u(t))}function x(t,e){var i=(new Date).getTime(),a=function(){e();m.firstLoadTime=i};if(!t){e()}if(m.firstLoadTime==0){a()}else if(m.firstLoadTime+t<=i){a()}}function b(){var t;var i=function(){if(e()){return"/qiyegou/cart"}else{return"/"}}();$(".shopcartbox").hover(function(){clearTimeout(t);t=setTimeout(function(){$(".shopcartbox").addClass("hover")},150)},function(){clearTimeout(t);$(this).removeClass("hover")});$(".cartlink, .ucCart").unbind().hover(function(){m.loadMinCartByLazy(c,m.minloadCart)}).attr("href","//cart"+cookieDomain+i)}(function k(){$.fn.extend({gminicart:function(){var t=$(this).addClass("gminicart");t.attr("carttype","right");m.reqMiniCart().then(u(t))}});t.cartUnit={minloadCart:m.minloadCart}})();$(function G(){m.hoverMinCart()})})(window);$(function(){$(".code-sm").hover(function(){$(this).find("img[gome-src]").each(function(){$(this).attr("src",$(this).attr("gome-src")).removeAttr("gome-src")});$(this).children("div").css("display","block")},function(){$(this).children("div").css("display","none")})});$(function(){var e=$("#gome-bar");var t=$("#gome-bar-border");var a=$("#gome-bar-box");var i=$("#gome-bar-border-bg");var s=$("#gome-bar-border-sm");var r=$("#gome-bar-border-tab");var o=$("#gome-aside-sale");var n=$("#gome-aside-coupon");var d=$("#gome-bar-btn-favorites");var m=$("#sale-body");var l=$("#time-body");var c=$("#coupon-body");var b=$("#member-body");var h=$("#favorites-body");var f=$("#gome-aside-cart");var v=true;var p=$("#gome-aside-app");var u,w,T,y,k,S;function x(){u=231,w=$(".gome-aside").height(),T=$(".gome-bar-btn-sale a").height(),y=i.height();k=parseInt(u+w+T);S=parseInt(u+w+y);f.find("div").remove();$(".gome-bar-btn-time").remove();if($.browser.msie&&$.browser.version=="6.0"&&!$.support.style){a.remove();t.remove();o.remove();n.remove()}$(".gome-bar-box-loading").css("top",$(window).height()/2-100);if(typeof window.prdInfo!="undefined"){if(window.prdInfo.shopNo==""){c.attr("data-page","item")}else{c.attr("data-page","mall")}}else{$("#gome-aside-coupon,.gome-bar-btn-coupon,#gome-bar-coupon").remove();u=195}}function D(){t.find("li").removeClass("hover");a.animate({right:"-240px"},300);$("#gome-bar-sale,#gome-bar-time,#gome-bar-coupon").removeAttr("data-animate").removeClass("gome-bar-out");setTimeout(function(){a.removeAttr("data-open");$("#gome-bar-sale,#gome-bar-time,#gome-bar-coupon").css("z-index","995");if(p.length==0){t.hide();r.hide();f.hide()}if(s.css("display")=="block"){if($(window).height()>S||$(window).height()>k){s.hide();i.show()}}},300)}function j(){$("#gome-aside-app-code").removeClass("ie").css({transform:"translate(150%,0)","-webkit-transform":"translate(150%,0)",transition:"all 0.2s ease-out","-webkit-transition":"all 0.2s ease-out"});$("#gome-aside-app").removeClass("hover").find("i").removeClass("hover")}function C(){$("#gome-aside-app-code").find("img[gome-src]").each(function(){$(this).attr("src",$(this).attr("gome-src")).removeAttr("gome-src")});$("#gome-aside-app-code").addClass("ie").css({transform:"translate(0,0)","-webkit-transform":"translate(0,0)",transition:"all 0.2s ease-out","-webkit-transition":"all 0.2s ease-out"})}function I(){m.slimScroll({width:"225",height:"98%",size:"5px",color:"#fff",distance:"4px"})}function A(){l.slimScroll({width:"239",height:"97%",size:"5px",color:"#ccc",distance:"4px"})}function z(){b.slimScroll({width:"239",height:"97%",size:"5px",color:"#ccc",distance:"4px"})}function P(){h.slimScroll({width:"239",height:"97%",size:"5px",color:"#ccc",distance:"4px",opacity:1})}function J(){$(document).click(function(i){var s=$("#gome-aside-app,#gome-aside-app-code");var n=$(".coupon-item");if(!n.is(i.target)&&n.has(i.target).length==0){$("#coupon-receive-list").find(".uuid").remove()}if(!s.is(i.target)&&s.has(i.target).length==0){j()}if(!e.is(i.target)&&e.has(i.target).length==0){if(a.attr("data-open")){if($(i.target).is(".js-ok")||$(i.target).is(".js-cancal")){return false}else{D();return}}if($(window).width()<1e3){t.hide();o.show();f.show();if(p.length==0){t.hide();r.hide();f.hide()}}}});$(window).scroll(function(){if($(window).scrollTop()>200){$("#gome-aside-backtop").css("visibility","visible");$(".gome-aside").css({background:"#5c5c5c"})}else{$("#gome-aside-backtop").css("visibility","hidden");$(".gome-aside").css({background:"none"})}})}function O(){if(i.attr("data-bg")){i.css("background","url("+i.data("bg")+") no-repeat").removeAttr("data-bg")}if(i.length>0&&o.data("bg")){var e="";e+='<ul id="gome-bar-border-fix" data-bg="'+o.attr("data-bg")+'">								<li class="gome-aside-sale gome-bar-btn-sale" data-open="sale"><a><i class="">促</i></a></li>							 </ul>';t.append(e);var a=$("#gome-bar-border-fix");if(a.attr("data-bg")){a.find("a").css("background","url("+a.data("bg")+") no-repeat").removeAttr("data-bg")}o.find("a").css("background","url("+o.data("bg")+") no-repeat");if($(window).height()>k){r.show();t.show();if($(window).width()>1e3&&$(window).height()>S){$("#gome-bar-border-fix").hide();i.show();$("#gome-bar-border-tab").css("top",parseInt(($(window).height()-u-y-w)/2+y))}else{i.hide();s.hide();$("#gome-bar-border-tab").css("top",parseInt(($(window).height()-u-T-w)/2+T))}}else{f.show();t.hide();o.show();$("#gome-bar-border-tab").css("top",parseInt(($(window).height()-u-T-w)/2+T))}}else{t.show();r.show();v=false;$("#gome-bar-border-tab").css("top",parseInt(($(window).height()-u-w)/2))}}function N(){t.find("li").live("click dbclick",function(){var e=$(this).data("open");r.show();if(e=="coupon"){if(loginData.loginName==""){$.ajax({url:stageJsServer+"/gmlib/unit/g/1.0.0/g.min.js",dataType:"script",cache:true,success:function(){g.login(function(){$(".gome-bar-btn-coupon").trigger("click")})}});return}}if(e=="member"&&loginData.loginStatus<3){}else{if(i.css("display")=="block"&&o.css("display")=="none"){i.hide();s.show().css("background","url("+s.data("bg")+") no-repeat").removeAttr("data-bg")}}t.find("li").removeClass("hover").end().find("."+$(this).attr("class")).addClass("hover");if(e=="member"&&!c.attr("data-open")){t.find("li").removeClass("hover")}if(!v){r.css("top",parseInt(($(window).height()-$(".gome-aside").height()-r.height())/2))}function f(e){if(e==""||e==null){e=0;return e}return e}var p=f(i.data("themeimg"))+"/"+f(i.data("redpacket"))+"/"+f(i.data("deputyhall"))+"/"+f(i.data("specialactivity"));if(e=="sale"){a.show()}if(e=="sale"&&!m.attr("data-open")){F(p)}if(e=="time"&&!l.attr("data-open")){$.ajax({type:"get",url:"//ss"+cookieDomain+"/item/v1/rightActivityFloat/timeline/"+p+"/flag/channel/timeline",dataType:"jsonp",jsonpName:"timeline",success:function(e){var t="",a="",i="",s="";function r(e){e=new Date(e.replace(/-/g,"/")).getMonth()+1;return e}function o(e){e=new Date(e.replace(/-/g,"/")).getDate();return e}if(e.hasOwnProperty("end")){if(e.end[0].type=="redPacke"){a='<div class="gome-bar-time-end">                                                <div class="gome-bar-time-coupon"><p>￥<strong>'+e.end[0].elemenlTitle+"</strong>"+e.end[0].content+"</p><span>"+e.end[0].elemenlDescribe+"</span><span>有效期"+r(e.end[0].startTime)+"."+o(e.end[0].startTime)+"-"+r(e.end[0].endTime)+"."+o(e.end[0].endTime)+'</span></div>                                                <div class="gome-bar-time-line"><i></i><em>'+r(e.end[0].endTime)+"月"+o(e.end[0].endTime)+"日</em></div>                                            </div>"}else{a='<div class="gome-bar-time-end">                                                <div class="gome-bar-time-event"><span>'+r(e.end[0].startTime)+"."+o(e.end[0].startTime)+"-"+r(e.end[0].endTime)+"."+o(e.end[0].endTime)+"</span><strong>"+e.end[0].elemenlTitle+"</strong><b>"+e.end[0].elemenlDescribe+'</b></div>                                                <div class="gome-bar-time-line"><i></i><em>'+r(e.end[0].endTime)+"月"+o(e.end[0].endTime)+"日</em></div>                                            </div>"}}if(e.hasOwnProperty("themeData")){t+='<div class="gome-bar-time-going">                                                    <a data-code="'+e.themeData[0].modelId+'" href="'+e.themeData[0].tolink+'" target="_blank">                                                        <div class="gome-bar-time-event"><span>'+r(e.themeData[0].startTime)+"."+o(e.themeData[0].startTime)+"-"+r(e.themeData[0].endTime)+"."+o(e.themeData[0].endTime)+"</span><strong>"+e.themeData[0].elemenlTitle+"</strong><b>"+e.themeData[0].elemenlDescribe+'</b></div>                                                    </a>                                                    <div class="gome-bar-time-line"><i></i><em>'+((new Date).getMonth()+1)+"月"+(new Date).getDate()+"日</em></div>                                                </div>"}if(e.hasOwnProperty("staring")){for(var n=0;n<e.staring.length;n++){if(e.staring[n].type=="redPacke"&&!e.staring[n].tolink==""){i+='<div class="gome-bar-time-going">                                                        <a data-code="'+e.staring[n].modelId+"-"+n+'" href="'+e.staring[n].tolink+'" target="_blank">                                                            <div class="gome-bar-time-coupon"><p>￥<strong>'+e.staring[n].elemenlTitle+"</strong>"+e.staring[n].content+"</p><span>"+e.staring[n].elemenlDescribe+"</span><span>有效期"+r(e.staring[n].startTime)+"."+o(e.staring[n].startTime)+"-"+r(e.staring[n].endTime)+"."+o(e.staring[n].endTime)+'</span></div>                                                        </a>                                                        <div class="gome-bar-time-line"><i></i><em>'+((new Date).getMonth()+1)+"月"+(new Date).getDate()+"日</em></div>                                                    </div>"}else if(!e.staring[n].tolink==""){i+='<div class="gome-bar-time-going">                                                        <a data-code="'+e.staring[n].modelId+"-"+n+'" href="'+e.staring[n].tolink+'" target="_blank">                                                            <div class="gome-bar-time-event"><span>'+r(e.staring[n].startTime)+"."+o(e.staring[n].startTime)+"-"+r(e.staring[n].endTime)+"."+o(e.staring[n].endTime)+"</span><strong>"+e.staring[n].elemenlTitle+"</strong><b>"+e.staring[n].elemenlDescribe+'</b></div>                                                        </a>                                                        <div class="gome-bar-time-line"><i></i><em>'+((new Date).getMonth()+1)+"月"+(new Date).getDate()+"日</em></div>                                                    </div>"}}}if(e.hasOwnProperty("notStart")){for(var n=0;n<e.notStart.length;n++){if(e.notStart[n].type=="redPacke"&&!e.notStart[n].tolink==""){s+='<div class="gome-bar-time-soon">                                                        <div class="gome-bar-time-coupon"><p>￥<strong>'+e.notStart[n].elemenlTitle+"</strong>"+e.notStart[n].content+"</p><span>"+e.notStart[n].elemenlDescribe+"</span><span>有效期"+r(e.notStart[n].startTime)+"."+o(e.notStart[n].startTime)+"-"+r(e.notStart[n].endTime)+"."+o(e.notStart[n].endTime)+'</span></div>                                                        <div class="gome-bar-time-line"><i></i><em>'+r(e.notStart[n].startTime)+"月"+o(e.notStart[n].startTime)+'日</em></div>                                                        <div class="gome-bar-time-wait">敬请期待</div>                                                    </div>'}else if(!e.notStart[n].tolink==""){s+='<div class="gome-bar-time-soon">                                                        <div class="gome-bar-time-event"><span>'+r(e.notStart[n].startTime)+"."+o(e.notStart[n].startTime)+"-"+r(e.notStart[n].endTime)+"."+o(e.notStart[n].endTime)+"</span><strong>"+e.notStart[n].elemenlTitle+"</strong><b>"+e.notStart[n].elemenlDescribe+'</b></div>                                                        <div class="gome-bar-time-line"><i></i><em>'+r(e.notStart[n].startTime)+"月"+o(e.notStart[n].startTime)+'日</em></div>                                                        <div class="gome-bar-time-wait">敬请期待</div>                                                    </div>'}}}l.html(a+t+i+s);var d=$(window).height();var m=($(".gome-bar-time-going").length+$(".gome-bar-time-soon").length)*100;if(m*2<d){l.append('<div class="gome-bar-time-bg"></div>');$(".gome-bar-time-bg").css("margin-top",parseInt((d-m-156)/2-50))}}});if($.fn.slimScroll){A()}else{$.ajax({url:stageJsServer+"/gmlib/ui/slimscroll/1.3.7.1/slimscroll.min.js",dataType:"script",cache:true,success:function(){A()}})}l.attr("data-open","true")}if(e=="coupon"){a.show()}if(e=="coupon"&&!c.attr("data-open")){if(loginData.loginName==""){$.ajax({url:stageJsServer+"/gmlib/unit/g/1.0.0/g.min.js",dataType:"script",cache:true,success:function(){g.login(function(){n.trigger("click")})}});return}$.ajax({url:stageJsServer+"/gmpro/1.0.0/public/1.0.0/js/aside-coupon.min.js?versionData="+versionData,dataType:"script",cache:true,success:function(){c.attr("data-open","true")}})}if(e=="cart"){a.show();if(!a.attr("data-open")||!$("#gome-bar-cart").attr("data-animate")){$("#cart-body").gminicart()}}if(e=="member"){$(this).find(".gome-bar-btn-tip").removeClass("hover");M(this)}if(e=="member"&&!b.attr("data-open")){if($.fn.slimScroll){z()}else{$.ajax({url:stageJsServer+"/gmlib/ui/slimscroll/1.3.7.1/slimscroll.min.js",dataType:"script",cache:true,success:function(){z()}})}b.attr("data-open","true")}if(e=="favorites"){$(this).find(".gome-bar-btn-tip").removeClass("hover");if(!a.attr("data-open")||!$("#gome-bar-cart").attr("data-animate")){if(loginData.loginStatus&&loginData.loginStatus<3){$.ajax({url:stageJsServer+"/gmlib/unit/g/1.0.0/g.min.js",dataType:"script",cache:true,success:function(){g.login(function(){d.trigger("click")})}});a.hide();a.attr("data-open","").css("right","-240px");t.find("li").removeClass("hover");return false}else{a.show();t.find("li").removeClass("hover");d.addClass("hover");if($.fn.asideFavorites){h.asideFavorites()}else{$.ajax({url:stageJsServer+"/gmpro/1.0.0/public/1.0.0/js/aside-favorites.min.js?versionData="+versionData,dataType:"script",cache:true,success:function(){h.asideFavorites()}})}}}}if(e=="favorites"&&!h.attr("data-open")){if($.fn.slimScroll){P()}else{$.ajax({url:stageJsServer+"/gmlib/ui/slimscroll/1.3.7.1/slimscroll.min.js",dataType:"script",cache:true,success:function(){P()}})}h.attr("data-open","true")}if(e!="member"){_(e)}})}function F(e){$("#gome-bar-sale").css("background","url("+$("#gome-bar-sale").data("bg")+") repeat-x #"+$("#gome-bar-sale").data("color")).removeAttr("data-bg data-color");$.ajax({url:stageJsServer+"/gmpro/1.0.0/public/1.0.0/js/aside-tpl.min.js?versionData="+versionData,dataType:"script",cache:true,success:function(){$.ajax({type:"get",url:"//ss"+cookieDomain+"/item/v1/rightActivityFloat/activity/"+e+"/flag/channel/activity",dataType:"jsonp",jsonpName:"activity",success:function(e){e.isThemeData=e.hasOwnProperty("themeData");e.isDeputyHall=e.hasOwnProperty("deputyHall");e.isRedPacket=e.hasOwnProperty("redPacket");e.isSpecialIds=e.hasOwnProperty("specialIds");e.stageImageServer=stageImageServer;var t=gomeTemplate("aside-sales",e);m.html(t)},complete:function(){m.find("a").each(function(){if($(this).attr("href")=="undefined"||$(this).attr("href").indexOf("undefined")>-1){$(this).removeAttr("href target data-code").addClass("unlink")}})}})}});if($.fn.slimScroll){I()}else{$.ajax({url:stageJsServer+"/gmlib/ui/slimscroll/1.3.7.1/slimscroll.min.js",dataType:"script",cache:true,success:function(){I()}})}m.attr("data-open","true")}function M(e){var i=e;function s(e){$.ajax({url:"//member"+cookieDomain+"/gome/index/loginStyle",data:0,type:"get",dataType:"jsonp",jsonpName:"newlogintop",success:function(t){if(t.loginStatus&&t.loginStatus<3){e("true")}else{e("123")}}})}s(function(e){if(e=="true"){$.ajax({url:stageJsServer+"/gmlib/unit/g/1.0.0/g.min.js",dataType:"script",cache:true,success:function(){g.login(function(){$(i).trigger("click")})}});a.hide();a.attr("data-open","").css("right","-240px");t.find("li").removeClass("hover")}else{a.show();t.find("li").removeClass("hover").end().find("."+$(i).attr("class")).addClass("hover");_("member")}});$.ajax({url:stageJsServer+"/gmpro/1.0.0/public/1.0.0/js/aside-member.min.js?versionData="+versionData,dataType:"script",cache:true,success:function(){}})}function _(e){if(!a.attr("data-open")){$("#gome-bar-"+e).css({"z-index":"997",visibility:"visible"}).attr("data-animate","true").removeClass("gome-bar-out").siblings().removeAttr("data-animate").addClass("gome-bar-out").css({"z-index":"996",visibility:"visible"});a.attr("data-open","true");a.animate({right:"35px"},300)}else if($("#gome-bar-"+e).attr("data-animate")){D()}else if($("#gome-bar-"+e).css("z-index")=="995"){$(".gome-bar-box-wrap").each(function(){if($(this).css("z-index")=="996"){$(this).css({"z-index":"995",visibility:"hidden"})}});$("[data-animate]").removeAttr("data-animate").addClass("gome-bar-out").css({"z-index":"996",visibility:"visible"});$("#gome-bar-"+e).attr("data-animate","true").removeClass("gome-bar-out").css({top:"100%","z-index":"997",visibility:"visible"}).animate({top:"0"},400)}else if($("#gome-bar-"+e).css("z-index")=="996"){$("[data-animate]").removeAttr("data-animate").addClass("gome-bar-out").css({"z-index":"996"});$("#gome-bar-"+e).attr("data-animate","true").removeClass("gome-bar-out").css({top:"100%","z-index":"997"}).animate({top:"0"},400)}}function H(){$(".gome-bar-close").click(function(){D()})}function R(){var e=0;$(".gome-aside li").hover(function(){var t=$(this);if($(this).attr("id")!=="gome-aside-app"){j()}$(this).find("img[gome-src]").each(function(){$(this).attr("src",$(this).attr("gome-src")).removeAttr("gome-src")});if(window.AsideSurvey){var a=$("#gome-aside-survey");a.find("a").attr("href",AsideSurvey.url);a.find("p a").text(AsideSurvey.text)}e=setTimeout(function(){if(t.attr("id")==="gome-aside-app"){C()}t.addClass("hover");t.find("i").addClass("hover");t.find("div").css({transform:"translate(0,0)","-webkit-transform":"translate(0,0)",transition:"all 0.2s ease-out","-webkit-transition":"all 0.2s ease-out"})},200)},function(){clearTimeout(e);if(a.length>0&&a.attr("data-open")){j()}if($(this).attr("id")!=="gome-aside-app"){$(this).find("div").css({transform:"translate(110%,0)","-webkit-transform":"translate(110%,0)",transition:"all 0.2s ease-out","-webkit-transition":"all 0.2s ease-out"});$(this).removeClass("hover");$(this).find("i").removeClass("hover")}})}function W(){q();B();E();G();R()}function q(){o.on("click",function(){t.hide();o.show();s.hide();f.show();if($(window).width()>1e3){$("#gome-bar-border-bg .gome-bar-btn-sale").trigger("click")}else{i.hide();s.hide();$("#gome-bar-border-fix .gome-bar-btn-sale").trigger("click")}s.hide();r.hide();$("#gome-bar-border-fix").hide()});s.click(function(){$(this).hide();i.show()})}function B(){f.on("click",function(){t.show();r.show();o.hide();f.hide();if(i.css("display")=="block"){i.hide();s.hide();$("#gome-bar-border-tab").css("top",parseInt(($(window).height()-u-T-w)/2+T))}$(".gome-bar-btn-cart").trigger("click")})}function E(){$("#gome-aside-backtop").click(function(){$("body,html").animate({scrollTop:0},500);return false})}function G(){$("#gome-aside-service .live800-service").click(function(){window.openServiceWindow()})}(function U(){x();J();O();W();N();H();if(p.length==0){t.hide();r.hide();f.hide()}})();var K;var L;var Q;$(".gome-bar-btn-member").hover(function(){var e=$(this);if(!a.attr("data-open")||!$("#gome-bar-member").attr("data-animate")){K&&clearTimeout(K);Q=setTimeout(function(){e.addClass("hover");e.find(".gome-bar-btn-tip").addClass("hover")},200)}},function(){Q&&clearTimeout(Q);$(this).find(".gome-bar-btn-tip").removeClass("hover");if(!a.attr("data-open")||!$("#gome-bar-member").attr("data-animate")){K=setTimeout($.proxy(function(){$(this).removeClass("hover")},this),200)}});$(".gome-bar-btn-favorites").hover(function(){var e=$(this);if(!a.attr("data-open")||!$("#gome-bar-favorites").attr("data-animate")){L&&clearTimeout(L);Q=setTimeout(function(){e.addClass("hover");e.find(".gome-bar-btn-tip").addClass("hover")},200)}},function(){Q&&clearTimeout(Q);$(this).find(".gome-bar-btn-tip").removeClass("hover");if(!a.attr("data-open")||!$("#gome-bar-favorites").attr("data-animate")){L=setTimeout($.proxy(function(){$(this).removeClass("hover")},this),200)}})});(function(a){var t=function(t){var e={Jump:false,openJump:false,url:"",data:"",callback:""};var t=a.extend({},e,t);if(t.Jump&&t.url){if(t.openJump){var u=window.open(t.url,"_blank");if(u==null){alert("您的浏览器拦截了弹出窗口，请您在浏览器上方点击拦截信息允许弹出此窗口！")}}else{window.location.href=t.url}}else{a.ajax({url:t.url,type:"get",dataType:"jsonp",jsonpName:"cartData",data:t.data,success:function(a){if(!a.success&&a.status&&(a.status==="MTK_E"||a.status==="MTK_V")){if(a.status==="MTK_E"){var e="//card"+cookieDomain+"?skuType=ZSTK&productId="+t.data.pid+"&skuId="+t.data.sid+"&count="+t.data.pcount;window.location.href=e}else{var e="//card"+cookieDomain+"?skuType=ZDZK&productId="+t.data.pid+"&skuId="+t.data.sid+"&count="+t.data.pcount;window.location.href=e}}else{t.callback(a)}}})}};a.createProgress=function(a){return new t(a)}})(jQuery);window.g=window.g||{};(function(){window.g=window.g||{};function e(e){if(document.cookie.length>0){c_start=document.cookie.indexOf(e+"=");if(c_start!=-1){c_start=c_start+e.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1)c_end=document.cookie.length;return decodeURIComponent(document.cookie.substring(c_start,c_end))}}return""}g.cityCode=function(t){t=parseInt(t);if(t>=0&&t<=4){}else{t=3}var i="";var n=e("atgregion")||"11010200|北京北京市朝阳区|11010000|11000000|110102002";var a=n.split("|");switch(t){case 0:i=a[1];break;case 1:i=a[3];break;case 2:i=a[2];break;case 3:i=a[0];break;case 4:i=a[4]==undefined?a[0]+"1":a[4];break}return i}})();(function(){var e=jQuery;window.g=window.g||{};function t(e){if(e.substr(e.length-1,1)=="/"){return e.substr(0,e.length-1)}else{return e}}var i={w:t(staSite),item:t(staSite.replace("www","item")),js:t(stageJsServer),css:t(stageCssServer),img:t(stageImageServer),login:t(staSite.replace("www","login")),reg:t(staSite.replace("www","reg")),desc:t(staSite.replace("www","desc")),contextPath:contextPath,getParam:function(e){var t={};if(location.search.indexOf("?")!=-1){var i=location.search.substr(1);strs=i.split("&");for(var n=0;n<strs.length;n++){if(strs[n].split("=").length!==2){continue}t[strs[n].split("=")[0]]=unescape(strs[n].split("=")[1])}}if(t[e]==undefined){t[e]=""}return t[e]},g:t(dynSite)};g.url=i})();(function(){var e=jQuery;ajax=function(){if(typeof arguments[0]!="string"){return}var t=undefined;var i={};var n=undefined;var a={};if(arguments.length==1){t=arguments[0];i={}}else if(arguments.length==2){if(typeof arguments[1]=="function"){t=arguments[0];n=arguments[1]}else{t=arguments[0];i=arguments[1]}}else if(arguments.length==3&&typeof arguments[2]=="function"){t=arguments[0];i=arguments[1];n=arguments[2]}else if(arguments.length==3&&typeof arguments[2]=="object"){t=arguments[0];i=arguments[1];a=arguments[2]}else if(arguments.length==4){t=arguments[0];i=arguments[1];a=arguments[2];n=arguments[3]}if(typeof a.site=="string"&&a.site.indexOf("g")>=0){t=g.url.g+t}else if(typeof a.site=="string"&&a.site.indexOf("w")>=0){t=g.url.w+t}else if(typeof a.site=="string"&&a.site.indexOf("f")>=0){t=t}else if(i.site&&i.site.indexOf("g")>=0){t=g.url.g+t}else if(i.site&&i.site.indexOf("w")>=0){t=g.url.w+t}else if(i.site&&i.site.indexOf("f")>=0){t=t}else if(i.site&&i.site.indexOf("s")>=0){t="//ss"+cookieDomain+t}else{t=g.url.g+t}if(i.site){delete i.site}var o={type:"get",url:t,data:i,dataType:"jsonp",jsonpName:i.callback==undefined?"cb_"+parseInt(Math.random()*1e15):i.callback,success:function(e){n&&n(e)}};if(i.callback){delete i.callback}if(typeof a=="object"){e.extend(o,a)}return e.ajax(o)};window.g=window.g||{};g.ajax=ajax})();(function(){function e(e){this._endfn=[];this._subs=[];this._init=[];this._endStatus=false;this.setAJAX=e}e.prototype={publish:function(){var e=this;for(var t=0;t<e._init.length;t++){if(e._init[t]()==false){return}}this._endStatus=false;if(typeof this.setAJAX=="function"){this.setAJAX().done(function(t){for(var i=0;i<e._subs.length;i++){e._subs[i](t)}e._endStatus=true;for(var i=0;i<e._endfn.length;i++){e._endfn[i](t)}})}else{for(var t=0;t<e._subs.length;t++){e._subs[t](data)}e._endStatus=true;for(var t=0;t<e._endfn.length;t++){e._endfn[t](data)}}},init:function(e){e&&this._init.push(e)},addSub:function(e){e&&this._subs.push(e)},end:function(e){e&&this._endfn.push(e)},endStatus:function(){return this._endStatus}};window.g=window.g||{};g.Pubsub=e})();(function(e){var t=jQuery;var i=window.location.protocol.split(":")[0];var n=g.url.g.indexOf(location.host)>=0?"http://"+location.host+"/ec/homeus/glogin_callback.html":"http://"+location.host+"/glogin_callback.html";if(i==="https"){n=g.url.g.indexOf(location.host)>=0?"//"+location.host+"/ec/homeus/glogin_callback.html":"//"+location.host+"/glogin_callback.html"}var a={loaded:false,login_url:function(){if(g.url.login.indexOf("atgsit")>0||g.url.login.indexOf("atguat")>0||g.url.login.indexOf("gomeprelive")>0){return g.url.login}else{return g.url.login.replace("http","https")}}()+"/popLogin.no?callbackHost="+n+"&orginURI="+location.href,reg_url:function(){if(g.url.reg.indexOf("atgsit")>0||g.url.reg.indexOf("atguat")>0||g.url.reg.indexOf("gomeprelive")>0){return g.url.reg}else{return g.url.reg.replace("http","https")}}()+"/register/index/pop.no?callbackHost="+n+"&orginURI="+location.href,verifyUserUrl:g.url.login+"/redirectResetPwd.no?loginType=1",loginbg:t('<div style="position:fixed;top:0;left:0; width:100%;height:100%;  background:#000;opacity:0.15;  filter:alpha(opacity=15); display:none;"></div>'),loginfrm:t('<iframe id="loginFrame" scrolling="no"  frameborder="0" style="z-index:2; width:462px;height:605px; position:fixed;   background-color:transparent; " allowTransparency="true"></iframe>'),zIndex:1e4,show:function(e){a.loginbg.show().css("zIndex",a.zIndex);a.loginfrm.remove();a.loginfrm=t('<iframe scrolling="no"  frameborder="0" style="z-index:2; width:462px;height:605px; position:fixed;   background-color:transparent; " allowTransparency="true"></iframe>');t("body").append(a.loginfrm);a.loginfrm.attr("src",a.src+"&orginURI="+location.href+(e==undefined||e==""?"":"&userName="+e)+"&_t="+parseInt(Math.random()*1e12));a.loginfrm.show().css({left:(t(window).innerWidth()-a.loginfrm.width())/2,top:(t(window).height()-a.loginfrm.height())/2,zIndex:a.zIndex+1})},verifyUser_Show:function(){a.loginbg.show().css("zIndex",a.zIndex);a.loginfrm.show().css({left:(t(window).innerWidth()-a.loginfrm.width())/2,top:(t(window).height()-a.loginfrm.height())/2,zIndex:a.zIndex+1}).attr("src",a.verifyUserUrl+"&callbackHost="+n+"&orginURI="+location.href+"&_t="+parseInt(Math.random()*1e12))},login_open:function(e){a.loginbg.show().css("zIndex",a.zIndex);a.loginfrm.remove();a.loginfrm=t('<iframe id="loginFrame" scrolling="no"  frameborder="0" style="z-index:2; width:462px;height:605px; position:fixed;   background-color:transparent; " allowTransparency="true"></iframe>');t("body").append(a.loginfrm);a.loginfrm.attr("src",a.login_url+(e==undefined||e==""?"":"&userName="+e)+"&_t="+parseInt(Math.random()*1e12));a.loginfrm.show().css({left:(t(window).innerWidth()-a.loginfrm.width())/2,top:(t(window).height()-a.loginfrm.height())/2,zIndex:a.zIndex+1});var i=window.setInterval(function(){var e=document.getElementById("loginFrame");try{if(e.src=="http://www.gome.com.cn/glogin_callback.html"||e.src=="https://www.gome.com.cn/glogin_callback.html"){var t=1;t=parseInt(t);switch(t){case 0:g.login.callback();break;case 1:g.login.callback(true);break;case 2:g.login.verifyUser();break;case 3:g.login.login_open(getParam("userName"));break;case 4:g.login.reg_open();break;case 10:g.embedLogin.callback(true);break;case 11:g.embedLogin.start_login();break;case 12:g.embedLogin.start_reg();break;default:g.login.callback();break}clearInterval(i)}}catch(n){clearInterval(i)}},1e3)},reg_open:function(){a.loginbg.show().css("zIndex",a.zIndex);a.loginfrm.remove();a.loginfrm=t('<iframe scrolling="no"  frameborder="0" style="z-index:2; width:462px;height:605px; position:fixed;   background-color:transparent; " allowTransparency="true"></iframe>');t("body").append(a.loginfrm);a.loginfrm.attr("src",a.reg_url+"&_t="+parseInt(Math.random()*1e12));a.loginfrm.show().css({left:(t(window).innerWidth()-a.loginfrm.width())/2,top:(t(window).height()-a.loginfrm.height())/2,zIndex:a.zIndex+1})},close:function(){a.loginbg.hide();a.loginfrm.hide().removeAttr("src")},callback:function(){}};login=function(e,i){if(a.loaded==false){a.loaded=true;t("body").append(a.loginbg)}if(login.running==true){return}login.running=true;t.ajax({type:"get",url:"//member"+cookieDomain+"/gome/index/loginStyle",dataType:"jsonp",jsonpName:"loginStyle"}).done(function(t){login.running=false;if(t.loginStatus>=3){loginData=t;e&&e()}else{a.fn=e;"reg"==i?a.reg_open():a.login_open()}})};login.callback=function(e){a.close();if(e){if(window.signData){signData.getUser()}login(function(){a.fn&&a.fn()})}};login.close=function(){};login.verifyUser=function(){a.close();a.verifyUser_Show()};login.login_open=function(e){a.close();a.login_open(e)};login.reg_open=function(){a.close();a.reg_open()};login.config=function(e){a=t.extend(a,e)};e.login=login})(g);(function(e){var t=jQuery;var i=window.location.protocol.split(":")[0];var n=g.url.g.indexOf(location.host)>=0?"http://"+location.host+"/ec/homeus/glogin_callback.html":"http://"+location.host+"/glogin_callback.html";if(i==="https"){n=g.url.g.indexOf(location.host)>=0?"//"+location.host+"/ec/homeus/glogin_callback.html":"//"+location.host+"/glogin_callback.html"}var a={start:function(e){t.extend(a.config,e);if(!a.config.wrap){return}a.config.frm.remove();a.config.frm=t('<iframe scrolling ="no" style="height: 315px; width: 294px;" frameborder="0"></iframe>');a.callback=e.callback;t(a.config.wrap).append(a.config.frm);a.config.frm.attr("src",a.config.src_login+"?callbackHost="+n+(a.config.toSite?"&toSite="+a.config.toSite:""))},start_login:function(){a.config.frm.remove();a.config.frm=t('<iframe scrolling ="no" style="height: 315px; width: 294px;" frameborder="0"></iframe>');t(a.config.wrap).append(a.config.frm);a.config.frm.attr("src",a.config.src_login+"?callbackHost="+n+(a.config.toSite?"&toSite="+a.config.toSite:""))},start_reg:function(){a.config.frm.remove();a.config.frm=t('<iframe scrolling ="no" style="height: 315px; width: 294px;" frameborder="0"></iframe>');t(a.config.wrap).append(a.config.frm);a.config.frm.attr("src",a.config.src_reg+"?callbackHost="+n+(a.config.toSite?"&toSite="+a.config.toSite:""))},config:{callback:undefined,frm:t('<iframe scrolling ="no" style="height: 315px; width: 294px;" frameborder="0"></iframe>'),src_login:g.url.login+"/embedLogin.no",src_reg:g.url.reg+"/register/index/embed.no",toSite:undefined},callback:function(e){if(e){a.config.frm.remove();a.config.callback&&a.config.callback()}}};e.embedLogin=a})(g);(function(e){var t=jQuery;var i=t('<div class="Dialog_bg"></div>');var n=false;function a(e,a){if(!n){n=true;t("body").append(i)}a=a||{};this.config=a;this.config.zIndex=a.zIndex||1e4;this._bg_Dialog=i;this._dom=e;this._wrap=t('<div class="Dialog"></div>');this._wrap.append(e);t("body").append(this._wrap);if(a.closeBtn!=false){this._closeBtn=t('<a class="closeBtn" href="javascript:;">╳</a>');this._wrap.append(this._closeBtn);var o=this;this._closeBtn.click(function(){o.close()})}e.show()}a.prototype={open:function(e){if(e){var i=e();if(i==false){return}}var n=this;var a=window.navigator.userAgent.indexOf("IE6")>0;this._bg_Dialog.show().css({"z-index":this.config.zIndex-1});this._wrap.show().css({top:t(window).height()/2-this._dom.height()/2+(a?t(window).scrollTop():0),left:t(window).width()/2-this._dom.width()/2+(a?t(window).scrollLeft():0),"z-index":n.config.zIndex})},close:function(e){if(e){var t=e();if(t==false){return}}this._bg_Dialog.hide();if(this.config.isDestroy){this._wrap.remove()}else{this._wrap.hide()}}};e.Dialog=a})(g);(function(e){var t=jQuery;var i;var n;var a;var o;function r(e,s){(function(){i=t('<div class="addCart-box">'+'<div class="addCart-loading">正在添加商品到购物车...</div>'+'<div class="addCart-state-success dn">'+'<span class="addCart-state-icon"></span>'+'<h5 class="addCart-state">添加成功</h5>'+'<p class="addCart-info">购物车共有<b class="totalQuantity highlight">5</b>件商品，商品总价：<b class="highlight totalAmount">¥3122.00</b></p>'+'<div class="addCart-btn">'+'<a class="addCart-gotoCart" href="'+g.url.g+'/ec/homeus/cart/cart.jsp">去购物车结算&nbsp;&gt;</a>'+'<a class="addCart-shopping">继续购物</a>'+"</div>"+"</div>"+'<dl class="addCart-bulkData">'+'<dt class="bulkData-title">购买了此商品的用户还购买了：</dt>'+"</dl>"+"</div>");t("body").append(i);n=new g.Dialog(i);i.find(".addCart-shopping").click(function(){n.close()});a=t('<div class="addCart-state-failed">'+'<span class="addCart-state-icon"></span>'+'<p>您购物车中的相同商品购买数量<span class="highlight">不能大于<b>20</b>件</span></p>'+'<p>请您&nbsp;<a href="'+g.url.g+"/ec/homeus/myaccount/customer/customer.jsp"+'" class="link"><b>点击此链接</b></a>&nbsp;联系客服购买！</p>'+"</div>");t("body").append(a);o=new g.Dialog(a)})();s=s||{showDialog:true};t(".addCart-loading").show();t(".addCart-state-success").hide();t.ajax({type:"get",url:r.config.url_addCart,data:{method:e.method||"homeus.addNormalItemToOrder",params:JSON.stringify(t.extend(e,r.config.data))},dataType:"jsonp"}).done(function(e){s.callback&&s.callback(e)}).done(function(e){if(e.result&&e.result.cart){i.find(".addCart-loading").hide();i.find(".addCart-state-success").show();i.find(".totalQuantity").html(e.result.cart.cartSummary.totalQuantity);i.find(".totalAmount").html("¥"+e.result.cart.cartSummary.totalAmount)}}).done(function(e){if(e.result&&e.result.cart){return}var t=e;if(t.error&&t.error.data){var i=t.error.data,r=i.code,s="",l="件";var c=false;switch(r){case"gomeSKU":s="您购物车中的商品种类";l="种";break;case"bookSKU":s="您购物车中的图书种类";l="种";break;case"bbcSKU":s="您购物车中的店铺商品种类";l="种";break;case"gomeQuantity":s="您购物车中的相同商品购买数量";break;case"bookQuantity":s="您购物车中的相同图书购买数量";break;case"bbcQuantity":s="您购物车中的相同店铺商品购买数量";break;case"bbcQuantityForLimitBuy":s=t.error.data.message;break;default:s="您购物车中的相同商品购买数量";c=true}if(window.useriderror==true){a.html("该商品暂无法购买，请您联系客服解决：4008-708-708")}else if(i.code=="bbcQuantityForLimitBuy"){_htm='<div class="errorTxt">'+s+"</div>";_this.dialog({inner:"#dialogEr",cssname:"dialogBox Er",errIco:"warn",errMsg:_htm})}else if(l=="件"){a='<div class="addCart-state-failed">'+'<span class="addCart-state-icon"></span>'+"<p>"+s+'<span class="highlight">不能大于<b>'+i.quantityMax+"</b>件</span></p>"+'<p>请您&nbsp;<a href="'+g.url.g+"/ec/homeus/myaccount/customer/customer.jsp"+'" class="link"><b>点击此链接</b></a>&nbsp;联系客服购买！</p>'+"</div>"}else if(l=="种"){a='<div class="addCart-state-failed">'+'<span class="addCart-state-icon"></span>'+"<p>"+s+"已达上限("+i.quantityMax+l+")！</p>"+"</div>"}}else{a.html("添加异常！请重试！")}n.close();o.open()});n.open();setTimeout(function(){g.ajax("//bigd.gome.com.cn/gome/dataOrderAssociate",{pid:e.productId,area:g.cityCode(),size:4,imagesize:80,callbackparam:"dataOrderAssociateService",callback:"dataOrderAssociateService",site:"f"}).done(function(e){i.find(".addCart-bulkData").html("").html('<dt class="bulkData-title">购买了此商品的用户还购买了：</dt>'+"");var t="";for(var n=0;n<e.productList.length;n++){t+='<dd class="bulkData-item">'+'<a href="'+e.productList[n].detailHref+' title="'+e.productList[n].dispName+'" class="bulkData-pic" target="_blank"><img width="80" height="80" src="'+e.productList[n].imgUrl+'" alt="'+e.productList[n].dispName+'"></a>'+'<a href="'+e.productList[n].detailHref+' title="'+e.productList[n].dispName+'" class="bulkData-name" target="_blank">'+e.productList[n].dispName+"</a>";"</dd>"}i.find(".addCart-bulkData").css({visibility:"visible"}).html("").html('<dt class="bulkData-title">购买了此商品的用户还购买了：</dt>'+t)})})}r.config={url_addCart:g.url.g+"/ec/homeus/support/add.jsp",url_cart:"",data:{addItemCount:1,quantity:1,method:"homeus.addNormalItemToOrder"}};e.addCart=r})(g);(function(t){t.fn.gCity=function(c){var i=function(t,c){this.cache={snam:"",sid:"",cnam:"",cid:"",xnam:"",xid:"",znam:"",zid:"",chtm:""};this.adress="11011400|北京北京市东城区东城区|11010000|11000000|110114001";this.province={11000000:"北京",12000000:"天津",13000000:"河北省",14000000:"山西省",15000000:"内蒙古",21000000:"上海",22000000:"浙江省",23000000:"江苏省",24000000:"安徽省",25000000:"福建省",26000000:"山东省",31000000:"广东省",32000000:"广西",33000000:"海南省",41000000:"湖北省",42000000:"湖南省",43000000:"河南省",44000000:"江西省",51000000:"黑龙江省",52000000:"吉林省",53000000:"辽宁省",61000000:"宁夏",62000000:"新疆",63000000:"青海省",64000000:"陕西省",65000000:"甘肃省",71000000:"四川省",72000000:"云南省",73000000:"贵州省",74000000:"重庆",75000000:"西藏",81000000:"台湾省",82000000:"香港",83000000:"澳门",84000000:"钓鱼岛"};this.city={11000000:{11010000:"北京市"},12000000:{12010000:"天津市"},13000000:{13010000:"保定市",13020000:"沧州市",13030000:"承德市",13040000:"邯郸市",13050000:"衡水市",13060000:"廊坊市",13070000:"秦皇岛市",13080000:"石家庄市",13090000:"唐山市",13100000:"邢台市",13110000:"张家口市"},14000000:{14010000:"长治市",14020000:"大同市",14030000:"晋城市",14040000:"晋中市",14050000:"临汾市",14060000:"吕梁市",14070000:"朔州市",14080000:"太原市",14090000:"忻州市",14100000:"阳泉市",14110000:"运城市"},15000000:{15010000:"阿拉善盟",15020000:"巴彦淖尔市",15030000:"包头市",15040000:"赤峰市",15050000:"鄂尔多斯市",15060000:"呼和浩特市",15070000:"呼伦贝尔市",15080000:"通辽市",15090000:"乌海市",15100000:"乌兰察布市",15110000:"锡林郭勒盟",15120000:"兴安盟"},21000000:{21010000:"上海市"},22000000:{22010000:"杭州市",22020000:"湖州市",22030000:"嘉兴市",22040000:"金华市",22050000:"丽水市",22060000:"宁波市",22070000:"衢州市",22080000:"绍兴市",22090000:"台州市",22100000:"温州市",22110000:"舟山市"},23000000:{23010000:"南京市",23020000:"淮安市",23030000:"连云港市",23040000:"常州市",23050000:"南通市",23060000:"苏州市",23070000:"宿迁市",23080000:"泰州市",23090000:"无锡市",23100000:"徐州市",23110000:"盐城市",23120000:"扬州市",23130000:"镇江市"},24000000:{24010000:"合肥市",24020000:"安庆市",24030000:"蚌埠市",24040000:"亳州市",24060000:"池州市",24070000:"滁州市",24080000:"阜阳市",24090000:"淮北市",24100000:"淮南市",24110000:"黄山市",24120000:"六安市",24130000:"马鞍山市",24140000:"宿州市",24150000:"铜陵市",24160000:"芜湖市",24170000:"宣城市"},25000000:{25010000:"福州市",25020000:"龙岩市",25030000:"南平市",25040000:"宁德市",25050000:"莆田市",25060000:"泉州市",25070000:"三明市",25080000:"厦门市",25090000:"漳州市"},26000000:{26010000:"滨州市",26020000:"德州市",26030000:"东营市",26040000:"菏泽市",26050000:"济南市",26060000:"济宁市",26070000:"莱芜市",26080000:"聊城市",26090000:"临沂市",26100000:"青岛市",26110000:"日照市",26120000:"泰安市",26130000:"威海市",26140000:"潍坊市",26150000:"烟台市",26160000:"枣庄市",26170000:"淄博市"},31000000:{31010000:"广州市",31020000:"深圳市",31030000:"潮州市",31040000:"河源市",31050000:"惠州市",31060000:"江门市",31070000:"揭阳市",31080000:"茂名市",31090000:"梅州市",31100000:"清远市",31110000:"汕头市",31120000:"汕尾市",31130000:"韶关市",31140000:"阳江市",31150000:"云浮市",31160000:"湛江市",31170000:"肇庆市",31180000:"珠海市",31190000:"东莞市",31200000:"中山市",31210000:"佛山市"},32000000:{32010000:"桂林市",32020000:"百色市",32030000:"北海市",32040000:"崇左市",32050000:"防城港市",32060000:"贵港市",32070000:"河池市",32080000:"贺州市",32090000:"来宾市",32100000:"柳州市",32110000:"南宁市",32120000:"钦州市",32130000:"梧州市",32140000:"玉林市"},33000000:{33010000:"海口市",33020000:"白沙县",33030000:"保亭县",33040000:"昌江县",33050000:"澄迈县",33060000:"儋州市",33070000:"定安县",33080000:"东方市",33090000:"乐东县",33100000:"临高县",33110000:"陵水县",33130000:"琼海市",33140000:"琼中县",33150000:"屯昌县",33160000:"万宁市",33170000:"文昌市",33180000:"五指山市",33210000:"三亚市",33220000:"三沙市"},41000000:{41010000:"武汉市",41020000:"鄂州市",41030000:"恩施州",41040000:"黄冈市",41050000:"黄石市",41060000:"荆门市",41070000:"荆州市",41080000:"十堰市",41090000:"随州市",41100000:"咸宁市",41110000:"襄阳市",41120000:"孝感市",41130000:"宜昌市",41140000:"仙桃市",41150000:"潜江市",41160000:"天门市",41170000:"神农架林区"},42000000:{42010000:"长沙市",42020000:"常德市",42030000:"郴州市",42040000:"衡阳市",42050000:"怀化市",42060000:"娄底市",42070000:"邵阳市",42080000:"湘潭市",42090000:"湘西州",42100000:"益阳市",42110000:"永州市",42120000:"岳阳市",42130000:"张家界市",42140000:"株洲市"},43000000:{43010000:"郑州市",43020000:"安阳市",43030000:"鹤壁市",43040000:"焦作市",43050000:"开封市",43060000:"洛阳市",43070000:"漯河市",43080000:"南阳市",43090000:"平顶山市",43100000:"濮阳市",43110000:"三门峡市",43120000:"商丘市",43130000:"新乡市",43140000:"信阳市",43150000:"许昌市",43160000:"周口市",43170000:"驻马店市",43180000:"济源市"},44000000:{44010000:"南昌市",44020000:"抚州市",44030000:"赣州市",44040000:"吉安市",44050000:"景德镇市",44060000:"九江市",44070000:"萍乡市",44080000:"上饶市",44090000:"新余市",44100000:"宜春市",44110000:"鹰潭市"},51000000:{51010000:"哈尔滨市",51020000:"大庆市",51030000:"大兴安岭",51040000:"鹤岗市",51050000:"黑河市",51060000:"鸡西市",51070000:"佳木斯市",51080000:"牡丹江市",51090000:"七台河市",51100000:"齐齐哈尔市",51110000:"双鸭山市",51120000:"绥化市",51130000:"伊春市"},52000000:{52010000:"长春市",52020000:"白城市",52030000:"白山市",52040000:"吉林市",52050000:"辽源市",52060000:"四平市",52070000:"松原市",52080000:"通化市",52090000:"延边州"},53000000:{53010000:"沈阳市",53020000:"鞍山市",53030000:"本溪市",53040000:"朝阳市",53050000:"大连市",53060000:"丹东市",53070000:"抚顺市",53080000:"阜新市",53090000:"葫芦岛市",53100000:"锦州市",53110000:"辽阳市",53120000:"盘锦市",53130000:"铁岭市",53140000:"营口市"},61000000:{61010000:"固原市",61020000:"石嘴山市",61030000:"吴忠市",61040000:"中卫市",61050000:"银川市"},62000000:{62010000:"乌鲁木齐市",62190000:"北屯市",62020000:"阿克苏地区",62030000:"阿勒泰地区",62040000:"巴音郭楞州",62050000:"博尔塔拉州",62060000:"昌吉州",62070000:"哈密地区",62080000:"和田地区",62090000:"喀什地区",62100000:"克拉玛依市",62110000:"克孜州",62120000:"塔城地区",62130000:"吐鲁番地区",62140000:"伊犁州",62150000:"石河子市",62160000:"阿拉尔市",62170000:"图木舒克市",62180000:"五家渠市"},63000000:{63010000:"西宁市",63020000:"果洛州",63030000:"海北州",63040000:"海东市",63050000:"海南州",63060000:"海西州",63070000:"黄南州",63080000:"玉树州"},64000000:{64010000:"西安市",64020000:"安康市",64030000:"宝鸡市",64040000:"汉中市",64050000:"商洛市",64060000:"铜川市",64070000:"渭南市",64080000:"咸阳市",64090000:"延安市",64100000:"榆林市"},65000000:{65010000:"兰州市",65020000:"白银市",65030000:"定西市",65040000:"甘南州",65050000:"嘉峪关市",65060000:"金昌市",65070000:"酒泉市",65080000:"临夏州",65090000:"陇南市",65100000:"平凉市",65110000:"庆阳市",65120000:"天水市",65130000:"张掖市",65140000:"武威市"},71000000:{71010000:"成都市",71020000:"阿坝州",71030000:"巴中市",71040000:"达州市",71050000:"德阳市",71060000:"甘孜州",71070000:"广元市",71080000:"乐山市",71090000:"凉山州",71100000:"泸州市",71110000:"眉山市",71120000:"绵阳市",71130000:"内江市",71140000:"南充市",71150000:"攀枝花市",71160000:"遂宁市",71170000:"雅安市",71180000:"宜宾市",71190000:"资阳市",71200000:"自贡市",71210000:"广安市"},72000000:{72010000:"昆明市",72020000:"保山市",72030000:"楚雄州",72040000:"大理州",72050000:"德宏州",72060000:"迪庆州",72070000:"红河州",72080000:"丽江市",72090000:"临沧市",72100000:"怒江州",72110000:"曲靖市",72120000:"普洱市",72130000:"文山州",72140000:"西双版纳",72150000:"玉溪市",72160000:"昭通市"},73000000:{73010000:"贵阳市",73020000:"安顺市",73030000:"毕节市",73040000:"六盘水市",73050000:"黔东南州",73060000:"黔南州",73070000:"黔西南州",73080000:"铜仁市",73090000:"遵义市"},74000000:{74010000:"重庆市"},75000000:{75010000:"拉萨市",75020000:"阿里地区",75030000:"昌都市",75040000:"林芝市",75050000:"那曲地区",75060000:"日喀则市",75070000:"山南市"},81000000:{81010000:"台湾省"},82000000:{82010000:"香港"},83000000:{83010000:"澳门"},84000000:{84010000:"钓鱼岛"}};this.opt=c;this.singleCity={11000000:"11010000",12000000:"12010000",21000000:"21010000",74000000:"74010000"};this.obj=t;this.init()};i.prototype={init:function(){var t=this;t.winClose();t.obj.click(function(){t.bindEvent();t.obj.addClass("gctCur").parent().addClass("cityShow");if(t.opt.gc_new)t.opcity(1);t.winType(true)});t.autoProvince()},autoProvince:function(){var t=this,c={};t.cityModel(t.province)},bindEvent:function(){var c=this;t(c.opt.gc_shw).unbind("click").click(function(t){t.preventDefault();c.cityClick(c.getEvent(t))})},cityModel:function(c){var i=this.opt.gc_dat||t.cookie("atgregion");i=i||this.adress;i=i.split("|");if(i.length!=5||i[4]=="undefined")i[4]=i[0]+"1";this.cache.sid=i[3];this.cache.cid=i[2];this.cache.xid=i[0];this.cache.zid=i[4];this.cityDom(c,2,1)},cityDom:function(c,i,a){var e=c.citys||c;if(a==1){this.createProvince(e,i)}else{this.createOthers(e,a,i)}if(!this.opt.gc_inp&&e.length<=1&&i==4)this.inpcity();if(this.opt.gc_inp&&i==4){this.opt.gc_inp=false;this.citySlect();this.cache.chtm=this.fmtAddress();if(this.opt.gc_ads)t(this.opt.gc_aid).html(this.cache[this.opt.gc_ads]).attr("title",this.cache[this.opt.gc_ads]);if(this.opt.gc_autofn)this.opt.gc_autofn.apply(this.cache)}this.bindEvent()},checkData:function(t){try{var c=t.result.division,i=c[0].code+c[0].label;return true}catch(a){if(window.console){console.log("响应数据异常\r\n"+a)}return false}},createProvince:function(c,i){var a=this,e="";t.each(c,function(t,c){var s=t,n=c,h="";e+=a.createSpan(h,n,s,s+","+i+",1")});a.cityHtm(e)},createOthers:function(c,i,a){var e=this,s="",n="",h="",r=c;var o=["710103001","710101001","710102001","710104001","710105001","110102001","110103001","110105001","110104001","110115001","110114001"];t.each(o,function(t,c){if(e.cache.zid==c){e.cache.zid=(+c+1).toString()}});if(a!=2){if(!this.checkData(c))return false;c=c.result.division}t.each(c,function(t,c){var i=c.code?c.code:t,r=c.label?c.label:c,o=c.relationCode||null,d="";n=i;h=r;if(i==e.cache.cid){e.cache.cnam=r}if(i==e.cache.xid&&!o||i!=e.cache.xid&&o&&o==e.cache.xid){e.cache.xid=i;e.cache.xnam=e.fmt(r)}if(e.cache.zid&&e.cache.zid!=""&&i==e.cache.zid){e.cache.znam=e.fmt(r)}s+=e.createSpan(d,r,i,i+","+(parseInt(a)+1)+","+a,o)});t("#ctbox_"+a).html(s);var d=0;if(a==2){d=e.cache.sid;if(e.opt.gc_inp)e.autoAjax(e.cache.cid,parseInt(a)+1,a);if(!e.opt.gc_inp&&c.length<=1){e.cache.cid=n;e.autoAjax(e.cache.cid,parseInt(a)+1,a)}}if(a==3){d=e.cache.cid;if(e.opt.gc_inp)e.autoAjax(e.cache.xid,parseInt(a)+1,a)}if(a==4){d=e.cache.xid;if(c.length<=1){e.cache.zid=n;e.cache.znam=h}}e.obj.data("data"+d,r)},autoAjax:function(t,c,i){var a=this;window.setTimeout(function(){a.cityajax(t,c,i)},1)},createSpan:function(t,c,i,a,e){if(e)e='data-rid="'+e+'"';return'<span><a href="javascript:;" '+t+' title="'+c+'" id="ct'+i+'" data-val="'+a+'" '+(e?e:"")+">"+c+"</a></span>"},citySlect:function(){t("#pct_1").find("b").html(this.cache.snam);t("#pct_2").find("b").html(this.cache.cnam);t("#pct_3").find("b").html(this.cache.xnam);t("#pct_4").find("b").html(this.cache.znam);if(this.cache.xnam==""||this.cache.xnam==undefined){var c=this;c.opt.gc_dat=c.adress;c.opt.gc_inp=true;window.setTimeout(function(){c.init()},1);return false}},cityHtm:function(c){var i=this.opt.gc_css,a="";if(this.opt.gc_slt){a='<div id="citySelect" class="gctSelect clearfix">				<a href="javascript:;" id="pct_1" data-val="1" data-lnk><b></b><i></i></a>				<a href="javascript:;" id="pct_2" data-val="2" data-lnk><b></b><i></i></a>				<a href="javascript:;" id="pct_3" data-val="3" data-lnk><b></b><i></i></a>				<a href="javascript:;" id="pct_4" data-val="4" data-lnk class="cur"><b></b><i></i></a>				<a href="javascript:;" id="cityClose" class="close"></a></div>'}var e='<div id="cityMBox">				<div class="'+i+'" id="ctbox_1">'+c+'</div>				<div class="'+i+'" id="ctbox_2"></div>				<div class="'+i+'" id="ctbox_3"></div>				<div class="'+i+'" id="ctbox_4"></div></div>';t(this.opt.gc_shw).html(a+e);this.autoAjax(this.cache.sid,2,1)},cityClick:function(c){var i=t(c),a=i.parent(),e=this,s=true;if(a.attr("data-lnk")||a.attr("data-lnk")==""){s=false}else{if(i.attr("data-lnk")||i.attr("data-lnk")==""){s=false}}if(a.parent().hasClass("gctBox"))a.parent().find("a").removeClass("select");if(s){if(i.attr("id")&&i.attr("id")=="cityClose"){e.closeCity();return false}var n=i.attr("data-val"),h=1;if(n!=undefined){t(e.opt.gc_shw).unbind("click");n=n.split(",");h=n[2];var r=n[0],o=e.fmt(t("#ct"+r).html());if(h==1){e.cache.snam=o;e.cache.sid=r;e.setLoading("#ctbox_2,#ctbox_3,#ctbox_4",n);if(this.getPropertyCount(this.city[r])==1){this.cityClick(t("#ct"+this.singleCity[r]))}}if(h==2){e.cache.cnam=o;e.cache.cid=r;e.setLoading("#ctbox_3,#ctbox_4",n)}if(h==3){e.cache.xnam=o;e.cache.xid=r;e.setLoading("#ctbox_4",n)}if(h==4){e.cache.znam=o;e.cache.zid=r;e.inpcity()}}}else{var d=i.attr("data-val");if(d==undefined){e.opcity(i.parent().attr("data-val"))}else{e.opcity(d)}}e.winType(true)},setLoading:function(c,i){t(c).html("加载中...");this.cityajax(i[0],i[1],i[2])},getPropertyCount:function(t){var c,i=0;for(c in t){if(t.hasOwnProperty(c)){i++}}return i},winClose:function(){var c=this;t("body:first").click(function(i){var a=t(c.opt.gc_shw).attr("cityType");if(a=="true"){var e=t(c.getEvent(i)),s=e.attr("id");if(!e.attr("cityType")&&!e.parent().attr("cityType")&&!e.parent().parent().attr("cityType")&&!e.parent().parent().parent().attr("cityType")&&!e.parent().parent().parent().parent().attr("cityType")&&s!="stockaddress"&&s!="address"&&e.parent().attr("id")!="address"){c.winType(false);c.closeCity()}}else{c.closeCity()}})},winType:function(c){t(this.opt.gc_shw).attr("cityType",""+c)},cityajax:function(c,i,a){var e="",s=0;this.opcity(i);if(a==1){this.setDataClk("#pct_2",true);this.setDataClk("#pct_3,#pct_4",false);e=t("#ct"+this.cache.sid).html();s=this.cache.sid;this.cache.snam=e}if(a==2){this.setDataClk("#pct_3",true);this.setDataClk("#pct_4",false);e=t("#ct"+this.cache.cid).html();s=this.cache.cid;this.cache.cnam=e}if(a==3){this.setDataClk("#pct_4",true);e=this.fmt(t("#ct"+this.cache.xid).html());s=this.cache.xid;this.cache.xnam=e}if(a==4){e=this.fmt(t("#ct"+this.cache.zid).html());this.cache.znam=e}t("#pct_"+a).find("b").html(e);if(s!=0)this.getDataCache(s,i,c)},fmt:function(t){if(t)return t.replace("*","")},fmtAddress:function(){try{return this.cache.snam+this.cache.cnam.replace(this.cache.snam,"")+this.cache.xnam.replace(this.cache.cnam,"").replace(this.cache.snam,"")+this.cache.znam.replace(this.cache.cnam,"").replace(this.cache.snam,"")}catch(t){return""}},setDataClk:function(c,i){if(!this.opt.gc_inp){if(i){t(c).attr("data-clk",i).find("b").html("请选择")}else{t(c).hide().attr("data-clk",i).find("b").html("请选择")}}},getDataCache:function(t,c,i){if(this.obj.data("data"+t)){this.cityDom(this.obj.data("data"+t),c,t);return false}else{var e="",s={citycode:i,levelid:c};if(c==2){this.cityDom(this.city[i],c,i)}else if(c==3){e=a+s.citycode+"/3/flag/item_web/gcity_callbackarea";this.getDataAjax(i,c,e)}else{e=a+s.citycode+"/4/flag/item_web/gcity_callbackarea";this.getDataAjax(i,c,e)}}},getDataAjax:function(c,i,a){var e=this;t.ajax({type:"get",url:a,cache:true,dataType:"jsonp",data:{},jsonpName:"gcity_callbackarea",success:function(t){e.cityDom(t,i,c)}})},inpcity:function(){var c=this,i="";c.cache.chtm=c.fmtAddress();i=c.cache.chtm;if(c.opt.gc_ads){i=c.cache[c.opt.gc_ads]}t("#pct_4").find("b").html(c.cache.znam);t(c.opt.gc_aid).html(i).attr("title",i);c.closeCity();if(c.opt.gc_evt){var a=c.cache.xid;if(t("#ct"+c.cache.zid).attr("data-rid"))a=t("#ct"+c.cache.zid).attr("data-rid");c.opt.gc_evt.apply(t.extend({},c.cache,{xid:a}))}},opcity:function(c){for(var i=1;i<5;i++){if(i==c){t("#ctbox_"+i).show();t("#pct_"+i).addClass("cur").show()}else{t("#ctbox_"+i).hide();t("#pct_"+i).removeAttr("class")}}},getEvent:function(t){t=t||window.event;return t.target||t.srcElement},closeCity:function(){this.obj.removeClass("gctCur").parent().removeClass("cityShow")}};var a="//ss"+(cookieDomain||"")+"/item/v1/region/";var e={gc_dat:null,gc_css:"gctBox",gc_shw:".gCity",gc_aid:"#stockaddress",gc_ads:null,gc_inp:true,gc_upd:true,gc_slt:true,gc_new:false,gc_autofn:null,gc_group:false,gc_groupID:false,gc_evt:null},c=t.extend(e,c);this.each(function(){new i(t(this),c)})}})(jQuery);(function(e){e.fn.accordion=function(o){Array.prototype.removeValve=function(e){for(var o=0;o<this.length;o++){if(this[o]==e){this.splice(o,1);break}}};var r={boxStyle:{left:"50%",marginLeft:"-390px"},obj:".compare",objStyle:"",domain:""};var i=e.extend({},r,o);var a=this;var t=4;var c=[];var l="";var p=function(){var o={};return function(r){if(!r){return false}return e.Deferred(function(a){var t=r.replace("/","");if(o[t]){a.resolve(o[t])}else{e.ajax({type:"get",dataType:"jsonp",url:"//ss"+i.domain+"/item/v1/extra/command/detail/"+r+"/"+l+"/flag/item/fn"+t,jsonpCallback:"fn"+t}).done(function(e){o[t]=e;a.resolve(o[t])}).fail(function(e){a.reject()})}}).promise()}}();function s(o){return e.Deferred(function(r){e.when(p(o[0]),p(o[1]),p(o[2]),p(o[3])).done(function(e,o,i,a){var t=[];t.push(e,o,i,a);r.resolve(t)})}).promise()}var d=function(){var o='<div class="gm-compareBox" id="gm-compareBox"><div id="errorTips" class="errorTips">对比栏已满,您可以删除不需要的栏内商品再继续添加哦！</div><ul class="gm-compareBox-hd"><li class="tabs-hide" id="gm-compareBox-hide">隐藏</li><li class="tabs cur">对比栏(<em id="compareNum"></em>)</li></ul><div class="gm-compareBox-bd"><div class="gm-compareBox-opt"><p><a href="javascript:void(0)" class="go-commpare disable" id="go-commpare" target="_blank">对比</a></p><p><a href="javascript:void(0)" class="clear-commpare" id="gm-compareBox-clear">清空对比栏</a></p></div><ul class="gm-compareBox-list" id="gm-compareBox-list"><li class="item-compare"><div class="default"><span>1</span>您还可以继续添加</div><div class="product"></div></li><li class="item-compare"><div class="default"><span>2</span>您还可以继续添加</div><div class="product"></div></li><li class="item-compare"><div class="default"><span>3</span>您还可以继续添加</div><div class="product"></div></li><li class="item-compare"><div class="default"><span>4</span>您还可以继续添加</div><div class="product"></div></li></ul></div></div>';var r='<style type="text/css">.gm-compareBox{display:none;position:fixed;bottom:0;z-index:30;width:990px;height:142px;background:#fff;box-shadow:0 0 20px rgba(0,0,0,.19)}.gm-compareBox-hd{height:32px;border-bottom:1px solid #e6e6e6;background:#f3f3f3;line-height:32px}.gm-compareBox-hd .tabs-hide{float:right;margin-right:10px;color:#06c;cursor:pointer}.gm-compareBox-hd .tabs{float:left;width:140px;height:32px;text-align:center}.gm-compareBox-hd .cur{position:relative;border-right:1px solid #e6e6e6;border-bottom:1px solid #fff;background-color:#fff;color:#c00;font-weight:700}.gm-compareBox-bd{overflow:hidden;padding-top:25px;padding-right:110px;height:85px}.gm-compareBox-list .item-compare{position:relative;float:left;margin-right:3px;width:215px;height:84px}.gm-compareBox-list .default{padding:0 12px;width:191px;height:80px;border-bottom:4px solid #e6e6e6;color:#ccc}.gm-compareBox-list .default span{float:left;overflow:hidden;margin-right:12px;width:50px;height:50px;border:1px solid #e7e7e7;background:#f6f6f6;text-align:center;font:46px/50px "Microsoft YaHei"}.gm-compareBox-list .product{padding:0 12px 0 70px;width:133px;height:80px;border-bottom:4px solid #c00}.gm-compareBox-list .product .pic{float:left;overflow:hidden;margin-left:-58px;width:50px;height:50px;border:1px solid #e7e7e7;background:#f6f6f6;text-align:center}.gm-compareBox-list .product .pic img{width:50px;height:50px}.gm-compareBox-list .product .name{overflow:hidden;height:36px;word-wrap:break-word;word-brak:break-all}.gm-compareBox-list .product .price{color:#e3101e;display:inline-block;vertical-align:middle;margin-right:2px}.gm-compareBox-list .product .tags{display:inline-block;vertical-align:middle;height:16px;line-height:16px;color:#e3101e;border: 1px solid #e3101e;padding:0 2px}.gm-compareBox-list .product .delete{float:right;visibility:hidden;color:#06c;margin-top:2px}.gm-compareBox-list .product:hover .delete{visibility:visible}.gm-compareBox-opt{float:right;margin-right:-110px;width:110px;text-align:center}.gm-compareBox-opt .go-commpare{display:inline-block;margin-bottom:3px;width:66px;height:28px;line-height:28px;border:1px solid #e3101e;background:#e3101e;color:#fff;text-decoration:none}.gm-compareBox-opt .disable{border:1px solid #e6e6e6;background:#f8f8f8;color:#ccc;cursor:default}.gm-compareBox-opt .clear-commpare{color:#06c}.errorTips{display:none;margin-top:-36px;background:#ffdfe0;border:2px solid #fed2d3;height:32px;text-align:center;color:#cd0001;font:700 12px/32px Arial}</style>';e("body").append(r+o);c=e.cookie("compare")?e.cookie("compare").replace(/:/g,"/").split("|").splice(0,t):[];if(e.cookie("g_co")&&e.cookie("g_co")=="show"&&c.length>0){e("#gm-compareBox").css(i.boxStyle).show()}return function(){e.cookie("compare",c.join("|").replace(/\//g,":"),{expires:30,path:"/",domain:i.domain});l=e.cookie("atgregion")?e.cookie("atgregion").split("|")[2]:"11010000";e(i.obj).filter(function(){e(this).data("isCompared",false).removeAttr("style");if(e.inArray(e(this).attr("cid"),c)>=0){return true}return false}).data("isCompared",true).css(i.objStyle);e("#compareNum").text(c.length);s(c).done(m);return arguments.callee}()}();function n(e){var o={GOMEPRICE:"normal",SALEPRICE:"normal",AREAPRICE:"normal",AREASALEPRICE:"normal",TUANPRICE:"tuanqiang",RUSHBUYPRICE:"tuanqiang"};var r="",a="";switch(o[e.priceType]){case"normal":r="//item"+i.domain+"/"+e.productId+"-"+e.skuId+".html";break;case"tuanqiang":r="//item"+i.domain+"/"+e.productId+"-"+e.skuId+".html";a='<span class="tags">真划算</span>';break;default:break}return{url:r,tags:a}}function m(o){var r="";var i=[0,0,0,0];var a={};for(var c=0;c<t;c++){if(!o[c]){r+='<li class="item-compare"><div class="default"><span>'+(c+1)+"</span>您还可以继续添加</div></li>"}else{a=n(o[c].result.searchPrice);r+='<li class="item-compare"><div class="product"><a href="'+a.url+'" target="_blank" class="pic"><img src="'+o[c].result.img+'" /></a><p class="name"><a href="'+a.url+'" target="_blank">'+o[c].result.displayName+'</a></p><p><a href="javascript:void(0)" class="delete" cid="'+o[c].result.searchPrice.productId+"/"+o[c].result.searchPrice.skuId+'">删除</a><em class="price">'+(o[c].result.searchPrice.price?"¥"+o[c].result.searchPrice.price.toFixed(2):"暂无售价")+"</em>"+a.tags+"</p></div></li>";i[c]=o[c].result.searchPrice.skuId}}e("#gm-compareBox-list").empty().html(r);if(i[1]!=0){e("#go-commpare").attr("href","//www"+cookieDomain+"/compare/"+i.join("-")+".html").attr("target","_blank").removeClass("disable")}else{e("#go-commpare").attr("href","javascript:void(0)").attr("target","").addClass("disable")}}e("#gm-compareBox-hide").on("click",function(){e("#gm-compareBox").fadeOut();e.cookie("g_co","hide",{expires:30,path:"/",domain:i.domain})});e("#gm-compareBox-clear").on("click",function(){c=[];d()});e("#gm-compareBox").delegate(".delete","click",function(){c.removeValve(e(this).attr("cid"));d()});a.delegate(i.obj,"click",function(){var o=e(this);e.cookie("g_co","show",{expires:30,path:"/",domain:i.domain});e("#gm-compareBox").css(i.boxStyle).show();c=e.cookie("compare")?e.cookie("compare").replace(/:/g,"/").split("|").splice(0,t):[];if(!o.data("isCompared")){if(c.length>=t){e("#errorTips").stop(false,true).show().delay(1500).fadeOut();d();return false}c.push(o.attr("cid"))}else{c.removeValve(o.attr("cid"))}d()});return d}})(jQuery);