/* SVN.committedRevision=511651 */
(function(bo,K){function ci(){if(!J.isReady){try{aa.documentElement.doScroll("left")}catch(a){setTimeout(ci,1);return}J.ready()}}function bR(a,b){b.src?J.ajax({url:b.src,async:false,dataType:"script"}):J.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function bX(g,d,i,h,a,b){var f=g.length;if(typeof d==="object"){for(var e in d){bX(g,e,d[e],h,a,i)}return g}if(i!==K){h=!b&&h&&J.isFunction(i);for(e=0;e<f;e++){a(g[e],d,h?i.call(g[e],e,a(g[e],d)):i,b)}return g}return f?a(g[0],d):K}function V(){return(new Date).getTime()}function T(){return false}function b0(){return true}function a0(b,d,a){a[0].type=b;return J.event.handle.apply(d,a)}function cr(f){var i,l=[],m=[],e=arguments,a,g,b,k,h,d;g=J.data(this,"events");if(!(f.liveFired===this||!g||!g.live||f.button&&f.type==="click")){f.liveFired=this;
var j=g.live.slice(0);for(k=0;k<j.length;k++){g=j[k];g.origType.replace(ct,"")===f.type?m.push(g.selector):j.splice(k--,1)}a=J(f.target).closest(m,f.currentTarget);h=0;for(d=a.length;h<d;h++){for(k=0;k<j.length;k++){g=j[k];if(a[h].selector===g.selector){b=a[h].elem;m=null;if(g.preType==="mouseenter"||g.preType==="mouseleave"){m=J(f.relatedTarget).closest(g.selector)[0]}if(!m||m!==b){l.push({elem:b,handleObj:g})}}}}h=0;for(d=l.length;h<d;h++){a=l[h];f.currentTarget=a.elem;f.data=a.handleObj.data;f.handleObj=a.handleObj;if(a.handleObj.origHandler.apply(a.elem,e)===false){i=false;break}}return i}}function cu(a,b){return"live."+(a&&a!=="*"?a+".":"")+b.replace(/\./g,"`").replace(/ /g,"&")}function by(a){return !a||!a.parentNode||a.parentNode.nodeType===11}function s(b,d){var a=0;d.each(function(){if(this.nodeName===(b[a]&&b[a].nodeName)){var e=J.data(b[a++]),h=J.data(this,e);
if(e=e&&e.events){delete h.handle;h.events={};for(var g in e){for(var f in e[g]){J.event.add(this,g,e[g][f],e[g][f].data)}}}}})}function bm(e,g,a){var f,d,b;g=g&&g[0]?g[0].ownerDocument||g[0]:aa;if(e.length===1&&typeof e[0]==="string"&&e[0].length<512&&g===aa&&!N.test(e[0])&&(J.support.checkClone||!ch.test(e[0]))){d=true;if(b=J.fragments[e[0]]){if(b!==1){f=b}}}if(!f){f=g.createDocumentFragment();J.clean(e,g,f,a)}if(d){J.fragments[e[0]]=b?f:1}return{fragment:f,cacheable:d}}function b1(b,d){var a={};J.each(b6.concat.apply([],b6.slice(0,d)),function(){a[this]=b});return a}function bD(a){return"scrollTo" in a&&a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var J=function(a,b){return new J.fn.init(a,b)},ba=bo.jQuery,bT=bo.$,aa=bo.document,bF,b7=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,ck=/^.[^:#\[\.,]*$/,bZ=/\S/,w=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,cs=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,bN=navigator.userAgent,bV=false,b3=[],X,bs=Object.prototype.toString,cg=Object.prototype.hasOwnProperty,ce=Array.prototype.push,bw=Array.prototype.slice,b8=Array.prototype.indexOf;
J.fn=J.prototype={init:function(d,e){var a,b;if(!d){return this}if(d.nodeType){this.context=this[0]=d;this.length=1;return this}if(d==="body"&&!e){this.context=aa;this[0]=aa.body;this.selector="body";this.length=1;return this}if(typeof d==="string"){if((a=b7.exec(d))&&(a[1]||!e)){if(a[1]){b=e?e.ownerDocument||e:aa;if(d=cs.exec(d)){if(J.isPlainObject(e)){d=[aa.createElement(d[1])];J.fn.attr.call(d,e,true)}else{d=[b.createElement(d[1])]}}else{d=bm([a[1]],[b]);d=(d.cacheable?d.fragment.cloneNode(true):d.fragment).childNodes}return J.merge(this,d)}else{if(e=aa.getElementById(a[2])){if(e.id!==a[2]){return bF.find(d)}this.length=1;this[0]=e}this.context=aa;this.selector=d;return this}}else{if(!e&&/^\w+$/.test(d)){this.selector=d;this.context=aa;d=aa.getElementsByTagName(d);return J.merge(this,d)}else{return !e||e.jquery?(e||bF).find(d):J(e).find(d)
}}}else{if(J.isFunction(d)){return bF.ready(d)}}if(d.selector!==K){this.selector=d.selector;this.context=d.context}return J.makeArray(d,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return bw.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(d,e,a){var b=J();J.isArray(d)?ce.apply(b,d):J.merge(b,d);b.prevObject=this;b.context=this.context;if(e==="find"){b.selector=this.selector+(this.selector?" ":"")+a}else{if(e){b.selector=this.selector+"."+e+"("+a+")"}}return b},each:function(a,b){return J.each(this,a,b)},ready:function(a){J.bindReady();if(J.isReady){a.call(aa,J)}else{b3&&b3.push(a)}return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)
},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(bw.apply(this,arguments),"slice",bw.call(arguments).join(","))},map:function(a){return this.pushStack(J.map(this,function(d,b){return a.call(d,b,d)}))},end:function(){return this.prevObject||J(null)},push:ce,sort:[].sort,splice:[].splice};J.fn.init.prototype=J.fn;J.extend=J.fn.extend=function(){var g=arguments[0]||{},d=1,i=arguments.length,h=false,a,b,f,e;if(typeof g==="boolean"){h=g;g=arguments[1]||{};d=2}if(typeof g!=="object"&&!J.isFunction(g)){g={}}if(i===d){g=this;--d}for(;d<i;d++){if((a=arguments[d])!=null){for(b in a){f=g[b];e=a[b];if(g!==e){if(h&&e&&(J.isPlainObject(e)||J.isArray(e))){f=f&&(J.isPlainObject(f)||J.isArray(f))?f:J.isArray(e)?[]:{};g[b]=J.extend(h,f,e)}else{if(e!==K){g[b]=e}}}}}}return g};J.extend({noConflict:function(a){bo.$=bT;
if(a){bo.jQuery=ba}return J},isReady:false,ready:function(){if(!J.isReady){if(!aa.body){return setTimeout(J.ready,13)}J.isReady=true;if(b3){for(var a,b=0;a=b3[b++];){a.call(aa,J)}b3=null}J.fn.triggerHandler&&J(aa).triggerHandler("ready")}},bindReady:function(){if(!bV){bV=true;if(aa.readyState==="complete"){return J.ready()}if(aa.addEventListener){aa.addEventListener("DOMContentLoaded",X,false);bo.addEventListener("load",J.ready,false)}else{if(aa.attachEvent){aa.attachEvent("onreadystatechange",X);bo.attachEvent("onload",J.ready);var a=false;try{a=bo.frameElement==null}catch(b){}aa.documentElement.doScroll&&a&&ci()}}}},isFunction:function(a){return bs.call(a)==="[object Function]"},isArray:function(a){return bs.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||bs.call(a)!=="[object Object]"||a.nodeType||a.setInterval){return false
}if(a.constructor&&!cg.call(a,"constructor")&&!cg.call(a.constructor.prototype,"isPrototypeOf")){return false}var b;for(b in a){}return b===K||cg.call(a,b)},isEmptyObject:function(a){for(var b in a){return false}return true},error:function(a){throw a},parseJSON:function(a){if(typeof a!=="string"||!a){return null}a=J.trim(a);if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){return bo.JSON&&bo.JSON.parse?bo.JSON.parse(a):(new Function("return "+a))()}else{J.error("Invalid JSON: "+a)}},noop:function(){},globalEval:function(b){if(b&&bZ.test(b)){var d=aa.getElementsByTagName("head")[0]||aa.documentElement,a=aa.createElement("script");a.type="text/javascript";
if(J.support.scriptEval){a.appendChild(aa.createTextNode(b))}else{a.text=b}d.insertBefore(a,d.firstChild);d.removeChild(a)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(f,h,d){var g,a=0,b=f.length,e=b===K||J.isFunction(f);if(d){if(e){for(g in f){if(h.apply(f[g],d)===false){break}}}else{for(;a<b;){if(h.apply(f[a++],d)===false){break}}}}else{if(e){for(g in f){if(h.call(f[g],g,f[g])===false){break}}}else{for(d=f[0];a<b&&h.call(d,a,d)!==false;d=f[++a]){}}}return f},trim:function(a){return(a||"").replace(w,"")},makeArray:function(a,b){b=b||[];if(a!=null){a.length==null||typeof a==="string"||J.isFunction(a)||typeof a!=="function"&&a.setInterval?ce.call(b,a):J.merge(b,a)}return b},inArray:function(d,e){if(e.indexOf){return e.indexOf(d)}for(var a=0,b=e.length;
a<b;a++){if(e[a]===d){return a}}return -1},merge:function(d,f){var e=d.length,b=0;if(typeof f.length==="number"){for(var a=f.length;b<a;b++){d[e++]=f[b]}}else{for(;f[b]!==K;){d[e++]=f[b++]}}d.length=e;return d},grep:function(e,g,a){for(var f=[],d=0,b=e.length;d<b;d++){!a!==!g(e[d],d)&&f.push(e[d])}return f},map:function(f,h,d){for(var g=[],a,b=0,e=f.length;b<e;b++){a=h(f[b],b,d);if(a!=null){g[g.length]=a}}return g.concat.apply([],g)},guid:1,proxy:function(b,d,a){if(arguments.length===2){if(typeof d==="string"){a=b;b=a[d];d=K}else{if(d&&!J.isFunction(d)){a=d;d=K}}}if(!d&&b){d=function(){return b.apply(a||this,arguments)}}if(b){d.guid=b.guid=b.guid||d.guid||J.guid++}return d},uaMatch:function(a){a=a.toLowerCase();a=/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||!/compatible/.test(a)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(a)||[];
return{browser:a[1]||"",version:a[2]||"0"}},browser:{}});bN=J.uaMatch(bN);if(bN.browser){J.browser[bN.browser]=true;J.browser.version=bN.version}if(J.browser.webkit){J.browser.safari=true}if(b8){J.inArray=function(a,b){return b8.call(b,a)}}bF=J(aa);if(aa.addEventListener){X=function(){aa.removeEventListener("DOMContentLoaded",X,false);J.ready()}}else{if(aa.attachEvent){X=function(){if(aa.readyState==="complete"){aa.detachEvent("onreadystatechange",X);J.ready()}}}}(function(){J.support={};var h=aa.documentElement,i=aa.createElement("script"),g=aa.createElement("div"),a="script"+V();g.style.display="none";g.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var j=g.getElementsByTagName("*"),d=g.getElementsByTagName("a")[0];
if(!(!j||!j.length||!d)){J.support={leadingWhitespace:g.firstChild.nodeType===3,tbody:!g.getElementsByTagName("tbody").length,htmlSerialize:!!g.getElementsByTagName("link").length,style:/red/.test(d.getAttribute("style")),hrefNormalized:d.getAttribute("href")==="/a",opacity:/^0.55$/.test(d.style.opacity),cssFloat:!!d.style.cssFloat,checkOn:g.getElementsByTagName("input")[0].value==="on",optSelected:aa.createElement("select").appendChild(aa.createElement("option")).selected,parentNode:g.removeChild(g.appendChild(aa.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};i.type="text/javascript";try{i.appendChild(aa.createTextNode("window."+a+"=1;"))}catch(e){}h.insertBefore(i,h.firstChild);if(bo[a]){J.support.scriptEval=true;
delete bo[a]}try{delete i.test}catch(f){J.support.deleteExpando=false}h.removeChild(i);if(g.attachEvent&&g.fireEvent){g.attachEvent("onclick",function b(){J.support.noCloneEvent=false;g.detachEvent("onclick",b)});g.cloneNode(true).fireEvent("onclick")}g=aa.createElement("div");g.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";h=aa.createDocumentFragment();h.appendChild(g.firstChild);J.support.checkClone=h.cloneNode(true).cloneNode(true).lastChild.checked;J(function(){var k=aa.createElement("div");k.style.width=k.style.paddingLeft="1px";aa.body.appendChild(k);J.boxModel=J.support.boxModel=k.offsetWidth===2;aa.body.removeChild(k).style.display="none"});h=function(m){var k=aa.createElement("div");m="on"+m;var l=m in k;if(!l){k.setAttribute(m,"return;");l=typeof k[m]==="function"
}return l};J.support.submitBubbles=h("submit");J.support.changeBubbles=h("change");h=i=g=j=d=null}})();J.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var bx="jQuery"+V(),bQ=0,bb={};J.extend({cache:{},expando:bx,noData:{embed:true,object:true,applet:true},data:function(d,f,e){if(!(d.nodeName&&J.noData[d.nodeName.toLowerCase()])){d=d==bo?bb:d;var b=d[bx],a=J.cache;if(!b&&typeof f==="string"&&e===K){return null}b||(b=++bQ);if(typeof f==="object"){d[bx]=b;a[b]=J.extend(true,{},f)}else{if(!a[b]){d[bx]=b;a[b]={}}}d=a[b];if(e!==K){d[f]=e}return typeof f==="string"?d[f]:d}},removeData:function(d,f){if(!(d.nodeName&&J.noData[d.nodeName.toLowerCase()])){d=d==bo?bb:d;
var e=d[bx],b=J.cache,a=b[e];if(f){if(a){delete a[f];J.isEmptyObject(a)&&J.removeData(d)}}else{if(J.support.deleteExpando){delete d[J.expando]}else{d.removeAttribute&&d.removeAttribute(J.expando)}delete b[e]}}}});J.fn.extend({data:function(d,e){if(typeof d==="undefined"&&this.length){return J.data(this[0])}else{if(typeof d==="object"){return this.each(function(){J.data(this,d)})}}var a=d.split(".");a[1]=a[1]?"."+a[1]:"";if(e===K){var b=this.triggerHandler("getData"+a[1]+"!",[a[0]]);if(b===K&&this.length){b=J.data(this[0],d)}return b===K&&a[1]?this.data(a[0]):b}else{return this.trigger("setData"+a[1]+"!",[a[0],e]).each(function(){J.data(this,d,e)})}},removeData:function(a){return this.each(function(){J.removeData(this,a)})}});J.extend({queue:function(d,e,a){if(d){e=(e||"fx")+"queue";var b=J.data(d,e);
if(!a){return b||[]}if(!b||J.isArray(a)){b=J.data(d,e,J.makeArray(a))}else{b.push(a)}return b}},dequeue:function(d,e){e=e||"fx";var a=J.queue(d,e),b=a.shift();if(b==="inprogress"){b=a.shift()}if(b){e==="fx"&&a.unshift("inprogress");b.call(d,function(){J.dequeue(d,e)})}}});J.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===K){return J.queue(this[0],a)}return this.each(function(){var d=J.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&J.dequeue(this,a)})},dequeue:function(a){return this.each(function(){J.dequeue(this,a)})},delay:function(a,b){a=J.fx?J.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){J.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var bB=/[\n\t]/g,bM=/\s+/,b5=/\r/g,R=/href|src|style/,bH=/(button|input)/i,bP=/(button|input|object|select|textarea)/i,cm=/^(a|area)$/i,b2=/radio|checkbox/;
J.fn.extend({attr:function(a,b){return bX(this,a,b,true,J.attr)},removeAttr:function(a){return this.each(function(){J.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(h){if(J.isFunction(h)){return this.each(function(k){var l=J(this);l.addClass(h.call(this,k,l.attr("class")))})}if(h&&typeof h==="string"){for(var i=(h||"").split(bM),g=0,a=this.length;g<a;g++){var j=this[g];if(j.nodeType===1){if(j.className){for(var d=" "+j.className+" ",e=j.className,f=0,b=i.length;f<b;f++){if(d.indexOf(" "+i[f]+" ")<0){e+=" "+i[f]}}j.className=J.trim(e)}else{j.className=h}}}}return this},removeClass:function(g){if(J.isFunction(g)){return this.each(function(j){var k=J(this);k.removeClass(g.call(this,j,k.attr("class")))})}if(g&&typeof g==="string"||g===K){for(var d=(g||"").split(bM),i=0,h=this.length;
i<h;i++){var a=this[i];if(a.nodeType===1&&a.className){if(g){for(var b=(" "+a.className+" ").replace(bB," "),f=0,e=d.length;f<e;f++){b=b.replace(" "+d[f]+" "," ")}a.className=J.trim(b)}else{a.className=""}}}}return this},toggleClass:function(d,e){var a=typeof d,b=typeof e==="boolean";if(J.isFunction(d)){return this.each(function(f){var g=J(this);g.toggleClass(d.call(this,f,g.attr("class"),e),e)})}return this.each(function(){if(a==="string"){for(var g,i=0,h=J(this),f=e,j=d.split(bM);g=j[i++];){f=b?f:!h.hasClass(g);h[f?"addClass":"removeClass"](g)}}else{if(a==="undefined"||a==="boolean"){this.className&&J.data(this,"__className__",this.className);this.className=this.className||d===false?"":J.data(this,"__className__")||""}}})},hasClass:function(b){b=" "+b+" ";for(var d=0,a=this.length;d<a;d++){if((" "+this[d].className+" ").replace(bB," ").indexOf(b)>-1){return true
}}return false},val:function(g){if(g===K){var d=this[0];if(d){if(J.nodeName(d,"option")){return(d.attributes.value||{}).specified?d.value:d.text}if(J.nodeName(d,"select")){var i=d.selectedIndex,h=[],a=d.options;d=d.type==="select-one";if(i<0){return null}var b=d?i:0;for(i=d?i+1:a.length;b<i;b++){var f=a[b];if(f.selected){g=J(f).val();if(d){return g}h.push(g)}}return h}if(b2.test(d.type)&&!J.support.checkOn){return d.getAttribute("value")===null?"on":d.value}return(d.value||"").replace(b5,"")}return K}var e=J.isFunction(g);return this.each(function(l){var m=J(this),j=g;if(this.nodeType===1){if(e){j=g.call(this,l,m.val())}if(typeof j==="number"){j+=""}if(J.isArray(j)&&b2.test(this.type)){this.checked=J.inArray(m.val(),j)>=0}else{if(J.nodeName(this,"select")){var k=J.makeArray(j);J("option",this).each(function(){this.selected=J.inArray(J(this).val(),k)>=0
});if(!k.length){this.selectedIndex=-1}}else{this.value=j}}}})}});J.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(e,g,a,f){if(!e||e.nodeType===3||e.nodeType===8){return K}if(f&&g in J.attrFn){return J(e)[g](a)}f=e.nodeType!==1||!J.isXMLDoc(e);var d=a!==K;g=f&&J.props[g]||g;if(e.nodeType===1){var b=R.test(g);if(g in e&&f&&!b){if(d){g==="type"&&bH.test(e.nodeName)&&e.parentNode&&J.error("type property can't be changed");e[g]=a}if(J.nodeName(e,"form")&&e.getAttributeNode(g)){return e.getAttributeNode(g).nodeValue}if(g==="tabIndex"){return(g=e.getAttributeNode("tabIndex"))&&g.specified?g.value:bP.test(e.nodeName)||cm.test(e.nodeName)&&e.href?0:K}return e[g]}if(!J.support.style&&f&&g==="style"){if(d){e.style.cssText=""+a}return e.style.cssText
}d&&e.setAttribute(g,""+a);e=!J.support.hrefNormalized&&f&&b?e.getAttribute(g,2):e.getAttribute(g);return e===null?K:e}return J.style(e,g,a)}});var ct=/\.(.*)$/,bJ=function(a){return a.replace(/[^\w\s\.\|`]/g,function(b){return"\\"+b})};J.event={add:function(n,h,m,k){if(!(n.nodeType===3||n.nodeType===8)){if(n.setInterval&&n!==bo&&!n.frameElement){n=bo}var e,a;if(m.handler){e=m;m=e.handler}if(!m.guid){m.guid=J.guid++}if(a=J.data(n)){var f=a.events=a.events||{},j=a.handle;if(!j){a.handle=j=function(){return typeof J!=="undefined"&&!J.event.triggered?J.event.handle.apply(j.elem,arguments):K}}j.elem=n;h=h.split(" ");for(var i,g=0,d;i=h[g++];){a=e?J.extend({},e):{handler:m,data:k};if(i.indexOf(".")>-1){d=i.split(".");i=d.shift();a.namespace=d.slice(0).sort().join(".")}else{d=[];a.namespace=""}a.type=i;
a.guid=m.guid;var l=f[i],b=J.event.special[i]||{};if(!l){l=f[i]=[];if(!b.setup||b.setup.call(n,k,d,j)===false){if(n.addEventListener){n.addEventListener(i,j,false)}else{n.attachEvent&&n.attachEvent("on"+i,j)}}}if(b.add){b.add.call(n,a);if(!a.handler.guid){a.handler.guid=m.guid}}l.push(a);J.event.global[i]=true}n=null}}},global:{},remove:function(l,o,j,n){if(!(l.nodeType===3||l.nodeType===8)){var k,p=0,e,h,f,a,d,i,m=J.data(l),b=m&&m.events;if(m&&b){if(o&&o.type){j=o.handler;o=o.type}if(!o||typeof o==="string"&&o.charAt(0)==="."){o=o||"";for(k in b){J.event.remove(l,k+o)}}else{for(o=o.split(" ");k=o[p++];){a=k;e=k.indexOf(".")<0;h=[];if(!e){h=k.split(".");k=h.shift();f=new RegExp("(^|\\.)"+J.map(h.slice(0).sort(),bJ).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(d=b[k]){if(j){a=J.event.special[k]||{};for(g=n||0;
g<d.length;g++){i=d[g];if(j.guid===i.guid){if(e||f.test(i.namespace)){n==null&&d.splice(g--,1);a.remove&&a.remove.call(l,i)}if(n!=null){break}}}if(d.length===0||n!=null&&d.length===1){if(!a.teardown||a.teardown.call(l,h)===false){bp(l,k,m.handle)}delete b[k]}}else{for(var g=0;g<d.length;g++){i=d[g];if(e||f.test(i.namespace)){J.event.remove(l,a,i.handler,g);d.splice(g--,1)}}}}}if(J.isEmptyObject(b)){if(o=m.handle){o.elem=null}delete m.events;delete m.handle;J.isEmptyObject(m)&&J.removeData(l)}}}}},trigger:function(f,i,g,j){var k=f.type||f;if(!j){f=typeof f==="object"?f[bx]?f:J.extend(J.Event(k),f):J.Event(k);if(k.indexOf("!")>=0){f.type=k=k.slice(0,-1);f.exclusive=true}if(!g){f.stopPropagation();J.event.global[k]&&J.each(J.cache,function(){this.events&&this.events[k]&&J.event.trigger(f,i,this.handle.elem)
})}if(!g||g.nodeType===3||g.nodeType===8){return K}f.result=K;f.target=g;i=J.makeArray(i);i.unshift(f)}f.currentTarget=g;(j=J.data(g,"handle"))&&j.apply(g,i);j=g.parentNode||g.ownerDocument;try{if(!(g&&g.nodeName&&J.noData[g.nodeName.toLowerCase()])){if(g["on"+k]&&g["on"+k].apply(g,i)===false){f.result=false}}}catch(d){}if(!f.isPropagationStopped()&&j){J.event.trigger(f,i,j,true)}else{if(!f.isDefaultPrevented()){j=f.target;var a,e=J.nodeName(j,"a")&&k==="click",h=J.event.special[k]||{};if((!h._default||h._default.call(g,f)===false)&&!e&&!(j&&j.nodeName&&J.noData[j.nodeName.toLowerCase()])){try{if(j[k]){if(a=j["on"+k]){j["on"+k]=null}J.event.triggered=true;j[k]()}}catch(b){}if(a){j["on"+k]=a}J.event.triggered=false}}}},handle:function(f){var h,d,g,a;f=arguments[0]=J.event.fix(f||bo.event);f.currentTarget=this;
h=f.type.indexOf(".")<0&&!f.exclusive;if(!h){d=f.type.split(".");f.type=d.shift();g=new RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}a=J.data(this,"events");d=a[f.type];if(a&&d){d=d.slice(0);a=0;for(var b=d.length;a<b;a++){var e=d[a];if(h||g.test(e.namespace)){f.handler=e.handler;f.data=e.data;f.handleObj=e;e=e.handler.apply(this,arguments);if(e!==K){f.result=e;if(e===false){f.preventDefault();f.stopPropagation()}}if(f.isImmediatePropagationStopped()){break}}}}return f.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(d){if(d[bx]){return d
}var e=d;d=J.Event(e);for(var a=this.props.length,b;a;){b=this.props[--a];d[b]=e[b]}if(!d.target){d.target=d.srcElement||aa}if(d.target.nodeType===3){d.target=d.target.parentNode}if(!d.relatedTarget&&d.fromElement){d.relatedTarget=d.fromElement===d.target?d.toElement:d.fromElement}if(d.pageX==null&&d.clientX!=null){e=aa.documentElement;a=aa.body;d.pageX=d.clientX+(e&&e.scrollLeft||a&&a.scrollLeft||0)-(e&&e.clientLeft||a&&a.clientLeft||0);d.pageY=d.clientY+(e&&e.scrollTop||a&&a.scrollTop||0)-(e&&e.clientTop||a&&a.clientTop||0)}if(!d.which&&(d.charCode||d.charCode===0?d.charCode:d.keyCode)){d.which=d.charCode||d.keyCode}if(!d.metaKey&&d.ctrlKey){d.metaKey=d.ctrlKey}if(!d.which&&d.button!==K){d.which=d.button&1?1:d.button&2?3:d.button&4?2:0}return d},guid:100000000,proxy:J.proxy,special:{ready:{setup:J.bindReady,teardown:J.noop},live:{add:function(a){J.event.add(this,a.origType,J.extend({},a,{handler:cr}))
},remove:function(b){var d=true,a=b.origType.replace(ct,"");J.each(J.data(this,"events").live||[],function(){if(a===this.origType.replace(ct,"")){return d=false}});d&&J.event.remove(this,b.origType,cr)}},beforeunload:{setup:function(b,d,a){if(this.setInterval){this.onbeforeunload=a}return false},teardown:function(a,b){if(this.onbeforeunload===b){this.onbeforeunload=null}}}}};var bp=aa.removeEventListener?function(b,d,a){b.removeEventListener(d,a,false)}:function(b,d,a){b.detachEvent("on"+d,a)};J.Event=function(a){if(!this.preventDefault){return new J.Event(a)}if(a&&a.type){this.originalEvent=a;this.type=a.type}else{this.type=a}this.timeStamp=V();this[bx]=true};J.Event.prototype={preventDefault:function(){this.isDefaultPrevented=b0;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();
a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=b0;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=b0;this.stopPropagation()},isDefaultPrevented:T,isPropagationStopped:T,isImmediatePropagationStopped:T};var bA=function(b){var d=b.relatedTarget;try{for(;d&&d!==this;){d=d.parentNode}if(d!==this){b.type=b.data;J.event.handle.apply(this,arguments)}}catch(a){}},bz=function(a){a.type=a.data;J.event.handle.apply(this,arguments)};J.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){J.event.special[a]={setup:function(d){J.event.add(this,b,d&&d.selector?bz:bA,a)},teardown:function(d){J.event.remove(this,b,d&&d.selector?bz:bA)}}});if(!J.support.submitBubbles){J.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!=="form"){J.event.add(this,"click.specialSubmit",function(b){var d=b.target,a=d.type;
if((a==="submit"||a==="image")&&J(d).closest("form").length){return a0("submit",this,arguments)}});J.event.add(this,"keypress.specialSubmit",function(b){var d=b.target,a=d.type;if((a==="text"||a==="password")&&J(d).closest("form").length&&b.keyCode===13){return a0("submit",this,arguments)}})}else{return false}},teardown:function(){J.event.remove(this,".specialSubmit")}}}if(!J.support.changeBubbles){var bS=/textarea|input|select/i,cp,bq=function(b){var d=b.type,a=b.value;if(d==="radio"||d==="checkbox"){a=b.checked}else{if(d==="select-multiple"){a=b.selectedIndex>-1?J.map(b.options,function(e){return e.selected}).join("-"):""}else{if(b.nodeName.toLowerCase()==="select"){a=b.selectedIndex}}}return a},P=function(d,f){var e=d.target,b,a;if(!(!bS.test(e.nodeName)||e.readOnly)){b=J.data(e,"_change_data");
a=bq(e);if(d.type!=="focusout"||e.type!=="radio"){J.data(e,"_change_data",a)}if(!(b===K||a===b)){if(b!=null||a){d.type="change";return J.event.trigger(d,f,e)}}}};J.event.special.change={filters:{focusout:P,click:function(b){var d=b.target,a=d.type;if(a==="radio"||a==="checkbox"||d.nodeName.toLowerCase()==="select"){return P.call(this,b)}},keydown:function(b){var d=b.target,a=d.type;if(b.keyCode===13&&d.nodeName.toLowerCase()!=="textarea"||b.keyCode===32&&(a==="checkbox"||a==="radio")||a==="select-multiple"){return P.call(this,b)}},beforeactivate:function(a){a=a.target;J.data(a,"_change_data",bq(a))}},setup:function(){if(this.type==="file"){return false}for(var a in cp){J.event.add(this,a+".specialChange",cp[a])}return bS.test(this.nodeName)},teardown:function(){J.event.remove(this,".specialChange");
return bS.test(this.nodeName)}};cp=J.event.special.change.filters}aa.addEventListener&&J.each({focus:"focusin",blur:"focusout"},function(b,d){function a(e){e=J.event.fix(e);e.type=d;return J.event.handle.call(this,e)}J.event.special[d]={setup:function(){this.addEventListener(b,a,true)},teardown:function(){this.removeEventListener(b,a,true)}}});J.each(["bind","one"],function(a,b){J.fn[b]=function(f,d,h){if(typeof f==="object"){for(var e in f){this[b](e,d,f[e],h)}return this}if(J.isFunction(d)){h=d;d=K}var i=b==="one"?J.proxy(h,function(j){J(this).unbind(j,i);return h.apply(this,arguments)}):h;if(f==="unload"&&b!=="one"){this.one(f,d,h)}else{e=0;for(var g=this.length;e<g;e++){J.event.add(this[e],f,i,d)}}return this}});J.fn.extend({unbind:function(d,e){if(typeof d==="object"&&!d.preventDefault){for(var a in d){this.unbind(a,d[a])
}}else{a=0;for(var b=this.length;a<b;a++){J.event.remove(this[a],d,e)}}return this},delegate:function(d,e,a,b){return this.live(e,a,b,d)},undelegate:function(b,d,a){return arguments.length===0?this.unbind("live"):this.die(d,null,a,b)},trigger:function(a,b){return this.each(function(){J.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){a=J.Event(a);a.preventDefault();a.stopPropagation();J.event.trigger(a,b,this[0]);return a.result}},toggle:function(b){for(var d=arguments,a=1;a<d.length;){J.proxy(b,d[a++])}return this.click(J.proxy(b,function(e){var f=(J.data(this,"lastToggle"+b.guid)||0)%a;J.data(this,"lastToggle"+b.guid,f+1);e.preventDefault();return d[f].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var F={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};
J.each(["live","die"],function(a,b){J.fn[b]=function(d,f,e,h){var g,j=0,i,m,k=h||this.selector,l=h?this:J(this.context);if(J.isFunction(f)){e=f;f=K}for(d=(d||"").split(" ");(g=d[j++])!=null;){h=ct.exec(g);i="";if(h){i=h[0];g=g.replace(ct,"")}if(g==="hover"){d.push("mouseenter"+i,"mouseleave"+i)}else{m=g;if(g==="focus"||g==="blur"){d.push(F[g]+i);g+=i}else{g=(F[g]||g)+i}b==="live"?l.each(function(){J.event.add(this,cu(g,k),{data:f,selector:k,handler:e,origType:g,origHandler:e,preType:m})}):l.unbind(cu(g,k),e)}}return this}});J.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".split(" "),function(a,b){J.fn[b]=function(d){return d?this.bind(b,d):this.trigger(b)
};if(J.attrFn){J.attrFn[b]=true}});bo.attachEvent&&!bo.addEventListener&&bo.attachEvent("onunload",function(){for(var a in J.cache){if(J.cache[a].handle){try{J.event.remove(J.cache[a].handle.elem)}catch(b){}}}});(function(){function b(u){for(var x="",y,v=0;u[v];v++){y=u[v];if(y.nodeType===3||y.nodeType===4){x+=y.nodeValue}else{if(y.nodeType!==8){x+=b(y.childNodes)}}}return x}function d(y,z,B,C,E,D){E=0;for(var x=C.length;E<x;E++){var u=C[E];if(u){u=u[y];for(var v=false;u;){if(u.sizcache===B){v=C[u.sizset];break}if(u.nodeType===1&&!D){u.sizcache=B;u.sizset=E}if(u.nodeName.toLowerCase()===z){v=u;break}u=u[y]}C[E]=v}}}function e(y,z,B,C,E,D){E=0;for(var x=C.length;E<x;E++){var u=C[E];if(u){u=u[y];for(var v=false;u;){if(u.sizcache===B){v=C[u.sizset];break}if(u.nodeType===1){if(!D){u.sizcache=B;
u.sizset=E}if(typeof z!=="string"){if(u===z){v=true;break}}else{if(j.filter(z,[u]).length>0){v=u;break}}}u=u[y]}C[E]=v}}}var g=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,f=0,i=Object.prototype.toString,h=false,l=true;[0,0].sort(function(){l=false;return 0});var j=function(I,v,U,H){U=U||[];var y=v=v||aa;if(v.nodeType!==1&&v.nodeType!==9){return[]}if(!I||typeof I!=="string"){return U}for(var S=[],C,M,E,u,x=true,B=n(v),D=I;(g.exec(""),C=g.exec(D))!==null;){D=C[3];S.push(C[1]);if(C[2]){u=C[3];break}}if(S.length>1&&p.exec(I)){if(S.length===2&&k.relative[S[0]]){M=a(S[0]+S[1],v)}else{for(M=k.relative[S[0]]?[v]:j(S.shift(),v);S.length;){I=S.shift();if(k.relative[I]){I+=S.shift()}M=a(I,M)}}}else{if(!H&&S.length>1&&v.nodeType===9&&!B&&k.match.ID.test(S[0])&&!k.match.ID.test(S[S.length-1])){C=j.find(S.shift(),v,B);
v=C.expr?j.filter(C.expr,C.set)[0]:C.set[0]}if(v){C=H?{expr:S.pop(),set:t(H)}:j.find(S.pop(),S.length===1&&(S[0]==="~"||S[0]==="+")&&v.parentNode?v.parentNode:v,B);M=C.expr?j.filter(C.expr,C.set):C.set;if(S.length>0){E=t(M)}else{x=false}for(;S.length;){var z=S.pop();C=z;if(k.relative[z]){C=S.pop()}else{z=""}if(C==null){C=v}k.relative[z](E,C,B)}}else{E=[]}}E||(E=M);E||j.error(z||I);if(i.call(E)==="[object Array]"){if(x){if(v&&v.nodeType===1){for(I=0;E[I]!=null;I++){if(E[I]&&(E[I]===true||E[I].nodeType===1&&q(v,E[I]))){U.push(M[I])}}}else{for(I=0;E[I]!=null;I++){E[I]&&E[I].nodeType===1&&U.push(M[I])}}}else{U.push.apply(U,E)}}else{t(E,U)}if(u){j(u,y,U,H);j.uniqueSort(U)}return U};j.uniqueSort=function(u){if(m){h=l;u.sort(m);if(h){for(var v=1;v<u.length;v++){u[v]===u[v-1]&&u.splice(v--,1)}}}return u
};j.matches=function(u,v){return j(u,null,null,v)};j.find=function(y,z,B){var C,E;if(!y){return[]}for(var D=0,x=k.order.length;D<x;D++){var u=k.order[D];if(E=k.leftMatch[u].exec(y)){var v=E[1];E.splice(1,1);if(v.substr(v.length-1)!=="\\"){E[1]=(E[1]||"").replace(/\\/g,"");C=k.find[u](E,z,B);if(C!=null){y=y.replace(k.match[u],"");break}}}}C||(C=z.getElementsByTagName("*"));return{set:C,expr:y}};j.filter=function(ad,ac,y,v){for(var H=ad,U=[],C=ac,S,u,M=ac&&ac[0]&&n(ac[0]);ad&&ac.length;){for(var E in k.filter){if((S=k.leftMatch[E].exec(ad))!=null&&S[2]){var D=k.filter[E],B,z;z=S[1];u=false;S.splice(1,1);if(z.substr(z.length-1)!=="\\"){if(C===U){U=[]}if(k.preFilter[E]){if(S=k.preFilter[E](S,C,y,U,v,M)){if(S===true){continue}}else{u=B=true}}if(S){for(var I=0;(z=C[I])!=null;I++){if(z){B=D(z,S,I,C);
var x=v^!!B;if(y&&B!=null){if(x){u=true}else{C[I]=false}}else{if(x){U.push(z);u=true}}}}}if(B!==K){y||(C=U);ad=ad.replace(k.match[E],"");if(!u){return[]}break}}}}if(ad===H){if(u==null){j.error(ad)}else{break}}H=ad}return C};j.error=function(u){throw"Syntax error, unrecognized expression: "+u};var k=j.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|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(u){return u.getAttribute("href")
}},relative:{"+":function(u,x){var z=typeof x==="string",v=z&&!/\W/.test(x);z=z&&!v;if(v){x=x.toLowerCase()}v=0;for(var y=u.length,B;v<y;v++){if(B=u[v]){for(;(B=B.previousSibling)&&B.nodeType!==1;){}u[v]=z||B&&B.nodeName.toLowerCase()===x?B||false:B===x}}z&&j.filter(x,u,true)},">":function(u,x){var z=typeof x==="string";if(z&&!/\W/.test(x)){x=x.toLowerCase();for(var v=0,y=u.length;v<y;v++){var B=u[v];if(B){z=B.parentNode;u[v]=z.nodeName.toLowerCase()===x?z:false}}}else{v=0;for(y=u.length;v<y;v++){if(B=u[v]){u[v]=z?B.parentNode:B.parentNode===x}}z&&j.filter(x,u,true)}},"":function(u,x,z){var v=f++,y=e;if(typeof x==="string"&&!/\W/.test(x)){var B=x=x.toLowerCase();y=d}y("parentNode",x,v,u,B,z)},"~":function(u,x,z){var v=f++,y=e;if(typeof x==="string"&&!/\W/.test(x)){var B=x=x.toLowerCase();y=d
}y("previousSibling",x,v,u,B,z)}},find:{ID:function(v,u,x){if(typeof u.getElementById!=="undefined"&&!x){return(v=u.getElementById(v[1]))?[v]:[]}},NAME:function(y,z){if(typeof z.getElementsByName!=="undefined"){var x=[];z=z.getElementsByName(y[1]);for(var u=0,v=z.length;u<v;u++){z[u].getAttribute("name")===y[1]&&x.push(z[u])}return x.length===0?null:x}},TAG:function(u,v){return v.getElementsByTagName(u[1])}},preFilter:{CLASS:function(C,u,x,z,B,y){C=" "+C[1].replace(/\\/g,"")+" ";if(y){return C}y=0;for(var v;(v=u[y])!=null;y++){if(v){if(B^(v.className&&(" "+v.className+" ").replace(/[\t\n]/g," ").indexOf(C)>=0)){x||z.push(v)}else{if(x){u[y]=false}}}}return false},ID:function(u){return u[1].replace(/\\/g,"")},TAG:function(u){return u[1].toLowerCase()},CHILD:function(u){if(u[1]==="nth"){var v=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(u[2]==="even"&&"2n"||u[2]==="odd"&&"2n+1"||!/\D/.test(u[2])&&"0n+"+u[2]||u[2]);
u[2]=v[1]+(v[2]||1)-0;u[3]=v[3]-0}u[0]=f++;return u},ATTR:function(u,x,z,v,y,B){x=u[1].replace(/\\/g,"");if(!B&&k.attrMap[x]){u[1]=k.attrMap[x]}if(u[2]==="~="){u[4]=" "+u[4]+" "}return u},PSEUDO:function(y,z,x,u,v){if(y[1]==="not"){if((g.exec(y[3])||"").length>1||/^\w/.test(y[3])){y[3]=j(y[3],null,null,z)}else{y=j.filter(y[3],z,x,true^v);x||u.push.apply(u,y);return false}}else{if(k.match.POS.test(y[0])||k.match.CHILD.test(y[0])){return true}}return y},POS:function(u){u.unshift(true);return u}},filters:{enabled:function(u){return u.disabled===false&&u.type!=="hidden"},disabled:function(u){return u.disabled===true},checked:function(u){return u.checked===true},selected:function(u){return u.selected===true},parent:function(u){return !!u.firstChild},empty:function(u){return !u.firstChild},has:function(v,u,x){return !!j(x[3],v).length
},header:function(u){return/h\d/i.test(u.nodeName)},text:function(u){return"text"===u.type},radio:function(u){return"radio"===u.type},checkbox:function(u){return"checkbox"===u.type},file:function(u){return"file"===u.type},password:function(u){return"password"===u.type},submit:function(u){return"submit"===u.type},image:function(u){return"image"===u.type},reset:function(u){return"reset"===u.type},button:function(u){return"button"===u.type||u.nodeName.toLowerCase()==="button"},input:function(u){return/input|select|textarea|button/i.test(u.nodeName)}},setFilters:{first:function(u,v){return v===0},last:function(u,x,y,v){return x===v.length-1},even:function(u,v){return v%2===0},odd:function(u,v){return v%2===1},lt:function(v,u,x){return u<x[3]-0},gt:function(v,u,x){return u>x[3]-0},nth:function(v,u,x){return x[3]-0===u
},eq:function(v,u,x){return x[3]-0===u}},filter:{PSEUDO:function(u,x,z,v){var y=x[1],B=k.filters[y];if(B){return B(u,z,x,v)}else{if(y==="contains"){return(u.textContent||u.innerText||b([u])||"").indexOf(x[3])>=0}else{if(y==="not"){x=x[3];z=0;for(v=x.length;z<v;z++){if(x[z]===u){return false}}return true}else{j.error("Syntax error, unrecognized expression: "+y)}}}},CHILD:function(C,u){var x=u[1],z=C;switch(x){case"only":case"first":for(;z=z.previousSibling;){if(z.nodeType===1){return false}}if(x==="first"){return true}z=C;case"last":for(;z=z.nextSibling;){if(z.nodeType===1){return false}}return true;case"nth":x=u[2];var B=u[3];if(x===1&&B===0){return true}u=u[0];var y=C.parentNode;if(y&&(y.sizcache!==u||!C.nodeIndex)){var v=0;for(z=y.firstChild;z;z=z.nextSibling){if(z.nodeType===1){z.nodeIndex=++v
}}y.sizcache=u}C=C.nodeIndex-B;return x===0?C===0:C%x===0&&C/x>=0}},ID:function(u,v){return u.nodeType===1&&u.getAttribute("id")===v},TAG:function(u,v){return v==="*"&&u.nodeType===1||u.nodeName.toLowerCase()===v},CLASS:function(u,v){return(" "+(u.className||u.getAttribute("class"))+" ").indexOf(v)>-1},ATTR:function(u,x){var y=x[1];u=k.attrHandle[y]?k.attrHandle[y](u):u[y]!=null?u[y]:u.getAttribute(y);y=u+"";var v=x[2];x=x[4];return u==null?v==="!=":v==="="?y===x:v==="*="?y.indexOf(x)>=0:v==="~="?(" "+y+" ").indexOf(x)>=0:!x?y&&u!==false:v==="!="?y!==x:v==="^="?y.indexOf(x)===0:v==="$="?y.substr(y.length-x.length)===x:v==="|="?y===x||y.substr(0,x.length+1)===x+"-":false},POS:function(y,z,x,u){var v=k.setFilters[z[2]];if(v){return v(y,x,z,u)}}}},p=k.match.POS;for(var o in k.match){k.match[o]=new RegExp(k.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source);
k.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+k.match[o].source.replace(/\\(\d+)/g,function(u,v){return"\\"+(v-0+1)}))}var t=function(u,v){u=Array.prototype.slice.call(u,0);if(v){v.push.apply(v,u);return v}return u};try{Array.prototype.slice.call(aa.documentElement.childNodes,0)}catch(r){t=function(u,x){x=x||[];if(i.call(u)==="[object Array]"){Array.prototype.push.apply(x,u)}else{if(typeof u.length==="number"){for(var y=0,v=u.length;y<v;y++){x.push(u[y])}}else{for(y=0;u[y];y++){x.push(u[y])}}}return x}}var m;if(aa.documentElement.compareDocumentPosition){m=function(u,v){if(!u.compareDocumentPosition||!v.compareDocumentPosition){if(u==v){h=true}return u.compareDocumentPosition?-1:1}u=u.compareDocumentPosition(v)&4?-1:u===v?0:1;if(u===0){h=true}return u}}else{if("sourceIndex" in aa.documentElement){m=function(u,v){if(!u.sourceIndex||!v.sourceIndex){if(u==v){h=true
}return u.sourceIndex?-1:1}u=u.sourceIndex-v.sourceIndex;if(u===0){h=true}return u}}else{if(aa.createRange){m=function(u,x){if(!u.ownerDocument||!x.ownerDocument){if(u==x){h=true}return u.ownerDocument?-1:1}var y=u.ownerDocument.createRange(),v=x.ownerDocument.createRange();y.setStart(u,0);y.setEnd(u,0);v.setStart(x,0);v.setEnd(x,0);u=y.compareBoundaryPoints(Range.START_TO_END,v);if(u===0){h=true}return u}}}}(function(){var v=aa.createElement("div"),u="script"+(new Date).getTime();v.innerHTML="<a name='"+u+"'/>";var x=aa.documentElement;x.insertBefore(v,x.firstChild);if(aa.getElementById(u)){k.find.ID=function(y,z,B){if(typeof z.getElementById!=="undefined"&&!B){return(z=z.getElementById(y[1]))?z.id===y[1]||typeof z.getAttributeNode!=="undefined"&&z.getAttributeNode("id").nodeValue===y[1]?[z]:K:[]
}};k.filter.ID=function(y,z){var B=typeof y.getAttributeNode!=="undefined"&&y.getAttributeNode("id");return y.nodeType===1&&B&&B.nodeValue===z}}x.removeChild(v);x=v=null})();(function(){var u=aa.createElement("div");u.appendChild(aa.createComment(""));if(u.getElementsByTagName("*").length>0){k.find.TAG=function(v,y){y=y.getElementsByTagName(v[1]);if(v[1]==="*"){v=[];for(var x=0;y[x];x++){y[x].nodeType===1&&v.push(y[x])}y=v}return y}}u.innerHTML="<a href='#'></a>";if(u.firstChild&&typeof u.firstChild.getAttribute!=="undefined"&&u.firstChild.getAttribute("href")!=="#"){k.attrHandle.href=function(v){return v.getAttribute("href",2)}}u=null})();aa.querySelectorAll&&function(){var v=j,u=aa.createElement("div");u.innerHTML="<p class='TEST'></p>";if(!(u.querySelectorAll&&u.querySelectorAll(".TEST").length===0)){j=function(B,D,y,z){D=D||aa;
if(!z&&D.nodeType===9&&!n(D)){try{return t(D.querySelectorAll(B),y)}catch(C){}}return v(B,D,y,z)};for(var x in v){j[x]=v[x]}u=null}}();(function(){var u=aa.createElement("div");u.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!u.getElementsByClassName||u.getElementsByClassName("e").length===0)){u.lastChild.className="e";if(u.getElementsByClassName("e").length!==1){k.order.splice(1,0,"CLASS");k.find.CLASS=function(v,y,x){if(typeof y.getElementsByClassName!=="undefined"&&!x){return y.getElementsByClassName(v[1])}};u=null}}})();var q=aa.compareDocumentPosition?function(u,v){return !!(u.compareDocumentPosition(v)&16)}:function(u,v){return u!==v&&(u.contains?u.contains(v):true)},n=function(u){return(u=(u?u.ownerDocument||u:0).documentElement)?u.nodeName!=="HTML":false},a=function(u,x){var z=[],v="",y;
for(x=x.nodeType?[x]:x;y=k.match.PSEUDO.exec(u);){v+=y[0];u=u.replace(k.match.PSEUDO,"")}u=k.relative[u]?u+"*":u;y=0;for(var B=x.length;y<B;y++){j(u,x[y],z)}return j.filter(v,z)};J.find=j;J.expr=j.selectors;J.expr[":"]=J.expr.filters;J.unique=j.uniqueSort;J.text=b;J.isXMLDoc=n;J.contains=q})();var bG=/Until$/,co=/^(?:parents|prevUntil|prevAll)/,cf=/,/;bw=Array.prototype.slice;var W=function(d,e,a){if(J.isFunction(e)){return J.grep(d,function(f,g){return !!e.call(f,g,f)===a})}else{if(e.nodeType){return J.grep(d,function(f){return f===e===a})}else{if(typeof e==="string"){var b=J.grep(d,function(f){return f.nodeType===1});if(ck.test(e)){return J.filter(e,b,!a)}else{e=J.filter(e,b)}}}}return J.grep(d,function(f){return J.inArray(f,e)>=0===a})};J.fn.extend({find:function(f){for(var h=this.pushStack("","find",f),d=0,g=0,a=this.length;
g<a;g++){d=h.length;J.find(f,this[g],h);if(g>0){for(var b=d;b<h.length;b++){for(var e=0;e<d;e++){if(h[e]===h[b]){h.splice(b--,1);break}}}}}return h},has:function(a){var b=J(a);return this.filter(function(){for(var d=0,e=b.length;d<e;d++){if(J.contains(this,b[d])){return true}}})},not:function(a){return this.pushStack(W(this,a,false),"not",a)},filter:function(a){return this.pushStack(W(this,a,true),"filter",a)},is:function(a){return !!a&&J.filter(a,this).length>0},closest:function(h,i){if(J.isArray(h)){var g=[],a=this[0],j,d={},e;if(a&&h.length){j=0;for(var f=h.length;j<f;j++){e=h[j];d[e]||(d[e]=J.expr.match.POS.test(e)?J(e,i||this.context):e)}for(;a&&a.ownerDocument&&a!==i;){for(e in d){j=d[e];if(j.jquery?j.index(a)>-1:J(a).is(j)){g.push({selector:e,elem:a});delete d[e]}}a=a.parentNode}}return g
}var b=J.expr.match.POS.test(h)?J(h,i||this.context):null;return this.map(function(k,l){for(;l&&l.ownerDocument&&l!==i;){if(b?b.index(l)>-1:J(l).is(h)){return l}l=l.parentNode}return null})},index:function(a){if(!a||typeof a==="string"){return J.inArray(this[0],a?J(a):this.parent().children())}return J.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?J(a,b||this.context):J.makeArray(a);b=J.merge(this.get(),a);return this.pushStack(by(a[0])||by(b[0])?b:J.unique(b))},andSelf:function(){return this.add(this.prevObject)}});J.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return J.dir(a,"parentNode")},parentsUntil:function(b,d,a){return J.dir(b,"parentNode",a)},next:function(a){return J.nth(a,2,"nextSibling")},prev:function(a){return J.nth(a,2,"previousSibling")
},nextAll:function(a){return J.dir(a,"nextSibling")},prevAll:function(a){return J.dir(a,"previousSibling")},nextUntil:function(b,d,a){return J.dir(b,"nextSibling",a)},prevUntil:function(b,d,a){return J.dir(b,"previousSibling",a)},siblings:function(a){return J.sibling(a.parentNode.firstChild,a)},children:function(a){return J.sibling(a.firstChild)},contents:function(a){return J.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:J.makeArray(a.childNodes)}},function(a,b){J.fn[a]=function(f,e){var d=J.map(this,b,f);bG.test(a)||(e=f);if(e&&typeof e==="string"){d=J.filter(e,d)}d=this.length>1?J.unique(d):d;if((this.length>1||cf.test(e))&&co.test(a)){d=d.reverse()}return this.pushStack(d,a,bw.call(arguments).join(","))}});J.extend({filter:function(b,d,a){if(a){b=":not("+b+")"}return J.find.matches(b,d)
},dir:function(d,e,a){var b=[];for(d=d[e];d&&d.nodeType!==9&&(a===K||d.nodeType!==1||!J(d).is(a));){d.nodeType===1&&b.push(d);d=d[e]}return b},nth:function(d,e,a){e=e||1;for(var b=0;d;d=d[a]){if(d.nodeType===1&&++b===e){break}}return d},sibling:function(b,d){for(var a=[];b;b=b.nextSibling){b.nodeType===1&&b!==d&&a.push(b)}return a}});var b4=/ jQuery\d+="(?:\d+|null)"/g,bU=/^\s+/,bL=/(<([\w:]+)[^>]*?)\/>/g,ca=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,bK=/<([\w:]+)/,bv=/<tbody/i,cq=/<|&#?\w+;/,N=/<script|<object|<embed|<option|<style/i,ch=/checked\s*(?:[^=]|=\s*.checked.)/i,bl=function(b,d,a){return ca.test(a)?b:d+"></"+a+">"},cv={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,"",""]};
cv.optgroup=cv.option;cv.tbody=cv.tfoot=cv.colgroup=cv.caption=cv.thead;cv.th=cv.td;if(!J.support.htmlSerialize){cv._default=[1,"div<div>","</div>"]}J.fn.extend({text:function(a){if(J.isFunction(a)){return this.each(function(d){var b=J(this);b.text(a.call(this,d,b.text()))})}if(typeof a!=="object"&&a!==K){return this.empty().append((this[0]&&this[0].ownerDocument||aa).createTextNode(a))}return J.text(this)},wrapAll:function(a){if(J.isFunction(a)){return this.each(function(d){J(this).wrapAll(a.call(this,d))})}if(this[0]){var b=J(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;){d=d.firstChild}return d}).append(this)}return this},wrapInner:function(a){if(J.isFunction(a)){return this.each(function(b){J(this).wrapInner(a.call(this,b))
})}return this.each(function(){var d=J(this),b=d.contents();b.length?b.wrapAll(a):d.append(a)})},wrap:function(a){return this.each(function(){J(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){J.nodeName(this,"body")||J(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)})}else{if(arguments.length){var a=J(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this.nextSibling)
})}else{if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,J(arguments[0]).toArray());return a}}},remove:function(d,e){for(var a=0,b;(b=this[a])!=null;a++){if(!d||J.filter(d,[b]).length){if(!e&&b.nodeType===1){J.cleanData(b.getElementsByTagName("*"));J.cleanData([b])}b.parentNode&&b.parentNode.removeChild(b)}}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){for(b.nodeType===1&&J.cleanData(b.getElementsByTagName("*"));b.firstChild;){b.removeChild(b.firstChild)}}return this},clone:function(a){var b=this.map(function(){if(!J.support.noCloneEvent&&!J.isXMLDoc(this)){var d=this.outerHTML,e=this.ownerDocument;if(!d){d=e.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return J.clean([d.replace(b4,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(bU,"")],e)[0]
}else{return this.cloneNode(true)}});if(a===true){s(this,b);s(this.find("*"),b.find("*"))}return b},html:function(d){if(d===K){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(b4,""):null}else{if(typeof d==="string"&&!N.test(d)&&(J.support.leadingWhitespace||!bU.test(d))&&!cv[(bK.exec(d)||["",""])[1].toLowerCase()]){d=d.replace(bL,bl);try{for(var e=0,a=this.length;e<a;e++){if(this[e].nodeType===1){J.cleanData(this[e].getElementsByTagName("*"));this[e].innerHTML=d}}}catch(b){this.empty().append(d)}}else{J.isFunction(d)?this.each(function(f){var h=J(this),g=h.html();h.empty().append(function(){return d.call(this,f,g)})}):this.empty().append(d)}}return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(J.isFunction(a)){return this.each(function(e){var b=J(this),d=b.html();
b.replaceWith(a.call(this,e,d))})}if(typeof a!=="string"){a=J(a).detach()}return this.each(function(){var d=this.nextSibling,b=this.parentNode;J(this).remove();d?J(d).before(a):J(b).append(a)})}else{return this.pushStack(J(J.isFunction(a)?a():a),"replaceWith",a)}},detach:function(a){return this.remove(a,true)},domManip:function(e,g,k){function l(m){return J.nodeName(m,"table")?m.getElementsByTagName("tbody")[0]||m.appendChild(m.ownerDocument.createElement("tbody")):m}var f,a,h=e[0],b=[],i;if(!J.support.checkClone&&arguments.length===3&&typeof h==="string"&&ch.test(h)){return this.each(function(){J(this).domManip(e,g,k,true)})}if(J.isFunction(h)){return this.each(function(n){var m=J(this);e[0]=h.call(this,n,g?m.html():K);m.domManip(e,g,k)})}if(this[0]){f=h&&h.parentNode;f=J.support.parentNode&&f&&f.nodeType===11&&f.childNodes.length===this.length?{fragment:f}:bm(e,this,b);
i=f.fragment;if(a=i.childNodes.length===1?(i=i.firstChild):i.firstChild){g=g&&J.nodeName(a,"tr");for(var j=0,d=this.length;j<d;j++){k.call(g?l(this[j],a):this[j],j>0||f.cacheable||this.length>1?i.cloneNode(true):i)}}b.length&&J.each(b,bR)}return this}});J.fragments={};J.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){J.fn[a]=function(h){var e=[];h=J(h);var d=this.length===1&&this[0].parentNode;if(d&&d.nodeType===11&&d.childNodes.length===1&&h.length===1){h[b](this[0]);return this}else{d=0;for(var g=h.length;d<g;d++){var f=(d>0?this.clone(true):this).get();J.fn[b].apply(J(h[d]),f);e=e.concat(f)}return this.pushStack(e,a,h.selector)}}});J.extend({clean:function(e,g,k,l){g=g||aa;if(typeof g.createElement==="undefined"){g=g.ownerDocument||g[0]&&g[0].ownerDocument||aa
}for(var f=[],a=0,h;(h=e[a])!=null;a++){if(typeof h==="number"){h+=""}if(h){if(typeof h==="string"&&!cq.test(h)){h=g.createTextNode(h)}else{if(typeof h==="string"){h=h.replace(bL,bl);var b=(bK.exec(h)||["",""])[1].toLowerCase(),i=cv[b]||cv._default,j=i[0],d=g.createElement("div");for(d.innerHTML=i[1]+h+i[2];j--;){d=d.lastChild}if(!J.support.tbody){j=bv.test(h);b=b==="table"&&!j?d.firstChild&&d.firstChild.childNodes:i[1]==="<table>"&&!j?d.childNodes:[];for(i=b.length-1;i>=0;--i){J.nodeName(b[i],"tbody")&&!b[i].childNodes.length&&b[i].parentNode.removeChild(b[i])}}!J.support.leadingWhitespace&&bU.test(h)&&d.insertBefore(g.createTextNode(bU.exec(h)[0]),d.firstChild);h=d.childNodes}}if(h.nodeType){f.push(h)}else{f=J.merge(f,h)}}}if(k){for(a=0;f[a];a++){if(l&&J.nodeName(f[a],"script")&&(!f[a].type||f[a].type.toLowerCase()==="text/javascript")){l.push(f[a].parentNode?f[a].parentNode.removeChild(f[a]):f[a])
}else{f[a].nodeType===1&&f.splice.apply(f,[a+1,0].concat(J.makeArray(f[a].getElementsByTagName("script"))));k.appendChild(f[a])}}}return f},cleanData:function(h){for(var i,g,a=J.cache,j=J.event.special,d=J.support.deleteExpando,e=0,f;(f=h[e])!=null;e++){if(g=f[J.expando]){i=a[g];if(i.events){for(var b in i.events){j[b]?J.event.remove(f,b):bp(f,b,i.handle)}}if(d){delete f[J.expando]}else{f.removeAttribute&&f.removeAttribute(J.expando)}delete a[g]}}}});var bu=/z-?index|font-?weight|opacity|zoom|line-?height/i,cc=/alpha\([^)]*\)/,G=/opacity=([^)]*)/,ab=/float/i,L=/-([a-z])/ig,cj=/([A-Z])/g,cx=/^-?\d+(?:px)?$/i,cl=/^-?\d/,cw={position:"absolute",visibility:"hidden",display:"block"},Y=["Left","Right"],cn=["Top","Bottom"],A=aa.defaultView&&aa.defaultView.getComputedStyle,cb=J.support.cssFloat?"cssFloat":"styleFloat",O=function(a,b){return b.toUpperCase()
};J.fn.css=function(a,b){return bX(this,a,b,true,function(f,e,d){if(d===K){return J.curCSS(f,e)}if(typeof d==="number"&&!bu.test(e)){d+="px"}J.style(f,e,d)})};J.extend({style:function(d,f,e){if(!d||d.nodeType===3||d.nodeType===8){return K}if((f==="width"||f==="height")&&parseFloat(e)<0){e=K}var b=d.style||d,a=e!==K;if(!J.support.opacity&&f==="opacity"){if(a){b.zoom=1;f=parseInt(e,10)+""==="NaN"?"":"alpha(opacity="+e*100+")";d=b.filter||J.curCSS(d,"filter")||"";b.filter=cc.test(d)?d.replace(cc,f):f}return b.filter&&b.filter.indexOf("opacity=")>=0?parseFloat(G.exec(b.filter)[1])/100+"":""}if(ab.test(f)){f=cb}f=f.replace(L,O);if(a){b[f]=e}return b[f]},css:function(f,h,d,g){if(h==="width"||h==="height"){var a,b=h==="width"?Y:cn;function e(){a=h==="width"?f.offsetWidth:f.offsetHeight;g!=="border"&&J.each(b,function(){g||(a-=parseFloat(J.curCSS(f,"padding"+this,true))||0);
if(g==="margin"){a+=parseFloat(J.curCSS(f,"margin"+this,true))||0}else{a-=parseFloat(J.curCSS(f,"border"+this+"Width",true))||0}})}f.offsetWidth!==0?e():J.swap(f,cw,e);return Math.max(0,Math.round(a))}return J.curCSS(f,h,d)},curCSS:function(e,g,a){var f,d=e.style;if(!J.support.opacity&&g==="opacity"&&e.currentStyle){f=G.test(e.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return f===""?"1":f}if(ab.test(g)){g=cb}if(!a&&d&&d[g]){f=d[g]}else{if(A){if(ab.test(g)){g="float"}g=g.replace(cj,"-$1").toLowerCase();d=e.ownerDocument.defaultView;if(!d){return null}if(e=d.getComputedStyle(e,null)){f=e.getPropertyValue(g)}if(g==="opacity"&&f===""){f="1"}}else{if(e.currentStyle){a=g.replace(L,O);f=e.currentStyle[g]||e.currentStyle[a];if(!cx.test(f)&&cl.test(f)){g=d.left;var b=e.runtimeStyle.left;
e.runtimeStyle.left=e.currentStyle.left;d.left=a==="fontSize"?"1em":f||0;f=d.pixelLeft+"px";d.left=g;e.runtimeStyle.left=b}}}}return f},swap:function(d,f,e){var b={};for(var a in f){b[a]=d.style[a];d.style[a]=f[a]}e.call(d);for(a in f){d.style[a]=b[a]}}});if(J.expr&&J.expr.filters){J.expr.filters.hidden=function(d){var e=d.offsetWidth,a=d.offsetHeight,b=d.nodeName.toLowerCase()==="tr";return e===0&&a===0&&!b?true:e>0&&a>0&&!b?false:J.curCSS(d,"display")==="none"};J.expr.filters.visible=function(a){return !J.expr.filters.hidden(a)}}var br=V(),bO=/<script(.|\s)*?\/script>/gi,bY=/select|textarea/i,Q=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,Z=/=\?(&|$)/,bt=/\?/,bn=/(\?|&)_=.*?(&|$)/,bI=/^(\w+:)?\/\/([^\/?#]+)/,b9=/%20/g,bE=J.fn.load;J.fn.extend({load:function(e,g,a){if(typeof e!=="string"){return bE.call(this,e)
}else{if(!this.length){return this}}var f=e.indexOf(" ");if(f>=0){var d=e.slice(f,e.length);e=e.slice(0,f)}f="GET";if(g){if(J.isFunction(g)){a=g;g=null}else{if(typeof g==="object"){g=J.param(g,J.ajaxSettings.traditional);f="POST"}}}var b=this;J.ajax({url:e,type:f,dataType:"html",data:g,complete:function(i,h){if(h==="success"||h==="notmodified"){b.html(d?J("<div />").append(i.responseText.replace(bO,"")).find(d):i.responseText)}a&&b.each(a,[i.responseText,h,i])}});return this},serialize:function(){return J.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?J.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bY.test(this.nodeName)||Q.test(this.type))}).map(function(a,b){a=J(this).val();return a==null?null:J.isArray(a)?J.map(a,function(d){return{name:b.name,value:d}
}):{name:b.name,value:a}}).get()}});J.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){J.fn[b]=function(d){return this.bind(b,d)}});J.extend({get:function(d,e,a,b){if(J.isFunction(e)){b=b||a;a=e;e=null}return J.ajax({type:"GET",url:d,data:e,success:a,dataType:b})},getScript:function(a,b){return J.get(a,null,b,"script")},getJSON:function(b,d,a){return J.get(b,d,a,"json")},post:function(d,e,a,b){if(J.isFunction(e)){b=b||a;a=e;e={}}return J.ajax({type:"POST",url:d,data:e,success:a,dataType:b})},ajaxSetup:function(a){J.extend(J.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:bo.XMLHttpRequest&&(bo.location.protocol!=="file:"||!bo.ActiveXObject)?function(){return new bo.XMLHttpRequest
}:function(){try{return new bo.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(h){function m(){o.success&&o.success.call(t,a,r,i);o.global&&l("ajaxSuccess",[i,o])}function j(){o.complete&&o.complete.call(t,i,r);o.global&&l("ajaxComplete",[i,o]);o.global&&!--J.active&&J.event.trigger("ajaxStop")}function l(B,z){(o.context?J(o.context):J.event).trigger(B,z)}var o=J.extend(true,{},J.ajaxSettings,h),p,r,a,t=h&&h.context||o,y=o.type.toUpperCase();if(o.data&&o.processData&&typeof o.data!=="string"){o.data=J.param(o.data,o.traditional)}if(o.dataType==="jsonp"){if(y==="GET"){Z.test(o.url)||(o.url+=(bt.test(o.url)?"&":"?")+(o.jsonp||"callback")+"=?")
}else{if(!o.data||!Z.test(o.data)){o.data=(o.data?o.data+"&":"")+(o.jsonp||"callback")+"=?"}}o.dataType="json"}if(o.dataType==="json"&&(o.data&&Z.test(o.data)||Z.test(o.url))){p=o.jsonpCallback||"jsonp"+br++;if(o.data){o.data=(o.data+"").replace(Z,"="+p+"$1")}o.url=o.url.replace(Z,"="+p+"$1");o.dataType="script";bo[p]=bo[p]||function(B){a=B;m();j();bo[p]=K;try{delete bo[p]}catch(z){}f&&f.removeChild(g)}}if(o.dataType==="script"&&o.cache===null){o.cache=false}if(o.cache===false&&y==="GET"){var e=V(),d=o.url.replace(bn,"$1_="+e+"$2");o.url=d+(d===o.url?(bt.test(o.url)?"&":"?")+"_="+e:"")}if(o.data&&y==="GET"){o.url+=(bt.test(o.url)?"&":"?")+o.data}o.global&&!J.active++&&J.event.trigger("ajaxStart");e=(e=bI.exec(o.url))&&(e[1]&&e[1]!==location.protocol||e[2]!==location.host);if(o.dataType==="script"&&y==="GET"&&e){var f=aa.getElementsByTagName("head")[0]||aa.documentElement,g=aa.createElement("script");
g.src=o.url;if(o.scriptCharset){g.charset=o.scriptCharset}if(!p){var b=false;g.onload=g.onreadystatechange=function(){if(!b&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){b=true;m();j();g.onload=g.onreadystatechange=null;f&&g.parentNode&&f.removeChild(g)}}}f.insertBefore(g,f.firstChild);return K}var u=false,i=o.xhr();if(i){o.username?i.open(y,o.url,o.async,o.username,o.password):i.open(y,o.url,o.async);try{if(o.data||h&&h.contentType){i.setRequestHeader("Content-Type",o.contentType)}if(o.ifModified){J.lastModified[o.url]&&i.setRequestHeader("If-Modified-Since",J.lastModified[o.url]);J.etag[o.url]&&i.setRequestHeader("If-None-Match",J.etag[o.url])}e||i.setRequestHeader("X-Requested-With","XMLHttpRequest");i.setRequestHeader("Accept",o.dataType&&o.accepts[o.dataType]?o.accepts[o.dataType]+", */*":o.accepts._default)
}catch(k){}if(o.beforeSend&&o.beforeSend.call(t,i,o)===false){o.global&&!--J.active&&J.event.trigger("ajaxStop");i.abort();return false}o.global&&l("ajaxSend",[i,o]);var q=i.onreadystatechange=function(z){if(!i||i.readyState===0||z==="abort"){u||j();u=true;if(i){i.onreadystatechange=J.noop}}else{if(!u&&i&&(i.readyState===4||z==="timeout")){u=true;i.onreadystatechange=J.noop;r=z==="timeout"?"timeout":!J.httpSuccess(i)?"error":o.ifModified&&J.httpNotModified(i,o.url)?"notmodified":"success";var C;if(r==="success"){try{a=J.httpData(i,o.dataType,o)}catch(B){r="parsererror";C=B}}if(r==="success"||r==="notmodified"){p||m()}else{J.handleError(o,i,r,C)}j();z==="timeout"&&i.abort();if(o.async){i=null}}}};try{var n=i.abort;i.abort=function(){i&&n.call(i);q("abort")}}catch(v){}o.async&&o.timeout>0&&setTimeout(function(){i&&!u&&q("timeout")
},o.timeout);try{i.send(y==="POST"||y==="PUT"||y==="DELETE"?o.data:null)}catch(x){J.handleError(o,i,null,x);j()}o.async||q();return i}},handleError:function(d,e,a,b){if(d.error){d.error.call(d.context||d,e,a,b)}if(d.global){(d.context?J(d.context):J.event).trigger("ajaxError",[e,d,b])}},active:0,httpSuccess:function(a){try{return !a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===1223||a.status===0}catch(b){}return false},httpNotModified:function(d,e){var a=d.getResponseHeader("Last-Modified"),b=d.getResponseHeader("Etag");if(a){J.lastModified[e]=a}if(b){J.etag[e]=b}return d.status===304||d.status===0},httpData:function(d,f,e){var b=d.getResponseHeader("content-type")||"",a=f==="xml"||!f&&b.indexOf("xml")>=0;d=a?d.responseXML:d.responseText;a&&d.documentElement.nodeName==="parsererror"&&J.error("parsererror");
if(e&&e.dataFilter){d=e.dataFilter(d,f)}if(typeof d==="string"){if(f==="json"||!f&&b.indexOf("json")>=0){d=J.parseJSON(d)}else{if(f==="script"||!f&&b.indexOf("javascript")>=0){J.globalEval(d)}}}return d},param:function(e,g){function a(i,h){if(J.isArray(h)){J.each(h,function(j,k){g||/\[\]$/.test(i)?f(i,k):a(i+"["+(typeof k==="object"||J.isArray(k)?j:"")+"]",k)})}else{!g&&h!=null&&typeof h==="object"?J.each(h,function(j,k){a(i+"["+j+"]",k)}):f(i,h)}}function f(i,h){h=J.isFunction(h)?h():h;d[d.length]=encodeURIComponent(i)+"="+encodeURIComponent(h)}var d=[];if(g===K){g=J.ajaxSettings.traditional}if(J.isArray(e)||e.jquery){J.each(e,function(){f(this.name,this.value)})}else{for(var b in e){a(b,e[b])}}return d.join("&").replace(b9,"+")}});var c={},bC=/toggle|show|hide/,cd=/^([+-]=)?([\d+-.]+)(.*)$/,bW,b6=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];
J.fn.extend({show:function(d,f){if(d||d===0){return this.animate(b1("show",3),d,f)}else{d=0;for(f=this.length;d<f;d++){var e=J.data(this[d],"olddisplay");this[d].style.display=e||"";if(J.css(this[d],"display")==="none"){e=this[d].nodeName;var b;if(c[e]){b=c[e]}else{var a=J("<"+e+" />").appendTo("body");b=a.css("display");if(b==="none"){b="block"}a.remove();c[e]=b}J.data(this[d],"olddisplay",b)}}d=0;for(f=this.length;d<f;d++){this[d].style.display=J.data(this[d],"olddisplay")||""}return this}},hide:function(b,d){if(b||b===0){return this.animate(b1("hide",3),b,d)}else{b=0;for(d=this.length;b<d;b++){var a=J.data(this[b],"olddisplay");!a&&a!=="none"&&J.data(this[b],"olddisplay",J.css(this[b],"display"))}b=0;for(d=this.length;b<d;b++){this[b].style.display="none"}return this}},_toggle:J.fn.toggle,toggle:function(b,d){var a=typeof b==="boolean";
if(J.isFunction(b)&&J.isFunction(d)){this._toggle.apply(this,arguments)}else{b==null||a?this.each(function(){var e=a?b:J(this).is(":hidden");J(this)[e?"show":"hide"]()}):this.animate(b1("toggle",3),b,d)}return this},fadeTo:function(b,d,a){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:d},b,a)},animate:function(d,f,e,b){var a=J.speed(f,e,b);if(J.isEmptyObject(d)){return this.each(a.complete)}return this[a.queue===false?"each":"queue"](function(){var h=J.extend({},a),g,k=this.nodeType===1&&J(this).is(":hidden"),i=this;for(g in d){var j=g.replace(L,O);if(g!==j){d[j]=d[g];delete d[g];g=j}if(d[g]==="hide"&&k||d[g]==="show"&&!k){return h.complete.call(this)}if((g==="height"||g==="width")&&this.style){h.display=J.css(this,"display");h.overflow=this.style.overflow}if(J.isArray(d[g])){(h.specialEasing=h.specialEasing||{})[g]=d[g][1];
d[g]=d[g][0]}}if(h.overflow!=null){this.style.overflow="hidden"}h.curAnim=J.extend({},d);J.each(d,function(p,q){var m=new J.fx(i,h,p);if(bC.test(q)){m[q==="toggle"?k?"show":"hide":q](d)}else{var n=cd.exec(q),l=m.cur(true)||0;if(n){q=parseFloat(n[2]);var o=n[3]||"px";if(o!=="px"){i.style[p]=(q||1)+o;l=(q||1)/m.cur(true)*l;i.style[p]=l+o}if(n[1]){q=(n[1]==="-="?-1:1)*q+l}m.custom(l,q,o)}else{m.custom(l,q,"")}}});return true})},stop:function(b,d){var a=J.timers;b&&this.queue([]);this.each(function(){for(var e=a.length-1;e>=0;e--){if(a[e].elem===this){d&&a[e](true);a.splice(e,1)}}});d||this.dequeue();return this}});J.each({slideDown:b1("show",1),slideUp:b1("hide",1),slideToggle:b1("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){J.fn[a]=function(d,e){return this.animate(b,d,e)
}});J.extend({speed:function(d,e,a){var b=d&&typeof d==="object"?d:{complete:a||!a&&e||J.isFunction(d)&&d,duration:d,easing:a&&e||e&&!J.isFunction(e)&&e};b.duration=J.fx.off?0:typeof b.duration==="number"?b.duration:J.fx.speeds[b.duration]||J.fx.speeds._default;b.old=b.complete;b.complete=function(){b.queue!==false&&J(this).dequeue();J.isFunction(b.old)&&b.old.call(this)};return b},easing:{linear:function(d,e,a,b){return a+b*d},swing:function(d,e,a,b){return(-Math.cos(d*Math.PI)/2+0.5)*b+a}},timers:[],fx:function(b,d,a){this.options=d;this.elem=b;this.prop=a;if(!d.orig){d.orig={}}}});J.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(J.fx.step[this.prop]||J.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style){this.elem.style.display="block"
}},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}return(a=parseFloat(J.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(J.curCSS(this.elem,this.prop))||0},custom:function(d,f,e){function b(g){return a.step(g)}this.startTime=V();this.start=d;this.end=f;this.unit=e||this.unit||"px";this.now=this.start;this.pos=this.state=0;var a=this;b.elem=this.elem;if(b()&&J.timers.push(b)&&!bW){bW=setInterval(J.fx.tick,13)}},show:function(){this.options.orig[this.prop]=J.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());J(this.elem).show()},hide:function(){this.options.orig[this.prop]=J.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)
},step:function(d){var f=V(),e=true;if(d||f>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var b in this.options.curAnim){if(this.options.curAnim[b]!==true){e=false}}if(e){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;d=J.data(this.elem,"olddisplay");this.elem.style.display=d?d:this.options.display;if(J.css(this.elem,"display")==="none"){this.elem.style.display="block"}}this.options.hide&&J(this.elem).hide();if(this.options.hide||this.options.show){for(var a in this.options.curAnim){J.style(this.elem,a,this.options.orig[a])}}this.options.complete.call(this.elem)}return false}else{a=f-this.startTime;this.state=a/this.options.duration;d=this.options.easing||(J.easing.swing?"swing":"linear");
this.pos=J.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||d](this.state,a,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};J.extend(J.fx,{tick:function(){for(var a=J.timers,b=0;b<a.length;b++){a[b]()||a.splice(b--,1)}a.length||J.fx.stop()},stop:function(){clearInterval(bW);bW=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){J.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null){a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit}else{a.elem[a.prop]=a.now}}}});if(J.expr&&J.expr.filters){J.expr.filters.animated=function(a){return J.grep(J.timers,function(b){return a===b.elem}).length}}J.fn.offset="getBoundingClientRect" in aa.documentElement?function(d){var e=this[0];
if(d){return this.each(function(f){J.offset.setOffset(this,d,f)})}if(!e||!e.ownerDocument){return null}if(e===e.ownerDocument.body){return J.offset.bodyOffset(e)}var a=e.getBoundingClientRect(),b=e.ownerDocument;e=b.body;b=b.documentElement;return{top:a.top+(self.pageYOffset||J.support.boxModel&&b.scrollTop||e.scrollTop)-(b.clientTop||e.clientTop||0),left:a.left+(self.pageXOffset||J.support.boxModel&&b.scrollLeft||e.scrollLeft)-(b.clientLeft||e.clientLeft||0)}}:function(f){var i=this[0];if(f){return this.each(function(l){J.offset.setOffset(this,f,l)})}if(!i||!i.ownerDocument){return null}if(i===i.ownerDocument.body){return J.offset.bodyOffset(i)}J.offset.initialize();var g=i.offsetParent,j=i,k=i.ownerDocument,d,a=k.documentElement,e=k.body;j=(k=k.defaultView)?k.getComputedStyle(i,null):i.currentStyle;
for(var h=i.offsetTop,b=i.offsetLeft;(i=i.parentNode)&&i!==e&&i!==a;){if(J.offset.supportsFixedPosition&&j.position==="fixed"){break}d=k?k.getComputedStyle(i,null):i.currentStyle;h-=i.scrollTop;b-=i.scrollLeft;if(i===g){h+=i.offsetTop;b+=i.offsetLeft;if(J.offset.doesNotAddBorder&&!(J.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(i.nodeName))){h+=parseFloat(d.borderTopWidth)||0;b+=parseFloat(d.borderLeftWidth)||0}j=g;g=i.offsetParent}if(J.offset.subtractsBorderForOverflowNotVisible&&d.overflow!=="visible"){h+=parseFloat(d.borderTopWidth)||0;b+=parseFloat(d.borderLeftWidth)||0}j=d}if(j.position==="relative"||j.position==="static"){h+=e.offsetTop;b+=e.offsetLeft}if(J.offset.supportsFixedPosition&&j.position==="fixed"){h+=Math.max(a.scrollTop,e.scrollTop);b+=Math.max(a.scrollLeft,e.scrollLeft)
}return{top:h,left:b}};J.offset={initialize:function(){var e=aa.body,g=aa.createElement("div"),a,f,d,b=parseFloat(J.curCSS(e,"marginTop",true))||0;J.extend(g.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});g.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";e.insertBefore(g,e.firstChild);a=g.firstChild;f=a.firstChild;d=a.nextSibling.firstChild.firstChild;this.doesNotAddBorder=f.offsetTop!==5;this.doesAddBorderForTableAndCells=d.offsetTop===5;f.style.position="fixed";f.style.top="20px";
this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15;f.style.position=f.style.top="";a.style.overflow="hidden";a.style.position="relative";this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=e.offsetTop!==b;e.removeChild(g);J.offset.initialize=J.noop},bodyOffset:function(b){var d=b.offsetTop,a=b.offsetLeft;J.offset.initialize();if(J.offset.doesNotIncludeMarginInBodyOffset){d+=parseFloat(J.curCSS(b,"marginTop",true))||0;a+=parseFloat(J.curCSS(b,"marginLeft",true))||0}return{top:d,left:a}},setOffset:function(f,h,d){if(/static/.test(J.curCSS(f,"position"))){f.style.position="relative"}var g=J(f),a=g.offset(),b=parseInt(J.curCSS(f,"top",true),10)||0,e=parseInt(J.curCSS(f,"left",true),10)||0;if(J.isFunction(h)){h=h.call(f,d,a)}d={top:h.top-a.top+b,left:h.left-a.left+e};
"using" in h?h.using.call(f,d):g.css(d)}};J.fn.extend({position:function(){if(!this[0]){return null}var d=this[0],e=this.offsetParent(),a=this.offset(),b=/^body|html$/i.test(e[0].nodeName)?{top:0,left:0}:e.offset();a.top-=parseFloat(J.curCSS(d,"marginTop",true))||0;a.left-=parseFloat(J.curCSS(d,"marginLeft",true))||0;b.top+=parseFloat(J.curCSS(e[0],"borderTopWidth",true))||0;b.left+=parseFloat(J.curCSS(e[0],"borderLeftWidth",true))||0;return{top:a.top-b.top,left:a.left-b.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||aa.body;a&&!/^body|html$/i.test(a.nodeName)&&J.css(a,"position")==="static";){a=a.offsetParent}return a})}});J.each(["Left","Top"],function(b,d){var a="scroll"+d;J.fn[a]=function(g){var f=this[0],e;if(!f){return null}if(g!==K){return this.each(function(){if(e=bD(this)){e.scrollTo(!b?g:J(e).scrollLeft(),b?g:J(e).scrollTop())
}else{this[a]=g}})}else{return(e=bD(f))?"pageXOffset" in e?e[b?"pageYOffset":"pageXOffset"]:J.support.boxModel&&e.document.documentElement[a]||e.document.body[a]:f[a]}}});J.each(["Height","Width"],function(b,d){var a=d.toLowerCase();J.fn["inner"+d]=function(){return this[0]?J.css(this[0],a,false,"padding"):null};J.fn["outer"+d]=function(e){return this[0]?J.css(this[0],a,false,e?"margin":"border"):null};J.fn[a]=function(e){var f=this[0];if(!f){return e==null?null:this}if(J.isFunction(e)){return this.each(function(h){var g=J(this);g[a](e.call(this,h,g[a]()))})}return"scrollTo" in f&&f.document?f.document.compatMode==="CSS1Compat"&&f.document.documentElement["client"+d]||f.document.body["client"+d]:f.nodeType===9?Math.max(f.documentElement["client"+d],f.body["scroll"+d],f.documentElement["scroll"+d],f.body["offset"+d],f.documentElement["offset"+d]):e===K?J.css(f,a):this.css(a,typeof e==="string"?e:e+"px")
}});bo.jQuery=bo.$=J})(window);jQuery.cookie=function(w,p,i){if(typeof p!="undefined"){i=i||{};if(p===null){p="";i.expires=-1}var t="";if(i.expires&&(typeof i.expires=="number"||i.expires.toUTCString)){var s;if(typeof i.expires=="number"){s=new Date();s.setTime(s.getTime()+(i.expires*24*60*60*1000))}else{s=i.expires}t="; expires="+s.toUTCString()}var n=i.path?"; path="+(i.path):"";var r=i.domain?"; domain="+(i.domain):"";var x=i.secure?"; secure":"";document.cookie=[w,"=",encodeURIComponent(p),t,n,r,x].join("")}else{var u=null;if(document.cookie&&document.cookie!=""){var o=document.cookie.split(";");for(var q=0;q<o.length;q++){var v=jQuery.trim(o[q]);if(v.substring(0,w.length+1)==(w+"=")){u=decodeURIComponent(v.substring(w.length+1));break}}}return u}};var YHDGLOBAL=YHDGLOBAL||{};YHDGLOBAL.getCookie=function(b,d){if(typeof oppositeDomain=="undefined"){return}var e={};if(typeof b=="string"){b=[b]}if(typeof currSiteType!="undefined"&&currSiteType!=1){var c=oppositeDomain;if("https"==document.location.protocol){c=c.replace("http","https")}var a=c+"/yhd-common/assign-login-api.do?";jQuery(b).each(function(){a+="cookieNames="+this+"&"});a+="&timestamp="+new Date()+"&callback=?";jQuery.getJSON(a,function(f){if(f.ERROR){return}jQuery(f.info).each(function(){e[this.name]=decodeURIComponent(this.value)});if(typeof d=="function"){d.apply(e)}})}else{jQuery(b).each(function(){e[this]=jQuery.cookie(this)});if(typeof d=="function"){d.apply(e)}}};YHDGLOBAL.sysCookie=function(a,b){};(function(u){u.fn.jqm=function(a){var b={overlay:50,overlayClass:"jqmOverlay",closeClass:"jqmClose",trigger:".jqModal",ajax:f,ajaxP:f,ajaxText:"",target:f,modal:f,toTop:f,onShow:f,onHide:f,onLoad:f};return this.each(function(){if(this._jqm){return i[this._jqm].c=u.extend({},i[this._jqm].c,a)}e++;this._jqm=e;i[e]={c:u.extend(b,u.jqm.params,a),a:f,w:u(this).addClass("jqmID"+e),s:e};if(b.trigger){u(this).jqmAddTrigger(b.trigger)}})};u.fn.jqmAddClose=function(a){return m(this,a,"jqmHide")};u.fn.jqmAddTrigger=function(a){return m(this,a,"jqmShow")};u.fn.jqmShow=function(a){return this.each(function(){a=a||window.event;u.jqm.open(this._jqm,a)})};u.fn.jqmHide=function(a){return this.each(function(){a=a||window.event;u.jqm.close(this._jqm,a)})};u.jqm={hash:{},open:function(k,l){var n=i[k],j=n.c,a="."+j.closeClass,h=(parseInt(n.w.css("z-index"))),h=(h>0)?h:3000,b=u("<div></div>").css({height:"100%",width:"100%",position:"fixed",left:0,top:0,"z-index":h-1,opacity:j.overlay/100});
if(n.a){return f}n.t=l;n.a=true;n.w.css("z-index",h);if(j.modal){if(!x[0]){q("bind")}x.push(k)}else{if(j.overlay>0){n.w.jqmAddClose(b)}else{b=f}}n.o=(b)?b.addClass(j.overlayClass).prependTo("body"):f;if(v){u("html,body").css({height:"100%",width:"100%"});if(b){b=b.css({position:"absolute"})[0];for(var g in {Top:1,Left:1}){b.style.setExpression(g.toLowerCase(),"(_=(document.documentElement.scroll"+g+" || document.body.scroll"+g+"))+'px'")}}}if(j.ajax){var c=j.target||n.w,d=j.ajax,c=(typeof c=="string")?u(c,n.w):u(c),d=(d.substr(0,1)=="@")?u(l).attr(d.substring(1)):d;c.html(j.ajaxText).load(d,j.ajaxP,function(){if(j.onLoad){j.onLoad.call(this,n)}if(a){n.w.jqmAddClose(u(a,n.w))}r(n)})}else{if(a){n.w.jqmAddClose(u(a,n.w))}}if(j.toTop&&n.o){n.w.before('<span id="jqmP'+n.w[0]._jqm+'"></span>').insertAfter(n.o)
}(j.onShow)?j.onShow(n):n.w.show();r(n);return f},close:function(a){var b=i[a];if(!b.a){return f}b.a=f;if(x[0]){x.pop();if(!x[0]){q("unbind")}}if(b.c.toTop&&b.o){u("#jqmP"+b.w[0]._jqm).after(b.w).remove()}if(b.c.onHide){b.c.onHide(b)}else{b.w.hide();if(b.o){b.o.remove()}}return f},params:{}};var e=0,i=u.jqm.hash,x=[],v=u.browser.msie&&(u.browser.version=="6.0"),f=false,t=u('<iframe src="javascript:false;document.write(\'\');" class="jqm"></iframe>').css({opacity:0}),r=function(a){if(v){if(a.o){a.o.html('<p style="width:100%;height:100%"/>').prepend(t)}else{if(!u("iframe.jqm",a.w)[0]){a.w.prepend(t)}}}s(a)},s=function(a){try{u(":input:visible",a.w)[0].focus()}catch(b){}},q=function(a){u()[a]("keypress",w)[a]("keydown",w)[a]("mousedown",w)},w=function(a){var c=i[x[x.length-1]],b=(!u(a.target).parents(".jqmID"+c.s)[0]);
if(b){s(c)}return !b},m=function(c,b,a){return c.each(function(){var d=this._jqm;u(b).each(function(){if(!this[a]){this[a]=[];u(this).click(function(){for(var h in {jqmShow:1,jqmHide:1}){for(var g in this[h]){if(i[this[h][g]]){i[this[h][g]].w[h](this)}}}return f})}this[a].push(d)})})}})(jQuery);var lazyLoadImageObjArry=lazyLoadImageObjArry||[];var isBusy=false;var threadCount=0;var imgCountPerTime=1000;var lazyLoadDelay=50;(function(b){b.YHD={imgLoad:{objArray:[],loadImg:function(e){if(e&&e.length>0){for(var f=0,a=e.length;f<a;f++){if(b.inArray(e[f],b.YHD.imgLoad.objArray)==-1){b.YHD.imgLoad.objArray.push(e[f])}}}},pageTop:function(){return document.documentElement.clientHeight+Math.max(document.documentElement.scrollTop,document.body.scrollTop)},load:function(){if(window.shutdownImgLoad){return false}isBusy=true;threadCount=0;var a=b.YHD.imgLoad.pageTop();for(var p=0,q=b.YHD.imgLoad.objArray.length;p<q;p++){var m=b("#"+b.YHD.imgLoad.objArray[p]);if(m){var n=m.find("img");for(var i=0,l=n.size();i<l;i++){var o=b(n[i]);if(o.offset().top<=a+100){var r=o.attr("original");if(r){o.attr("src",r).removeAttr("original");
threadCount++;if(threadCount>=imgCountPerTime){break}}}}}if(threadCount>=imgCountPerTime){break}}if(threadCount>=imgCountPerTime){setTimeout("jQuery.YHD.imgLoad.load()",lazyLoadDelay)}else{isBusy=false}}}}})(jQuery);function initImageLoad(){if(lazyLoadImageObjArry&&lazyLoadImageObjArry.length>0){jQuery.YHD.imgLoad.loadImg(lazyLoadImageObjArry);window.scrollTo(0,0);jQuery(window).bind("scroll",function(){if(!isBusy){jQuery.YHD.imgLoad.load()}else{}})}}jQuery("#footer").ready(function(){if(isIndex!=1){initImageLoad()}});jQuery(document).ready(function(){if(isIndex==null||isIndex!=1){jQuery("#yhd_pop_win").bgiframe()}});var YHD={init:function(){if(jQuery("#yhd_pop_win").size()>0){jQuery("#yhd_pop_win").jqm({overlay:50,overlayClass:"jqmOverlay",closeClass:"jqmClose",trigger:".jqModal",ajax:false,ajaxP:false,ajaxText:"",target:false,modal:false,toTop:false,onShow:false,onHide:false,onLoad:false})}},initPosition:function(o,l,n,m,p){var r=(l==null?o.width():l);var k=(n==null?o.height():n);jQuery(o).width(r).height(k);if(m&&p){jQuery(o).css({top:m,left:p})}else{if(m!=null){jQuery(o).css({top:m})}else{if(p!=null){jQuery(o).css({left:p})}else{var q=(jQuery(window).width()-o.width())/2+jQuery(window).scrollLeft()+"px";var h=(jQuery(window).height()-o.height())/2+jQuery(window).scrollTop()+"px";jQuery(o).css("left",q).css("top",h)
}}}if(l!=null&&n!=null){jQuery(o).jqm({onHide:function(a){a.w.width(0).height(0).hide();if(a.o){a.o.remove()}}})}},popwin:function(l,k,j,n,h,i){YHD.init();var m=jQuery("#yhd_pop_win");if(l!=null){jQuery(m).html(l)}YHD.initPosition(m,k,j,n,h);jQuery(m).jqm({overlay:10,overlayClass:"pop_win_bg",modal:true,toTop:true}).jqmShow().jqmAddClose(".popwinClose");jQuery(".pop_win_bg").bgiframe()},popwinId:function(n,h,l,k,i,j){var m=jQuery("#"+n);YHD.initPosition(m,l,k,i,j);m.css("height","auto");m.css("z-index","1000");m.show();if(!h){h="popwinClose"}jQuery("."+h,m).bind("click",function(){m.hide()})},popTitleWin:function(h,n,p,m,j,k,l){var o='<H3 class="pop_win_title" >'+h+'<img src="'+imagePath+'/icon_close.jpg" class="popwinClose"/></H3>';o+='<div class="pop_win_content" class="content">'+n+"</div>";
o+='<div style="clear:both"></div>';YHD.popwin(o,p,m,j,k,l)},alert:function(i,j,h,l,k){var g='<div class="aptab" style="left: 0px; top: 0px;"><div class="aptab_header"><ul><li class="fl pl10">温馨提示</li><li class="popwinClose fr btn_close mr10"><img src="'+imagePath+'/popwin/icon_close.jpg"></li><li class="popwinClose fr mr5 color_white"><a href="###">关闭</a></li></ul> <div class="clear"></div></div>';g+='<div class="aptab_center" align="center"><p class="pt10">'+i+"</p>";g+='<p class="pt5"><input name="submit" class="pop_win_button popwinClose" id="pop_win_ok_btn" type="button"   value="确 定" /></p>';g+="</div>";g+='<div class="aptab_footer"><img src="'+imagePath+'/popwin/aptab_footer.jpg"></div></div>';if(h==null){h=300}YHD.popwin(g,h,l,null,null,k);if(j){jQuery("#pop_win_ok_btn").click(function(){j()
})}},alertPrescriotion:function(s,q,m,o,l){var r="";if(s==null){r=""}else{if(s==14){r="本品为处方药，为了用药安全，已经将您的个人信息进行登记，谢谢配合！如需用药指导帮助请联系在线客服！"}else{if(s==16||s==17||s==18){r="本品为处方药，不能网络订购；如需购买，请到药店凭处方购买或咨询客服!"}else{r="本品为处方药,请在提交订单前上传处方,如需用药师指导帮助,请联系在线客服！"}}}var t="确定";if(s!=null&&(s==16||s==17||s==18)){t="关闭"}var n='<input name="submit" class="pop_win_button popwinClose fl" id="pop_win_ok_btn" type="button"   value="'+t+'" />';var p='<a href="http://vipwebchat.tq.cn/sendmain.jsp?admiuin=8987730&uin=8987730&tag=call&ltype=1&rand=15214019897292372&iscallback=0&agentid=0&comtimes=48&preuin=8987730&buttonsflag=1010011111111&is_appraise=1&color=6&style=1&isSendPreWords=1&welcome_msg=%C4%FA%BA%C3%A3%A1%CE%D2%CA%C7%C6%BD%B0%B2%D2%A9%CD%F8%B5%C4%D6%B4%D0%D0%D2%A9%CA%A6%A3%AC%C7%EB%CE%CA%C4%FA%D0%E8%D2%AA%CA%B2%C3%B4%B0%EF%D6%FA%A3%BF&tq_right_infocard_url='+imagePath+"/images/yaowang/v2/tq01.jpg&cp_title=%BB%B6%D3%AD%CA%B9%D3%C3%C6%BD%B0%B2%D2%A9%CD%F8%D4%DA%CF%DF%BD%D3%B4%FD%CF%B5%CD%B3&page="+imagePath+"/&localurl="+imagePath+"/channel/15694&spage="+imagePath+'/&nocache=0.6430502517039929" class="pop_win_button fl" style="display:block;">咨询</a>';
var h='<div class="aptab" style="left: 0px; top: 0px;"><div class="aptab_header"><ul><li class="fl pl10">温馨提示</li><li class="popwinClose fr btn_close mr10"><img src="'+imagePath+'/popwin/icon_close.jpg"></li><li class="popwinClose fr mr5 color_white"><a href="###">关闭</a></li></ul> <div class="clear"></div></div>';h+='<div class="aptab_center" align="center"><p class="pt10">'+r+"</p>";h+='<div class="pt5" style="width:160px;">';if(s!=null&&(s==16||s==17||s==18)){h+=p;h+=n}else{h+=n;h+=p}h+='<div class="clear"></div></div>';h+='<p class="pt10 mb10" style="color:#b00000;font-weight:bold;">免费客服热线:400-007-0958</p></div>';h+='<div class="aptab_footer"><img src="'+imagePath+'/popwin/aptab_footer.jpg"></div></div>';if(m==null){m=300}YHD.popwin(h,m,o,null,null,l);if(q){if(s!=null&&s!=16&&s!=17&&s!=18){jQuery("#pop_win_ok_btn").click(function(){q()
})}}},alertForLottery:function(i,j,h,l,k){var g='<div class="popbox"><div><h2><a href="#" class="popwinClose">关闭</a>温馨提示</h2><dl class="noaward">';g+="<dt>"+i+"</dt>";g+='</dl><p><button class="btn_go"  id="pop_win_ok_btn">确定</button></p></div></div>';if(h==null){h=300}YHD.popwin(g,h,l,null,null,k);if(j){jQuery("#pop_win_ok_btn").click(function(){j()})}},confirm:function(n,k,l,m,i,h){var j='<div class="aptab" style="left: 0px; top: 0px;"><div class="aptab_header"><ul><li class="fl pl10">温馨提示</li><li class="popwinClose fr btn_close mr10"><img src="'+imagePath+'/popwin/icon_close.jpg"></li><li class="popwinClose fr mr5 color_white"><a href="###">关闭</a></li></ul> <div class="clear"></div></div>';j+='<div class="aptab_center" align="center"><p class="pt10">'+n+"</p>";j+='<div align="center"><input name="submit" class="pop_win_button popwinClose" id="pop_win_ok_btn" type="button"   value="确 定" /><input name="submit"   class="pop_win_button popwinClose" type="button" id="pop_win_cancel_btn" value="返回购物车" /></div>';
j+="</div>";j+='<div class="aptab_footer"><img src="'+imagePath+'/popwin/aptab_footer.jpg"></div></div>';if(m==null){m=300}YHD.popwin(j,m,i,null,null,h);if(k){jQuery("#pop_win_ok_btn").click(function(){k()})}if(l){jQuery("#pop_win_cancel_btn").click(function(){l()})}},confirmToLottery:function(n,k,l,m,i,h){var j=""+n+"";if(m==null){m=300}YHD.popwin(j,m,i,null,null,h);if(k){jQuery("#pop_win_ok_btn").click(function(){k()})}if(l){jQuery("#pop_win_cancel_btn").click(function(){l()})}},processBar:function(d,c){if(d){YHD.popwin('<img src="'+imagePath+'/loading.gif" />',null,null,null,null,c)}else{jQuery("#yhd_pop_win").jqmHide()}},ajax:function(j,k,n,i){var m=jQuery("#yhd_pop_win");m.jqm({ajax:j,ajaxP:k,ajaxText:'<img src="'+imagePath+'/loading.gif" />',onLoad:n,modal:true,toTop:true,closeClass:"popwinClose"}).jqmShow();
var h=(jQuery(window).width()-m.width())/2+jQuery(window).scrollLeft()+"px";var l=(jQuery(window).height()-m.height())/2+jQuery(window).scrollTop()+"px";jQuery(m).css("left",h).css("top",l)},ajaxPointAlert:function(j,k,n,i){var m=jQuery("#yhd_pop_win");m.jqm({ajax:j,ajaxP:k,ajaxText:'<img src="'+imagePath+'/loading.gif" />',onLoad:n,modal:true,toTop:true,closeClass:"popwinClose"}).jqmShow();var h="436.5px";var l=(jQuery(window).height()-m.height())/2+jQuery(window).scrollTop()+"px";jQuery(m).css("left",h).css("top",l)},pageX:function(b){b=b||window.event;return b.pageX||b.clientX+document.body.scrollLeft},pageY:function(b){b=b||window.event;return b.pageY||b.clientY+document.body.scrollTop}};function DrawImage(d,a,c){var b=new Image();b.src=d.src;if(b.width>0&&b.height>0){if(b.width/b.height>=a/c){if(b.width>a){d.width=a;d.height=(b.height*a)/b.width}else{d.width=b.width;d.height=b.height}}else{if(b.height>c){d.height=c;d.width=(b.width*c)/b.height}else{d.width=b.width;d.height=b.height}}}}function switch_btn_img(a,b){if(a!=null&&b!=null){jQuery(a).attr("src",b)}};Array.prototype.toTRACKERJSONString=function(){var d="[";for(var c=0;c<this.length;c++){if(this[c] instanceof Parameter){if(this[c].value instanceof Array){d+="{"+this[c].key+"="+this[c].value.toTRACKERJSONString()+"},"}else{d+=this[c].toJSONString()+","}}}if(d.indexOf(",")>0){d=d.substring(0,d.length-1)}return d+"]"};var trackerUrl="";function Parameter(d,c){this.key=d;if(this.key=="internalKeyword"){this.value=encodeURI(c)}else{this.value=c}this.toJSONString=function(){return"{"+this.key+"="+this.value+"}"}}var linkPosition="";var buttonPosition="";function TrackerContainer(b){this.url=b;this.parameterArray=new Array();this.stockArray=new Array();this.commonAttached=new Array();this.addParameter=function(a){this.parameterArray.push(a)};this.addStock=function(d,a){this.stockArray.push(new Parameter(d,a))
};this.addCommonAttached=function(a,d){this.commonAttached.push(new Parameter(a,d))};this.buildAttached=function(){if(this.stockArray.length>0){this.commonAttached.push(new Parameter("1",this.stockArray))}if(this.commonAttached.length>0){this.addParameter(new Parameter("attachedInfo",this.commonAttached.toTRACKERJSONString("attachedInfo")))}};this.toUrl=function(){this.buildAttached();for(var f=0;f<this.parameterArray.length;f++){var a=this.parameterArray[f].key;var e=this.parameterArray[f].value;this.url+="&"+a+"="+e}trackerUrl=this.url;return this.url}}var trackerUrl=("https:"==document.location.protocol?"https://":"http://")+URLPrefix.tracker+"/tracker/info.do?1=1";var trackerContainer=new TrackerContainer(trackerUrl);trackerContainer.addParameter(new Parameter("ieVersion",navigator.userAgent));
trackerContainer.addParameter(new Parameter("platform",navigator.platform));var page_refer=document.referrer?document.referrer:"";var page_location=window.location.href;function addTrackPositionToCookie(c,d){document.cookie="linkPosition="+encodeURIComponent(d)+";path=/;domain=."+no3wUrl+";"}function getCookie(h){var f=document.cookie;var j=f.split("; ");for(var g=0;g<j.length;g++){var i=j[g].split("=");if(i[0]==h){return i[1]}}return null}function gotracker(j,i,f){var h=trackerUrl;var g=new RegExp("&linkPosition=\\w*","g");h=h.replace(g,"");var g=new RegExp("&buttonPosition=\\w*","g");h=h.replace(g,"");var g=new RegExp("&productId=\\w*","g");h=h.replace(g,"");if(i!=null){h=h+"&buttonPosition="+i}if(f!=null){h=h+"&productId="+f}jQuery.ajax({async:true,url:h,type:"GET",dataType:"jsonp",jsonp:"jsoncallback"})
}function bindLinkClickTracker(e,f){var d=jQuery("#"+e+" a");d.click(function(){var a=jQuery(this).text();a=f+"_"+encodeURIComponent(jQuery.trim(a));addTrackPositionToCookie("1",a)})}function callLoadCookie(){var b="";if(page_location.indexOf("yihaodian.com")!=-1&&page_refer.indexOf("1mall.com")!=-1){b=URLPrefix.mall}else{if(page_location.indexOf("1mall.com")!=-1&&page_refer.indexOf("yihaodian.com")!=-1){b=URLPrefix.central}}if(b!=""){if("https:"==document.location.protocol){b=b.replace("http","https")}jQuery.getJSON(b+"/yhd-common/assign-login-api.do?cookieNames=unionKey&cookieNames=adgroupKeywordID&cookieNames=unionType&cookieNames=uid&cookieNames=websiteid&callback=?",function(a){if(!a.ERROR){jQuery(a.info).each(function(){if(this.value!=""){var d=new Date();d.setTime(d.getTime()+(1*24*3600000));
jQuery.cookie(this.name,this.value,{domain:no3wUrl,path:"/",expires:d})}})}})}}function callLoadlinkCookie(){var d="";if(page_location.indexOf("yihaodian.com")!=-1){d=URLPrefix.mall}else{if(page_location.indexOf("1mall.com")!=-1){d=URLPrefix.central}}if(d!=""){if("https:"==document.location.protocol){d=d.replace("http","https")}var c=d+"/yhd-common/assign-login-api.do?cookieNames=linkPosition&callback=?";jQuery.ajax({async:true,url:c,timeout:1000,type:"GET",dataType:"jsonp",jsonp:"jsoncallback",success:function(a){if(!a.ERROR){jQuery(a.info).each(function(){if(this.value!=""){var b="";trackerContainer.addParameter(new Parameter(this.name,this.value));b="cookieDatas="+this.name+",,"+this.value+",,0";callAddCookieApi(d,b)}})}},complete:function(){initHijack()},statusCode:{404:function(){initHijack()
}}})}else{initHijack()}}function callAddCookieApi(d,c){jQuery.ajax({async:true,url:d+"/yhd-common/cookie-set-api.do?"+c+"&callback=?",timeout:1000,type:"GET",dataType:"jsonp",jsonp:"jsoncallback",success:function(a){}})}callLoadCookie();var loli={_loli:loli};(function(c){var d=window.loli||(window.loli={});d.delay=function(r,t,b,p,s){var n="";var q=s||200;var o=q-50;var a;c(r)[t](function(){var e=c(this);var f=true;if(b){var f=b.call(e)}if(!(f==false)){a=setTimeout(function(){m.call(e)},q);n=new Date().getTime()}});function m(){if((new Date().getTime()-n)>=o){if(p){p.call(this)}n=new Date().getTime()}}}})(jQuery);function addTrackerToEvent(b){$(b+" a[tk]").each(function(a){var d=this;$(d).click(function(){addTrackPositionToCookie("1",$(d).attr("tk"))})})};(function(b){var a=function(d){var f=d,c=URLPrefix.busystock?URLPrefix.busystock:"http://busystock.i.yihaodian.com",e="/busystock/restful/truestock";_setting={attr:"productid",busystock_url:c+e,busystockAttr:"productIds",lazyLoadDelay:500,priceCounter:30,load:true,maxNum:200,oneOffLoad:false,indexLoad:false,scrollLoad:true,hfix:100};b.extend(_setting,f);this.param=_setting};a.prototype={constructor:a,isBusy:false,doc:document,priceArray:[],lazyPrice:function(d,i){var f=this,h=f.param;if(i){f.param=b.extend(h,i)}var c=d,g=h.attr,j=h.busystock_url,e=h.maxNum;if(c instanceof b){f.priceArray=d.find("["+g+"]").get()}else{if(b.isArray(c)){f.priceArray=c}else{f.priceArray=b(d).find("["+g+"]").get()}}if(h.oneOffLoad){f._flushPrice(f.priceArray,g,j,h.busystockAttr,e);return d}if(h.indexLoad){f._lazyPrice(f.imgArray,h)
}if(h.scrollLoad){f._iniLazy(function(){if(f.priceArray.length==0){return d}f._lazyPrice(f.priceArray,h)})}if(h.load){f._loadPrice()}return d},_loadPrice:function(){var i=this,d=i.param,c=d.attr,f=d.busystock_url,j=d.busystockAttr,h=d.maxNum,e=d.lazyLoadDelay,g=d.priceCounter;(function(o,n,r,k,m,q,l){var p=setInterval(function(){if(o.isBusy){return false}var s=o.priceArray;var t=s.length;if(t>l){o._priceLoad(s,n,r,k,0,l,m)}else{if(t>0){o._priceLoad(s,n,r,k,0,t,m)}else{clearInterval(p)}}},q)})(i,c,f,j,h,e,g)},_lazyPrice:function(l,j){var k=j.attr,e=l.length,h=j.busystock_url,g=j.busystockAttr,i=j.maxNum,c=this,d=0;c.isBusy=true;var f=c._pageTop()+j.hfix;c._priceLoad(l,k,h,g,d,e,i,f);c.isBusy=false},_priceLoad:function(j,h,l,g,d,f,p,c){var n=this,m=j.length;if(m==0){return}var e=new Array();if(c){for(var q=d;
q<f;q++){var k=b(j[q]);if(k.offset().top<c){e.push(k);delete j[q]}}}else{for(var q=d;q<f;q++){var k=b(j[q]);e.push(k);delete j[q]}}n._flushPrice(e,h,l,g,p);var o=new Array();for(var q=0;q<j.length;q++){if(j[q]!=null){o.push(j[q])}}n.priceArray=o},_iniLazy:function(c){var d=this;window.scrollTo(0,0);b(window).bind("scroll",function(){if(!d.isBusy){c()}else{}})},_pageTop:function(){var e=this,d=e.doc,c=d.documentElement;return c.clientHeight+Math.max(c.scrollTop,d.body.scrollTop)},_flushPrice:function(u,k,s,m,t){if(u&&u.length>0){var c=u.length,q=0,f,g=1;if(c<t){f=c}else{g=(c-1)/t+1}var o=jQuery.cookie("provinceId");if(!o){return}var n="?mcsite="+currBsSiteId+"&provinceId="+o;var d={};for(var r=0;r<g;r++){if(r>0){q=t*r;f=q+t;if(f>c){f=c}}d={};for(var l=q;l<f;l++){var h=jQuery(u[l]);n+="&"+m+"="+h.attr(k);
if(!d[h.attr(k)]){d[h.attr(k)]=[]}d[h.attr(k)].push(h)}try{jQuery.getJSON(s+n+"&callback=?",function(e){jQuery.each(e,function(j,v){var i=d[v.productId];if(i){jQuery.each(i,function(x,w){jQuery(w).text("¥"+v.productPrice).removeAttr(k)})}})})}catch(p){}}}}};b.fn.extend({lazyPrice:function(d){var c=new a();return c.lazyPrice(this,d)}})})(jQuery);(function(d){var e=function(c){var a=c,b={lazyImg:{ltime:"2000",lnum:"5",load:true,indexLoad:false,scrollLoad:true,attr:"original",wideAttr:null,hfix:100}};d.extend(b,a);this.param=b};e.prototype={constructor:e,isBusy:false,doc:document,imgArray:[],wideAttr:null,lazyImg:function(b,j){var c=this,a=c.param.lazyImg,k,l=b;if(j){c.param.lazyImg=d.extend(a,j)}if(l instanceof d){k=l}else{if(d.isArray(l)){l=d(l.join(","))}else{l=d(l)||d("body")}}if(a.wideAttr){wideAttr=a.wideAttr;c.imgArray=l.find("img["+a.attr+"],img["+wideAttr+"]")}else{c.imgArray=l.find("img["+a.attr+"]")}if(a.indexLoad){c._lazyImg(c.imgArray,a)}if(a.scrollLoad){c._iniLazy(function(){if(c.imgArray.length==0){return k}c._lazyImg(c.imgArray,a)})}if(a.load){c._loadImg(l)}return b},_loadImg:function(l){var b=this,c=b.param.lazyImg,j=c.attr,k=c.ltime,a=c.lnum;
(function(g,p,h,i,q){var r=setInterval(function(){if(g.isBusy){return false}var m=g.imgArray;var n=m.length;if(n>q){g._imgLoad(m,0,q,h)}else{if(n>0){g._imgLoad(m,0,n,h)}else{clearInterval(r)}}},i)})(b,l,j,k,a)},_lazyImg:function(o,a){var m=a.attr,b=o.length,c=this,p=0,l=1;c.isBusy=true;var n=c._pageTop()+a.hfix;c._imgLoad(c.imgArray,p,b,m,n);c.isBusy=false},_imgLoad:function(p,n,a,r,b){var c=this;if(b){for(var q=n;q<a;q++){var o=d(p[q]);if(o.offset().top<b){c._renderImg(o,r);delete p[q]}}}else{for(var q=n;q<a;q++){var o=d(p[q]);c._renderImg(o,r);delete p[q]}}var i=new Array();for(var q=0;q<p.length;q++){if(p[q]!=null){i.push(p[q])}}c.imgArray=i},_renderImg:function(a,b){var c=a;if(typeof wideAttr!="undefined"&&wideAttr!=null&&c.attr(wideAttr)){c.attr("src",c.attr(wideAttr));c.removeAttr(b)}else{c.attr("src",c.attr(b));
c.removeAttr(b)}},_iniLazy:function(b){var a=this;window.scrollTo(0,0);d(window).bind("scroll",function(){if(!a.isBusy){b()}else{}})},_pageTop:function(){var c=this,a=c.doc,b=a.documentElement;return b.clientHeight+Math.max(b.scrollTop,a.body.scrollTop)}};var f=new e();d.fn.extend({lazyImg:function(a){var b=new e();return b.lazyImg(this,a)}})})(jQuery);(function(b){var a=function(c){var e=c,d={activeLoadTime:2000,load:true,activeLoadNum:1,ele:"div",hfix:100,callback:null,attr:"lazyLoad_textarea",flushPrice:true,indexLoad:false,scrollLoad:true};b.extend(d,e);this.param=d};a.prototype={constructor:a,isBusy:false,doc:document,lazyDom:function(h,f){var k=this,i=k.param,c;if(f){k.param=b.extend(i,f)}var e=i.ele,g=i.attr,m=i.indexLoad,l=h;if(l instanceof b){c=l}else{l=b(l)||b("body")}if(m){var j=l.find(e+"["+g+"]").get();if(j.length==0){if(l.attr(g)){j=l}else{return c}}k._lazyDom(j,i)}var d=i.scrollLoad;if(d){k._initLazy(function(){var n=l.find(e+"["+g+"]").get();if(n.length==0){if(l.attr(g)){n=l}else{return c}}k._lazyDom(n,i)})}if(i.load){k._loadDom(l)}},_loadDom:function(d){var i=this,h=i.param,f=h.ele,g=h.attr,c=h.activeLoadTime,e=h.activeLoadNum;
(function(k,o,m,j,q,p,n){var l=setInterval(function(){if(k.isBusy){return false}var s=o.find(j+"["+q+"]").get(),r=s.length;if(r>n){k._domLoad(s,m,0,n,q)}else{if(r>0){k._domLoad(s,m,0,r,q)}else{clearInterval(l)}}},p)})(i,d,h,f,g,c,e)},_lazyDom:function(i,d){var c=d.ele,e=d.attr,j=i.length,g=this,h=0,f=1;g.isBusy=true;var k=g._pageTop()+d.hfix;g._domLoad(i,d,h,j,e,k);g.isBusy=false},_domLoad:function(j,f,m,d,e,c){var h=f.flushPrice;if(c){for(var g=m;g<d;g++){var l=b(j[g]);if(l.offset().top<c){var k=l.attr(e),n=l.find("#"+k);l.html(n.val());l.removeAttr(e);if(h){l.lazyPrice({oneOffLoad:true})}if(f.callback){f.callback.call(l)}}}}else{for(var g=m;g<d;g++){var l=b(j[g]);var k=l.attr(e),n=l.find("#"+k);l.html(n.val());n.remove();l.removeAttr(e);if(h){l.lazyPrice({oneOffLoad:true})}if(f.callback){f.callback.call(l)
}}}},_initLazy:function(c){var d=this;window.scrollTo(0,0);b(window).bind("scroll",function(){if(!d.isBusy){c()}else{}})},_pageTop:function(){var c=this,e=c.doc,d=e.documentElement;return d.clientHeight+Math.max(d.scrollTop,e.body.scrollTop)}};b.fn.extend({lazyDom:function(d){var c=new a();return c.lazyDom(this,d)}})})(jQuery);var YHDMINICART=YHDMINICART||{};function addToCart(m,n,k,i,j,l){var h={};h.amount=i;h.isFloat=j;h.linkPosition=l;h.merchantId=k;addToCartNew(m,n,h)}function addToCartNew(n,o,p){var i=p.amount;var k=p.isFloat;var m=p.linkPosition;var l=p.merchantId;var j=currDomain+"/cart/phone/isContractProduct.do?productId="+o+"&merchantId="+l+"&callback=?";jQuery.getJSON(j,function(b){if(b.ERROR){}else{if(b){var a=parseInt(b.code);if(a==1){addIphone4ToCart(n,o,l,i,k)}else{if(jQuery("#validateProductId").length>0){jQuery("#validateProductId").attr("value",o)}if(jQuery.cookie("prompt_flag")==null&&jQuery("#buyPromptDiv").length>0){YHD.popwinId("buyPromptDiv","popwinClose");jQuery("#validate").bind("click",function(){doAddToCart(n,o,p)})}else{doAddToCart(n,o,p)}}}}})}function addIphone4ToCart(i,j,h,f,g){if(jQuery("#validateProductId").length>0){jQuery("#validateProductId").attr("value",j)
}if(jQuery.cookie("prompt_flag")==null&&jQuery("#buyPromptDiv").length>0){YHD.popwinId("buyPromptDiv");jQuery("#validate").bind("click",function(){doAddIphone4ToCart(i,j,h,f)})}else{doAddIphone4ToCart(i,j,h,f)}}function doAddIphone4ToCart(f,g,e,h){window.location.href=currDomain+"/product/detail.do?productID="+g+"&merchantID="+e}function doAddToCart(f,g,h){if(isPrescriotionForCheckAddToCart(g)){var e=parseInt(jQuery("#buyButton_"+g).attr("specialType"));YHD.alertPrescriotion(e,function(){processDoAddToCart(f,g,h)})}else{processDoAddToCart(f,g,h)}}function isPrescriotionForCheckAddToCart(e){var f=false;if(jQuery("#buyButton_"+e).size()>0){var d=jQuery("#buyButton_"+e).attr("specialType");if(d!=null&&(parseInt(d)>=14&&parseInt(d)<=18)){f=true}}return f}function processDoAddToCart(s,p,r){var o=r.amount;
var q=r.isFloat;var n=r.linkPosition;var v=r.merchantId;var l=encodeURIComponent(document.referrer);var m=n?n:"";if(q){var t=currDomain+"/cart/addGlobalProduct2.do?productID="+p+"&merchantId="+v+"&productNum="+o+"&pageRef="+l+"&linkPosition="+m+"&callback=?";jQuery.getJSON(t,function(a){if(a.ERROR){}else{floatCartByScrollBar(a);if(a.value.indexOf("addProductFailed")<0){YHDMINICART.callBackFunc(r)}}})}else{var u=document.createElement("div");u.style.position="absolute";u.id="newDiv";document.body.appendChild(u);jQuery("#newDiv").html("<p align='center'><img src="+imagePath+"/loading.gif /></p>");var t=currDomain+"/cart/addGlobalProduct2.do?productID="+p+"&merchantId="+v+"&productNum="+o+"&pageRef="+l+"&linkPosition="+m+"&callback=?";jQuery.getJSON(t,function(a){if(a.ERROR){}else{if(a.code&&a.code!="undefined"&&a.code!=""){if(a.code.indexOf("buyEGiftCard.do")>-1){window.location.href=currDomain+a.code
}}afterAddToCart(a);if(a.value.indexOf("addProductFailed")<0){YHDMINICART.callBackFunc(r)}}},s)}}YHDMINICART.callBackFunc=function(e){var d={};var f=[];if(typeof e.func!="undefined"&&e.func){d=e.func}else{return false}if(typeof e.args!="undefined"&&e.args){f=e.args}d.apply(this,f)};var floatCartShowTime=0;function floatCartByScrollBar(n){if(n.code&&n.code!="undefined"&&n.code!=""){if(n.code.indexOf("buyEGiftCard.do")>-1){window.location.href=currDomain+n.code}}if(n.value.indexOf("addProductFailed")>-1){var l=jQuery(window).width()/2+jQuery(window).scrollLeft()+"px";var p=jQuery(window).height()/2+jQuery(window).scrollTop()+"px";YHD.popwin(n.value,jQuery("#yhd_pop_win").width(),jQuery("#yhd_pop_win").height(),p,l)}else{var m=function(){if(floatCartShowTime){clearTimeout(floatCartShowTime);floatCartShowTime=0
}};m();jQuery("#showMiniCart").show();floatCartShowTime=setTimeout(function(){jQuery("#showMiniCart").hide(1000);m()},2000);jQuery("#showMiniCart").mouseenter(m);reloadMiniCart(sliderMiniCart);var o=jQuery("#scrollCart");var i=jQuery("#headerNav").offset().top;var j=jQuery(window).scrollTop();if(o.length>0&&j>i){var k=function(){if(jQuery(window).scrollTop()<=i){jQuery(o).css({position:"relative",left:"auto",right:"auto",top:"auto"})}else{if(jQuery.browser.msie&&jQuery.browser.version=="6.0"){var a=jQuery(window).scrollTop()+10;jQuery(o).css("position","absolute").css("right",0).css("top",a)}else{jQuery(o).css({right:0,top:"10px",position:"fixed"})}}};k();jQuery(window).unbind("scroll",k);jQuery(window).bind("scroll",k)}}}function afterAddToCart(b){jQuery("#newDiv").html(b.value);YHD.popwinId("newDiv","popwinClose");
if(jQuery("#addProductResult",b.w).size()>0){if("success"==jQuery("#addProductResult",b.w).val()){reloadMiniCart()}}}function buildCartNumber(){var b=getCartProductNum();jQuery("#in_cart_num").html(b)}function getCartProductNum(){var c=jQuery.cookie("cart_cookie_uuid");var d=0;if(c){d=parseInt(jQuery.cookie("cart_num"))>999?"999+":parseInt(jQuery.cookie("cart_num"))}return d?d:0}function loadMiniCart(){if(!jQuery("#in_cart_num").data("isLoaded")){jQuery("#in_cart_num").data("isLoaded",true);reloadMiniCart(sliderMiniCart)}else{sliderMiniCart()}}function sliderMiniCart(){if(typeof currSiteId!="undefined"&&currSiteId!=1){if(parseInt(jQuery("#in_cart_num").text())){if(jQuery("#showMiniCart").height()>560){jQuery("#showMiniCart").css("height","560px")}if(isIndex&&jQuery.browser.msie&&jQuery.browser.version<=6){var b=jQuery("#showMiniCart").height();
jQuery("#DivShim").css("height",(b>=560?560:b)+"px").show()}jQuery("#showMiniCart").show()}}}function reloadMiniCart(d){var e=this;var f=currDomain+"/cart/ajaxGetGlobalMiniCartInfo.do?callback=?";jQuery.getJSON(f,function(b){if(b&&b.message=="success"){jQuery("#showMiniCart").css("height","auto");afterLoadMiniCart(b.data);if(d&&(typeof d=="function")){d.apply(e,[b.data])}}else{if(typeof currSiteId!="undefined"&&currSiteId!=1){var a=jQuery("#showMiniCart");jQuery("#in_cart_num").text("0");a.hide().html("");jQuery("#DivShim").css("height","0px").hide();jQuery("#showMiniCart").hide();a.data("inani",false)}else{afterLoadMiniCart()}}})}function yhdSiteLoadMiniCart(w){var u=jQuery("#showMiniCartDetail");var x="";var t;if(w&&w.totalNum&&w.items){var r=parseInt(w.totalNeedPoint);var v=parseInt(w.totalNeedZhongxinPoint);
var n=parseFloat(w.totalNeedMoney);var q=parseFloat(w.totalAmount)+n;q=q.toFixed(2);var x="<ul>";jQuery(w.items).each(function(D){var k=this;var B=parseInt(k.itemType);var f=parseInt(k.warningType);var g=parseInt(k.pointBuyType);var h=k.hasPromoteLimitAttachedKey;var e=parseInt(k.promotionContentType);var c=k.promotionLevelId;var b=false;if(B==0&&(e==3||e==9||e==10)){b=true}if(f>0){x+='<li id="mini_cart_li_'+D+'" class="miniSoldout">'}else{x+='<li id="mini_cart_li_'+D+'">'}var C="YHD_TOP_minicart";if(b){var d=currDomain+"/promotion/detail.do?promotionId="+k.promotionId+"&promotionLevelId="+c+"&merchantId="+k.merchantId;x+='<a traget="_blank" class="pro_img" href="'+d+'" onclick="addTrackPositionToCookie(\''+1+"','"+C+'\');"><img alt="'+k.cnName+'" src="'+URLPrefix.statics+'/global/images/promotion_mix.jpg"></a>';
x+='<a traget="_blank" class="pro_name"  href="'+d+'" onclick="addTrackPositionToCookie(\''+1+"','"+C+"');\">"+k.cnName+"</a>"}else{x+='<a traget="_blank" class="pro_img" href="'+currDomain+"/product/"+k.productId+"_"+k.merchantId+'" onclick="addTrackPositionToCookie(\''+1+"','"+C+'\');"><img alt="'+k.cnName+'" src="'+k.picture4040URL+'"></a>';x+='<a traget="_blank" class="pro_name"  href="'+currDomain+"/product/"+k.productId+"_"+k.merchantId+'" onclick="addTrackPositionToCookie(\''+1+"','"+C+"');\">"+k.cnName+"</a>"}if(f<=0){x+='<span class="pro_price">';var j=parseInt(k.num);var i=k.totalPrice;i=i.toFixed(2);if(b){x+="&yen;"+k.totalPrice}else{if(g&&g>0){var a=parseFloat(k.needPoint/j);a=a.toFixed(0);if(g==1){x+=a+'积分<p class="cart_gray">('+chineseUrl+")</p>"}else{if(g==2){var l=parseFloat(k.needMoney/j);
l=l.toFixed(0);x+="("+a+"积分)<p>&yen;"+l+"</p>"}else{if(g==3){x+=a+'积分<p class="cart_gray">(中信)</p>'}else{if(g==4){x+='0<p class="cart_gray">(积分抽奖)</p>'}else{x+="&yen;"+i}}}}}else{if(k.activityId!=null&&k.activityId!="0"){x+="&yen;"+k.totalPrice}else{x+="&yen;"+i}}}}else{x+="<span>已售完"}x+="</span>";x+='<div class="num_box">';if(currSiteId==1){if(f<=0){x+=yhdMiniCart.loadModifyNumInfo(k)}}if(!b){if(g!=4&&(k.activityId==null||k.activityId=="0"||k.activityId=="-55")){if(f>0){x+='<a href="javascript:void(0);" onclick="ajaxDeleteMiniCartItem(\''+D+"','deleteWaringItem','"+k.productId+"','"+k.merchantId+"','"+k.promotionId+"','"+k.num+"');"}else{if(h&&g==0){x+='<a href="javascript:void(0);" onclick="ajaxDeleteMiniCartItem(\''+D+"','deletePromote','"+k.productId+"','"+k.merchantId+"','"+k.promotionId+"','"+k.num+"');"
}else{if(B==3){x+='<a href="javascript:void(0);" onclick="ajaxDeleteMiniCartItem(\''+D+"','deleteLandingpage','"+k.productId+"','"+k.merchantId+"','"+k.promotionId+"','"+k.num+"');"}else{if(B==0){x+='<a href="javascript:void(0);" onclick="ajaxDeleteMiniCartItem(\''+D+"','deleteGift','"+k.productId+"','"+k.merchantId+"','"+k.promotionId+"','"+k.num+"','"+k.promotionLevelId+"');"}else{x+='<a href="javascript:void(0);" onclick="ajaxDeleteMiniCartItem(\''+D+"','deleteItem','"+k.productId+"','"+k.merchantId+"','"+k.promotionId+"','"+k.num+"');"}}}}x+="return false;gotracker('2','YHD_TOP_delShop_"+D+"','"+k.productId+"')\">删除</a>"}}x+="</div>";x+="</li>"});x+="</ul>";var o="合计";if(typeof currSiteType!="undefined"&&currSiteType==2){o="金额总计（预估）"}x+='<div class="checkout_box">';x+='<p><span class="fl">共<strong>'+w.totalNum+"</strong>件商品</span>"+o+"：<strong>&yen;"+q+"</strong></p>";
x+='<a href="'+currDomain+'/cart/cart.do?action=view" class="checkout_btn">去结算</a>';x+="</div>";jQuery("#in_cart_num").text(parseInt(w.totalNum)>999?"999+":w.totalNum)}else{x='<div class="none_tips">';jQuery("#in_cart_num").text("0");x+="您的购物车里还没有"+chineseUrl+"的商品，欢迎选购！";x+="</div>"}var m=false;if(typeof siteFlag!="undefined"&&siteFlag==1){var p=typeof currSiteType!="undefined"&&currSiteType==1?"1号商城":"1号店";jQuery.getJSON(oppositeDomain+"/cart/ajaxCountNum.do?callback=?",function(a){if(a&&a.code==200){m=true;if(parseInt(a.data)>0){x+='<p class="mall_account"><a href='+oppositeDomain+"/cart/cart.do?action=view&switchProviceId="+jQuery.cookie("provinceId")+">";x+=p+"还有<strong>"+a.data+"</strong>件商品待结算</a></p>"}}s(u,x)});t=setTimeout(function(){if(!m){s(u,x)}},2000)}function s(a,b){a.html(b);yhdMiniCart.bindMiniCartEvent();
a.data("inani",false);if(typeof t!="undefined"&&t){clearTimeout(t)}}}function yaowangLoadMiniCart(m){var i=jQuery("#showMiniCart");if(m.totalNum&&m.items){var k=parseInt(m.totalNeedPoint);var j=parseInt(m.totalNeedZhongxinPoint);var n=parseFloat(m.totalNeedMoney);var l=parseFloat(m.totalAmount)+n;l=l.toFixed(2);var h='<ul><li class="pr_num">共<strong>'+m.totalNum+"</strong>件商品 金额总计(预估):<strong>";if(k&&k>0){h+=k+"积分（1号店）+"}if(j&&j>0){h+=j+"积分（中信）+"}h+=l+"</strong>元</li>";jQuery(m.items).each(function(e){var a=this;var d=parseInt(a.itemType);var u=parseInt(a.warningType);var s=parseInt(a.pointBuyType);var t=a.hasPromoteLimitAttachedKey;if(u>0){h+='<li id="mini_cart_li_'+e+'" style="border:1px solid #FF6666;background: none repeat scroll 0 0 #ffe1e1;">'}else{h+='<li id="mini_cart_li_'+e+'">'}var c="minicart";
h+='<a traget="_blank" href="'+URLPrefix.central+"/product/"+a.productId+"_"+a.merchantId+'" onclick="addTrackPositionToCookie(\''+1+"','"+c+'\');"><img src="'+a.picture4040URL+'"></a><a class="t" "_blank" href="'+URLPrefix.central+"/product/"+a.productId+"_"+a.merchantId+'" onclick="addTrackPositionToCookie(\''+1+"','"+c+"');\">"+a.cnName+"</a>";h+='<span class="fr">';var g=parseInt(a.num);var v=a.currentPrice;v=v.toFixed(2);if(s&&s>0){var f=parseFloat(a.needPoint/g);f=f.toFixed(0);if(s==1){h+="<strong>"+f+"积分(1号店)x"+g+"</strong>"}else{if(s==2){var b=parseFloat(a.needMoney/g);b=b.toFixed(0);h+="<strong>("+f+"积分+￥"+b+")x"+g+"</strong>"}else{if(s==3){h+="<strong>"+f+"积分(中信)x"+g+"</strong>"}else{if(s==4){h+="<strong> 0(积分抽奖)x"+g+"</strong>"}else{h+="<strong>￥"+v+"x"+g+"</strong>"}}}}}else{if(a.activityId!=null&&a.activityId!="0"){h+="<strong>￥"+a.totalPrice+"</strong>"
}else{h+="<strong>￥"+v+"x"+g+"</strong>"}}if(s!=4&&(a.activityId==null||a.activityId=="0"||a.activityId=="-55")){if(u>0){h+='<a href="javascript:void(0);" onclick="ajaxDeleteMiniCartItem(\''+e+"','deleteWaringItem','"+a.productId+"','"+a.merchantId+"','"+a.promotionId+"','"+a.num+"');"}else{if(t&&s==0){h+='<a href="javascript:void(0);" onclick="ajaxDeleteMiniCartItem(\''+e+"','deletePromote','"+a.productId+"','"+a.merchantId+"','"+a.promotionId+"','"+a.num+"');"}else{if(d==3){h+='<a href="javascript:void(0);" onclick="ajaxDeleteMiniCartItem(\''+e+"','deleteLandingpage','"+a.productId+"','"+a.merchantId+"','"+a.promotionId+"','"+a.num+"');"}else{if(d==0){h+='<a href="javascript:void(0);" onclick="ajaxDeleteMiniCartItem(\''+e+"','deleteGift','"+a.productId+"','"+a.merchantId+"','"+a.promotionId+"','"+a.num+"','"+a.promotionLevelId+"');"
}else{h+='<a href="javascript:void(0);" onclick="ajaxDeleteMiniCartItem(\''+e+"','deleteItem','"+a.productId+"','"+a.merchantId+"','"+a.promotionId+"','"+a.num+"');"}}}}h+="return false;gotracker('2','delShop_"+e+"','"+a.productId+"')\">删除</a> </span> </li>"}});h+='<li class="pr_num">共<strong id="totalInFloatCart">'+m.totalNum+"</strong>件商品 金额总计(预估):<strong>";if(k&&k>0){h+=k+"积分（1号店）+"}if(j&&j>0){h+=j+"积分（中信）+"}h+=l+"</strong>元</li></ul>";jQuery("#in_cart_num").text(m.totalNum);i.html(h)}else{jQuery("#in_cart_num").text("0");i.hide().html("");jQuery("#DivShim").css("height","0px").hide();jQuery("#showMiniCart").hide();i.data("inani",false)}}function afterLoadMiniCart(b){if(currSiteId==1){yhdSiteLoadMiniCart(b)}else{yaowangLoadMiniCart(b)}}function ajaxDeleteMiniCartItem(m,l,q,k,j,n,o){var r=currDomain;
r=r+"/cart/ajax.do?action=delete&callback=?";var p;if(l=="deleteWaringItem"){p={deleteWarningQueue:q,rd:Math.random()}}else{if(l=="deletePromote"){p={deleteOverPromotionQueue:q,rd:Math.random()}}else{if(l=="deleteLandingpage"){p={deleteGiftQueue:"landingpage_"+j+"_0_"+k+"_"+q+"_"+n,rd:Math.random()}}else{if(l=="deleteGift"){p={deleteGiftQueue:"normal_"+j+"_"+o+"_"+k+"_"+q+"_"+n,rd:Math.random()}}else{p={deleteQueue:q,rd:Math.random()}}}}}jQuery.getJSON(r,p,function(a){reloadMiniCart()})}function initMiniCart(){buildCartNumber();if(!jQuery("#miniCart").size()){return}jQuery("#miniCart").data("inani",false).hover(function(b){if(jQuery(this).data("inani")){return}jQuery(this).data("inani",true);loadMiniCart()},function(c){var d=jQuery(this);jQuery("#DivShim").css("height","0px").hide();jQuery("#showMiniCart").hide();
d.data("inani",false)})}var yhdMiniCart=yhdMiniCart||{};if(typeof currSiteId!="undefined"&&currSiteId==1){yhdMiniCart.Map=function(){var b=0;this.entry={};this.put=function(a,d){if(!this.containsKey(a)){b++}this.entry[a]=d};this.get=function(a){if(this.containsKey(a)){return this.entry[a]}else{return null}};this.remove=function(a){if(delete this.entry[a]){b--}};this.containsKey=function(a){return(a in this.entry)};this.containsValue=function(a){for(var d in this.entry){if(this.entry[d]==a){return true}}return false};this.values=function(){var a=[];for(var d in this.entry){a.push(this.entry[d])}return a};this.keys=function(){var a=new Array(b);for(var d in this.entry){a.push(d)}return a};this.size=function(){return b};this.clear=function(){this.entry={};this.size=0}};yhdMiniCart.urlMap=new yhdMiniCart.Map();
yhdMiniCart.ajaxQueue=new Array();yhdMiniCart.loadModifyNumInfo=function(u){var s=parseInt(u.landingNumLimit);var w=parseInt(u.currentStockNum);var o=parseInt(u.userLimitNum);var y=parseInt(u.totalLimitNum);var v=parseInt(u.promoteType);var A=parseInt(u.shoppingCountNum);var x=parseInt(u.promotionId);var q=0;var B=parseInt(u.itemType);var r=parseInt(u.pointBuyType);if(B==3){q=2}else{if(u.hasPromoteLimitAttachedKey){q=1}else{q=0}}var t=w+"_"+o+"_"+y+"_"+A+"_"+s+"_"+v;var z=u.productId+"_"+u.merchantId+"_"+q+"_"+x;var p="";if(r>0||(B==4||B==0)||(B==3&&s==1)){p+='<b class="minusDisable"></b>';p+='<input type="text"  oriNum='+u.num+' class="minicart_num"  value='+u.num+' disabled="disabled" class="disable" />';p+='<b class="plusDisable"></b>'}else{if(u.num==1){p+='<b class="minusDisable"></b>'}else{p+='<b class="minus" ></b>'
}p+='<input type="text"  oriNum='+u.num+' class="minicart_num" limitNum='+t+"  value="+u.num+" paramValue= "+z+" />";p+='<b class="plus" ></b>'}return p};yhdMiniCart.clickPlusCalSubTotal=function(){loli.delay(".plus","click",function(){var b=this.siblings("input");return yhdMiniCart.ajaxNum(b,"increment")},function(){yhdMiniCart.ajaxPost()},1000)};yhdMiniCart.clickMinusCalSubTotal=function(){loli.delay(".minus","click",function(){var c=this.siblings("input");if(parseInt(c.val())==1){var d="输入的数量有误,应为[1-999]";yhdMiniCart.showWarningMsg(c,d);return false}return yhdMiniCart.ajaxNum(c,"decrement")},function(){yhdMiniCart.ajaxPost()},1000)};yhdMiniCart.handCalSubTotal=function(){loli.delay("#showMiniCartDetail ul li div input[type=text]","keyup",function(){},function(){yhdMiniCart.ajaxNum(this);
yhdMiniCart.ajaxPost()},2000)};yhdMiniCart.ajaxNum=function(h,n){if(n=="increment"){h.val(parseInt(h.val())+1)}else{if(n=="decrement"){h.val(parseInt(h.val())-1)}}var m=/^[1-9]\d{0,2}$/g;if(!h.val().match(m)){var i="输入的数量有误,应为[1-999]";yhdMiniCart.showWarningMsg(h,i);h.val(h.attr("oriNum"));return false}if(parseInt(h.val())==parseInt(h.attr("oriNum"))){return}var j=h.attr("paramValue");var l=j.split("_");var k=l[2];if(k==2){return yhdMiniCart.calLandingTotal(h)}else{return yhdMiniCart.calSubTotal(h)}};yhdMiniCart.ajaxPost=function(){yhdMiniCart.ajaxQueue=yhdMiniCart.urlMap.values();yhdMiniCart.urlMap.clear();yhdMiniCart.sendAjaxReq(yhdMiniCart.ajaxQueue)};yhdMiniCart.sendAjaxReq=function(g){if(g.length==0){reloadMiniCart(sliderMiniCart);return}var f=g.shift();var e=f.url;var h=f.obj;jQuery.getJSON(e+"&callback=?",function(a){if(a.code==200){yhdMiniCart.sendAjaxReq(g)
}else{if(a.code==401){yhdPublicLogin.showLoginDiv(null,false);return false}else{yhdMiniCart.showWarningMsg(h,a.message);yhdMiniCart.sendAjaxReq(g)}}})};yhdMiniCart.calSubTotal=function(q){var o=q.val();var v=/^[1-9]\d{0,2}$/g;if(!o.match(v)){var u="输入的数量有误,应为[1-999]";yhdMiniCart.showWarningMsg(q,u);q.val(q.attr("oriNum"));return false}if(parseInt(o)>1){yhdMiniCart.setMinusOperate(q,true)}else{if(parseInt(o)==1){yhdMiniCart.setMinusOperate(q,false)}}var w=q.attr("paramValue");var s=w.split("_");var p=parseInt(isNaN(s[0])?0:s[0]);var A=parseInt(isNaN(s[1])?0:s[1]);var r=parseInt(isNaN(s[2])?0:s[2]);var x=parseInt(isNaN(s[3])?0:s[3]);if(!yhdMiniCart.checkOverLimit(q)){o=parseInt(q.val());yhdMiniCart.showMinusTips(q,o,r,p,A,x);var t=yhdMiniCart.calItemNum(p,A,r,o,x);t=t>999?999:t;var y=currDomain+"/cart/ajaxEditNum.do?productId="+p+"&num="+t+"&merchantId="+A;
var B=p+"_"+A;var z={};z.url=y;z.obj=q;yhdMiniCart.urlMap.put(B,z);return true}return false};yhdMiniCart.calLandingTotal=function(o){var m=o.val();var p=/^[1-9]\d{0,2}$/g;if(!m.match(p)){var s="输入的数量有误,应为[1-999]";yhdMiniCart.showWarningMsg(o,s);o.val(o.attr("oriNum"));return false}if(parseInt(m)>1){yhdMiniCart.setMinusOperate(o,true)}else{if(parseInt(m)==1){yhdMiniCart.setMinusOperate(o,false)}}var t=o.attr("paramValue");var q=t.split("_");var n=q[0];var v=q[1];var u=q[3];if(!yhdMiniCart.checkOverLimit(o)){m=o.val();var r=currDomain+"/cart/ajaxEditLandingPageNum.do?productId="+n+"&num="+m+"&merchantId="+v+"&promotionId="+u;var x=n+"_"+v;var w={};w.url=r;w.obj=o;yhdMiniCart.urlMap.put(x,w)}};yhdMiniCart.checkOverLimit=function(x){var v=parseInt(isNaN(x.val())?0:x.val());var E=x.attr("oriNum");
var t=x.attr("paramValue");var C=t.split("_");var z=C[2];var D=x.attr("limitNum");var A=D.split("_");var G=parseInt(A[0]);var B=parseInt(A[1]);var w=parseInt(A[2]);var u=parseInt(A[3]);var H=parseInt(A[4]);var F=parseInt(A[5]);var r="";var y=v;var s=false;switch(parseInt(z)){case 0:if(G>0){if(v>G){r="该商品库存有限，您最多只能购买"+G+"件";y=G;s=y==E}else{if(u>1&&v<u){r="该商品["+u+"件起购]";y=u;s=y==E}else{if(v>B&&B>0){r="该商品[每人限购"+B+"件],超过则以"+chineseUrl+"价购买"}else{if(w>0&&v>w&&F==5){r="该商品[限购"+w+"件]";y=w;s=y==E}else{if(w>0&&v>w){r="该商品[限购"+w+"件],超过则以"+chineseUrl+"价购买"}else{r=""}}}}}}else{y=0;r="该商品已下架或无库存"}break;case 1:if(G>0){if(v>G){r="该商品库存有限，您最多只能购买"+G+"件";y=G;s=y==E}}else{y=0;r="该商品已下架或无库存"}break;case 2:if(H>0&&v>H){r="该商品为特价商品，您最多只能购买"+H+"件";y=H;s=y==E}else{if(u>1&&v<u){r="该商品["+u+"件起购]";y=u;s=y==E}}break
}if(r&&r.length>0&&y>0){x.val(y);yhdMiniCart.showWarningMsg(x,r)}return s};yhdMiniCart.showMinusTips=function(n,x,v,m,u,t){if(v!=0){return}var o=parseInt(n.attr("oriNum"));var w=jQuery("input[paramValue='"+m+"_"+u+"_"+(v==0?1:0)+"_"+t+"']");if(x<o&&w.size()>0){var r=n.attr("limitNum");var q=r.split("_");var p=parseInt(q[1]);var s="该商品【"+(o==p?"每人":"")+"限购"+o+"件】，优先减去"+chineseUrl+"价商品";yhdMiniCart.showWarningMsg(n,s)}};yhdMiniCart.calItemNum=function(m,k,n,h,i){var j=parseInt(h);var l=jQuery("input[paramValue='"+m+"_"+k+"_"+(n==0?1:0)+"_"+i+"']");if(l.size()>0){j+=parseInt(l.val())}return j};yhdMiniCart.showWarningMsg=function(g,h){var e=g.offset().top;var f='<span class="tips_arrow1">&#9670;</span>';f+='<span class="tips_arrow1 tips_arrow2">&#9670;</span>';f+="<p>"+h+"</p>";jQuery(".ap_shopping_warning").html(f);
jQuery(".ap_shopping_warning").css("top",e-$("#miniCart").offset().top-$(".ap_shopping_warning").outerHeight()-4).fadeIn(500);clearTimeout();setTimeout(function(){jQuery(".ap_shopping_warning").fadeOut(500)},2000)};yhdMiniCart.bindMiniCartEvent=function(){if(currSiteId==1){yhdMiniCart.handCalSubTotal();yhdMiniCart.clickPlusCalSubTotal();yhdMiniCart.clickMinusCalSubTotal()}};yhdMiniCart.setMinusOperate=function(d,c){if(c){d.siblings("b:eq(1)").removeClass("minusDisable");d.siblings("b:eq(1)").addClass("minus")}else{if(!c){d.siblings("b:eq(1)").removeClass("minus");d.siblings("b:eq(1)").addClass("minusDisable")}}};if(typeof currSiteId!="undefined"&&currSiteId==1){var miniCartIfmByIE6=function(){if($.browser.msie&&($.browser.version=="6.0")&&!$.support.style){var d=$(".minicart_ifm").length;if(d==0){$("<iframe class=minicart_ifm></iframe>").insertBefore(".minicart_list .list_detail:first")
}var c=$(".minicart_list").find(".list_detail").first().height()+2;$(".minicart_ifm").height(c)}};var removeIfmByIE6=function(){if($.browser.msie&&($.browser.version=="6.0")){$(".minicart_ifm").remove()}}}if(typeof currSiteType!="undefined"&&currSiteType==1){var miniCart=function(){if($.browser.msie&&($.browser.version=="6.0")&&!$.support.style){var c=$(".ap_shopping_warning").find("p").width();if(c>140){$(".ap_shopping_warning").find("p").width("140")}}var d=function(){if($.browser.msie&&($.browser.version=="6.0")&&!$.support.style){var a=$(".minicart_list").find(".list_detail").first().find("ul").height();if(a>345){$(".minicart_list").find(".list_detail").first().find("ul").height("345")}else{if(a<148){$(".minicart_list").find(".list_detail").first().find("ul").height("148")}}miniCartIfmByIE6()
}};$(".minicart_box").hover(function(){$(this).find(".minicart_list").show();d()},function(){$(this).find(".minicart_list").hide();removeIfmByIE6()});$(".minicart_list > .list_detail:gt(0)").hide();$(".cart_tab").find("li").click(function(){$(".cart_tab li").removeClass("cur_tab");$(this).addClass("cur_tab");$(".minicart_list").find(".list_detail").hide();var a=$(".cart_tab li").index(this);$(".minicart_list").find(".list_detail").eq(a).show();if($.browser.msie&&($.browser.version=="6.0")&&!$.support.style){var b=$(".minicart_list").find(".list_detail").eq(a).find("ul").height();if(b>345){$(".minicart_list").find(".list_detail").eq(a).find("ul").height("345")}else{if(b<148){$(".minicart_list").find(".list_detail").eq(a).find("ul").height("148")}}}return false})}}else{var ieMaxHeight=function(){if($.browser.msie&&($.browser.version=="6.0")&&!$.support.style){var c=$(".list_detail").find("ul"),d=c.height();
if(d>329){c.height("329")}else{if(d<148){c.height("148")}}miniCartIfmByIE6()}};var miniCart=function(){$(".minicart_box").hover(function(){$(this).find(".minicart_list").show();ieMaxHeight()},function(){$(this).find(".minicart_list").hide();removeIfmByIE6()})}}}function initAllMiniCart(){if(typeof currSiteId!="undefined"&&currSiteId==2){initMiniCart()}else{ymInitMiniCart()}}function ymInitMiniCart(){buildCartNumber();miniCart();if(!jQuery("#miniCart").size()){return}jQuery("#miniCart").data("inani",false).mouseover(function(b){if(jQuery(this).data("inani")){return}jQuery(this).data("inani",true);loadMiniCart()})}jQuery(document).ready(function(){if(isIndex!=1){initAllMiniCart()}});var YHDPROVINCE={};YHDPROVINCE.getCurentDomain=function(){return typeof currSiteType!="undefined"&&currSiteType==1?URLPrefix.central:URLPrefix.mall};YHDPROVINCE.getOppositeDomain=function(){return typeof currSiteType!="undefined"&&currSiteType==1?URLPrefix.mall:URLPrefix.central};YHDPROVINCE.swithAddressCity=function(g,f){if(typeof siteFlag!="undefined"&&siteFlag==1){var h=jQuery.cookie("provinceId");var e={};e.callback=f;e.isSetAddress=0;jQuery.cookie("provinceId",g,{domain:no3wUrl,path:"/",expires:800});if(typeof currSiteType!="undefined"&&currSiteType!=1){jQuery.ajax({url:oppositeDomain+"/header/addressChange.do?provinceId="+g+"&timestamp="+new Date()+"&callback=?",dataType:"jsonp",complete:function(){provinceSwitchProvince(g,h,e)}})}else{provinceSwitchProvince(g,h,e)}}};function setAddressCity(g){var j=jQuery.cookie("provinceId");
jQuery.cookie("provinceId",g,{domain:no3wUrl,path:"/",expires:800});var h;if(typeof siteFlag!="undefined"&&siteFlag==1){var i=YHDPROVINCE.getOppositeDomain();var f=false;jQuery.ajax({url:i+"/header/addressChange.do?provinceId="+g+"&timestamp="+new Date()+"&callback=?",dataType:"jsonp",complete:function(){f=true;provinceSwitchProvince(g,j)}});if(h){clearTimeout(h)}h=setTimeout(function(){if(!f){provinceSwitchProvince(g,j)}},300)}else{provinceSwitchProvince(g,j)}}function provinceSwitchProvince(f,j,h){var i=YHDPROVINCE.getCurentDomain();moveCartItem(f,j,h);var g=i+"/globalsupport/getOneGrouponAreaIdByProviceId.do?provinceId="+f+"&timestamp="+new Date().getTime()+"&callback=?";jQuery.getJSON(g,function(a){})}function setAddressCityback(){var w=window.location.href;if(w.indexOf("merchantID=")!=-1){w=w.substring(0,w.indexOf("merchantID=")-1);
window.location.href=w;return}if(w.indexOf("merchant=")!=-1){w=w.substring(0,w.indexOf("merchant=")-1);window.location.href=w;return}if(w.indexOf("/tuangou/")!=-1){if(w.indexOf("/tuangou/myGroupon.do")!=-1){window.location.href=w}return}if(w.indexOf("openProvincePage=")!=-1){w=w.substring(0,w.indexOf("openProvincePage=")-1);window.location.href=w;return}if(w.indexOf("/cart/cart.do?action=view")!=-1){window.location.href="/cart/cart.do?action=view";return}var G=/^\S*product\/\d+_?\d+/;if(w.match(G)){if(w.indexOf("_")!=-1){w=w.substring(0,w.indexOf("_"))}else{if(w.indexOf("#")!=-1){var x=w.indexOf("#");w=w.substring(0,x)}}window.location.href=w;return}var t=/^(http:\/\/){0,1}([^\/]+\/)[0-9]+\/([^\/]*)$/;if(w.match(t)){w=w.replace(t,"$1$2$3");window.location.href=w;return}var z=/^(http:\/\/){0,1}[^\/]+\/channel\/[0-9]+_[0-9]+\/$/;
if(w.match(z)){w=w.substring(0,w.lastIndexOf("_"));window.location.href=w;return}var v=/^(http:\/\/){0,1}[^\/]+\/cms\/view.do\?topicId=[0-9]+&merchant=[0-9]+$/;if(w.match(v)){w=w.substring(0,w.lastIndexOf("&merchant"));window.location.href=w;return}var A=/^(http:\/\/){0,1}shop.yihaodian.com\/[^\/^_^\.]+\/[0-9]+\/{0,1}(\?[^\/]+)*$/;if(w.match(A)){window.location.href=w;return}var D=/^(http:\/\/){0,1}www.yihaodian.com\/brand\/[0-9]+\/{0,1}(\?[^\/]+)*$/;if(w.match(D)){window.location.href=w;return}var r=/^(http:\/\/){0,1}[^\/]+\/try\/[0-9]+\/{0,1}(\?[^\/]+)*$/;if(w.match(r)){if(w.lastIndexOf("/")==w.length-1){w=w.substring(0,w.lastIndexOf("/"))}w=w.substring(0,w.lastIndexOf("/"));window.location.href=w;return}var E=/^(http:\/\/){0,1}[^\/]+\/try\/[0-9]+_[0-9]+\/{0,1}(\?[^\/]+)*$/;if(w.match(E)){w=w.substring(0,w.lastIndexOf("_"))+"_0/";
window.location.href=w;return}var u=/^(http:\/\/){0,1}www.yihaodian.com\/S-theme\/[0-9]+\/{0,1}(\?[^\/]+)*$/;if(w.match(u)){window.location.href=w;return}var B=/^(http:\/\/){0,1}www.yihaodian.com\/ctg\/s2\/c([0-9]*)-([^?^\/]*)\/([0-9]*)\/$/;if(w.match(B)){if(w.lastIndexOf("/")==w.length-1){w=w.substring(0,w.lastIndexOf("/"))}w=w.substring(0,w.lastIndexOf("/")+1);window.location.href=w;return}var C=/^(http:\/\/){0,1}search.yihaodian.com\/s2\/c([0-9]*)-([^?^\/]*)\/k([^?^\/]*)\/([0-9]*)\/$/;if(w.match(C)){if(w.lastIndexOf("/")==w.length-1){w=w.substring(0,w.lastIndexOf("/"))}w=w.substring(0,w.lastIndexOf("/")+1);window.location.href=w;return}var y=/^(http:\/\/){0,1}channel\.[^\/]+\/[^\/^_^\.]+(\/[^\/^\.]+){0,1}\/[0-9]+\/{0,1}(\?[^\/]+){0,1}(#[^\/]+)*$/;if(w.match(y)){if(w.indexOf("#")!=-1){w=w.substring(0,w.indexOf("#"))
}if(w.indexOf("?")!=-1){var H=w.substring(w.indexOf("?"));var F=w.substring(0,w.indexOf("?"));if(w.lastIndexOf("/")==w.length-1){F=F.substring(0,F.lastIndexOf("/"));H="/"+H}F=F.substring(0,F.lastIndexOf("/"));w=F+H}else{if(w.lastIndexOf("/")==w.length-1){w=w.substring(0,w.lastIndexOf("/"))}w=w.substring(0,w.lastIndexOf("/"))}window.location.href=w;return}if(w.indexOf("confirmOrder")!=-1&&w.indexOf("saveOrder")!=-1){window.location.href=YHDPROVINCE.getCurentDomain();return}var s=URLPrefix.search+"/s/";if(w.substr(0,s.length)==s){var G=/-p\d{0,3}/;if(w.match(G)){w=w.replace(G,"-p1");window.location.href=w;return}}window.location.reload()}function moveCartItem(i,l,m){var j=1;var n={};var k={};var o=[];if(typeof m!="undefined"&&m){if(typeof m.isSetAddress!="undefined"&&m.isSetAddress){if(m.isSetAddress==0){j=m.isSetAddress
}}if(typeof m.callback!="undefined"&&m.callback){n=m.callback;if(typeof n.func!="undefined"&&n.func){k=n.func}if(typeof n.agrs!="undefined"&&n.func){o=n.agrs}}}jQuery.getJSON(oppositeDomain+"/cart/globalMoveCartItem.do?provinceId="+i+((l)?"&oldProvinceId="+l:"")+"&timestamp="+new Date().getTime()+"&callback=?",function(a){});var p=YHDPROVINCE.getCurentDomain();jQuery.getJSON(p+"/cart/globalMoveCartItem.do?provinceId="+i+((l)?"&oldProvinceId="+l:"")+"&timestamp="+new Date().getTime()+"&callback=?",function(a){if(typeof j!="undefined"&&j!=0){setAddressCityback()}if(typeof k!="undefined"&&typeof k=="function"){k.apply(this,o)}})}function initProvince(){var c=jQuery.cookie("provinceId");if(c&&c>0){jQuery("#currProvince").text(jQuery("#p_"+c).text());var d=jQuery("#weibo");if(c==2){d.attr("href","http://weibo.com/yihaodianbeijing")
}else{if(c==20){d.attr("href","http://weibo.com/yihaodianguangzhou")}else{d.attr("href","http://weibo.com/yihaodian")}}}else{showProvinces()}}function closeProvinces(c){if(c<=0){c=1}var d=jQuery("#currProvince").text();if(d==""){setAddressCity(c)}else{jQuery("#allProvinces").hide()}}function showProvinces(){var d=YHDPROVINCE.getCurentDomain();var c=d+"/header/selectProvincebox.do?timestamp="+new Date().getTime()+"&callback=?";jQuery.getJSON(c,function(a){if(!a.ERROR&&a.value){jQuery("#provinceboxDiv").html(a.value);jQuery("#allProvinces").jqm({overlay:50,closeClass:"jqmClose",trigger:".jqModal",overlayClass:"pop_win_bg",modal:true,toTop:true}).jqmShow().jqmAddClose(".popwinClose")}jQuery.getJSON(d+"/header/cartIsEmpty.do?callback=?",function(f){if("no"==f.value){jQuery("#provincesPoptips").show()
}else{jQuery("#provincesPoptips").hide()}});if(jQuery("#allProvinces")){var b=jQuery("#allProvinces").find("#currentProvinceName");if(b){YHDPROVINCE.getProvinceName(b.attr("proviceId"))}}})}YHDPROVINCE.getProvinceName=function(b){jQuery("#currentProvinceName").html("<strong>"+jQuery("#p_"+b).text()+"站</strong> >>")};jQuery(document).ready(function(){if(isIndex!=1){initProvince()}});jQuery(document).ready(function(){if(isIndex!=1){}});function initPrompt(){jQuery("#changeReceiverGoodsCity").click(function(){var f=jQuery("#buyPromptDiv");var e=parseInt(f.css("top").replace("px",""))+75;var d=parseInt(f.css("left").replace("px",""))+225;jQuery("#receiverGoodsCityDiv").css("top",e+"px");jQuery("#receiverGoodsCityDiv").css("left",d+"px");jQuery(window).scroll(function(){var a=parseInt(f.css("top").replace("px",""))+75;var b=parseInt(f.css("left").replace("px",""))+225;jQuery("#receiverGoodsCityDiv").css("top",a+"px");jQuery("#receiverGoodsCityDiv").css("left",b+"px")});jQuery("#receiverGoodsCityDiv").show()});jQuery("#closeReceiverGoodsCity").click(function(){jQuery("#receiverGoodsCityDiv").hide()});jQuery("#validate").click(function(){jQuery("#buyPromptDiv").hide();setPromptCookie();
jQuery("#receiverGoodsCityDiv").hide()})}function changeReceiverGoodsCity(id){jQuery("#selectCity").val(id);if(jQuery("#p_"+id)){var city=jQuery("#p_"+id).find("a").text()}jQuery("#selectCity").text(city);jQuery("#cityId").attr("value",id);jQuery("#message").text("");jQuery("#receiverGoodsCityDiv").hide();var productId=jQuery("#validateProductId").val();var num=typeof(jQuery("#validateQty").val())=="undefined"?1:jQuery("#validateQty").val();var param="productID="+productId+"&productNum="+num+"&provinceId="+id;var url=URLPrefix.central+"/product/validateProductInProvince.do?productID="+productId+"&productNum="+num+"&provinceId="+id+"&callback=?";jQuery.getJSON(url,function(data){if(data.ERROR){}else{try{html=eval("("+data.value+")")}catch(e){jQuery("#message").text("系统出错")}if(html.result=="success"){var provinceId=jQuery.cookie("provinceId");
if(id!=provinceId){jQuery("#validate").unbind("click");jQuery("#validate").bind("click",function(){setPromptCookie();setAddressCity(id)})}else{}}else{var value=html["key_"+productId];if(value){jQuery("#message").text(value)}jQuery("#validate").bind("click",function(){jQuery("#buyPromptDiv").hide()})}}})}function setPromptCookie(){var f;if(typeof(promptExpireTime)=="undefined"&&!jQuery("#promptExpireTime")){f=10}else{f=jQuery("#promptExpireTime").val()}f=f?f:10;var d=new Date();var e=d.getTime()+f*24*1000*3600;d.setTime(e);document.cookie="prompt_flag=1;path=/;domain=."+no3wUrl+";expires="+d.toGMTString()};var suggestLength=0;var curSuggestIndex=-1;function findNames(j,h,i){var l="0";if(jQuery("#leaf").size()>0){l=jQuery("#leaf").val()}var g=h.keyCode;if(jQuery(j).val()!=i&&g!="38"&&g!="40"){var k=URLPrefix.search+"/get_new_keywords.do?keyword="+encodeURIComponent(encodeURIComponent(jQuery(j).val()))+"&leaf="+l+"&callback=?";jQuery.getJSON(k,function(a){if(a.ERROR){}else{var b=false;jQuery("#searchSuggest").html(a.value).find("a").each(function(){var c=jQuery(this).find("span").html();if(c){jQuery(this).html(c);jQuery(this).addClass(b?"odd":"even");b=!b}});loadComplete_findNames()}})}}function loadComplete_findNames(){suggestLength=jQuery("#searchSuggest li").length;curSuggestIndex=-1;if(suggestLength<=1){jQuery("#searchSuggest").hide()}else{jQuery("#searchSuggest").show();searchListHover()}}function searchListHover(){var b=$("#searchSuggest ul li");
$("a[id=s_cart_btn]").hide();b.mouseenter(function(){var a=b.index(this);if($(this).hasClass("haslist")){$(this).addClass("select_haslist").siblings().removeClass("select_haslist select")}else{$(this).addClass("select").siblings().removeClass("select_haslist select")}curSuggestIndex=a});b.mouseleave(function(){$(this).removeClass("select select_haslist")});$("#choose_list dd").live("mouseover",function(){$(this).find("#s_cart_btn").show();return false});$("#choose_list dd").live("mouseout",function(){$(this).find("#s_cart_btn").hide();return false})}function searchRecommend(b){if(b!=null&&b!=""){window.location=b}}function searchMe(n,p,q){var l=null;var s=document.getElementById("recommendId");if(s){l=s.value}var o=null;var k=document.getElementById("recommendName");if(k){o=k.value}if(!n){n=jQuery("#keyword").val()
}if(n!=null){var r=jQuery("#keyword").attr("original");if(r!=null&&r!=""&&r!="请输入关键词"){if(r==n){var t=jQuery("#keyword").attr("url");if(t!=null&&t!=""){window.location=t;return}}}}if(n!=null&&jQuery.trim(n)!=""&&jQuery.trim(n)!="请输入关键词"){addKeywordHistory(n)}else{searchFocus();hotKeywords_onDocumentReady();return}n=n.replace(/\//gi," ");var m="0";if(jQuery("#leaf").size()>0){m=jQuery("#leaf").val()}if(p!=null&&p!="0"){window.location=URLPrefix.search_keyword+"/s2/c"+p+"-"+q+"/k"+encodeURIComponent(encodeURIComponent(n))+"/"}else{if(l!=null&&l!=""){window.location=URLPrefix.search_keyword+"/s2/c"+l+"-"+o+"/k"+encodeURIComponent(encodeURIComponent(n))+"/"}else{window.location=URLPrefix.search_keyword+"/s2/c"+m+"-0/k"+encodeURIComponent(encodeURIComponent(n))+"/"}}}function cutString(d,c){if(d==null||d.length<=c){return d
}return d.substring(0,c)}function addKeywordHistory(b){if(typeof(b)=="undefined"){return}b=jQuery.trim(b);b=b.replace(/[,]/g," ");b=b.replace(/[，]/g," ")}function roll(n){n=n||window.event;var m=n.keyCode;suggestLength=jQuery("#searchSuggest li").length;var i="";var k="";if(jQuery("#searchSuggest ul li").size()>0){if(m=="38"){if(curSuggestIndex<=0){curSuggestIndex=suggestLength-1}else{curSuggestIndex=curSuggestIndex-1}}else{if(m=="40"){if(curSuggestIndex>=(suggestLength-1)){curSuggestIndex=0}else{curSuggestIndex=curSuggestIndex+1}}}if(m=="38"||m=="40"){var h=jQuery("#searchSuggest ul li");if($(h).hasClass("haslist")){$(h).addClass("select_haslist").siblings().removeClass("select_haslist select")}else{$(h).addClass("select").siblings().removeClass("select_haslist select")}var l=jQuery("#searchSuggest  ul li a[roll=true]").eq(curSuggestIndex).text();
if(jQuery("#searchSuggest ul li").eq(curSuggestIndex).attr("id")!=null&&jQuery("#searchSuggest ul li").eq(curSuggestIndex).attr("id")!=""){var j=jQuery("#searchSuggest  ul li a").eq(0).text();jQuery("#keyword").val(j);if(jQuery("#searchSuggest ul li ").eq(curSuggestIndex).attr("id")=="recom1"){i=document.getElementById("recom1Id").value;k=document.getElementById("recom1Name").value}if(jQuery("#searchSuggest ul li").eq(curSuggestIndex).attr("id")=="recom2"){i=document.getElementById("recom2Id").value;k=document.getElementById("recom2Name").value}}else{jQuery("#keyword").val(l)}document.getElementById("recommendId").value=i;document.getElementById("recommendName").value=k;$(".search_tips_result_new > ul > li").eq(curSuggestIndex).trigger("mouseover");$(".search_tips_result > ul > li").eq(curSuggestIndex).trigger("mouseover")
}}if(m=="13"){if(i!=""){searchMe(jQuery("#keyword").val(),i,k)}else{searchMe(jQuery("#keyword").val(),"0","0")}}}function selectSearchCategory(c,d){jQuery("#searchCategory").html(d);jQuery("#leaf").val("0_"+c)}function emptySearchBar(){if(jQuery("#keyword").data("default")&&!jQuery("#keyword").val().indexOf(jQuery("#keyword").data("default"))){jQuery("#keyword").val(jQuery("#keyword").val().substring(jQuery("#keyword").data("default").length));jQuery("#keyword").trigger("blur")}}function hotKeywords_onDocumentReady(){if(hotwordReadAdv!="undefined"&&(hotwordReadAdv=="true"||hotwordReadAdv==true)){readAdv_hotKeywords_onDocumentReady()}else{var divHotkeywordsList=jQuery("#hotKeywordsList")[0];if(!divHotkeywordsList){return}var hotkeywordsList=jQuery(divHotkeywordsList).attr("data-grid");eval("var hots = "+hotkeywordsList);
var hour=new Date().getHours();var def=new Array();if(hots[hour].length>0){def.push(hots[hour][0])}def.push(hots[24][0]);if(def.length>0){var keywords=def[0];var oldKeywords=jQuery("#keyword").val();if(oldKeywords==""||oldKeywords=="请输入关键词"){jQuery("#keyword").attr("value",keywords);jQuery("#keyword").data("default",keywords)}if(oldKeywords==keywords||oldKeywords==""||oldKeywords=="请输入关键词"){jQuery("#keyword").css("color","#999999");jQuery("#keyword").bind("focus",function(){if(this.value==keywords){this.value="";this.style.color="#333333"}}).bind("blur",function(){if(this.value==""){this.value=keywords;this.style.color="#999999"}})}}var curr=new Array();for(var i=1;i<hots[hour].length;i++){curr.push(hots[hour][i])}for(var t=0;t<100;t++){var i=Math.floor(Math.random()*hots[24].length);var word=hots[24][i];
var contains=false;for(var j=0;j<curr.length;j++){if(word==curr[j]){contains=true;break}}if(!contains&&word!=keywords){curr.push(word)}}if(curr.length>0){var buf="";for(var i=0;i<curr.length;i++){var show="";if(curr[i]&&curr[i]!="undefined"){show=curr[i]}buf=buf+"<a href='"+URLPrefix.search_keyword+"/s2/c0-0/k"+encodeURIComponent(show)+"/' title='搜索:"+show+"'>"+show+"</a>"}jQuery("#hotKeywordsShow").append(buf);bindLinkClickTracker("hotKeywordsShow","HotKeyword")}}}function readAdv_hotKeywords_onDocumentReady(){if(isIndex==1){var d=jQuery("#keyword").val();if(d!=""&&d!="请输入关键词"){jQuery("#keyword").data("default",d);jQuery("#keyword").css("color","#999999");jQuery("#keyword").bind("focus",function(){if(this.value==d){this.value="";this.style.color="#333333"}}).bind("blur",function(){if(this.value==""){this.value=d;
this.style.color="#999999"}});return}}else{if(currSiteType==2){var d=jQuery("#keyword").attr("original");if(d==null||d==""){d="请输入关键词"}var c=jQuery("#keyword").val();if(c==d||c==""||c=="请输入关键词"){jQuery("#keyword").css("color","#999999");jQuery("#keyword").bind("focus",function(){if(this.value==d){this.value="";this.style.color="#333333"}}).bind("blur",function(){if(this.value==""){this.value=d;this.style.color="#999999"}})}return}}}function searchFocus(){var b=$("#keyword").val();if(b==null||jQuery.trim(b)==""){jQuery("#keyword").val("请输入关键词");b="请输入关键词"}if(b=="请输入关键词"){jQuery("#keyword").css("color","#999999")}$("#keyword").focus(function(){if($(this).val()=="请输入关键词"){$(this).val("").css("color","#333")}}).blur(function(){if(!$(this).val().replace(/\s/gi,"")){}})}jQuery(document).ready(function(){if(isIndex!=1){hotKeywords_onDocumentReady()
}searchFocus()});(function(b){b.fn.bgIframe=b.fn.bgiframe=function(f){if(b.browser.msie&&parseInt(b.browser.version)<=6){f=b.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},f||{});var e=function(c){return c&&c.constructor==Number?c+"px":c},a='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+f.src+'"style="display:block;position:absolute;z-index:-1;'+(f.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(f.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":e(f.top))+";left:"+(f.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":e(f.left))+";width:"+(f.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":e(f.width))+";height:"+(f.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":e(f.height))+';"/>';
return this.each(function(){if(b("> iframe.bgiframe",this).length==0){this.insertBefore(document.createElement(a),this.firstChild)}})}return this};if(!b.browser.version){b.browser.version=navigator.userAgent.toLowerCase().match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)[1]}})(jQuery);var _indexUrl=URLPrefix.central;var _my=URLPrefix.my;if(typeof currSiteType!="undefined"&&currSiteType==2){_indexUrl=URLPrefix.mall;_my=URLPrefix.mymall}function executiveLandedCheck(){var c=jQuery.cookie("ut");var d=0;if(c){d=1}if(d==0){yhdPublicLogin.showLoginDivNone(URLPrefix.passport,false,"",function(a){if(a==0){yhdPublicLogin.showTopLoginInfo()}});return}}function submitFavorite(h,g){executiveLandedCheck();var f=typeof currSiteType!="undefined"&&currSiteType==1?URLPrefix.my:URLPrefix.mymall;var e=f+"/member/myCollection/addFavorite.do?tag.productID="+h+"&tag.merchantID="+g+"&callback=?";jQuery.getJSON(e,function(a){if(a.ERROR){}else{showFavoriteResult(a)}})}function showFavoriteResult(l){var g=l.code;if(g==0){var i=0;var k=0;var j=typeof currSiteType!="undefined"&&currSiteType==1?URLPrefix.my:URLPrefix.mymall;
var h=j+"/member/myCollection/getPopboxInfo.do?callback=?";jQuery.getJSON(h,function(a){if(a.ERROR){}else{YHD.popwin(a.value,460,349);var b="";jQuery(".fkey li a").click(function(){var f=jQuery(this).attr("flag");if(f=="false"){jQuery(this).addClass("on");b=b+" "+jQuery(this).text();jQuery("#tagName").attr("value",jQuery.trim(b));jQuery(this).attr("flag","true")}else{jQuery(this).removeClass("on");jQuery(this).attr("flag","false");var d="";var c=jQuery.trim(jQuery("#tagName").attr("value")).split(" ");for(var e=0;e<c.length;e++){if(c[e]!=jQuery(this).text()){d=d+" "+c[e]}}jQuery("#tagName").attr("value",jQuery.trim(d));b=jQuery("#tagName").attr("value")}});if(jQuery("#checkFlag").checked){k=1}jQuery("#addTag_confirm").click(function(){submitpTag(l.productID,l.merchantID,k)})}})}else{if(g==1){YHD.alert("您已经收藏过该商品！")
}else{if(g==3){YHD.alert("添加收藏失败！")}else{if(g==4){YHD.alert("包含非法词汇，操作无法完成！")}else{if(g==5){window.location.href=_indexUrl+"/passport/login_input.do?returnUrl="+encodeURIComponent(window.location.href)}else{if(g==6){window.location.href=URLPrefix.central+"/cart/cart.do?action=view"}}}}}}}function submitpTag(i,o,p){jQuery(".popwinClose").click();var j=jQuery("#tagName").val();if(j==""){return}if(jQuery.trim(j)!=""){var l=j.split(" ");if(l.length>3){YHD.alert("每次最多输入三个标签");return}else{for(var k=0;k<l.length;k++){if(l[k].length>10){YHD.alert("标签名字过长，每个标签不能超过10个汉字或字符");return}}}if(j.length>33){YHD.alert("标签名字过长，每个标签不能超过10个汉字或字符");return}}var n=typeof currSiteType!="undefined"&&currSiteType==1?URLPrefix.my:URLPrefix.mymall;var m=n+"/member/myCollection/addProductTag.do?tag.productID="+i+"&tag.merchantID="+o+"&tag.name="+encodeURIComponent(encodeURIComponent(jQuery.trim(j)))+"&tag.checkFlag="+p+"&callback=?";
jQuery.getJSON(m,function(a){if(a.ERROR){}else{showEditFavoriteResult(a)}})}function showEditFavoriteResult(b){if(b.code==5){jQuery(".popwinClose").click();YHD.alert("标签已经添加过该商品")}else{if(b.code==0){if(jQuery.trim(jQuery("#collectionProductAll").html())!=""){window.location=_my+"/member/myCollection/myCollectionProduct.do"}else{jQuery(".popwinClose").click();YHD.alert("该商品标签已添加成功！")}}}};var myProductId="";var myMerchantId="";var myOrderId="";function appearExperience(e,a,c){var b=jQuery.cookie("ut");if(!b){window.location.href="/passport/login_input.do?returnUrl="+window.location.href;return}else{executiveLandedCheck();myProductId=e;myOrderId=c;if(a!=null){myMerchantId=a}var d=URLPrefix.central+"/product/checkItemCount.do?productID="+e+"&callback=?";jQuery.getJSON(d,function(f){if(f.ERROR){}else{apperarSuccess(f,e)}})}}function apperarSuccess(e,d){if(e.value==-1){YHD.alert("您已经发表过商品评论，不能再次发表.",null,476,27);return}if(e.value==0){var b=jQuery("#ex_prompt");YHD.popwin(b.html(),466,283);return}var c=URLPrefix.my+"/member/exp/showProductExcerienceDiv.do?productId="+d+"&callback=?";jQuery.getJSON(c,function(a){if(a.ERROR){}else{if((navigator.userAgent.indexOf("MSIE")>=0)&&(navigator.userAgent.indexOf("Opera")<0)){YHD.popwin(a.value,460,415)
}else{YHD.popwin(a.value,460,439)}jQuery(".popbox").bgiframe();new Stars("stars1");jQuery("[name=experience.submit]").click(function(){deployExperience(myProductId,myMerchantId)})}})}function deployExperience(a,g){var h=/<[^> ]+>/;var d=URLPrefix.central+"/product/deployExperience.do?productID="+shareProductId+"&merchantID="+shareMerchantId+"&action=create";var j=jQuery("#contentTitle").val();if(j&&""!=jQuery.trim(j)){j=j.replace(/(^\s*)|(\s*$)/g,"");if(j.length>15){showErrorTitle("errorTitle","请将您输入的标题字数超出15个字的字数限制!");return}if(h.exec(j)){showErrorTitle("errorTitle","您输入的格式有误!");return}}else{showErrorTitle("errorTitle","请您填写评论的标题!");this.focus();return}d=d+"&title="+encodeURIComponent(encodeURIComponent(j));var c=true;jQuery(".ipt3").each(function(o){var m=jQuery(this).attr("nullTitile");var n=jQuery(this).attr("categoryTitile");
var l=jQuery(this).attr("experienceTitle");var p=jQuery(this).val().replace(/(^\s*)|(\s*$)/g,"");if(p==""){showErrorTitle(m,"请写写这个商品的"+m+"!");this.focus();c=false;return false}if(p.length>200){showErrorTitle(m,"请将您输入的"+m+"字数超出200个字的字数限制!");c=false;return false}if(h.exec(p)){showErrorTitle(m,m+"您输入的格式有误!");c=false;return false}d=d+"&"+n+"="+encodeURIComponent(encodeURIComponent(p))+"&"+l+"="+encodeURIComponent(encodeURIComponent(m))});if(c){var e=jQuery("#stars1-input");var k="5";if(e.val()!=""&&e.val()!=null){k=e.val()}var i="5";var b="5";var f=jQuery("#u_realName").text();if(f&&""!=jQuery.trim(f)){f=f.replace(/(^\s*)|(\s*$)/g,"")}else{f=jQuery("#userRealName").val();if(f&&""!=jQuery.trim(f)){f=f.replace(/(^\s*)|(\s*$)/g,"")}else{showErrorTitle("realNameError","请填写您的昵称！");return}}jQuery("[name=experience.submit]").css("disabled",true);
d=d+"&qualityRating="+k+"&deliveryRating="+i+"&serviceRating="+b+"&userRealName="+encodeURIComponent(encodeURIComponent(f))+"&callback=?";jQuery.getJSON(d,function(l){if(l.ERROR){}else{showShareDeployPage(l)}});return true}else{return false}}function showDeployPage(b){var c=b.value.split("=");var a=c[0];var d=c[1];if(a==1){jQuery(".popwinClose").click();YHD.alert(d,null,476,27)}else{YHD.alert(d,null,476,27)}if(jQuery.trim(jQuery("#categoryAllProducts").html())!=""){loadExpInfo(1)}};var shareProductId="";var shareMerchantId="";var shareOrderId="";var shareContentgood="";var shareImage_url="";var productname="";var urlPrefix=currSiteType==1?URLPrefix.central:URLPrefix.mall;var urlPrefixComment=currSiteType==1?URLPrefix.my:URLPrefix.mymall;function apperarShareSuccess(e,d){if(e.value==-1){yhdPublicLogin.showLoginDivNone(URLPrefix.passport,false,"",function(a){if(a==0){yhdPublicLogin.showTopLoginInfo()}});return}if(e.value==0){var b=jQuery("#ex_prompt");YHD.popwin(b.html(),466,283);return}var c=urlPrefixComment+"/member/exp/showProductExcerienceDiv.do?productId="+d+"&merchantId="+shareMerchantId+"&soId="+shareOrderId+"&callback=?";jQuery.getJSON(c,function(f){if(f.value==null||f.value==""||f.ERROR){}else{YHD.popwin(f.value);YHD.popwin(f.value,jQuery(".popbox").width(),jQuery(".popbox").height());
jQuery(".popbox").bgiframe();new Stars("stars1");var a=jQuery("#experience_info").attr("soid");if(jQuery("#stars_desc").size()>0&&jQuery("#stars_atti").size()>0&&jQuery("#stars_logi").size()>0){new Stars("stars_desc");new Stars("stars_atti");new Stars("stars_logi")}shareMerchantId=jQuery("#experience_info").attr("merchantid");jQuery("[name=experience.submit]").click(function(){shareMerchantId=jQuery("#experience_info").attr("merchantid");deployShareExperience(shareProductId,shareMerchantId,a)})}})}function deployShareExperience(h,m,a,e){shareProductId=h;shareMerchantId=m;var b=/<[^> ]+>/;var k=urlPrefix+"/product/deployExperience.do?productID="+h+"&merchantID="+m+"&action=create&soId="+a;var f=jQuery("#contentTitle").val();if(f&&""!=jQuery.trim(f)){f=f.replace(/(^\s*)|(\s*$)/g,"");if(f.length>15){jQuery("span[id='titleDesc']").html("<em class='r'>*超出15个字的字数限制</em>");
return}if(f.length<5){jQuery("span[id='titleDesc']").html("<em class='r'>*内容不少于5个字</em>");return}if(b.exec(f)){jQuery("span[id='titleDesc']").html("<em class='r'>*请填写评论标题(5-15个字)</em>");return}}else{jQuery("span[id='titleDesc']").html("<em class='r'>*请填写评论标题(5-15个字)</em>");return}jQuery("span[id='titleDesc']").html("<em class='r'>*</em>请填写评论标题(5-15个字)");k=k+"&title="+encodeURIComponent(encodeURIComponent(f));var j=true;var d="#yhd_pop_win .ipt3,#yhd_pop_win .ipt6";if(e&&e=="publishExperience"){d="#publishExperience .ipt3,#publishExperience .ipt6"}jQuery(d).each(function(p){var n=jQuery(this).attr("nullTitile");var o=jQuery(this).attr("categoryTitile");var r=jQuery(this).attr("experienceTitle");var q=jQuery(this).val().replace(/(^\s*)|(\s*$)/g,"");if(q==""){if(o=="contentGood"){jQuery("span[id='contentTitle1Desc']").html("<em class='r'>*请填写评论内容(5-200字)</em>");
j=false;return false}jQuery("span[id='contentTitle1Desc']").html("<em class='r'>*</em>请填写评论内容(5-200字)");if(o=="contentFail"){jQuery("span[id='contentTitle2Desc']").html("<em class='r'>*请填写评论内容(5-200字)</em>");j=false;return false}jQuery("span[id='contentTitle2Desc']").html("<em class='r'>*</em>请填写评论内容(5-200字)");if(o=="content"){jQuery("span[id='contentTitle3Desc']").html("<em class='r'>*请填写评论内容(5-200字)</em>");j=false;return false}jQuery("span[id='contentTitle3Desc']").html("<em class='r'>*</em>请填写评论内容(5-200字)")}if(q.length>200){if(o=="contentGood"){jQuery("span[id='contentTitle1Desc']").html("<em class='r'>*超出200个字的字数限制</em>");j=false;return false}jQuery("span[id='contentTitle1Desc']").html("<em class='r'>*</em>请填写评论内容(5-200字)");if(o=="contentFail"){jQuery("span[id='contentTitle2Desc']").html("<em class='r'>*超出200个字的字数限制</em>");
j=false;return false}jQuery("span[id='contentTitle2Desc']").html("<em class='r'>*</em>请填写评论内容(5-200字)");if(o=="content"){jQuery("span[id='contentTitle3Desc']").html("<em class='r'>*超出200个字的字数限制</em>");j=false;return false}jQuery("span[id='contentTitle3Desc']").html("<em class='r'>*</em>请填写评论内容(5-200字)")}if(q.length<5){if(o=="contentGood"){jQuery("span[id='contentTitle1Desc']").html("<em class='r'>*内容不少于5个字</em>");j=false;return false}jQuery("span[id='contentTitle1Desc']").html("<em class='r'>*</em>请填写评论内容(5-200字)");if(o=="contentFail"){jQuery("span[id='contentTitle2Desc']").html("<em class='r'>*内容不少于5个字</em>");j=false;return false}jQuery("span[id='contentTitle2Desc']").html("<em class='r'>*</em>请填写评论内容(5-200字)");if(o=="content"){jQuery("span[id='contentTitle3Desc']").html("<em class='r'>*内容不少于5个字</em>");
j=false;return false}jQuery("span[id='contentTitle3Desc']").html("<em class='r'>*</em>请填写评论内容(5-200字)")}if(b.exec(q)){if(o=="contentGood"){jQuery("span[id='contentTitle1Desc']").html("<em class='r'>*</em>请填写评论内容(5-200个字)");j=false;return false}jQuery("span[id='contentTitle1Desc']").html("<em class='r'>*</em>请填写评论内容(5-200字)");if(o=="contentFail"){jQuery("span[id='contentTitle2Desc']").html("<em class='r'>*</em>请填写评论内容(5-200个字)");j=false;return false}jQuery("span[id='contentTitle2Desc']").html("<em class='r'>*</em>请填写评论内容(5-200字)");if(o=="content"){jQuery("span[id='contentTitle3Desc']").html("<em class='r'>*</em>请填写评论内容(5-200个字)");j=false;return false}jQuery("span[id='contentTitle3Desc']").html("<em class='r'>*</em>请填写评论内容(5-200字)")}k=k+"&"+o+"="+encodeURIComponent(encodeURIComponent(q))+"&"+r+"="+encodeURIComponent(encodeURIComponent(n))
});if(j){var g=getStartvalue("#stars1-input");var c=5;var i=5;var l=5;if(jQuery("#stars_logi-input").size()>0&&jQuery("#stars_atti-input").size()>0&&jQuery("#stars_desc-input").size()>0){c=getStartvalue("#stars_logi-input");i=getStartvalue("#stars_atti-input");l=getStartvalue("#stars_desc-input")}jQuery("[name=experience.submit]").css("disabled",true);k=k+"&qualityRating="+g+"&deliveryRating=5&serviceRating=5&mdeliveryPoint="+c+"&mservicePoint="+i+"&mdescriptPoint="+l+"&callback=?";jQuery(".evaBtn").attr("disabled","disabled");jQuery.getJSON(k,function(n){jQuery(".evaBtn").removeAttr("disabled");if(n.ERROR){}else{jQuery(".popwinClose").click();showShareDeployPage(n,e)}});return true}else{return false}}function getStartvalue(b){var c=jQuery(b);var a="5";if(c&&c.val()!=""&&c.val()!=null){a=c.val()
}return a}function showErrorTitle(b,a){jQuery("#"+b).css({color:"#666",display:"inline-block",height:"23px","line-height":"23px",padding:"0 5px",border:"1px solid #FF8080","background-color":"#FFF2F2"});jQuery("#"+b).html(a);setTimeout(function(){jQuery("#"+b).removeAttr("style");jQuery("#"+b).html("")},9000)}function showShareDeployPage(d,f){var e=d.value.split("=");var c=e[0];var b=e[1];if(c==1){jQuery(".popwinClose").click();window.scrollTo(0,0);var a='<div class="popup_cont"><div class="prompted"><img src="'+URLPrefix.statics+'/member/images/okay.png"/><h3>提交成功！ </h3><p>'+b+'!</p></div><p class="countdown">3秒后自动关闭</p><a href="javascript:void(0);" class="close">关闭</a></div>';popMsg(a,".popup_cont .close",378,120);if(jQuery("#categoryAllProducts")&&jQuery("#categoryAllProducts").size()>0){loadExpInfo(1)
}if(jQuery("#noCommentProductsView")&&jQuery("#noCommentProductsView").size()>0){loadNoCommentProductInfo()}if(jQuery("#myOrderList")&&jQuery("#myOrderList").size()>0){orderListPageInfo(1)}setTimeout(function(){jQuery(".popup_cont .close").click();openShare();if(f&&f=="publishExperience"){jQuery("#contentTitle").attr("value","");jQuery(".ipt3, .ipt6").each(function(g){jQuery(this).attr("value","")})}},3000)}else{if(c==2){var a='<div class="popup_sens"><h3 class="title">提示<span class="close">关闭</span></h3><p class="popup_text">'+b+'</p><p class="btntip"><input type="button" value="确 定" /></p></div>';popMsg(a,".popup_sens .close,.btntip :button",398,150,250);jQuery(".popup_sens .close,.btntip :button").click(function(){openShare()});if(jQuery("#categoryAllProducts")&&jQuery("#categoryAllProducts").size()>0){loadExpInfo(1)
}if(jQuery("#noCommentProductsView")&&jQuery("#noCommentProductsView").size()>0){loadNoCommentProductInfo()}if(jQuery("#myOrderList")&&jQuery("#myOrderList").size()>0){orderListPageInfo(1)}if(f&&f=="publishExperience"){jQuery("#contentTitle").attr("value","");jQuery(".ipt3, .ipt6").each(function(g){jQuery(this).attr("value","")})}}else{var a='<div class="popup_sens"><h3 class="title">提示<span class="close">关闭</span></h3><p class="popup_text">'+b+'</p><p class="btntip"><input type="button" value="确 定" /></p></div>';popMsg(a,".popup_sens .close,.btntip :button",398,150);if(f&&f=="publishExperience"){jQuery("#contentTitle").attr("value","");jQuery(".ipt3, .ipt6").each(function(g){jQuery(this).attr("value","")})}}}}function popMsg(e,b,f,d,a){YHD.init();var c=jQuery("#yhd_pop_win");if(e!=null){jQuery(c).html(e)
}if(a){YHD.initPosition(c,f,d,a)}else{YHD.initPosition(c,f,d)}jQuery(c).jqm({overlay:10,overlayClass:"pop_win_bg",modal:true,toTop:true}).jqmShow().jqmAddClose(b)}function appearAndShareExperience(f,g,c,a,e){productname=e;var b=jQuery.cookie("ut");if(!b){yhdPublicLogin.showLoginDivNone(URLPrefix.passport,false,"",function(h){if(h==0){yhdPublicLogin.showTopLoginInfo()}});return}else{executiveLandedCheck();shareImage_url=a;shareProductId=f;if(g!=null&&g!=0&&c!=null&&c!=0){shareOrderId=c;shareMerchantId=g}else{c=null;g=null}var d=urlPrefix+"/product/checkItemCount.do?productID="+f+"&merchantId="+shareMerchantId+"&soId="+shareOrderId+"&callback=?";jQuery.getJSON(d,function(h){if(h.ERROR){}else{apperarShareSuccess(h,f)}})}}function openShare(){jQuery("#pop_win_ok_btn").click();var a=urlPrefixComment+"/member/exp/editShareExcerienceDiv.do?productId="+shareProductId+"&callback=?";
jQuery.getJSON(a,function(b){if(b.ERROR){}else{if(b.value!="noshare"){getSinaUrl(function(c){YHD.popwin(b.value,470,400);jQuery("[name=experience.cancel]").click(function(){jQuery(".popwinClose").click()});if(shareImage_url==""||productname==""||shareImage_url==null||productname==null){try{shareImage_url=jQuery("#mainPic").attr("tag");productname=jQuery("#productMainName").text()}catch(d){}}jQuery("[name='product_image']").attr("src",shareImage_url);shareContentgood="我在1号店买了【"+productname.substring(0,110)+"】 ";jQuery("[name='product_share_experience']").val(shareContentgood+c);jQuery("[name=experience.share]").click(function(){if(jQuery("[name='product_share_experience']").val().length>140){jQuery("#shareErrorMsg").html("<p>分享内容不能超过140字</p>")}else{if(jQuery("[name='product_share_experience']").val().length==0){jQuery("#shareErrorMsg").html("<p>分享内容不能为空</p>")
}else{var e=false;jQuery(":checkbox[name^='share_to_']").each(function(f){e=e||jQuery(this).attr("checked")});if(e){perpShareExcerience(shareProductId)}else{jQuery("#shareErrorMsg").html("<p>请选择分享平台</p>")}}}})})}}})}var sinaUrl="";function getSinaUrl(a){if(sinaUrl!=""){a(sinaUrl)}else{getShotURL("sina",a)}}function getShotURL(a,b){if(a=="sina"&&sinaUrl!=""){b(sinaUrl)}else{url=URLPrefix.passport+"/share/shotUrl.do?longUrl="+escape(URLPrefix.central+"/product/"+shareProductId+"?tarcker_u="+getpcode(a))+"&callback=?";jQuery.getJSON(url,function(c){b(c.shotUrl);if(a=="sina"){sinaUrl=c.shotUrl}})}}function getpcode(a){if("sina"==a){return"1047513694"}if("qq"==a){return"1057943695"}if("kaixin"==a){return"1095733696"}if("renren"==a){return"1020853697"}}var shareMsg="";var sig="";var exid="";function perpShareExcerience(a){shareMsg=encodeURIComponent(encodeURIComponent(jQuery("[name='product_share_experience']").val()));
sig=jQuery("#shareErrorMsg").attr("sign");exid=jQuery("#shareErrorMsg").attr("exid");validateShare(a,"sina");validateShare(a,"renren");validateShare(a,"qq");validateShare(a,"kaixin");jQuery(".popwinClose").click();YHD.alert("评论并且分享成功",null,476,27)}function validateShare(a,b){if(jQuery(":checkbox[name='share_to_"+b+"']")&&jQuery(":checkbox[name='share_to_"+b+"']").attr("checked")){shareExcerience(a,b)}}function createShareUrl(c,d,a){var b=URLPrefix.passport+"/share/"+d+"/publish.do?sign="+sig+"&exid="+exid+"&productId="+shareProductId+"&pubMessage.content="+shareMsg+"&pubMessage.title="+encodeURIComponent(encodeURIComponent("在一号店发布了购买体验"))+"&pubMessage.image="+escape(shareImage_url)+"&pubMessage.url="+escape(a)+"&sinaUrl="+escape(sinaUrl)+"&callback=?";return b}function shareExcerience(a,b){getShotURL(b,function(c){jQuery.getJSON(createShareUrl(a,b,c),function(d){})
})};var Class={create:function(){return function(){this.initialize.apply(this,arguments)}}};var Extend=function(b,a){for(var c in a){b[c]=a[c]}};function stopDefault(a){if(a&&a.preventDefault){a.preventDefault()}else{window.event.returnValue=false}return false}var Stars=Class.create();Stars.prototype={initialize:function(m,g){this.SetOptions(g);var o=999;var j=(document.all)?true:false;var b=document.getElementById(m).getElementsByTagName("a");var d=document.getElementById(this.options.Input)||document.getElementById(m+"-input");var n=document.getElementById(this.options.Tips)||document.getElementById(m+"-tips");var h=" "+this.options.nowClass;var f=this.options.tipsTxt;var l=b.length;for(k=0;k<l;k++){b[k].value=k;b[k].onclick=function(c){stopDefault(c);this.className=this.className+h;o=this.value;
d.value=this.getAttribute("star:value");n.innerHTML=f[this.value]};b[k].onmouseover=function(){if(o<999){var c=RegExp(h,"g");b[o].className=b[o].className.replace(c,"")}};b[k].onmouseout=function(){if(o<999){b[o].className=b[o].className+h}}}if(j){var e=document.getElementById(m).getElementsByTagName("li");for(var k=0,l=e.length;k<l;k++){var a=e[k];if(a){a.className=a.getElementsByTagName("a")[0].className}}}},SetOptions:function(a){this.options={Input:"",Tips:"",nowClass:"current-rating",tipsTxt:["1分-很不满意","2分-不满意","3分-一般","4分-满意","5分-非常满意"]};Extend(this.options,a||{})}};function setHomepage(){if(document.all){document.body.style.behavior="url(#default#homepage)";document.body.setHomePage(httpUrl)}else{if(window.sidebar){if(window.netscape){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect")}catch(c){alert("该操作被浏览器拒绝，如果想启用该功能，请在地址栏内输入 about:config,然后将项 signed.applets.codebase_principal_support 值该为true")}}var d=Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);d.setCharPref("browser.startup.homepage",httpUrl)}}}function globalLogoff(){}function bookmark(){if(document.all){window.external.AddFavorite(httpUrl,favorite)}else{try{window.sidebar.addPanel(favorite,httpUrl,"")}catch(b){alert("抱歉，您所使用的浏览器无法完成此操作。\n\n加入收藏失败，请使用Ctrl+D进行添加")}}}var myCartTopHeaderTimer;function clearMyCartTopHeaderTimer(){if(myCartTopHeaderTimer!=null){clearTimeout(myCartTopHeaderTimer)
}}function buildMyYihaodian(){jQuery("#myYihaodian").mouseover(function(b){clearMyCartTopHeaderTimer();jQuery("#myYihaodianFloatDiv").show();b.stopPropagation()});jQuery("#myYihaodianFloatDiv").mouseout(function(b){clearMyCartTopHeaderTimer();myCartTopHeaderTimer=setTimeout(function(){jQuery("#myYihaodianFloatDiv").hide()},1000);b.stopPropagation()}).mouseover(function(b){clearMyCartTopHeaderTimer();b.stopPropagation()});jQuery("body").click(function(b){clearMyCartTopHeaderTimer();jQuery("#myYihaodianFloatDiv").hide();b.stopPropagation()})}var hasPingAnCookie=0;function writeHeaderContent(){var m=jQuery.cookie("ut");var i=jQuery.cookie("uname");var n=0;if(m){n=1}if(document.domain.indexOf("111.com",0)==-1){if(i){i=decodeURIComponent(i);i=cutUsername(i);if(i==null){i=""}if(currSiteType==1){var j=jQuery("#user_name_info");
if(j.length==0){jQuery("#user_name").text(i)}else{jQuery("#user_name_info").text(i);jQuery("#user_name_welcome").show()}}else{if(jQuery("#user_name_info").length==0){if(n){jQuery("#user_name").html("<span>"+i+"</span>，欢迎您！")}else{jQuery("#user_name").html("<span>"+i+"</span>，欢迎您！请")}}else{if(n){jQuery("#user_name").text(i+"，欢迎您！")}else{jQuery("#user_name").text(i+"，欢迎您！请")}}}}}if(n==1){if(document.domain.indexOf("111.com",0)!=-1){if(i){i=decodeURIComponent(i);if(i==null){i=""}jQuery("#user_name").text(i)}}jQuery("#login").hide();jQuery("#logout").show()}var k="";var p=jQuery.cookie("ucocode");var o=jQuery.cookie("externaluserlevel");if((p&&p=="pingan")){hasPingAnCookie=1;k="尊敬的万里通会员";jQuery(".provincebox").addClass("provincebox2")}else{if(p&&p=="tencent"){if(o&&o>0){k="尊敬的QQ会员"}else{if(o&&o==0){k="尊敬的QQ用户"
}}}else{if(p&&p=="kaixin001"&&jQuery("#KX_JS_URL").size()>0){if(jQuery("#kx001_btn_login").parent().size()>0){jQuery("#logout").hide();jQuery("#kx001_btn_login").parent().show()}var l=jQuery("#KX_JS_URL").val();jQuery.getScript(l,function(){if(jQuery("#kx001_btn_login").size()>0&&jQuery("#kx001_btn_login").html()==""){try{KX001.init("974091834200c72a39a7bb394900fb0c","/pages/kaixin/kx001_receiver.html")}catch(a){}}})}}}if(k&&k!=""){if(i==null){i=""}if(currSiteId==1){if(currSiteType==1){var j=$("#user_name").find("#user_name_info");if(j.length==0){jQuery("#user_name").text(cutUsername(k+i))}else{jQuery("#user_name_info").text(i);jQuery("#user_name_welcome").show()}}else{if(jQuery("#user_name_info").length==0){if(n){jQuery("#user_name").html("<span>"+cutUsername(k+i)+"</span>，欢迎您！")}else{jQuery("#user_name").html("<span>"+cutUsername(k+i)+"</span>，欢迎您！请")
}}else{if(n){jQuery("#user_name").text(cutUsername(k+i)+"，欢迎您！")}else{jQuery("#user_name").text(cutUsername(k+i)+"，欢迎您！请")}}}}else{jQuery("#user_name").text(k+i)}}}function cutUsername(b){return b}function bothSiteLogoutJsonp(){var f=false;var g=false;var h=(typeof currSiteType!="undefined"&&currSiteType==1)?URLPrefix.passport:URLPrefix.passportmall;var e=(typeof currSiteType!="undefined"&&currSiteType==1)?URLPrefix.passportmall:URLPrefix.passport;jQuery.getJSON(h+"/passport/logoutJsonp.do?timestamp="+new Date()+"&callback=?",function(a){if(a&&a.code=="0"){f=true}jQuery.getJSON(e+"/passport/logoutJsonp.do?timestamp="+new Date()+"&callback=?",function(b){if(b&&b.code=="0"){g=true}window.location.href=currDomain})});if(myCartTopHeaderTimer){clearMyCartTopHeaderTimer()}myCartTopHeaderTimer=setTimeout(function(){if(!(f&&g)){window.location.href=currDomain
}},3000)}function pingan_quit(){var b=new Date((new Date()).getTime()).toGMTString();document.cookie="ut=;expires="+b+";domain=."+no3wUrl+";path=/";document.cookie="ucocode=;expires="+b+";domain=."+no3wUrl+";path=/";document.cookie="cocode=;expires="+b+";domain=."+no3wUrl+";path=/";location.href="https://www.wanlitong.com/eloyalty_chs/start.swe?SWENeedContext=false&SWECmd=Logoff&SWEC=2&SWEBID=-1&SWETS="}function kx001_onlogout(){window.location.href=httpUrl+"/passport/logoff.do"}function hightLightMenu(h,e){var g=jQuery(h);var f=location.href;g.each(function(b){if(b==0){return true}var c=jQuery(this).find("a");var d=c.attr("href");var i=c.attr("hl");var a=false;a=(f.indexOf(d)>-1);if(!a){if(i){a=(f.indexOf(i)>-1)}}if(!a){a=(f.indexOf("point2channel.do")>-1)&&(d.indexOf("/point2/pointIndex.do")>-1)
}if(a){if(b){if(currSiteId==2){g.eq(0).addClass("removehome");c.addClass("select")}else{if(currSiteType==1){if(i!=null&&i.length>0){g.eq(0).removeClass("cur");c.parent().addClass("cur")}}}}return false}})}function initHeader(){jQuery(".top_bar_link > ul > li").hover(function(){jQuery(this).children("ul").show().end();jQuery(this).find(".qixia").addClass("qixia_hover")},function(){jQuery(this).children("ul").hide().end();jQuery(this).find(".qixia").removeClass("qixia_hover")});try{writeHeaderContent()}catch(b){}hightLightMenu("#global_menu li",null);addTrackerToEvent("#global_top_bar");if(typeof currSiteType!="undefined"&&typeof currSiteId!="undefined"&&currSiteId==1){if(currSiteType==1){jQuery("#global_top_bar_loginLink").click(function(){if(yhdPublicLogin&&yhdPublicLogin.showLoginDiv&&typeof yhdPublicLogin.showLoginDiv=="function"){yhdPublicLogin.showLoginDiv()
}else{return}if(gotracker&&typeof gotracker=="function"){gotracker("2","YHD_TOP_login")}})}else{jQuery("#global_top_bar_loginLink").click(function(){if(yhdPublicLogin&&yhdPublicLogin.showLoginDiv&&typeof yhdPublicLogin.showLoginDiv=="function"){yhdPublicLogin.showLoginDiv()}else{return}if(gotracker&&typeof gotracker=="function"){gotracker("2","MALL_TOP_login")}})}}}function lazyLoadBottomBrandsData(){var b=function(){var d=jQuery("#bottomBrand");if(!d.size()){return}var a=document.documentElement.clientHeight+Math.max(document.documentElement.scrollTop,document.body.scrollTop);if(d.offset().top>a+100||d.data("loaded")){return}else{d.data("loaded",true)}d.html("<p align='center'><img src='"+imagePath+"/loade.gif'/>请您稍等,数据正在加载...</p>");jQuery.getJSON(URLPrefix.central+"/bottomBrand/ajaxGetBottomBrandsData.do?callback=?",function(c){d.html("");
if(c.value){var g=jQuery(c.value).find("ul");var h="";g.each(function(){h+=jQuery(this).html()});d.html(h)}jQuery(window).unbind("scroll",b)})};jQuery(window).bind("scroll",b);b()}function lazyLoadBottomPromPic(){if(typeof currSiteType!="undefined"&&typeof currSiteId!="undefined"&&currSiteId==1){if(currSiteType==2){var b=jQuery("#bottom_prom");if(!b.size()){return}jQuery("#bottom_prom").lazyImg({wideAttr:isWidescreen?"wi":"si",load:false})}}}function headNavFixed(){if(typeof currSiteType!="undefined"&&typeof currSiteId!="undefined"&&currSiteId==1){if(currSiteType==1){function d(){var a=142;$(window).scroll(function(){var b=$(this).scrollTop();if(b>a){$(".headerNav").addClass("nav_fixed")}else{$(".headerNav").removeClass("nav_fixed")}});if($.browser.msie&&($.browser.version=="6.0")&&!$.support.style){var a=142;
$(window).scroll(function(){var b=$(this).scrollTop();if(b>a){$(".headerNav").addClass("fixed_ie6");var f=$(".headerNav_ifm").length;if(f==0){$("<iframe class=headerNav_ifm></iframe>").insertBefore(".headerNav .wrap")}$(".headerNav").css("top",b)}else{$(".headerNav").removeClass("fixed_ie6");$(".headerNav_ifm").remove();$(".headerNav").css("top","0px")}})}}d()}else{function c(){var b=$("#headerNav"),a=b.offset().top;if($.browser.msie&&$.browser.version==6){loli.delay(window,"scroll",null,function(){var g=$(window).scrollTop(),h=$("#headerNavEm");if(g>a){h.show();b.addClass("navFloat");b.css("top",g)}else{h.hide();b.removeClass("navFloat")}},500)}else{$(window).scroll(function(){if($(window).scrollTop()>a){b.addClass("navFloat")}else{b.removeClass("navFloat")}})}}c()}}}jQuery(document).ready(function(){if(isIndex!=1){initHeader()
}lazyLoadBottomBrandsData();lazyLoadBottomPromPic();if(typeof isFixTopNav!="undefined"&&isFixTopNav==true){headNavFixed()}if(typeof currSiteType!="undefined"&&typeof currSiteId!="undefined"&&currSiteId==1){jQuery("#footerServiceLinkId").lazyDom({load:false,flushPrice:false,indexLoad:true,callback:function(){addTrackerToEvent("#bottomHelpLinkId")}});jQuery("#bottom_footerCategory").lazyDom({load:false,flushPrice:false,indexLoad:true});addTrackerToEvent("#footer")}});var yhdHead=yhdHead||{};yhdHead.topMenuImgLazyLoad=function(){jQuery("#wideScreenTabShowID li img").each(function(){jQuery(this).attr("src",function(){return jQuery(this).attr("original")}).removeAttr("original")});jQuery("#allCategoryHeader ul li h3 img").each(function(){jQuery(this).attr("src",function(){return jQuery(this).attr("original")}).removeAttr("original")})};yhdHead.newTopTabShow=function(b,a){if(b>a){jQuery("#wideScreenTabShowID li").each(function(c){if(c==a-1){jQuery(this).addClass("kf")}if(c>a-1){jQuery(this).remove()}})}};yhdHead.oldTopTabShow=function(b,a){if(b>a){jQuery("#global_menu span").each(function(c){if(c>a-1){jQuery(this).remove()}})}};yhdHead.dealWideNarrowScreen=function(){var a=screen.width>=1280;if(currSiteId==1){var c=jQuery("#wideScreenTabShowID li").length;var b=jQuery("#global_menu span").length;
if(!a){yhdHead.newTopTabShow(c,10);yhdHead.oldTopTabShow(b,7)}else{if(isIndex){if(isIndex==1){yhdHead.newTopTabShow(c,10)}else{yhdHead.newTopTabShow(c,10)}}else{yhdHead.newTopTabShow(c,10)}yhdHead.oldTopTabShow(b,7)}}else{var c=jQuery("#wideScreenTabShowID li").length;var b=jQuery("#global_menu span").length;if(!a){yhdHead.newTopTabShow(c,8);yhdHead.oldTopTabShow(b,6)}else{if(isIndex){if(isIndex==1){yhdHead.newTopTabShow(c,9)}else{yhdHead.newTopTabShow(c,8)}}else{yhdHead.newTopTabShow(c,8)}yhdHead.oldTopTabShow(b,6)}}};yhdHead.topMenuTrackInit=function(){jQuery("#wideScreenTabShowID li a[tk]").click(function(){var b=$(this),a=b.attr("tk");if(a){addTrackPositionToCookie("1",a)}});jQuery("#global_menu span a[tk]").click(function(){var b=$(this),a=b.attr("tk");if(a){addTrackPositionToCookie("1",a)
}})};jQuery(function(){yhdHead.topMenuImgLazyLoad();yhdHead.topMenuTrackInit()});$(document).ready(function(){if(currSiteId&&currSiteId==1){jQuery("#targetMedical").attr("href","###").removeAttr("target").bind("click",medical_click);jQuery("#targetYw").attr("href","###").removeAttr("target").bind("click",yw_click);if(jQuery("#wideScreenTabShowID a[href='http://www.111.com.cn']").size()){jQuery("#wideScreenTabShowID a[href='http://www.111.com.cn']").attr("href","###").removeAttr("target").bind("click",yw_click)}else{jQuery("#wideScreenTabShowID a[href='http://www.111.com.cn/']").attr("href","###").removeAttr("target").bind("click",yw_click)}if(jQuery("#wideScreenTabShowID a[href='http://www.yiwang.cn']").size()){jQuery("#wideScreenTabShowID a[href='http://www.yiwang.cn']").attr("href","###").removeAttr("target").bind("click",medical_click)}else{jQuery("#wideScreenTabShowID a[href='http://www.yiwang.cn/']").attr("href","###").removeAttr("target").bind("click",medical_click)
}}if(currSiteId&&currSiteId==2){jQuery("#revertYhd").bind("click",yhd_click);if(jQuery("#global_menu a[href='http://www.yihaodian.com/']").size()){jQuery("#global_menu a[href='http://www.yihaodian.com/']").attr("href","###").removeAttr("target").bind("click",yhd_click)}else{jQuery("#global_menu a[href='http://www.yihaodian.com']").attr("href","###").removeAttr("target").bind("click",yhd_click)}}});function checkLogin_for_auth(){if(getCookie_for_auth("ut")==""){return false}else{return true}}function getCookie_for_auth(h){var g=document.cookie.split(";");for(var e=0;e<g.length;e++){var f=g[e].split("=");if(f[0].replace(/(^\s*)|(\s*$)/g,"")==h){return f[1]}}return""}function medical_click(){var g="target_site=2";var f="https://passport.yihaodian.com/auth/redirect.do?"+g+"&callback=?";var h="http://www.yiwang.cn/";
if(!checkLogin_for_auth()){window.location.href=h;return false}try{jQuery.getJSON(f,function(a){if(a){if(a.is_yhd_login==0){}if(a.is_yhd_login==1){h=a.target_url}window.location.href=h}})}catch(e){window.location.href=h}}function yw_click(){var g="target_site=1";var f="https://passport.yihaodian.com/auth/redirect.do?"+g+"&callback=?";var h="http://www.111.com.cn/";if(!checkLogin_for_auth()){window.location.href=h;return false}try{jQuery.getJSON(f,function(a){if(a){if(a.is_yhd_login==0){}if(a.is_yhd_login==1){h=a.target_url}window.location.href=h}})}catch(e){window.location.href=h}}function yhd_click(){var e="https://passport.111.com.cn/auth/revertToYhd.do?callback=?";var f="http://www.yihaodian.com";if(!checkLogin_for_auth()){window.location.href=f;return false}try{jQuery.getJSON(e,function(a){if(a){f=a.target_url;
window.location.href=f}})}catch(d){window.location.href=f}};var returnUrl=document.location.href;var yhdPublicLogin=yhdPublicLogin||{};yhdPublicLogin.checkLogin=function(){if(yhdPublicLogin.getCookie("ut")){return true}else{return false}};yhdPublicLogin.getCookie=function(a){var b=document.cookie.split(";");for(var d=0;d<b.length;d++){var c=b[d].split("=");if(c[0].replace(/(^\s*)|(\s*$)/g,"")==a){return c[1]}}return""};yhdPublicLogin.loadCssAndJs=function(b,c){var a="";if(c=="js"){a=document.createElement("script");a.setAttribute("type","text/javascript");a.setAttribute("charset","UTF-8");a.setAttribute("src",b)}else{if(c=="css"){a=document.createElement("link");a.setAttribute("rel","stylesheet");a.setAttribute("type","text/css");a.setAttribute("href",b)}}if(typeof a!="undefined"){document.getElementsByTagName("head")[0].appendChild(a)}};yhdPublicLogin.showLoginDiv=function(b,e,f){if(e&&yhdPublicLogin.checkLogin()){return
}if(b){var d="";if(b.toLowerCase().indexOf("http")<0){var h=window.location.protocol;var i=window.location.host;var g=h+"//"+i;d=g}var a=d+b;returnUrl=a}var c=URLPrefix.passport;if(currSiteType==2){c=URLPrefix.passportmall}passportLoginFrame(c,null,function(j){try{if(returnUrl){window.location.href=returnUrl}else{window.location.reload(true)}}catch(k){}},f)};yhdPublicLogin.showLoginDivNone=function(e,a,c,b,d){if(a&&yhdPublicLogin.checkLogin()){return}var e=URLPrefix.passport;if(currSiteType==2){e=URLPrefix.passportmall}passportLoginFrame(e,c,b,d)};yhdPublicLogin.showTopLoginInfo=function(){try{YHDGLOBAL.getCookie(["ut","uname"],function(){var d=this["ut"];var b=this["uname"];var c=0;if(d){c=1}if(c==1){if(b){b=decodeURIComponent(b);if(b==null){b=""}jQuery("#user_name").text(b)}jQuery("#login").hide();
jQuery("#logout").show()}})}catch(a){}};jQuery(document).ready(function(){var a="";if(URLPrefix&&URLPrefix.statics){a=URLPrefix.statics}else{if(currSiteId&&currSiteId==2){a="http://image.111.com.cn/statics"}else{if(currSiteType==2){a="ttp://image.51ap.cn/statics"}else{a="http://image.yihaodianimg.com/statics"}}}yhdPublicLogin.loadCssAndJs(a+"/global/css/global_yhdLib.css","css");yhdPublicLogin.loadCssAndJs(a+"/global/js/global_yhdLib.js","js");yhdPublicLogin.loadCssAndJs(a+"/global/js/global_login_frame.js","js")});GLOBAL={};RESOUSE={};(function(i,h,g,k){var j=g.fn={};var l=k.menu={};j.getMenu=function(e,c,d,f){var a=i(e),n=f||"pid",f=a.attr(n),b="mallMenu_"+f;if(!f||l[f]){return}l[f]="lock";d=d+"?categoryCode="+f+"&callback="+b;h[b]=function(m){if(c){c.find("["+n+"='"+f+"']").html(m.value)}else{e.html(m.value)}l[f]=m.value;h[b]=null};i.getScript(d)};j.loadMenu=function(c,a,b){setTimeout(function(){var e=b||"pid",f=c.find("["+e+"]"),p=f.length,o=0,d=setInterval(function(){j.getMenu(i(f[o]),null,a,e);if(++o>=p){clearInterval(d)}},300)},1000)}})(jQuery,window,GLOBAL,RESOUSE);var MALLHEAD=MALLHEAD||{};MALLHEAD.addTrackInit=function(c){jQuery(c+" a[tk]").click(function(){var b=$(this),e=b.attr("tk");if(e){addTrackPositionToCookie("1",e)}})};function catPanelShow(){$("#allSortOuterbox").bind({mouseenter:function(){$(".catPanel").show()},mouseleave:function(){$(".catPanel").hide()}})}function homeCatPanel(){$("#allSortOuterbox").unbind();$("#catPanelID ul li p").show();$(".catPanel").show()}function navFloat(){var d=$("#headerNav"),e=d.offset().top;if($.browser.msie&&$.browser.version==6){loli.delay(window,"scroll",null,function(){var c=$(window).scrollTop(),b=$("#headerNavEm");if(c>e){b.show();d.addClass("navFloat");var g=$(".headerNav_ifm").length;if(g==0){$("<iframe class=headerNav_ifm></iframe>").insertBefore(".headerNav .wrap")}d.css("top",c)}else{b.hide();$(".headerNav_ifm").remove();
d.removeClass("navFloat")}},500)}else{$(window).scroll(function(){if($(window).scrollTop()>e){d.addClass("navFloat")}else{d.removeClass("navFloat")}})}}function catSubListHover(x,t,r){var z,D=$("#headerNav"),v=D.find(".catList"),u=v.find("li"),F=D.find(".catPanel"),A=D.find(".catSubList"),w=D.find(".catSubListPop");var C="",E=200,G=E-20,s;v.delegate("li","mouseover",function(){var b=this,c=$(b);if(c.hasClass("flag")){return}if(t){t(b,w,x)}if(s){clearTimeout(s)}s=setTimeout(function(){B(b)},E);C=new Date().getTime()});function B(b){if((new Date().getTime()-C)>=G){y(b);C=new Date().getTime()}}function y(g){g=$(g);A.hide().eq(g.index()).show();var c=$(window).scrollTop(),b=F.offset().top,e=w.height();u.removeClass("cur").removeClass("flag");g.addClass("cur").addClass("flag");var h=c+$(window).height()-b,d=g.position().top,f=h-d;
if(b>c){if(e<=f){w.css("top",d)}else{if(e>f&&e<h){w.css("top",h-e)}else{w.css("top",0)}}}else{if(e<=f){w.css("top",d)}else{if(e>f&&e<$(window).height()){w.css("top",h-e)}else{w.css("top",c-b)}}}MALLHEAD.addTrackInit("#catPanelID #catSubListPopID")}w.mouseover(function(){if(s){clearTimeout(s)}});F.hover(function(){z=setTimeout(function(){w.show()},210)},function(){clearTimeout(s);clearTimeout(z);u.removeClass("cur").removeClass("flag");A.hide();w.hide()})}var a=function(){};jQuery(document).ready(function(){(function(i,g){var f=i.fn;var h=currDomain+"/header/globalmallleftMenuV1.do";catSubListHover(h,f.getMenu,f.loadMenu);catPanelShow();MALLHEAD.addTrackInit("#catPanelID .catList")})(GLOBAL,RESOUSE);MALLHEAD.addTrackInit("#mallFooterServiceId")});function newTopslider(i){var f=jQuery(i);var g=f.find(".index_topbanner_fold");var h=f.find("a");g.toggle(function(){$(this).removeClass("index_topbanner_unfold");$(this).html("展开<s></s>");h.eq(0).slideUp();h.eq(1).slideDown()},function(){$(this).addClass("index_topbanner_unfold");$(this).html("收起<s></s>");h.eq(0).slideDown();h.eq(1).slideUp()});var j=jQuery(i).find("a>img");j.eq(0).load(function(){jQuery(i).slideDown();lamuSlidUpAuto(g)});j.each(function(){jQuery(this).attr("src",jQuery(this).attr(isWidescreen?"wideimg":"shortimg")).removeAttr("wideimg").removeAttr("shortimg")})}function lamuSlidUpAuto(f){var d=function(){f.trigger("click")};var e=setTimeout(d,5000);f.click(function(){clearInterval(e)})};