var coreEnvironment={namespace_root:window,Package:function(d){var c=coreEnvironment.namespace_root;var f=d.split(".");for(var b=0,a=f.length;b<a;b++){if(!c[f[b]]){c[f[b]]={};}else{if(b==a-1&&c[f[b]]){try{console.log("namespace [ "+d+" ] is exist!");
}catch(g){}return;}}c=c[f[b]];}},clone:function(b){function a(){}a.prototype=b;return new a;},extend:function(c,a){var b=function(){};b.prototype=a.prototype;c.prototype=new b();c.prototype.constructor=c;c.superclass=a.prototype;if(a.prototype.constructor==Object.prototype.constructor){a.prototype.constructor=a;
}}};(function(){window.Package=coreEnvironment.Package;window.clone=coreEnvironment.clone;})();(function(){var U=this,Z,F=U.jQuery,R=U.$,S=U.jQuery=U.$=function(b,a){return new S.fn.init(b,a);},L=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,aa=/^.[^:#\[\.,]*$/;S.fn=S.prototype={init:function(e,b){e=e||document;
if(e.nodeType){this[0]=e;this.length=1;this.context=e;return this;}if(typeof e==="string"){var c=L.exec(e);if(c&&(c[1]||!b)){if(c[1]){e=S.clean([c[1]],b);}else{var a=document.getElementById(c[3]);if(a){if(a.id!=c[3]){return S().find(e);}var d=S(a);d.context=document;d.selector=e;return d;}e=[];}}else{return S(b).find(e);
}}else{if(S.isFunction(e)){return S(document).ready(e);}}if(e.selector&&e.context){this.selector=e.selector;this.context=e.context;}return this.setArray(S.makeArray(e));},selector:"",jquery:"1.3",size:function(){return this.length;},get:function(a){return a===Z?S.makeArray(this):this[a];},pushStack:function(c,a,d){var b=S(c);
b.prevObject=this;b.context=this.context;if(a==="find"){b.selector=this.selector+(this.selector?" ":"")+d;}else{if(a){b.selector=this.selector+"."+a+"("+d+")";}}return b;},setArray:function(a){this.length=0;Array.prototype.push.apply(this,a);return this;},each:function(a,b){return S.each(this,a,b);},index:function(a){return S.inArray(a&&a.jquery?a[0]:a,this);
},attr:function(c,a,b){var d=c;if(typeof c==="string"){if(a===Z){return this[0]&&S[b||"attr"](this[0],c);}else{d={};d[c]=a;}}return this.each(function(e){for(c in d){S.attr(b?this.style:this,c,S.prop(this,d[c],b,e,c));}});},css:function(b,a){if((b=="width"||b=="height")&&parseFloat(a)<0){a=Z;}return this.attr(b,a,"curCSS");
},text:function(a){if(typeof a!=="object"&&a!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(a));}var b="";S.each(a||this,function(){S.each(this.childNodes,function(){if(this.nodeType!=8){b+=this.nodeType!=1?this.nodeValue:S.fn.text([this]);}});});return b;
},wrapAll:function(b){if(this[0]){var a=S(b,this[0].ownerDocument).clone();if(this[0].parentNode){a.insertBefore(this[0]);}a.map(function(){var c=this;while(c.firstChild){c=c.firstChild;}return c;}).append(this);}return this;},wrapInner:function(a){return this.each(function(){S(this).contents().wrapAll(a);
});},wrap:function(a){return this.each(function(){S(this).wrapAll(a);});},append:function(){return this.domManip(arguments,true,function(a){if(this.nodeType==1){this.appendChild(a);}});},prepend:function(){return this.domManip(arguments,true,function(a){if(this.nodeType==1){this.insertBefore(a,this.firstChild);
}});},before:function(){return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this);});},after:function(){return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this.nextSibling);});},end:function(){return this.prevObject||S([]);},push:[].push,find:function(c){if(this.length===1&&!/,/.test(c)){var a=this.pushStack([],"find",c);
a.length=0;S.find(c,this[0],a);return a;}else{var b=S.map(this,function(d){return S.find(c,d);});return this.pushStack(/[^+>] [^+>]/.test(c)?S.unique(b):b,"find",c);}},clone:function(b){var c=this.map(function(){if(!S.support.noCloneEvent&&!S.isXMLDoc(this)){var d=this.cloneNode(true),e=document.createElement("div");
e.appendChild(d);return S.clean([e.innerHTML])[0];}else{return this.cloneNode(true);}});var a=c.find("*").andSelf().each(function(){if(this[Y]!==Z){this[Y]=null;}});if(b===true){this.find("*").andSelf().each(function(f){if(this.nodeType==3){return;}var g=S.data(this,"events");for(var d in g){for(var e in g[d]){S.event.add(a[f],d,g[d][e],g[d][e].data);
}}});}return c;},filter:function(a){return this.pushStack(S.isFunction(a)&&S.grep(this,function(b,c){return a.call(b,c);})||S.multiFilter(a,S.grep(this,function(b){return b.nodeType===1;})),"filter",a);},closest:function(b){var a=S.expr.match.POS.test(b)?S(b):null;return this.map(function(){var c=this;
while(c&&c.ownerDocument){if(a?a.index(c)>-1:S(c).is(b)){return c;}c=c.parentNode;}});},not:function(b){if(typeof b==="string"){if(aa.test(b)){return this.pushStack(S.multiFilter(b,this,true),"not",b);}else{b=S.multiFilter(b,this);}}var a=b.length&&b[b.length-1]!==Z&&!b.nodeType;return this.filter(function(){return a?S.inArray(this,b)<0:this!=b;
});},add:function(a){return this.pushStack(S.unique(S.merge(this.get(),typeof a==="string"?S(a):S.makeArray(a))));},is:function(a){return !!a&&S.multiFilter(a,this).length>0;},hasClass:function(a){return !!a&&this.is("."+a);},val:function(d){if(d===Z){var a=this[0];if(a){if(S.nodeName(a,"option")){return(a.attributes.value||{}).specified?a.value:a.text;
}if(S.nodeName(a,"select")){var f=a.selectedIndex,c=[],b=a.options,g=a.type=="select-one";if(f<0){return null;}for(var j=g?f:0,e=g?f+1:b.length;j<e;j++){var h=b[j];if(h.selected){d=S(h).val();if(g){return d;}c.push(d);}}return c;}return(a.value||"").replace(/\r/g,"");}return Z;}if(typeof d==="number"){d+="";
}return this.each(function(){if(this.nodeType!=1){return;}if(S.isArray(d)&&/radio|checkbox/.test(this.type)){this.checked=(S.inArray(this.value,d)>=0||S.inArray(this.name,d)>=0);}else{if(S.nodeName(this,"select")){var k=S.makeArray(d);S("option",this).each(function(){this.selected=(S.inArray(this.value,k)>=0||S.inArray(this.text,k)>=0);
});if(!k.length){this.selectedIndex=-1;}}else{this.value=d;}}});},html:function(a){return a===Z?(this[0]?this[0].innerHTML:null):this.empty().append(a);},replaceWith:function(a){return this.after(a).remove();},eq:function(a){return this.slice(a,+a+1);},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","));
},map:function(a){return this.pushStack(S.map(this,function(b,c){return a.call(b,c,b);}));},andSelf:function(){return this.add(this.prevObject);},domManip:function(e,b,c){if(this[0]){var f=(this[0].ownerDocument||this[0]).createDocumentFragment(),j=S.clean(e,(this[0].ownerDocument||this[0]),f),g=f.firstChild,a=this.length>1?f.cloneNode(true):f;
if(g){for(var h=0,k=this.length;h<k;h++){c.call(d(this[h],g),h>0?a.cloneNode(true):f);}}if(j){S.each(j,E);}}return this;function d(m,l){return b&&S.nodeName(m,"table")&&S.nodeName(l,"tr")?(m.getElementsByTagName("tbody")[0]||m.appendChild(m.ownerDocument.createElement("tbody"))):m;}}};S.fn.init.prototype=S.fn;
function E(b,a){if(a.src){S.ajax({url:a.src,async:false,dataType:"script"});}else{S.globalEval(a.text||a.textContent||a.innerHTML||"");}if(a.parentNode){a.parentNode.removeChild(a);}}function ab(){return +new Date;}S.extend=S.fn.extend=function(){var c=arguments[0]||{},e=1,d=arguments.length,h=false,f;
if(typeof c==="boolean"){h=c;c=arguments[1]||{};e=2;}if(typeof c!=="object"&&!S.isFunction(c)){c={};}if(d==e){c=this;--e;}for(;e<d;e++){if((f=arguments[e])!=null){for(var g in f){var b=c[g],a=f[g];if(c===a){continue;}if(h&&a&&typeof a==="object"&&!a.nodeType){c[g]=S.extend(h,b||(a.length!=null?[]:{}),a);
}else{if(a!==Z){c[g]=a;}}}}}return c;};var ae=/z-?index|font-?weight|opacity|zoom|line-?height/i,Q=document.defaultView||{},M=Object.prototype.toString;S.extend({noConflict:function(a){U.$=R;if(a){U.jQuery=F;}return S;},isFunction:function(a){return M.call(a)==="[object Function]";},isArray:function(a){return M.call(a)==="[object Array]";
},isXMLDoc:function(a){return a.documentElement&&!a.body||a.tagName&&a.ownerDocument&&!a.ownerDocument.body;},globalEval:function(a){a=S.trim(a);if(a){var b=document.getElementsByTagName("head")[0]||document.documentElement,c=document.createElement("script");c.type="text/javascript";if(S.support.scriptEval){c.appendChild(document.createTextNode(a));
}else{c.text=a;}b.insertBefore(c,b.firstChild);b.removeChild(c);}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()==b.toUpperCase();},each:function(e,a,f){var g,d=0,c=e.length;if(f){if(c===Z){for(g in e){if(a.apply(e[g],f)===false){break;}}}else{for(;d<c;){if(a.apply(e[d++],f)===false){break;
}}}}else{if(c===Z){for(g in e){if(a.call(e[g],g,e[g])===false){break;}}}else{for(var b=e[0];d<c&&a.call(b,d,b)!==false;b=e[++d]){}}}return e;},prop:function(b,a,c,d,e){if(S.isFunction(a)){a=a.call(b,d);}return typeof a==="number"&&c=="curCSS"&&!ae.test(e)?a+"px":a;},className:{add:function(b,a){S.each((a||"").split(/\s+/),function(d,c){if(b.nodeType==1&&!S.className.has(b.className,c)){b.className+=(b.className?" ":"")+c;
}});},remove:function(b,a){if(b.nodeType==1){b.className=a!==Z?S.grep(b.className.split(/\s+/),function(c){return !S.className.has(a,c);}).join(" "):"";}},has:function(a,b){return S.inArray(b,(a.className||a).toString().split(/\s+/))>-1;}},swap:function(b,c,a){var e={};for(var d in c){e[d]=b.style[d];
b.style[d]=c[d];}a.call(b);for(var d in c){b.style[d]=e[d];}},css:function(e,g,c){if(g=="width"||g=="height"){var a,f={position:"absolute",visibility:"hidden",display:"block"},b=g=="width"?["Left","Right"]:["Top","Bottom"];function d(){a=g=="width"?e.offsetWidth:e.offsetHeight;var h=0,j=0;S.each(b,function(){h+=parseFloat(S.curCSS(e,"padding"+this,true))||0;
j+=parseFloat(S.curCSS(e,"border"+this+"Width",true))||0;});a-=Math.round(h+j);}if(S(e).is(":visible")){d();}else{S.swap(e,f,d);}return Math.max(0,a);}return S.curCSS(e,g,c);},curCSS:function(f,j,h){var c,a=f.style;if(j=="opacity"&&!S.support.opacity){c=S.attr(a,"opacity");return c==""?"1":c;}if(j.match(/float/i)){j=H;
}if(!h&&a&&a[j]){c=a[j];}else{if(Q.getComputedStyle){if(j.match(/float/i)){j="float";}j=j.replace(/([A-Z])/g,"-$1").toLowerCase();var b=Q.getComputedStyle(f,null);if(b){c=b.getPropertyValue(j);}if(j=="opacity"&&c==""){c="1";}}else{if(f.currentStyle){var e=j.replace(/\-(\w)/g,function(l,k){return k.toUpperCase();
});c=f.currentStyle[j]||f.currentStyle[e];if(!/^\d+(px)?$/i.test(c)&&/^\d/.test(c)){var g=a.left,d=f.runtimeStyle.left;f.runtimeStyle.left=f.currentStyle.left;a.left=c||0;c=a.pixelLeft+"px";a.left=g;f.runtimeStyle.left=d;}}}}return c;},clean:function(g,b,d){b=b||document;if(typeof b.createElement==="undefined"){b=b.ownerDocument||b[0]&&b[0].ownerDocument||document;
}if(!d&&g.length===1&&typeof g[0]==="string"){var e=/^<(\w+)\s*\/?>$/.exec(g[0]);if(e){return[b.createElement(e[1])];}}var f=[],h=[],a=b.createElement("div");S.each(g,function(m,k){if(typeof k==="number"){k+="";}if(!k){return;}if(typeof k==="string"){k=k.replace(/(<(\w+)[^>]*?)\/>/g,function(q,p,r){return r.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?q:p+"></"+r+">";
});var n=S.trim(k).toLowerCase();var l=!n.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!n.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||n.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!n.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!n.indexOf("<td")||!n.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!n.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!S.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];
a.innerHTML=l[1]+k+l[2];while(l[0]--){a=a.lastChild;}if(!S.support.tbody){var o=!n.indexOf("<table")&&n.indexOf("<tbody")<0?a.firstChild&&a.firstChild.childNodes:l[1]=="<table>"&&n.indexOf("<tbody")<0?a.childNodes:[];for(var j=o.length-1;j>=0;--j){if(S.nodeName(o[j],"tbody")&&!o[j].childNodes.length){o[j].parentNode.removeChild(o[j]);
}}}if(!S.support.leadingWhitespace&&/^\s/.test(k)){a.insertBefore(b.createTextNode(k.match(/^\s*/)[0]),a.firstChild);}k=S.makeArray(a.childNodes);}if(k.nodeType){f.push(k);}else{f=S.merge(f,k);}});if(d){for(var c=0;f[c];c++){if(S.nodeName(f[c],"script")&&(!f[c].type||f[c].type.toLowerCase()==="text/javascript")){h.push(f[c].parentNode?f[c].parentNode.removeChild(f[c]):f[c]);
}else{if(f[c].nodeType===1){f.splice.apply(f,[c+1,0].concat(S.makeArray(f[c].getElementsByTagName("script"))));}d.appendChild(f[c]);}}return h;}return f;},attr:function(c,f,b){if(!c||c.nodeType==3||c.nodeType==8){return Z;}var e=!S.isXMLDoc(c),a=b!==Z;f=e&&S.props[f]||f;if(c.tagName){var g=/href|src|style/.test(f);
if(f=="selected"&&c.parentNode){c.parentNode.selectedIndex;}if(f in c&&e&&!g){if(a){if(f=="type"&&S.nodeName(c,"input")&&c.parentNode){throw"type property can't be changed";}c[f]=b;}if(S.nodeName(c,"form")&&c.getAttributeNode(f)){return c.getAttributeNode(f).nodeValue;}if(f=="tabIndex"){var d=c.getAttributeNode("tabIndex");
return d&&d.specified?d.value:c.nodeName.match(/^(a|area|button|input|object|select|textarea)$/i)?0:Z;}return c[f];}if(!S.support.style&&e&&f=="style"){return S.attr(c.style,"cssText",b);}if(a){c.setAttribute(f,""+b);}var h=!S.support.hrefNormalized&&e&&g?c.getAttribute(f,2):c.getAttribute(f);return h===null?Z:h;
}if(!S.support.opacity&&f=="opacity"){if(a){c.zoom=1;c.filter=(c.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(b)+""=="NaN"?"":"alpha(opacity="+b*100+")");}return c.filter&&c.filter.indexOf("opacity=")>=0?(parseFloat(c.filter.match(/opacity=([^)]*)/)[1])/100)+"":"";}f=f.replace(/-([a-z])/ig,function(j,k){return k.toUpperCase();
});if(a){c[f]=b;}return c[f];},trim:function(a){return(a||"").replace(/^\s+|\s+$/g,"");},makeArray:function(a){var c=[];if(a!=null){var b=a.length;if(b==null||typeof a==="string"||S.isFunction(a)||a.setInterval){c[0]=a;}else{while(b){c[--b]=a[b];}}}return c;},inArray:function(b,a){for(var d=0,c=a.length;
d<c;d++){if(a[d]===b){return d;}}return -1;},merge:function(b,e){var d=0,c,a=b.length;if(!S.support.getAll){while((c=e[d++])!=null){if(c.nodeType!=8){b[a++]=c;}}}else{while((c=e[d++])!=null){b[a++]=c;}}return b;},unique:function(a){var f=[],g={};try{for(var e=0,d=a.length;e<d;e++){var b=S.data(a[e]);
if(!g[b]){g[b]=true;f.push(a[e]);}}}catch(c){f=a;}return f;},grep:function(e,a,f){var d=[];for(var c=0,b=e.length;c<b;c++){if(!f!=!a(e[c],c)){d.push(e[c]);}}return d;},map:function(f,a){var e=[];for(var d=0,c=f.length;d<c;d++){var b=a(f[d],d);if(b!=null){e[e.length]=b;}}return e.concat.apply([],e);}});
var O=navigator.userAgent.toLowerCase();S.browser={version:(O.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(O),opera:/opera/.test(O),msie:/msie/.test(O)&&!/opera/.test(O),mozilla:/mozilla/.test(O)&&!/(compatible|webkit)/.test(O)};S.each({parent:function(a){return a.parentNode;
},parents:function(a){return S.dir(a,"parentNode");},next:function(a){return S.nth(a,2,"nextSibling");},prev:function(a){return S.nth(a,2,"previousSibling");},nextAll:function(a){return S.dir(a,"nextSibling");},prevAll:function(a){return S.dir(a,"previousSibling");},siblings:function(a){return S.sibling(a.parentNode.firstChild,a);
},children:function(a){return S.sibling(a.firstChild);},contents:function(a){return S.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:S.makeArray(a.childNodes);}},function(b,a){S.fn[b]=function(d){var c=S.map(this,a);if(d&&typeof d=="string"){c=S.multiFilter(d,c);}return this.pushStack(S.unique(c),b,d);
};});S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(b,a){S.fn[b]=function(){var c=arguments;return this.each(function(){for(var e=0,d=c.length;e<d;e++){S(c[e])[a](this);}});};});S.each({removeAttr:function(a){S.attr(this,a,"");
if(this.nodeType==1){this.removeAttribute(a);}},addClass:function(a){S.className.add(this,a);},removeClass:function(a){S.className.remove(this,a);},toggleClass:function(a,b){if(typeof b!=="boolean"){b=!S.className.has(this,a);}S.className[b?"add":"remove"](this,a);},remove:function(a){if(!a||S.filter(a,[this]).length){S("*",this).add([this]).each(function(){S.event.remove(this);
S.removeData(this);});if(this.parentNode){this.parentNode.removeChild(this);}}},empty:function(){S(">*",this).remove();while(this.firstChild){this.removeChild(this.firstChild);}}},function(b,a){S.fn[b]=function(){return this.each(a,arguments);};});function W(b,a){return b[0]&&parseInt(S.curCSS(b[0],a,true),10)||0;
}var Y="jQuery"+ab(),I=0,D={};S.extend({cache:{},data:function(c,d,b){c=c==U?D:c;var a=c[Y];if(!a){a=c[Y]=++I;}if(d&&!S.cache[a]){S.cache[a]={};}if(b!==Z){S.cache[a][d]=b;}return d?S.cache[a][d]:a;},removeData:function(c,d){c=c==U?D:c;var a=c[Y];if(d){if(S.cache[a]){delete S.cache[a][d];d="";for(d in S.cache[a]){break;
}if(!d){S.removeData(c);}}}else{try{delete c[Y];}catch(b){if(c.removeAttribute){c.removeAttribute(Y);}}delete S.cache[a];}},queue:function(c,d,a){if(c){d=(d||"fx")+"queue";var b=S.data(c,d);if(!b||S.isArray(a)){b=S.data(c,d,S.makeArray(a));}else{if(a){b.push(a);}}}return b;},dequeue:function(a,b){var d=S.queue(a,b),c=d.shift();
if(!b||b==="fx"){c=d[0];}if(c!==Z){c.call(a);}}});S.fn.extend({data:function(d,b){var a=d.split(".");a[1]=a[1]?"."+a[1]:"";if(b===Z){var c=this.triggerHandler("getData"+a[1]+"!",[a[0]]);if(c===Z&&this.length){c=S.data(this[0],d);}return c===Z&&a[1]?this.data(a[0]):c;}else{return this.trigger("setData"+a[1]+"!",[a[0],b]).each(function(){S.data(this,d,b);
});}},removeData:function(a){return this.each(function(){S.removeData(this,a);});},queue:function(b,a){if(typeof b!=="string"){a=b;b="fx";}if(a===Z){return S.queue(this[0],b);}return this.each(function(){var c=S.queue(this,b,a);if(b=="fx"&&c.length==1){c[0].call(this);}});},dequeue:function(a){return this.each(function(){S.dequeue(this,a);
});}});(function(){var c=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|[^[\]]+)+\]|\\.|[^ >+~,(\[]+)+|[>+~])(\s*,\s*)?/g,h=0,l=Object.prototype.toString;var m=function(C,u,aj,r){aj=aj||[];u=u||document;if(u.nodeType!==1&&u.nodeType!==9){return[];}if(!C||typeof C!=="string"){return aj;}var ai=[],ah,o,z,A,n,v,w=true;
c.lastIndex=0;while((ah=c.exec(C))!==null){ai.push(ah[1]);if(ah[2]){v=RegExp.rightContext;break;}}if(ai.length>1&&k.match.POS.exec(C)){if(ai.length===2&&k.relative[ai[0]]){var s="",p;while((p=k.match.POS.exec(C))){s+=p[0];C=C.replace(k.match.POS,"");}o=m.filter(s,m(/\s$/.test(C)?C+"*":C,u));}else{o=k.relative[ai[0]]?[u]:m(ai.shift(),u);
while(ai.length){var x=[];C=ai.shift();if(k.relative[C]){C+=ai.shift();}for(var B=0,ag=o.length;B<ag;B++){m(C,o[B],x);}o=x;}}}else{var y=r?{expr:ai.pop(),set:a(r)}:m.find(ai.pop(),ai.length===1&&u.parentNode?u.parentNode:u);o=m.filter(y.expr,y.set);if(ai.length>0){z=a(o);}else{w=false;}while(ai.length){var t=ai.pop(),q=t;
if(!k.relative[t]){t="";}else{q=ai.pop();}if(q==null){q=u;}k.relative[t](z,q,d(u));}}if(!z){z=o;}if(!z){throw"Syntax error, unrecognized expression: "+(t||C);}if(l.call(z)==="[object Array]"){if(!w){aj.push.apply(aj,z);}else{if(u.nodeType===1){for(var B=0;z[B]!=null;B++){if(z[B]&&(z[B]===true||z[B].nodeType===1&&j(u,z[B]))){aj.push(o[B]);
}}}else{for(var B=0;z[B]!=null;B++){if(z[B]&&z[B].nodeType===1){aj.push(o[B]);}}}}}else{a(z,aj);}if(v){m(v,u,aj,r);}return aj;};m.matches=function(o,n){return m(o,null,null,n);};m.find=function(o,r){var n,t;if(!o){return[];}for(var s=0,u=k.order.length;s<u;s++){var q=k.order[s],t;if((t=k.match[q].exec(o))){var p=RegExp.leftContext;
if(p.substr(p.length-1)!=="\\"){t[1]=(t[1]||"").replace(/\\/g,"");n=k.find[q](t,r);if(n!=null){o=o.replace(k.match[q],"");break;}}}}if(!n){n=r.getElementsByTagName("*");}return{set:n,expr:o};};m.filter=function(u,ag,C,t){var w=u,o=[],y=ag,r,ah;while(u&&ag.length){for(var s in k.filter){if((r=k.match[s].exec(u))!=null){var n=k.filter[s],v=null,p=0,ai,z;
ah=false;if(y==o){o=[];}if(k.preFilter[s]){r=k.preFilter[s](r,y,C,o,t);if(!r){ah=ai=true;}else{if(r===true){continue;}else{if(r[0]===true){v=[];var q=null,A;for(var B=0;(A=y[B])!==Z;B++){if(A&&q!==A){v.push(A);q=A;}}}}}}if(r){for(var B=0;(z=y[B])!==Z;B++){if(z){if(v&&z!=v[p]){p++;}ai=n(z,r,p,v);var x=t^!!ai;
if(C&&ai!=null){if(x){ah=true;}else{y[B]=false;}}else{if(x){o.push(z);ah=true;}}}}}if(ai!==Z){if(!C){y=o;}u=u.replace(k.match[s],"");if(!ah){return[];}break;}}}u=u.replace(/\s*,\s*/,"");if(u==w){if(ah==null){throw"Syntax error, unrecognized expression: "+u;}else{break;}}w=u;}return y;};var k=m.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\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(n){return n.getAttribute("href");
}},relative:{"+":function(o,r){for(var q=0,s=o.length;q<s;q++){var p=o[q];if(p){var n=p.previousSibling;while(n&&n.nodeType!==1){n=n.previousSibling;}o[q]=typeof r==="string"?n||false:n===r;}}if(typeof r==="string"){m.filter(r,o,true);}},">":function(o,s,n){if(typeof s==="string"&&!/\W/.test(s)){s=n?s:s.toUpperCase();
for(var r=0,t=o.length;r<t;r++){var p=o[r];if(p){var q=p.parentNode;o[r]=q.nodeName===s?q:false;}}}else{for(var r=0,t=o.length;r<t;r++){var p=o[r];if(p){o[r]=typeof s==="string"?p.parentNode:p.parentNode===s;}}if(typeof s==="string"){m.filter(s,o,true);}}},"":function(p,r,n){var q="done"+(h++),s=b;if(!r.match(/\W/)){var o=r=n?r:r.toUpperCase();
s=e;}s("parentNode",r,q,p,o,n);},"~":function(p,r,n){var q="done"+(h++),s=b;if(typeof r==="string"&&!r.match(/\W/)){var o=r=n?r:r.toUpperCase();s=e;}s("previousSibling",r,q,p,o,n);}},find:{ID:function(o,n){if(n.getElementById){var p=n.getElementById(o[1]);return p?[p]:[];}},NAME:function(o,n){return n.getElementsByName?n.getElementsByName(o[1]):null;
},TAG:function(o,n){return n.getElementsByTagName(o[1]);}},preFilter:{CLASS:function(p,r,q,s,n){p=" "+p[1].replace(/\\/g,"")+" ";for(var o=0;r[o];o++){if(n^(" "+r[o].className+" ").indexOf(p)>=0){if(!q){s.push(r[o]);}}else{if(q){r[o]=false;}}}return false;},ID:function(n){return n[1].replace(/\\/g,"");
},TAG:function(o,p){for(var n=0;!p[n];n++){}return d(p[n])?o[1]:o[1].toUpperCase();},CHILD:function(o){if(o[1]=="nth"){var n=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(o[2]=="even"&&"2n"||o[2]=="odd"&&"2n+1"||!/\D/.test(o[2])&&"0n+"+o[2]||o[2]);o[2]=(n[1]+(n[2]||1))-0;o[3]=n[3]-0;}o[0]="done"+(h++);return o;},ATTR:function(n){var o=n[1];
if(k.attrMap[o]){n[1]=k.attrMap[o];}if(n[2]==="~="){n[4]=" "+n[4]+" ";}return n;},PSEUDO:function(o,r,q,s,n){if(o[1]==="not"){if(o[3].match(c).length>1){o[3]=m(o[3],null,null,r);}else{var p=m.filter(o[3],r,q,true^n);if(!q){s.push.apply(s,p);}return false;}}else{if(k.match.POS.test(o[0])){return true;
}}return o;},POS:function(n){n.unshift(true);return n;}},filters:{enabled:function(n){return n.disabled===false&&n.type!=="hidden";},disabled:function(n){return n.disabled===true;},checked:function(n){return n.checked===true;},selected:function(n){n.parentNode.selectedIndex;return n.selected===true;},parent:function(n){return !!n.firstChild;
},empty:function(n){return !n.firstChild;},has:function(n,o,p){return !!m(p[3],n).length;},header:function(n){return/h\d/i.test(n.nodeName);},text:function(n){return"text"===n.type;},radio:function(n){return"radio"===n.type;},checkbox:function(n){return"checkbox"===n.type;},file:function(n){return"file"===n.type;
},password:function(n){return"password"===n.type;},submit:function(n){return"submit"===n.type;},image:function(n){return"image"===n.type;},reset:function(n){return"reset"===n.type;},button:function(n){return"button"===n.type||n.nodeName.toUpperCase()==="BUTTON";},input:function(n){return/input|select|textarea|button/i.test(n.nodeName);
}},setFilters:{first:function(n,o){return o===0;},last:function(o,p,q,n){return p===n.length-1;},even:function(n,o){return o%2===0;},odd:function(n,o){return o%2===1;},lt:function(n,o,p){return o<p[3]-0;},gt:function(n,o,p){return o>p[3]-0;},nth:function(n,o,p){return p[3]-0==o;},eq:function(n,o,p){return p[3]-0==o;
}},filter:{CHILD:function(w,t){var q=t[1],p=w.parentNode;var r="child"+p.childNodes.length;if(p&&(!p[r]||!w.nodeIndex)){var s=1;for(var v=p.firstChild;v;v=v.nextSibling){if(v.nodeType==1){v.nodeIndex=s++;}}p[r]=s-1;}if(q=="first"){return w.nodeIndex==1;}else{if(q=="last"){return w.nodeIndex==p[r];}else{if(q=="only"){return p[r]==1;
}else{if(q=="nth"){var n=false,u=t[2],o=t[3];if(u==1&&o==0){return true;}if(u==0){if(w.nodeIndex==o){n=true;}}else{if((w.nodeIndex-o)%u==0&&(w.nodeIndex-o)/u>=0){n=true;}}return n;}}}}},PSEUDO:function(o,s,r,n){var t=s[1],q=k.filters[t];if(q){return q(o,r,s,n);}else{if(t==="contains"){return(o.textContent||o.innerText||"").indexOf(s[3])>=0;
}else{if(t==="not"){var p=s[3];for(var r=0,u=p.length;r<u;r++){if(p[r]===o){return false;}}return true;}}}},ID:function(n,o){return n.nodeType===1&&n.getAttribute("id")===o;},TAG:function(n,o){return(o==="*"&&n.nodeType===1)||n.nodeName===o;},CLASS:function(n,o){return o.test(n.className);},ATTR:function(o,q){var s=k.attrHandle[q[1]]?k.attrHandle[q[1]](o):o[q[1]]||o.getAttribute(q[1]),n=s+"",p=q[2],r=q[4];
return s==null?false:p==="="?n===r:p==="*="?n.indexOf(r)>=0:p==="~="?(" "+n+" ").indexOf(r)>=0:!q[4]?s:p==="!="?n!=r:p==="^="?n.indexOf(r)===0:p==="$="?n.substr(n.length-r.length)===r:p==="|="?n===r||n.substr(0,r.length+1)===r+"-":false;},POS:function(o,r,q,n){var s=r[2],p=k.setFilters[s];if(p){return p(o,q,r,n);
}}}};for(var f in k.match){k.match[f]=RegExp(k.match[f].source+/(?![^\[]*\])(?![^\(]*\))/.source);}var a=function(n,o){n=Array.prototype.slice.call(n);if(o){o.push.apply(o,n);return o;}return n;};try{Array.prototype.slice.call(document.documentElement.childNodes);}catch(g){a=function(n,o){var q=o||[];
if(l.call(n)==="[object Array]"){Array.prototype.push.apply(q,n);}else{if(typeof n.length==="number"){for(var p=0,r=n.length;p<r;p++){q.push(n[p]);}}else{for(var p=0;n[p];p++){q.push(n[p]);}}}return q;};}(function(){var o=document.createElement("form"),n="script"+(new Date).getTime();o.innerHTML="<input name='"+n+"'/>";
var p=document.documentElement;p.insertBefore(o,p.firstChild);if(!!document.getElementById(n)){k.find.ID=function(r,q){if(q.getElementById){var s=q.getElementById(r[1]);return s?s.id===r[1]||s.getAttributeNode&&s.getAttributeNode("id").nodeValue===r[1]?[s]:Z:[];}};k.filter.ID=function(q,s){var r=q.getAttributeNode&&q.getAttributeNode("id");
return q.nodeType===1&&r&&r.nodeValue===s;};}p.removeChild(o);})();(function(){var n=document.createElement("div");n.appendChild(document.createComment(""));if(n.getElementsByTagName("*").length>0){k.find.TAG=function(s,o){var p=o.getElementsByTagName(s[1]);if(s[1]==="*"){var q=[];for(var r=0;p[r];r++){if(p[r].nodeType===1){q.push(p[r]);
}}p=q;}return p;};}n.innerHTML="<a href='#'></a>";if(n.firstChild.getAttribute("href")!=="#"){k.attrHandle.href=function(o){return o.getAttribute("href",2);};}})();if(document.querySelectorAll){(function(){var n=m;m=function(p,q,s,r){q=q||document;if(!r&&q.nodeType===9){try{return a(q.querySelectorAll(p),s);
}catch(o){}}return n(p,q,s,r);};m.find=n.find;m.filter=n.filter;m.selectors=n.selectors;m.matches=n.matches;})();}if(document.documentElement.getElementsByClassName){k.order.splice(1,0,"CLASS");k.find.CLASS=function(o,n){return n.getElementsByClassName(o[1]);};}function e(w,q,r,n,p,o){for(var t=0,v=n.length;
t<v;t++){var x=n[t];if(x){x=x[w];var s=false;while(x&&x.nodeType){var u=x[r];if(u){s=n[u];break;}if(x.nodeType===1&&!o){x[r]=t;}if(x.nodeName===q){s=x;break;}x=x[w];}n[t]=s;}}}function b(v,q,r,n,p,o){for(var t=0,u=n.length;t<u;t++){var w=n[t];if(w){w=w[v];var s=false;while(w&&w.nodeType){if(w[r]){s=n[w[r]];
break;}if(w.nodeType===1){if(!o){w[r]=t;}if(typeof q!=="string"){if(w===q){s=true;break;}}else{if(m.filter(q,[w]).length>0){s=w;break;}}}w=w[v];}n[t]=s;}}}var j=document.compareDocumentPosition?function(n,o){return n.compareDocumentPosition(o)&16;}:function(n,o){return n!==o&&(n.contains?n.contains(o):true);
};var d=function(n){return n.documentElement&&!n.body||n.tagName&&n.ownerDocument&&!n.ownerDocument.body;};S.find=m;S.filter=m.filter;S.expr=m.selectors;S.expr[":"]=S.expr.filters;m.selectors.filters.hidden=function(n){return"hidden"===n.type||S.css(n,"display")==="none"||S.css(n,"visibility")==="hidden";
};m.selectors.filters.visible=function(n){return"hidden"!==n.type&&S.css(n,"display")!=="none"&&S.css(n,"visibility")!=="hidden";};m.selectors.filters.animated=function(n){return S.grep(S.timers,function(o){return n===o.elem;}).length;};S.multiFilter=function(n,p,o){if(o){n=":not("+n+")";}return m.matches(n,p);
};S.dir=function(o,p){var q=[],n=o[p];while(n&&n!=document){if(n.nodeType==1){q.push(n);}n=n[p];}return q;};S.nth=function(n,r,p,o){r=r||1;var q=0;for(;n;n=n[p]){if(n.nodeType==1&&++q==r){break;}}return n;};S.sibling=function(n,o){var p=[];for(;n;n=n.nextSibling){if(n.nodeType==1&&n!=o){p.push(n);}}return p;
};return;U.Sizzle=m;})();S.event={add:function(c,f,d,a){if(c.nodeType==3||c.nodeType==8){return;}if(c.setInterval&&c!=U){c=U;}if(!d.guid){d.guid=this.guid++;}if(a!==Z){var e=d;d=this.proxy(e);d.data=a;}var g=S.data(c,"events")||S.data(c,"events",{}),b=S.data(c,"handle")||S.data(c,"handle",function(){return typeof S!=="undefined"&&!S.event.triggered?S.event.handle.apply(arguments.callee.elem,arguments):Z;
});b.elem=c;S.each(f.split(/\s+/),function(h,l){var k=l.split(".");l=k.shift();d.type=k.slice().sort().join(".");var j=g[l];if(S.event.specialAll[l]){S.event.specialAll[l].setup.call(c,a,k);}if(!j){j=g[l]={};if(!S.event.special[l]||S.event.special[l].setup.call(c,a,k)===false){if(c.addEventListener){c.addEventListener(l,b,false);
}else{if(c.attachEvent){c.attachEvent("on"+l,b);}}}}j[d.guid]=d;S.event.global[l]=true;});c=null;},guid:1,global:{},remove:function(b,e,c){if(b.nodeType==3||b.nodeType==8){return;}var f=S.data(b,"events"),g,h;if(f){if(e===Z||(typeof e==="string"&&e.charAt(0)==".")){for(var d in f){this.remove(b,d+(e||""));
}}else{if(e.type){c=e.handler;e=e.type;}S.each(e.split(/\s+/),function(j,m){var k=m.split(".");m=k.shift();var n=RegExp("(^|\\.)"+k.slice().sort().join(".*\\.")+"(\\.|$)");if(f[m]){if(c){delete f[m][c.guid];}else{for(var l in f[m]){if(n.test(f[m][l].type)){delete f[m][l];}}}if(S.event.specialAll[m]){S.event.specialAll[m].teardown.call(b,k);
}for(g in f[m]){break;}if(!g){if(!S.event.special[m]||S.event.special[m].teardown.call(b,k)===false){if(b.removeEventListener){b.removeEventListener(m,S.data(b,"handle"),false);}else{if(b.detachEvent){b.detachEvent("on"+m,S.data(b,"handle"));}}}g=null;delete f[m];}}});}for(g in f){break;}if(!g){var a=S.data(b,"handle");
if(a){a.elem=null;}S.removeData(b,"events");S.removeData(b,"handle");}}},trigger:function(d,b,e,h){var f=d.type||d;if(!h){d=typeof d==="object"?d[Y]?d:S.extend(S.Event(f),d):S.Event(f);if(f.indexOf("!")>=0){d.type=f=f.slice(0,-1);d.exclusive=true;}if(!e){d.stopPropagation();if(this.global[f]){S.each(S.cache,function(){if(this.events&&this.events[f]){S.event.trigger(d,b,this.handle.elem);
}});}}if(!e||e.nodeType==3||e.nodeType==8){return Z;}d.result=Z;d.target=e;b=S.makeArray(b);b.unshift(d);}d.currentTarget=e;var c=S.data(e,"handle");if(c){c.apply(e,b);}if((!e[f]||(S.nodeName(e,"a")&&f=="click"))&&e["on"+f]&&e["on"+f].apply(e,b)===false){d.result=false;}if(!h&&e[f]&&!d.isDefaultPrevented()&&!(S.nodeName(e,"a")&&f=="click")){this.triggered=true;
try{e[f]();}catch(a){}}this.triggered=false;if(!d.isPropagationStopped()){var g=e.parentNode||e.ownerDocument;if(g){S.event.trigger(d,b,g,true);}}},handle:function(b){var c,h;b=arguments[0]=S.event.fix(b||U.event);var a=b.type.split(".");b.type=a.shift();c=!a.length&&!b.exclusive;var d=RegExp("(^|\\.)"+a.slice().sort().join(".*\\.")+"(\\.|$)");
h=(S.data(this,"events")||{})[b.type];for(var f in h){var e=h[f];if(c||d.test(e.type)){b.handler=e;b.data=e.data;var g=e.apply(this,arguments);if(g!==Z){b.result=g;if(g===false){b.preventDefault();b.stopPropagation();}}if(b.isImmediatePropagationStopped()){break;}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(c){if(c[Y]){return c;
}var e=c;c=S.Event(e);for(var d=this.props.length,a;d;){a=this.props[--d];c[a]=e[a];}if(!c.target){c.target=c.srcElement||document;}if(c.target.nodeType==3){c.target=c.target.parentNode;}if(!c.relatedTarget&&c.fromElement){c.relatedTarget=c.fromElement==c.target?c.toElement:c.fromElement;}if(c.pageX==null&&c.clientX!=null){var b=document.documentElement,f=document.body;
c.pageX=c.clientX+(b&&b.scrollLeft||f&&f.scrollLeft||0)-(b.clientLeft||0);c.pageY=c.clientY+(b&&b.scrollTop||f&&f.scrollTop||0)-(b.clientTop||0);}if(!c.which&&((c.charCode||c.charCode===0)?c.charCode:c.keyCode)){c.which=c.charCode||c.keyCode;}if(!c.metaKey&&c.ctrlKey){c.metaKey=c.ctrlKey;}if(!c.which&&c.button){c.which=(c.button&1?1:(c.button&2?3:(c.button&4?2:0)));
}return c;},proxy:function(a,b){b=b||function(){return a.apply(this,arguments);};b.guid=a.guid=a.guid||b.guid||this.guid++;return b;},special:{ready:{setup:P,teardown:function(){}}},specialAll:{live:{setup:function(b,a){S.event.add(this,a[0],ad);},teardown:function(a){if(a.length){var c=0,b=RegExp("(^|\\.)"+a[0]+"(\\.|$)");
S.each((S.data(this,"events").live||{}),function(){if(b.test(this.type)){c++;}});if(c<1){S.event.remove(this,a[0],ad);}}}}}};S.Event=function(a){if(!this.preventDefault){return new S.Event(a);}if(a&&a.type){this.originalEvent=a;this.type=a.type;this.timeStamp=a.timeStamp;}else{this.type=a;}if(!this.timeStamp){this.timeStamp=ab();
}this[Y]=true;};function V(){return false;}function J(){return true;}S.Event.prototype={preventDefault:function(){this.isDefaultPrevented=J;var a=this.originalEvent;if(!a){return;}if(a.preventDefault){a.preventDefault();}a.returnValue=false;},stopPropagation:function(){this.isPropagationStopped=J;var a=this.originalEvent;
if(!a){return;}if(a.stopPropagation){a.stopPropagation();}a.cancelBubble=true;},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=J;this.stopPropagation();},isDefaultPrevented:V,isPropagationStopped:V,isImmediatePropagationStopped:V};var af=function(b){var c=b.relatedTarget;while(c&&c!=this){try{c=c.parentNode;
}catch(a){c=this;}}if(c!=this){b.type=b.data;S.event.handle.apply(this,arguments);}};S.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(a,b){S.event.special[b]={setup:function(){S.event.add(this,a,af,b);},teardown:function(){S.event.remove(this,a,af);}};});S.fn.extend({bind:function(b,a,c){return b=="unload"?this.one(b,a,c):this.each(function(){S.event.add(this,b,c||a,c&&a);
});},one:function(b,a,c){var d=S.event.proxy(c||a,function(e){S(this).unbind(e,d);return(c||a).apply(this,arguments);});return this.each(function(){S.event.add(this,b,d,c&&a);});},unbind:function(a,b){return this.each(function(){S.event.remove(this,a,b);});},trigger:function(b,a){return this.each(function(){S.event.trigger(b,a,this);
});},triggerHandler:function(c,a){if(this[0]){var b=S.Event(c);b.preventDefault();b.stopPropagation();S.event.trigger(b,a,this[0]);return b.result;}},toggle:function(a){var c=arguments,b=1;while(b<c.length){S.event.proxy(a,c[b++]);}return this.click(S.event.proxy(a,function(d){this.lastToggle=(this.lastToggle||0)%b;
d.preventDefault();return c[this.lastToggle++].apply(this,arguments)||false;}));},hover:function(b,a){return this.mouseenter(b).mouseleave(a);},ready:function(a){P();if(S.isReady){a.call(document,S);}else{S.readyList.push(a);}return this;},live:function(a,b){var c=S.event.proxy(b);c.guid+=this.selector+a;
S(document).bind(X(a,this.selector),this.selector,c);return this;},die:function(a,b){S(document).unbind(X(a,this.selector),b?{guid:b.guid+this.selector+a}:null);return this;}});function ad(a){var d=RegExp("(^|\\.)"+a.type+"(\\.|$)"),b=true,c=[];S.each(S.data(this,"events").live||[],function(g,f){if(d.test(f.type)){var e=S(a.target).closest(f.data)[0];
if(e){c.push({elem:e,fn:f});}}});S.each(c,function(){if(!a.isImmediatePropagationStopped()&&this.fn.call(this.elem,a,this.fn.data)===false){b=false;}});return b;}function X(a,b){return["live",a,b.replace(/\./g,"`").replace(/ /g,"|")].join(".");}S.extend({isReady:false,readyList:[],ready:function(){if(!S.isReady){S.isReady=true;
if(S.readyList){S.each(S.readyList,function(){this.call(document,S);});S.readyList=null;}S(document).triggerHandler("ready");}}});var G=false;function P(){if(G){return;}G=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);
S.ready();},false);}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);S.ready();}});if(document.documentElement.doScroll&&!U.frameElement){(function(){if(S.isReady){return;
}try{document.documentElement.doScroll("left");}catch(a){setTimeout(arguments.callee,0);return;}S.ready();})();}}}S.event.add(U,"load",S.ready);}S.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(a,b){S.fn[b]=function(c){return c?this.bind(b,c):this.trigger(b);
};});S(U).bind("unload",function(){for(var a in S.cache){if(a!=1&&S.cache[a].handle){S.event.remove(S.cache[a].handle.elem);}}});(function(){S.support={};var f=document.documentElement,e=document.createElement("script"),a=document.createElement("div"),b="script"+(new Date).getTime();a.style.display="none";
a.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var d=a.getElementsByTagName("*"),g=a.getElementsByTagName("a")[0];if(!d||!d.length||!g){return;}S.support={leadingWhitespace:a.firstChild.nodeType==3,tbody:!a.getElementsByTagName("tbody").length,objectAll:!!a.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/red/.test(g.getAttribute("style")),hrefNormalized:g.getAttribute("href")==="/a",opacity:g.style.opacity==="0.5",cssFloat:!!g.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};
e.type="text/javascript";try{e.appendChild(document.createTextNode("window."+b+"=1;"));}catch(c){}f.insertBefore(e,f.firstChild);if(U[b]){S.support.scriptEval=true;delete U[b];}f.removeChild(e);if(a.attachEvent&&a.fireEvent){a.attachEvent("onclick",function(){S.support.noCloneEvent=false;a.detachEvent("onclick",arguments.callee);
});a.cloneNode(true).fireEvent("onclick");}S(function(){var h=document.createElement("div");h.style.width="1px";h.style.paddingLeft="1px";document.body.appendChild(h);S.boxModel=S.support.boxModel=h.offsetWidth===2;document.body.removeChild(h);});})();var H=S.support.cssFloat?"cssFloat":"styleFloat";
S.props={"for":"htmlFor","class":"className","float":H,cssFloat:H,styleFloat:H,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};S.fn.extend({_load:S.fn.load,load:function(e,b,a){if(typeof e!=="string"){return this._load(e);}var c=e.indexOf(" ");
if(c>=0){var g=e.slice(c,e.length);e=e.slice(0,c);}var d="GET";if(b){if(S.isFunction(b)){a=b;b=null;}else{if(typeof b==="object"){b=S.param(b);d="POST";}}}var f=this;S.ajax({url:e,type:d,dataType:"html",data:b,complete:function(h,j){if(j=="success"||j=="notmodified"){f.html(g?S("<div/>").append(h.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(g):h.responseText);
}if(a){f.each(a,[h.responseText,j,h]);}}});return this;},serialize:function(){return S.param(this.serializeArray());},serializeArray:function(){return this.map(function(){return this.elements?S.makeArray(this.elements):this;}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password/i.test(this.type));
}).map(function(c,b){var a=S(this).val();return a==null?null:S.isArray(a)?S.map(a,function(d,e){return{name:b.name,value:d};}):{name:b.name,value:a};}).get();}});S.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(b,a){S.fn[a]=function(c){return this.bind(a,c);
};});var N=ab();S.extend({get:function(d,b,a,c){if(S.isFunction(b)){a=b;b=null;}return S.ajax({type:"GET",url:d,data:b,success:a,dataType:c});},getScript:function(b,a){return S.get(b,null,a,"script");},getJSON:function(c,b,a){return S.get(c,b,a,"json");},post:function(d,b,a,c){if(S.isFunction(b)){a=b;
b={};}return S.ajax({type:"POST",url:d,data:b,success:a,dataType:c});},ajaxSetup:function(a){S.extend(S.ajaxSettings,a);},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return U.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();
},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(l){l=S.extend(true,l,S.extend(true,{},S.ajaxSettings,l));var a,s=/=\?(&|$)/g,f,b,r=l.type.toUpperCase();
if(l.data&&l.processData&&typeof l.data!=="string"){l.data=S.param(l.data);}if(l.dataType=="jsonp"){if(r=="GET"){if(!l.url.match(s)){l.url+=(l.url.match(/\?/)?"&":"?")+(l.jsonp||"callback")+"=?";}}else{if(!l.data||!l.data.match(s)){l.data=(l.data?l.data+"&":"")+(l.jsonp||"callback")+"=?";}}l.dataType="json";
}if(l.dataType=="json"&&(l.data&&l.data.match(s)||l.url.match(s))){a="jsonp"+N++;if(l.data){l.data=(l.data+"").replace(s,"="+a+"$1");}l.url=l.url.replace(s,"="+a+"$1");l.dataType="script";U[a]=function(u){b=u;p();m();U[a]=Z;try{delete U[a];}catch(v){}if(q){q.removeChild(d);}};}if(l.dataType=="script"&&l.cache==null){l.cache=false;
}if(l.cache===false&&r=="GET"){var t=ab();var c=l.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+t+"$2");l.url=c+((c==l.url)?(l.url.match(/\?/)?"&":"?")+"_="+t:"");}if(l.data&&r=="GET"){l.url+=(l.url.match(/\?/)?"&":"?")+l.data;l.data=null;}if(l.global&&!S.active++){S.event.trigger("ajaxStart");}var g=/^(\w+:)?\/\/([^\/?#]+)/.exec(l.url);
if(l.dataType=="script"&&r=="GET"&&g&&(g[1]&&g[1]!=location.protocol||g[2]!=location.host)){var q=document.getElementsByTagName("head")[0];var d=document.createElement("script");d.src=l.url;if(l.scriptCharset){d.charset=l.scriptCharset;}if(!a){var j=false;d.onload=d.onreadystatechange=function(){if(!j&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){j=true;
p();m();q.removeChild(d);}};}q.appendChild(d);return Z;}var n=false;var o=l.xhr();if(l.username){o.open(r,l.url,l.async,l.username,l.password);}else{o.open(r,l.url,l.async);}try{if(l.data){o.setRequestHeader("Content-Type",l.contentType);}if(l.ifModified){o.setRequestHeader("If-Modified-Since",S.lastModified[l.url]||"Thu, 01 Jan 1970 00:00:00 GMT");
}o.setRequestHeader("X-Requested-With","XMLHttpRequest");o.setRequestHeader("Accept",l.dataType&&l.accepts[l.dataType]?l.accepts[l.dataType]+", */*":l.accepts._default);}catch(e){}if(l.beforeSend&&l.beforeSend(o,l)===false){if(l.global&&!--S.active){S.event.trigger("ajaxStop");}o.abort();return false;
}if(l.global){S.event.trigger("ajaxSend",[o,l]);}var k=function(u){if(o.readyState==0){if(h){clearInterval(h);h=null;if(l.global&&!--S.active){S.event.trigger("ajaxStop");}}}else{if(!n&&o&&(o.readyState==4||u=="timeout")){n=true;if(h){clearInterval(h);h=null;}f=u=="timeout"?"timeout":!S.httpSuccess(o)?"error":l.ifModified&&S.httpNotModified(o,l.url)?"notmodified":"success";
if(f=="success"){try{b=S.httpData(o,l.dataType,l);}catch(v){f="parsererror";}}if(f=="success"){var w;try{w=o.getResponseHeader("Last-Modified");}catch(v){}if(l.ifModified&&w){S.lastModified[l.url]=w;}if(!a){p();}}else{S.handleError(l,o,f);}m();if(l.async){o=null;}}}};if(l.async){var h=setInterval(k,13);
if(l.timeout>0){setTimeout(function(){if(o){if(!n){k("timeout");}if(o){o.abort();}}},l.timeout);}}try{o.send(l.data);}catch(e){S.handleError(l,o,null,e);}if(!l.async){k();}function p(){if(l.success){l.success(b,f);}if(l.global){S.event.trigger("ajaxSuccess",[o,l]);}}function m(){if(l.complete){l.complete(o,f);
}if(l.global){S.event.trigger("ajaxComplete",[o,l]);}if(l.global&&!--S.active){S.event.trigger("ajaxStop");}}return o;},handleError:function(c,a,d,b){if(c.error){c.error(a,d,b);}if(c.global){S.event.trigger("ajaxError",[a,c,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;
}catch(b){}return false;},httpNotModified:function(b,d){try{var a=b.getResponseHeader("Last-Modified");return b.status==304||a==S.lastModified[d];}catch(c){}return false;},httpData:function(a,c,d){var e=a.getResponseHeader("content-type"),f=c=="xml"||!c&&e&&e.indexOf("xml")>=0,b=f?a.responseXML:a.responseText;
if(f&&b.documentElement.tagName=="parsererror"){throw"parsererror";}if(d&&d.dataFilter){b=d.dataFilter(b,c);}if(typeof b==="string"){if(c=="script"){S.globalEval(b);}if(c=="json"){b=U["eval"]("("+b+")");}}return b;},param:function(d){var b=[];function a(f,e){b[b.length]=encodeURIComponent(f)+"="+encodeURIComponent(e);
}if(S.isArray(d)||d.jquery){S.each(d,function(){a(this.name,this.value);});}else{for(var c in d){if(S.isArray(d[c])){S.each(d[c],function(){a(c,this);});}else{a(c,S.isFunction(d[c])?d[c]():d[c]);}}}return b.join("&").replace(/%20/g,"+");}});var T={},ac=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];
function K(b,c){var a={};S.each(ac.concat.apply([],ac.slice(0,c)),function(){a[this]=b;});return a;}S.fn.extend({show:function(c,a){if(c){return this.animate(K("show",3),c,a);}else{for(var e=0,g=this.length;e<g;e++){var h=S.data(this[e],"olddisplay");this[e].style.display=h||"";if(S.css(this[e],"display")==="none"){var f=this[e].tagName,b;
if(T[f]){b=T[f];}else{var d=S("<"+f+" />").appendTo("body");b=d.css("display");if(b==="none"){b="block";}d.remove();T[f]=b;}this[e].style.display=S.data(this[e],"olddisplay",b);}}return this;}},hide:function(b,a){if(b){return this.animate(K("hide",3),b,a);}else{for(var c=0,d=this.length;c<d;c++){var e=S.data(this[c],"olddisplay");
if(!e&&e!=="none"){S.data(this[c],"olddisplay",S.css(this[c],"display"));}this[c].style.display="none";}return this;}},_toggle:S.fn.toggle,toggle:function(a,b){var c=typeof a==="boolean";return S.isFunction(a)&&S.isFunction(b)?this._toggle.apply(this,arguments):a==null||c?this.each(function(){var d=c?a:S(this).is(":hidden");
S(this)[d?"show":"hide"]();}):this.animate(K("toggle",3),a,b);},fadeTo:function(c,a,b){return this.animate({opacity:a},c,b);},animate:function(a,d,b,c){var e=S.speed(d,b,c);return this[e.queue===false?"each":"queue"](function(){var h=S.extend({},e),f,g=this.nodeType==1&&S(this).is(":hidden"),j=this;for(f in a){if(a[f]=="hide"&&g||a[f]=="show"&&!g){return h.complete.call(this);
}if((f=="height"||f=="width")&&this.style){h.display=S.css(this,"display");h.overflow=this.style.overflow;}}if(h.overflow!=null){this.style.overflow="hidden";}h.curAnim=S.extend({},a);S.each(a,function(p,l){var m=new S.fx(j,h,p);if(/toggle|show|hide/.test(l)){m[l=="toggle"?g?"show":"hide":l](a);}else{var n=l.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),k=m.cur(true)||0;
if(n){var q=parseFloat(n[2]),o=n[3]||"px";if(o!="px"){j.style[p]=(q||1)+o;k=((q||1)/m.cur(true))*k;j.style[p]=k+o;}if(n[1]){q=((n[1]=="-="?-1:1)*q)+k;}m.custom(k,q,o);}else{m.custom(k,l,"");}}});return true;});},stop:function(b,c){var a=S.timers;if(b){this.queue([]);}this.each(function(){for(var d=a.length-1;
d>=0;d--){if(a[d].elem==this){if(c){a[d](true);}a.splice(d,1);}}});if(!c){this.dequeue();}return this;}});S.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(b,a){S.fn[b]=function(d,c){return this.animate(a,d,c);};});S.extend({speed:function(b,a,c){var d=typeof b==="object"?b:{complete:c||!c&&a||S.isFunction(b)&&b,duration:b,easing:c&&a||a&&!S.isFunction(a)&&a};
d.duration=S.fx.off?0:typeof d.duration==="number"?d.duration:S.fx.speeds[d.duration]||S.fx.speeds._default;d.old=d.complete;d.complete=function(){if(d.queue!==false){S(this).dequeue();}if(S.isFunction(d.old)){d.old.call(this);}};return d;},easing:{linear:function(b,a,d,c){return d+c*b;},swing:function(b,a,d,c){return((-Math.cos(b*Math.PI)/2)+0.5)*c+d;
}},timers:[],timerId:null,fx:function(b,c,a){this.options=c;this.elem=b;this.prop=a;if(!c.orig){c.orig={};}}});S.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this);}(S.fx.step[this.prop]||S.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];}var b=parseFloat(S.css(this.elem,this.prop,a));return b&&b>-10000?b:parseFloat(S.curCSS(this.elem,this.prop))||0;},custom:function(a,b,c){this.startTime=ab();this.start=a;
this.end=b;this.unit=c||this.unit||"px";this.now=this.start;this.pos=this.state=0;var e=this;function d(f){return e.step(f);}d.elem=this.elem;S.timers.push(d);if(d()&&S.timerId==null){S.timerId=setInterval(function(){var f=S.timers;for(var g=0;g<f.length;g++){if(!f[g]()){f.splice(g--,1);}}if(!f.length){clearInterval(S.timerId);
S.timerId=null;}},13);}},show:function(){this.options.orig[this.prop]=S.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());S(this.elem).show();},hide:function(){this.options.orig[this.prop]=S.attr(this.elem.style,this.prop);this.options.hide=true;
this.custom(this.cur(),0);},step:function(c){var d=ab();if(c||d>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var f=true;for(var e in this.options.curAnim){if(this.options.curAnim[e]!==true){f=false;}}if(f){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;
this.elem.style.display=this.options.display;if(S.css(this.elem,"display")=="none"){this.elem.style.display="block";}}if(this.options.hide){S(this.elem).hide();}if(this.options.hide||this.options.show){for(var b in this.options.curAnim){S.attr(this.elem.style,b,this.options.orig[b]);}}}if(f){this.options.complete.call(this.elem);
}return false;}else{var a=d-this.startTime;this.state=a/this.options.duration;this.pos=S.easing[this.options.easing||(S.easing.swing?"swing":"linear")](this.state,a,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update();}return true;}};S.extend(S.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){S.attr(a.elem.style,"opacity",a.now);
},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null){a.elem.style[a.prop]=a.now+a.unit;}else{a.elem[a.prop]=a.now;}}}});if(document.documentElement.getBoundingClientRect){S.fn.offset=function(){if(!this[0]){return{top:0,left:0};}if(this[0]===this[0].ownerDocument.body){return S.offset.bodyOffset(this[0]);
}var f=this[0].getBoundingClientRect(),c=this[0].ownerDocument,g=c.body,h=c.documentElement,a=h.clientTop||g.clientTop||0,b=h.clientLeft||g.clientLeft||0,d=f.top+(self.pageYOffset||S.boxModel&&h.scrollTop||g.scrollTop)-a,e=f.left+(self.pageXOffset||S.boxModel&&h.scrollLeft||g.scrollLeft)-b;return{top:d,left:e};
};}else{S.fn.offset=function(){if(!this[0]){return{top:0,left:0};}if(this[0]===this[0].ownerDocument.body){return S.offset.bodyOffset(this[0]);}S.offset.initialized||S.offset.initialize();var g=this[0],k=g.offsetParent,l=g,b=g.ownerDocument,d,j=b.documentElement,f=b.body,e=b.defaultView,a=e.getComputedStyle(g,null),c=g.offsetTop,h=g.offsetLeft;
while((g=g.parentNode)&&g!==f&&g!==j){d=e.getComputedStyle(g,null);c-=g.scrollTop,h-=g.scrollLeft;if(g===k){c+=g.offsetTop,h+=g.offsetLeft;if(S.offset.doesNotAddBorder&&!(S.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(g.tagName))){c+=parseInt(d.borderTopWidth,10)||0,h+=parseInt(d.borderLeftWidth,10)||0;
}l=k,k=g.offsetParent;}if(S.offset.subtractsBorderForOverflowNotVisible&&d.overflow!=="visible"){c+=parseInt(d.borderTopWidth,10)||0,h+=parseInt(d.borderLeftWidth,10)||0;}a=d;}if(a.position==="relative"||a.position==="static"){c+=f.offsetTop,h+=f.offsetLeft;}if(a.position==="fixed"){c+=Math.max(j.scrollTop,f.scrollTop),h+=Math.max(j.scrollLeft,f.scrollLeft);
}return{top:c,left:h};};}S.offset={initialize:function(){if(this.initialized){return;}var d=document.body,k=document.createElement("div"),h,j,b,g,c,a,f=d.style.marginTop,e='<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>';
c={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(a in c){k.style[a]=c[a];}k.innerHTML=e;d.insertBefore(k,d.firstChild);h=k.firstChild,j=h.firstChild,g=h.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(j.offsetTop!==5);this.doesAddBorderForTableAndCells=(g.offsetTop===5);
h.style.overflow="hidden",h.style.position="relative";this.subtractsBorderForOverflowNotVisible=(j.offsetTop===-5);d.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(d.offsetTop===0);d.style.marginTop=f;d.removeChild(k);this.initialized=true;},bodyOffset:function(c){S.offset.initialized||S.offset.initialize();
var a=c.offsetTop,b=c.offsetLeft;if(S.offset.doesNotIncludeMarginInBodyOffset){a+=parseInt(S.curCSS(c,"marginTop",true),10)||0,b+=parseInt(S.curCSS(c,"marginLeft",true),10)||0;}return{top:a,left:b};}};S.fn.extend({position:function(){var b=0,c=0,e;if(this[0]){var d=this.offsetParent(),a=this.offset(),f=/^body|html$/i.test(d[0].tagName)?{top:0,left:0}:d.offset();
a.top-=W(this,"marginTop");a.left-=W(this,"marginLeft");f.top+=W(d,"borderTopWidth");f.left+=W(d,"borderLeftWidth");e={top:a.top-f.top,left:a.left-f.left};}return e;},offsetParent:function(){var a=this[0].offsetParent||document.body;while(a&&(!/^body|html$/i.test(a.tagName)&&S.css(a,"position")=="static")){a=a.offsetParent;
}return S(a);}});S.each(["Left","Top"],function(b,c){var a="scroll"+c;S.fn[a]=function(d){if(!this[0]){return null;}return d!==Z?this.each(function(){this==U||this==document?U.scrollTo(!b?d:S(U).scrollLeft(),b?d:S(U).scrollTop()):this[a]=d;}):this[0]==U||this[0]==document?self[b?"pageYOffset":"pageXOffset"]||S.boxModel&&document.documentElement[a]||document.body[a]:this[0][a];
};});S.each(["Height","Width"],function(b,d){var e=b?"Left":"Top",c=b?"Right":"Bottom";S.fn["inner"+d]=function(){return this[d.toLowerCase()]()+W(this,"padding"+e)+W(this,"padding"+c);};S.fn["outer"+d]=function(f){return this["inner"+d]()+W(this,"border"+e+"Width")+W(this,"border"+c+"Width")+(f?W(this,"margin"+e)+W(this,"margin"+c):0);
};var a=d.toLowerCase();S.fn[a]=function(f){return this[0]==U?document.compatMode=="CSS1Compat"&&document.documentElement["client"+d]||document.body["client"+d]:this[0]==document?Math.max(document.documentElement["client"+d],document.body["scroll"+d],document.documentElement["scroll"+d],document.body["offset"+d],document.documentElement["offset"+d]):f===Z?(this.length?S.css(this[0],a):null):this.css(a,typeof f==="string"?f:f+"px");
};});})();Package("mm.common.business.base");mm.common.business.base={smallLoginUrl:"/moneditor/cs/logon/smallLogon.html",location:function(c,b){if(this.checkLogined()){location.href=c;}else{var a=this.smallLoginUrl;this.smallLoginUrl="/moneditor/cs/logon/smallLogon.html";a+="?data="+$.toJSON({"logonTip":b||""});
a+="&iframe=true&height=400&width=600";thickBox.show(a,d,"");}function d(e){if(e.ret==0){top.location.href=c;}}},thickBox:function(b,c){if(this.checkLogined()){if($.isFunction(b)){b({ret:0});}else{thickBox.show(b,null,"");}return false;}else{var a=this.smallLoginUrl;this.smallLoginUrl="/moneditor/cs/logon/smallLogon.html";
if($.isFunction(b)){a+="?data="+$.toJSON({"logonTip":c||""});a+="&iframe=true&height=400&width=600";thickBox.show(a,b,"");}else{a+="?backurl="+encodeURIComponent(b);a+="&data="+$.toJSON({"logonTip":c||""});a+="&iframe=true&height=400&width=600";thickBox.show(a,null,"");}}},checkLogined:function(){var a=false;
var b=mm.common.util.createAjax();b.url=mm.common.business.url.logon.isLogon;b.async=false;b.success=function(c){if(c.ret==0){a=true;}else{a=false;}};b.send({r:Math.random()});return a;},isLogined:function(){var a=null;var b=mm.common.util.createAjax();b.url=mm.common.business.url.logon.isLogon;b.async=false;
b.success=function(c){if(c.ret==0){a=c;}};b.send({r:Math.random()});return a;}};Package("mm.common.business.service");mm.common.business.service={setting:{type:"POST",dataType:"json",timeout:90000,beforeSend:this.beforeSend,complete:this.complete,success:this.success,error:this.error,async:true,cache:true},send:function(b,a){var c={};
if(typeof(b)==="string"){c.url=b;}else{c=b;}jQuery.extend(c,mm.common.business.service.setting,a);jQuery.ajax(c);},beforeSend:function(){},complete:function(){},success:function(a){},error:function(){alert("\u5BF9\u4E0D\u8D77\uFF0C\u7CFB\u7EDF\u7E41\u5FD9\uFF0C\u8BF7\u7A0D\u5019\u518D\u8BD5\uFF01");}};
Package("mm.common.business.url");mm.common.business.url={statisticsLog:{writeLog:"/portal/web/statisticsLogAction.do"},collection:{addCollect:"/portal/web/userCollect.do",queryCollect:"/portal/web/userCollectQuery.do",deleteCollect:"/portal/web/userCollectDelete.do"},home:{queryUserinfo:"/portal/web/profile.do",setuserAttention:"/portal/web/userAttention.do",queryBrand:"/portal/web/phoneBrandAction.do",queryProfileHead:"/portal/web/headIconInfoAction.do",submitUserInfo:"/portal/web/profile.do?act=edit",queryCheckName:"/portal/web/profile.do?act=checkname",queryHomeIndexData:"/portal/web/homeIndexAction.do",queryProduct:"/portal/web/orderedGoods.do",sendSms:"/portal/web/presentSendSms.do",unsubscribe:"/portal/web/unSubscribe.do",mmTribeTopic:"/portal/web/myMMTribeAction.do",mmTribeRelated:"/portal/web/mmTribeRelated.do",queryGoodsCommentState:"/portal/web/queryGoodsCommentState.do"},feedback:{feedback:"/portal/web/feedbackAdd.do"},logon:{isLogon:"/portal/web/isLoginAction.do",getSMSPassword:"/portal/web/SmsRandomSendAction.do",savePassword:"/portal/web/setpwd.do",checkLogon:"/portal/web/checkLoginAction.do",logout:"/portal/web/logout.do"},search:{getAllChannelCount:"/portal/web/searchXtypeCount.do",getSimilarKW:"/portal/web/searchHotKeyword.do",search:"/portal/web/searchResultAction.do",searchContent:"/portal/web/searchContentResult.do",searchHotKeyword:"/portal/web/searchHotKeyword.do",searchSuggest:"/portal/web/KeywordRecommendAction.do",smartRecommend:"/portal/web/SmartRecommendAction.do",searchContentSize:"/portal/web/searchContentSize.do"},updown:{queryUpDown:"/portal/web/queryUpDownAction.do",addUpDown:"/portal/web/addUpDownAction.do"},fresh:{goodsAdapter:"/portal/web/goodsAdapter.do",goodsAdapterPage:"/portal/web/goodsAdapter.do"},comments:{addNewsComment:"/portal/web/addNewsComment.do",queryNewsComment:"/portal/web/queryNewsComment.do",addComment:"/portal/web/addComment.do",queryComment:"/portal/web/queryComment.do",queryTimesPerGrade:"/portal/web/queryTimesPerGrade.do",addUpDownTimes:"/portal/web/addUpDownTimes.do",addDevelopRequest:"/portal/web/addDevelopRequest.do",queryDevelopRequest:"/portal/web/queryDevelopRequest.do",commentSearch:"/portal/web/bbs/bbsCommentSearch.do",queryAPDevelopRequest:"/portal/web/bbs/bbsQueryAPDevelopRequest.do",editAPDevelopRequestAnswers:"/portal/web/bbs/bbsEditAPDevelopRequestAnswers.do",queryUserComment:"/portal/web/queryUserComment.do",queryUserNoComment:"/portal/web/queryUserNoComment.do",queryMyGoodsComment:"/portal/web/queryMyGoodsComment.do"},help:{queryQuestions:"/portal/web/queryQuestions.do",addQuestions:"/portal/web/addQuestions.do",searchHelp:"/portal/web/searchHelp.do"},ua:{searchChannleCountByDeviceName:"/portal/web/searchXtypeCount.do",recordPhone:"/portal/web/recordPhoneAction.do",searchPhone:"/portal/web/searchPhoneAction.do",filterSuportdeviceId:"/portal/web/filterSuportdeviceIdAction.do",searchMatchDevice:"/portal/web/searchMatchDevice.do"},clientdownload:{clientDownloadSend:"/portal/web/clientDownloadSendAction.do",clientDownload:"/portal/web/clientDownloadAction.do"},order:{readyOrder:"/portal/web/readyOrder.do",completeOrder:"/portal/web/completeOrder.do",acceptSales:"/portal/web/statisticsLogAction.do",feed:"/portal/web/feed.do",orderMatchDevice:"/portal/web/orderMatchDeviceAction.do",orderConfirm:"/portal/web/orderConfirmAction.do",download:"/portal/web/orderDownloadAction.do",reSendDownloadSMS:"/portal/web/reSendDownloadSMS.do",packageorder:"/portal/web/packageorder.do",authcode:"/authcode.do?type=2"},recentlyorder:{goodsRecentlyorder:"/portal/web/recentlyOrderAction.do"},blessing:{addBlessing:"/portal/web/addBlessingAction.do",queryBlessing:"/portal/web/queryBlessingBankAction.do",queryBlessingByPhone:"/portal/web/queryBlessingPhoneAction.do"},impression:{addImpression:"/portal/web/addImpressionAction.do",queryImpression:"/portal/web/queryImpressionAction.do"},usersurvey:{feedbackUS:"/portal/web/userSurveyAction.do?action=feedbackUS"},evaluation:{queryEvaluation:"/portal/web/queryEvaluationAction.do",queryEvaluationMsg:"/portal/web/queryEvaluationMsgAction.do",addEvaluation:"/portal/web/addEvaluationAction.do",addEvaluationMsg:"/portal/web/addEvaluationMsgAction.do",queryUpDown:"/portal/web/queryUpDown.do",markEvaluation:"/portal/web/markEvaluationAction.do"},emailsubscribe:{query:"/portal/web/emailSubscribe.do",subscribe:"/portal/web/emailSubscribe.do",unSubscribe:"/portal/web/emailSubscribe.do"},homeMessage:{queryMsg:"/portal/web/homeMessage.do?act=query",deleteMsg:"/portal/web/homeMessage.do?act=delete",detail:"/portal/web/homeMessage.do?act=detail",nearby:"/portal/web/homeMessage.do?act=nearby",count:"/portal/web/homeMessage.do?act=count"},carve:{queryCarveComment:"/carve/queryCarveComment.do",addCarveComment:"/carve/addCarveComment.do",queryCarveSearch:"/carve/search/jsearch.do",queryVote:"/carve/queryVoteAction.do",addVote:"/carve/addVoteAction.do",addReport:"/carve/addReportAction.do",queryname:"/carve/queryNameAction.do",queryAllVote:"/carve/util.do"},third:{queryUser:"/portal/web/g3.do"},model:{addUaVote:"/model/adduavote.do",queryuavote:"/model/queryuavote.do",queryjustSold:"/model/justSoldAction.do"},sms:{wapportalsms:"/portal/web/sendSMSAction.do"},appcate:{queryAppcate:"/portal/web/queryAppcate.do"},getLogonUrl:function(){var c=null,b=false,d=null;
if(arguments.length==1){if(typeof(arguments[0])==="string"){c=arguments[0];}else{if(typeof(arguments[0])==="boolean"){b=arguments[0];}else{d=arguments[0];}}}else{if(arguments.length==2){if(typeof(arguments[0])==="boolean"){b=arguments[0];d=arguments[1];}else{if(typeof(arguments[1])==="boolean"){c=arguments[0];
b=arguments[1];}else{c=arguments[0];d=arguments[1];}}}else{if(arguments.length==3){c=arguments[0];b=arguments[1];d=arguments[2];}}}var a;if(window.location.href.indexOf(".mm.139.com")>0||window.location.href.indexOf(".mm.shequ.10086.cn")>0){if(c){c=encodeURIComponent(c);a="http://auth.139.com?tourl="+c;
}else{a="http://auth.139.com";}}else{a=b?"/moneditor/cs/logon/smallLogon.html":"/moneditor/cs/logon/smallLogon.html";if(c){c=encodeURIComponent(c);a+="?backurl="+c;}if(d!=null){if(a.indexOf("?")>-1){a+="&data="+$.toJSON(d);}else{a+="?data="+$.toJSON(d);}}}return a;},locationLogon:function(a){if(window.location.href.indexOf(".mm.139.com")>0){top.location.href="http://auth.139.com?tourl="+encodeURIComponent(top.location.href);
}else{if(window.location.href.indexOf(".mm.shequ.10086.cn")>0){top.location.href="http://auth.139.com?tourl="+encodeURIComponent(top.location.href);}else{location.href=a;}}},showLogon:function(b,c,a){if(window.location.href.indexOf(".mm.139.com")>0){top.location.href="http://auth.139.com?tourl="+encodeURIComponent(top.location.href);
}else{if(window.location.href.indexOf(".mm.shequ.10086.cn")>0){top.location.href="http://auth.139.com?tourl="+encodeURIComponent(top.location.href);}else{thickBox.show(b,c,a||"");}}}};

try {
    var cavtopurl = top.location.href;
    if (cavtopurl.indexOf("mm2010") > -1) {
        mm.common.business.url.order.orderMatchDevice = "/carve/orderMatchDevice";
        mm.common.business.url.order.orderConfirm = "/carve/orderConfirm";
        mm.common.business.url.order.download = "/carve/orderDownload";
        mm.common.business.url.order.reSendDownloadSMS = "/carve/reSendDownloadSMS";
        mm.common.business.url.order.authcode = "/carve/authcode.dos?type=2";
        mm.common.business.url.carve.queryCarveSearch = "/carve/cvarveSearch";
        mm.common.business.url.carve.queryAllVote = "/carve/queryMoreVote";
        Package("mm.common.business.carveurl");
        mm.common.business.carveurl = {
            carve: {
                queryCarveComment: "/carve/listCarveComment",
                addCarveComment: "/carve/addCarveComment",
                queryVote: "/carve/listCarveVoteCount",
                addVote: "/carve/addCarveVote",
                addReport: "/carve/addCarveReport",
                queryname: "/carve/getCarveGoodsName"
            }
        }
        //$.getScript("/moneditor/cs/include/js/carve/carveurl.js");
    }
    
} 
catch (e) {

}
Package("mm.common.design.Observer");mm.common.design.Observer={name:"",update:function(){}};Package("mm.common.design.Subject");mm.common.design.Subject={name:"",observers:[],add:function(a){this.observers.push(a);},del:function(c){var a="";if(typeof(c)==="string"){a=c;}else{a=c.name;}if(a){return;
}for(var b in this.observers){if(this.observers[b]&&this.observers[b].name===c.name){return this.observers.splice(b,1);}}},getLength:function(){return this.observers.length;},notify:function(){for(var a in this.observers){if(this.observers[a]){this.observers[a].update();}}}};
/*
 * jBrace JavaScript Library v1.0
 * Copyright (c) 2010 yuanhaibo
 * Date: 2010-03-05 10:30:53
 */
(String.prototype.decodeURIComponentUrl=function(){var a=this.replace(/src\s*=\s*["|'][^%7B]*(%7B.*?%7D)[^"']*["|']/g,function(){return decodeURIComponent(arguments[0]);
});a=a.replace(/href\s*=\s*["|'][^%7B]*(%7B.*?%7D)[^"']*["|']/g,function(){return decodeURIComponent(arguments[0]);});a=a.replace(/jQuery\d+="\d+"/g,"");return a;});(String.prototype.blength=function(){var c=0;for(var b=0;b<this.length;b++){c=c+a(this.charAt(b));}return c;function a(d){if(d.charCodeAt(0)>255){return 2;
}else{return 1;}}});(String.prototype.bsubstring=function(b){var c=0;var f="";for(var d=0;d<this.length;d++){var e=a(this.charAt(d));if(c+e<=b){f+=this.charAt(d);c+=e;}else{return f;}}return f;function a(g){if(g.charCodeAt(0)>255){return 2;}else{return 1;}}});(function(a){a.fn.outerIeHTML=function(b){if(!b){if(this.get(0).outerHTML){return this.get(0).outerHTML;
}}return(b)?this.before(b).remove():a("<p>").append(this.eq(0).clone()).html();};})(jQuery);(function($){var functionReg=/\{function,([^}]+)\}/g,getReg=/\{get,([^}]+)\}/g,defaultReg=/,\s*default:([^,]*)/g,braceVarReg=/\{([^{}]*)\}/g;hrefReg=/href\s*=\s*["|']([^"']*)["|']/g;substrReg=/([^,]+),(\d*),?(.+)?/;
String.prototype.replaceBrace=function(n,processFun){return this.replace(braceVarReg,function(){if(!arguments[1]){return n;}var vdefault=null;var mathStr=arguments[1].replace(defaultReg,function(){vdefault=arguments[1];return"";});if(/^\w((\w|[.])+)?\s?(,(\d+),?(.+)?)?$/.test(mathStr)){var len=null;var tail=null;
var vValue=null;var vName=null;if(substrReg.test(mathStr)){var array=substrReg.exec(mathStr);vName=array[1];len=array[2]*1;tail=array[3];}else{vName=mathStr;}try{vValue=eval("n."+vName);}catch(e){vValue=null;}if(vdefault!=null&&(vValue==null||vValue=="")){vValue=vdefault;}if(processFun){vValue=processFun(vValue);
}if(len!=null){if(vValue&&vValue.blength()>len*2){vValue=vValue.bsubstring(len*2-2);if(tail){vValue+=array[3];}}}if(vValue==null){return"";}else{return vValue;}}else{return arguments[0];}});};$.fn.brace=function(template,data,eventes){var len=this.get(0).childNodes.length;var tHtml="";for(var i=0;i<data.length;
i++){tHtml+=template.braceHtml(data[i],eventes);}if(eventes){this.append(tHtml);var children=this.get(0).childNodes;for(var j=len;j<children.length;j++){$(children[j]).braceFunction(data[j-len],eventes).bindClickContainer(data[j-len],eventes);}}else{this.append(tHtml);}return this;};$.fn.braceHtml=function(n,eventes,all){var ehtml=jQuery.trim(this.outerIeHTML()).decodeURIComponentUrl();
function chineseEncode(value){if(value==null){return"";}var newvalue=value.replace(/[\u4E00-\u9FA5]/g,function(){return encodeURIComponent(arguments[0]);});return newvalue;}var hrefAfter=ehtml.replace(hrefReg,function(){return arguments[0].replaceBrace(n,chineseEncode);});var newStr=hrefAfter.replaceBrace(n);
if(eventes){newStr=newStr.replace(getReg,function(){var param=null;var getFuncName=null;var vValue=null;var fun=null;if(arguments[1].indexOf(",")>-1){var expression=arguments[1].split(",");getFuncName=expression[0];param=data.slice(1,expression.length);}else{getFuncName=arguments[1];param=[];}try{fun=eval("eventes."+getFuncName);
}catch(e){fun=null;}if(fun){var fixedparams=[n,all];return fun.apply(fun,$.merge(fixedparams,param));}else{return"";}});}return newStr;};$.fn.braceFunction=function(n,events,all){var str=jQuery.trim(this.outerIeHTML()).decodeURIComponentUrl();var seflt=this;str.replace(functionReg,function(){var param=null;
var funcName=null;var fun=null;if(arguments[1].indexOf(",")>-1){var expression=arguments[1].split(",");funcName=expression[0];param=expression.slice(1,expression.length);}else{funcName=arguments[1];param=[];}try{fun=eval("events."+funcName);}catch(e){fun=null;}if(fun){var fixedparams=[seflt,n,all];fun.apply(fun,$.merge(fixedparams,param));
}return"";});return this;};$.fn.bindClickContainer=function(itemData,eventes,all){this.unbind("click.container").bind("click.container",function(e){var container=$(this);e=e||window.event;var srcElement=e.srcElement||e.target;var funeven=getEvent($(srcElement));if(funeven){var itemData2=itemData;var key=$(srcElement).attr("key");
if(key&&key.indexOf(".")>-1){var itemDataname=key.replace(/\.[^.]+$/,"");try{itemData2=eval("itemData."+itemDataname);}catch(e){itemData2=null;}}return funeven($(srcElement),itemData2,container,all);}function getEvent(srcElement){var ev=null;var evName=srcElement.attr("key");if(evName){try{ev=eval("eventes."+evName);
return ev;}catch(e){ev=null;}}if(container.get(0)!=srcElement.get(0)&&srcElement.parent()!=null&&srcElement.parent().length>0){return getEvent(srcElement.parent());}else{return null;}}});return this;};$.fn.braceClone=function(){return $(this.get(0).cloneNode(true));};})(jQuery);(function(a){a.fn.extend({autocomplete:function(b,c){var d=typeof b=="string";
c=a.extend({},a.Autocompleter.defaults,{url:d?b:null,data:d?null:b,delay:d?a.Autocompleter.defaults.delay:10,max:c&&!c.scroll?10:150},c);c.highlight=c.highlight||function(e){return e;};c.formatMatch=c.formatMatch||c.formatItem;return this.each(function(){new a.Autocompleter(this,c);});},result:function(b){return this.bind("result",b);
},search:function(b){return this.trigger("search",[b]);},flushCache:function(){return this.trigger("flushCache");},setOptions:function(b){return this.trigger("setOptions",[b]);},unautocomplete:function(){return this.trigger("unautocomplete");}});a.Autocompleter=function(m,g){var c={UP:38,DOWN:40,DEL:46,TAB:9,RETURN:13,ESC:27,COMMA:188,PAGEUP:33,PAGEDOWN:34,BACKSPACE:8};
var b=a(m).attr("autocomplete","off").addClass(g.inputClass);var k;var q="";var n=a.Autocompleter.Cache(g);var e=0;var v;var y={mouseDownOnSelect:false};var s=a.Autocompleter.Select(g,m,d,y);var x;a.browser.opera&&a(m.form).bind("submit.autocomplete",function(){if(x){x=false;return false;}});b.bind((a.browser.msie?"propertychange":"input")+"",function(z){clearTimeout(k);
k=setTimeout(u,g.delay);});b.bind((a.browser.opera?"keyup":"keyup")+".autocomplete",function(z){e=1;v=z.keyCode;switch(z.keyCode){case c.UP:z.preventDefault();if(s.visible()){s.prev();}else{u(0,true);}break;case c.DOWN:z.preventDefault();if(s.visible()){s.next();}else{u(0,true);}break;case c.PAGEUP:z.preventDefault();
if(s.visible()){s.pageUp();}else{u(0,true);}break;case c.PAGEDOWN:z.preventDefault();if(s.visible()){s.pageDown();}else{u(0,true);}break;case g.multiple&&a.trim(g.multipleSeparator)==","&&c.COMMA:case c.RETURN:if(d()){z.preventDefault();x=true;return false;}else{if(g.selectRetrun){g.selectRetrun();}}break;
case c.ESC:s.hide();break;}}).focus(function(){e++;}).blur(function(){e=0;if(!y.mouseDownOnSelect){t();}}).click(function(){if(e++>1&&!s.visible()){u(0,true);}}).bind("search",function(){var z=(arguments.length>1)?arguments[1]:null;function A(E,D){var B;if(D&&D.length){for(var C=0;C<D.length;C++){if(D[C].result.toLowerCase()==E.toLowerCase()){B=D[C];
break;}}}if(typeof z=="function"){z(B);}else{b.trigger("result",B&&[B.data,B.value]);}}a.each(h(b.val()),function(B,C){f(C,A,A);});}).bind("flushCache",function(){n.flush();}).bind("setOptions",function(){a.extend(g,arguments[1]);if("data" in arguments[1]){n.populate();}}).bind("unautocomplete",function(){s.unbind();
b.unbind();a(m.form).unbind(".autocomplete");});function d(){var C=s.selected();if(!C){return false;}var z=C.result;q=z;if(g.multiple){var F=h(b.val());if(F.length>1){var B=g.multipleSeparator.length;var E=a(m).selection().start;var D,A=0;a.each(F,function(G,H){A+=H.length;if(E<=A){D=G;return false;}A+=B;
});F[D]=z;z=F.join(g.multipleSeparator);}z+=g.multipleSeparator;}b.val(z);w();b.trigger("result",[C.data,C.value]);if(g.selectRetrun){g.selectRetrun();}return true;}function u(B,A){if(v==c.DEL){s.hide();return;}var z=b.val();if(!A&&z==q){return;}q=z;z=j(z);if(z.length>=g.minChars){b.addClass(g.loadingClass);
if(!g.matchCase){z=z.toLowerCase();}f(z,l,w);}else{o();s.hide();}}function h(z){if(!z){return[""];}if(!g.multiple){return[a.trim(z)];}return a.map(z.split(g.multipleSeparator),function(A){return a.trim(z).length?a.trim(A):null;});}function j(z){if(!g.multiple){return z;}var B=h(z);if(B.length==1){return B[0];
}var A=a(m).selection().start;if(A==z.length){B=h(z);}else{B=h(z.replace(z.substring(A),""));}return B[B.length-1];}function r(z,A){if(g.autoFill&&(j(b.val()).toLowerCase()==z.toLowerCase())&&v!=c.BACKSPACE){b.val(b.val()+A.substring(j(q).length));a(m).selection(q.length,q.length+A.length);}}function t(){clearTimeout(k);
k=setTimeout(w,200);}function w(){var z=s.visible();s.hide();clearTimeout(k);o();if(g.mustMatch){b.search(function(A){if(!A){if(g.multiple){var B=h(b.val()).slice(0,-1);b.val(B.join(g.multipleSeparator)+(B.length?g.multipleSeparator:""));}else{b.val("");b.trigger("result",null);}}});}}function l(A,z){if(z&&z.length&&e){o();
s.display(z,A);r(A,z[0].value);s.show();}else{w();}}function f(A,C,z){if(!g.matchCase){A=A.toLowerCase();}var B=n.load(A);if(B&&B.length){C(A,B);}else{if((typeof g.url=="string")&&(g.url.length>0)){var D={timestamp:+new Date()};a.each(g.extraParams,function(E,F){D[E]=typeof F=="function"?F():F;});a.ajax({mode:"abort",port:"autocomplete"+m.name,dataType:g.dataType,type:g.type||"get",url:g.url,data:a.extend({q:j(A),limit:g.max},D),success:function(F){var E=g.parse&&g.parse(F)||p(F);
n.add(A,E);C(A,E);}});}else{s.emptyList();z(A);}}}function p(C){var z=[];var B=C.split("\n");for(var A=0;A<B.length;A++){var D=a.trim(B[A]);if(D){D=D.split("|");z[z.length]={data:D,value:D[0],result:g.formatResult&&g.formatResult(D,D[0])||D[0]};}}return z;}function o(){b.removeClass(g.loadingClass);}};
a.Autocompleter.defaults={inputClass:"ac_input",resultsClass:"ac_results",loadingClass:"ac_loading",minChars:1,delay:400,matchCase:false,matchSubset:true,matchContains:false,cacheLength:10,max:100,mustMatch:false,extraParams:{},selectFirst:false,formatItem:function(b){return b[0];},formatMatch:null,autoFill:false,width:0,multiple:false,multipleSeparator:", ",highlight:function(c,b){return c.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+b.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"<strong>$1</strong>");
},scroll:true,scrollHeight:180};a.Autocompleter.Cache=function(c){var f={};var d=0;function h(l,k){if(!c.matchCase){l=l.toLowerCase();}var j=l.indexOf(k);if(c.matchContains=="word"){j=l.toLowerCase().search("\\b"+k.toLowerCase());}if(j==-1){return false;}return j==0||c.matchContains;}function g(k,j){if(d>c.cacheLength){b();
}if(!f[k]){d++;}f[k]=j;}function e(){if(!c.data){return false;}var k={},j=0;if(!c.url){c.cacheLength=1;}k[""]=[];for(var m=0,l=c.data.length;m<l;m++){var p=c.data[m];p=(typeof p=="string")?[p]:p;var o=c.formatMatch(p,m+1,c.data.length);if(o===false){continue;}var n=o.charAt(0).toLowerCase();if(!k[n]){k[n]=[];
}var q={value:o,data:p,result:c.formatResult&&c.formatResult(p)||o};k[n].push(q);if(j++<c.max){k[""].push(q);}}a.each(k,function(r,s){c.cacheLength++;g(r,s);});}setTimeout(e,25);function b(){f={};d=0;}return{flush:b,add:g,populate:e,load:function(n){if(!c.cacheLength||!d){return null;}if(!c.url&&c.matchContains){var m=[];
for(var j in f){if(j.length>0){var o=f[j];a.each(o,function(p,k){if(h(k.value,n)){m.push(k);}});}}return m;}else{if(f[n]){return f[n];}else{if(c.matchSubset){for(var l=n.length-1;l>=c.minChars;l--){var o=f[n.substr(0,l)];if(o){var m=[];a.each(o,function(p,k){if(h(k.value,n)){m[m.length]=k;}});return m;
}}}}}return null;}};};a.Autocompleter.Select=function(e,k,m,q){var j={ACTIVE:"ac_over"};var l,f=-1,s,n="",t=true,c,p;function o(){if(!t){return;}c=a("<div/>").hide().addClass(e.resultsClass).css("position","absolute").appendTo(document.body);p=a("<ul/>").appendTo(c).mouseover(function(u){if(r(u).nodeName&&r(u).nodeName.toUpperCase()=="LI"){f=a("li",p).removeClass(j.ACTIVE).index(r(u));
a(r(u)).addClass(j.ACTIVE);}}).click(function(u){a(r(u)).addClass(j.ACTIVE);m();k.focus();return false;}).mousedown(function(){q.mouseDownOnSelect=true;}).mouseup(function(){q.mouseDownOnSelect=false;});if(e.width>0){c.css("width",e.width);}t=false;}function r(v){var u=v.target;while(u&&u.tagName!="LI"){u=u.parentNode;
}if(!u){return[];}return u;}function h(u){l.slice(f,f+1).removeClass(j.ACTIVE);g(u);var w=l.slice(f,f+1).addClass(j.ACTIVE);if(e.scroll){var v=0;l.slice(0,f).each(function(){v+=this.offsetHeight;});if((v+w[0].offsetHeight-p.scrollTop())>p[0].clientHeight){p.scrollTop(v+w[0].offsetHeight-p.innerHeight());
}else{if(v<p.scrollTop()){p.scrollTop(v);}}}}function g(u){f+=u;if(f<0){f=l.size()-1;}else{if(f>=l.size()){f=0;}}}function b(u){return e.max&&e.max<u?e.max:u;}function d(){p.empty();var v=b(s.length);for(var w=0;w<v;w++){if(!s[w]){continue;}var x=e.formatItem(s[w].data,w+1,v,s[w].value,n);if(x===false){continue;
}var u=a("<li/>").html(e.highlight(x,n)).addClass(w%2==0?"ac_even":"ac_odd").appendTo(p)[0];a.data(u,"ac_data",s[w]);}l=p.find("li");if(e.selectFirst){l.slice(0,1).addClass(j.ACTIVE);f=0;}if(a.fn.bgiframe){p.bgiframe();}}return{display:function(v,u){o();s=v;n=u;d();},next:function(){h(1);},prev:function(){h(-1);
},pageUp:function(){if(f!=0&&f-8<0){h(-f);}else{h(-8);}},pageDown:function(){if(f!=l.size()-1&&f+8>l.size()){h(l.size()-1-f);}else{h(8);}},hide:function(){c&&c.hide();l&&l.removeClass(j.ACTIVE);f=-1;},visible:function(){return c&&c.is(":visible");},current:function(){return this.visible()&&(l.filter("."+j.ACTIVE)[0]||e.selectFirst&&l[0]);
},show:function(){var w=a(k).offset();c.css({width:typeof e.width=="string"||e.width>0?e.width:a(k).width(),top:w.top+k.offsetHeight,left:w.left}).show();if(e.scroll){p.scrollTop(0);p.css({maxHeight:e.scrollHeight,overflow:"auto"});if(a.browser.msie&&typeof document.body.style.maxHeight==="undefined"){var u=0;
l.each(function(){u+=this.offsetHeight;});var v=u>e.scrollHeight;p.css("height",v?e.scrollHeight:u);if(!v){l.width(p.width()-parseInt(l.css("padding-left"))-parseInt(l.css("padding-right")));}}}},selected:function(){var u=l&&l.filter("."+j.ACTIVE).removeClass(j.ACTIVE);return u&&u.length&&a.data(u[0],"ac_data");
},emptyList:function(){p&&p.empty();},unbind:function(){c&&c.remove();}};};a.fn.selection=function(j,b){if(j!==undefined){return this.each(function(){if(this.createTextRange){var k=this.createTextRange();if(b===undefined||j==b){k.move("character",j);k.select();}else{k.collapse(true);k.moveStart("character",j);
k.moveEnd("character",b);k.select();}}else{if(this.setSelectionRange){this.setSelectionRange(j,b);}else{if(this.selectionStart){this.selectionStart=j;this.selectionEnd=b;}}}});}var g=this[0];if(g.createTextRange){var c=document.selection.createRange(),h=g.value,f="<->",d=c.text.length;c.text=f;var e=g.value.indexOf(f);
g.value=h;this.selection(e,e+d);return{start:e,end:e+d};}else{if(g.selectionStart!==undefined){return{start:g.selectionStart,end:g.selectionEnd};}}};})(jQuery);(function(a){a.fn.outerHTML=function(b){return(b)?this.before(b).remove():a("<p>").append(this.eq(0).clone()).html();};})(jQuery);(function($){$.toJSON=function(o){if(typeof(JSON)=="object"&&JSON.stringify){return JSON.stringify(o);
}var type=typeof(o);if(o===null){return"null";}if(type=="undefined"){return undefined;}if(type=="number"||type=="boolean"){return o+"";}if(type=="string"){return $.quoteString(o);}if(type=="object"){if(typeof o.toJSON=="function"){return $.toJSON(o.toJSON());}if(o.constructor===Date){var month=o.getUTCMonth()+1;
if(month<10){month="0"+month;}var day=o.getUTCDate();if(day<10){day="0"+day;}var year=o.getUTCFullYear();var hours=o.getUTCHours();if(hours<10){hours="0"+hours;}var minutes=o.getUTCMinutes();if(minutes<10){minutes="0"+minutes;}var seconds=o.getUTCSeconds();if(seconds<10){seconds="0"+seconds;}var milli=o.getUTCMilliseconds();
if(milli<100){milli="0"+milli;}if(milli<10){milli="0"+milli;}return'"'+year+"-"+month+"-"+day+"T"+hours+":"+minutes+":"+seconds+"."+milli+'Z"';}if(o.constructor===Array){var ret=[];for(var i=0;i<o.length;i++){ret.push($.toJSON(o[i])||"null");}return"["+ret.join(",")+"]";}var pairs=[];for(var k in o){var name;
var type=typeof k;if(type=="number"){name='"'+k+'"';}else{if(type=="string"){name=$.quoteString(k);}else{continue;}}if(typeof o[k]=="function"){continue;}var val=$.toJSON(o[k]);pairs.push(name+":"+val);}return"{"+pairs.join(", ")+"}";}};$.evalJSON=function(src){return eval("("+src+")");};$.secureEvalJSON=function(src){if(typeof(JSON)=="object"&&JSON.parse){return JSON.parse(src);
}var filtered=src;filtered=filtered.replace(/\\["\\\/bfnrtu]/g,"@");filtered=filtered.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]");filtered=filtered.replace(/(?:^|:|,)(?:\s*\[)+/g,"");if(/^[\],:{}\s]*$/.test(filtered)){return eval("("+src+")");}else{throw new SyntaxError("Error parsing JSON, source is not valid.");
}};$.quoteString=function(string){if(string.match(_escapeable)){return'"'+string.replace(_escapeable,function(a){var c=_meta[a];if(typeof c==="string"){return c;}c=a.charCodeAt();return"\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16);})+'"';}return'"'+string+'"';};var _escapeable=/["\\\x00-\x1f\x7f-\x9f]/g;
var _meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};})(jQuery);var thickBox={loadImg:"/moneditor/cs/include/js/common/plug/thickbox/image/loadingAnimation.gif",helpURL:"/moneditor/cs/services/help.html",callback:null,params:null,init:function(a){$(a).click(function(){var b=$(this).attr("href")||$(this).attr("alt");
var c=$(this).attr("title")||$(this).attr("this.name")||null;thickBox.show(b,null,c);this.blur();return false;});},show:function(b,c,m){$("body").focus();try{if(typeof document.body.style.maxHeight==="undefined"){$("body","html").css({height:"100%",width:"100%"});$("html").css("overflow","hidden");if(document.getElementById("TB_HideSelect")===null){$("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");
}}else{if(document.getElementById("TB_overlay")===null){$("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>");}}if(this.detectMacXFF()){$("#TB_overlay").addClass("TB_overlayMacFFBGHack");}else{$("#TB_overlay").addClass("TB_overlayBG");}if(m===null){m="";}$("body").append("<div id='TB_load'><img src='../关于世嘉.files/"+this.loadImg+"' /></div>");
$("#TB_load").show();var a=b.replace(/^[^\?]+\??/,"");this.params=this.parseQuery(a);TB_WIDTH=(this.params["width"]*1)+30||630;TB_HEIGHT=(this.params["height"]*1)+40||440;ajaxContentW=TB_WIDTH-30;ajaxContentH=TB_HEIGHT-45;if(this.params["iframe"]){urlNoQuery=b.split("&iframe");$("#TB_iframeContent").remove();
if(this.params["modal"]!="true"){urlNoQuery[0]+="&ran="+Math.random();if(location.href.indexOf("CMorder")>0){$("#TB_window").html("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+m+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'>关闭</a></div></div><iframe allowTransparency='true' frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='thickBox.showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;' > </iframe>");
}else{$("#TB_window").html("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+m+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'>关闭</a></div><div id='TB_helpAjaxWindow'><a href='../关于世嘉.files/"+thickBox.helpURL+"' id='TB_helpWindowButton' title='Help' target='_blank'>帮助</a></div></div><iframe allowTransparency='true' frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='thickBox.showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;' > </iframe>");
}}else{$("#TB_overlay").unbind();$("#TB_window").html("<iframe allowTransparency='true' frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='thickBox.showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;'> </iframe>");
}}else{if($("#TB_window").css("display")!="block"){if(this.params["modal"]!="true"){if(location.href.indexOf("CMorder")>0){$("#TB_window").html("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+m+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>关闭</a></div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>");
}else{$("#TB_window").html("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+m+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>关闭</a></div><div id='TB_helpAjaxWindow'><a href='../关于世嘉.files/"+thickBox.helpURL+"' id='TB_helpWindowButton' title='Help' target='_blank'>帮助</a></div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>");
}}else{$("#TB_overlay").unbind();$("#TB_window").html("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>");}}else{$("#TB_ajaxContent")[0].style.width=ajaxContentW+"px";$("#TB_ajaxContent")[0].style.height=ajaxContentH+"px";$("#TB_ajaxContent")[0].scrollTop=0;
$("#TB_ajaxWindowTitle").html(m);}}$("#TB_closeWindowButton").click(this.close);if(this.params["inline"]){$("#TB_ajaxContent").append($("#"+this.params["inline"]).children());$("#TB_window").unload(function(){$("#"+thickBox.params["inline"]).append($("#TB_ajaxContent").children());});this.position();
$("#TB_load").remove();$("#TB_window").css({display:"block"});}else{if(this.params["iframe"]){this.position();if($.browser.safari){$("#TB_load").remove();$("#TB_window").css({display:"block"});}}else{$("#TB_ajaxContent").load(b+="&random="+(new Date().getTime()),function(){thickBox.position();$("#TB_load").remove();
thickBox.init("#TB_ajaxContent a.thickbox");$("#TB_window").css({display:"block"});});}}if(!this.params["modal"]){document.onkeyup=function(o){var n=o==null?event.keyCode:o.which;if(n==27){thickBox.close();}};}if(c){thickBox.callback=c;}else{if(this.params["bf"]){thickBox.callback=this.params["bf"];}}}catch(g){}var l=d();
var h=$("#TB_window").height();var j=k();if(l<=h){document.getElementById("TB_window").style.marginTop="0px";var f=0;$("html").css("overflow","");f=j+10;$("#TB_window").css({"position":"absolute","top":f+"px"});}else{var f=j+(l-h)/2;document.getElementById("TB_window").style.marginTop="0px";$("#TB_window").css({"position":"absolute","top":f+"px"});
}function k(){return typeof window.pageYOffset!="undefined"?window.pageYOffset:document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop?document.body.scrollTop:0;}function d(){return window.innerHeight!=null?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:document.body!=null?document.body.clientHeight:null;
}},showIframe:function(){$("#TB_load").remove();$("#TB_window").css({display:"block"});},close:function(data){$("#TB_imageOff").unbind("click");$("#TB_closeWindowButton").unbind("click");$("#TB_window").fadeOut("fast",function(){$("#TB_window,#TB_overlay,#TB_HideSelect").trigger("unload").unbind().remove();
});$("#TB_load").remove();if(typeof document.body.style.maxHeight=="undefined"){$("body","html").css({height:"auto",width:"auto"});$("html").css("overflow","");}document.onkeydown="";document.onkeyup="";if(typeof(thickBox.callback)==="function"){thickBox.callback(data);}else{if(typeof(thickBox.callback)==="string"){eval(thickBox.callback+"(data)");
}}thickBox.callback=null;return false;},position:function(){$("#TB_window").css({marginLeft:"-"+parseInt((TB_WIDTH/2),10)+"px",width:TB_WIDTH+"px"});if(!(jQuery.browser.msie&&jQuery.browser.version<7)){$("#TB_window").css({marginTop:"-"+parseInt((TB_HEIGHT/2),10)+"px"});}},parseQuery:function(d){d=decodeURIComponent(d);
var f={};if(!d){return f;}var a=d.split(/[;&]/);for(var c=0;c<a.length;c++){var h=a[c].split("=");var b="";var g="";if(!h){continue;}else{if(h.length!=2){var e=a[c];b=e.substring(0,e.indexOf("="));g=e.substring(e.indexOf("=")+1,e.length);}else{b=h[0];g=h[1];}}g=g.replace(/\+/g," ");f[b]=g;}return f;},detectMacXFF:function(){var a=navigator.userAgent.toLowerCase();
if(a.indexOf("mac")!=-1&&a.indexOf("firefox")!=-1){return true;}}};Package("mm.common.util.Interface");mm.common.util.Interface=function(c,b){if(arguments.length!=2){throw new Error("Interface arguments length is "+arguments.length+", but expected exactly 2.");}this.name=c;this.methods=[];for(var d=0,a=b.length;
d<a;d++){if(typeof b[d]!=="string"){throw new Error("Interface method names must as a string.");}this.methods.push(b[d]);}};Package("mm.common.util.Interface.ensureImplements");mm.common.util.Interface.ensureImplements=function(c){if(arguments.length<2){throw new Error("EnsureImplements arguments length is "+arguments.length+", but expected at least 2.");
}for(var e=1,a=arguments.length;e<a;e++){var d=arguments[e];if(d.constructor!==mm.common.util.Interface){throw new Error("EnsureImplements expects arguments two and above to be instances of Interface.");}for(var b=0,f=d.methods.length;b<f;b++){var g=d.methods[b];if(!c[g]||typeof c[g]!=="function"){throw new Error("EnsureImplements: object does not implement the "+d.name+". interface. Method "+g+" was not found.");
}}}};Package("mm.common.util.Ajax");mm.common.util.Ajax=function(){this.state="new";this.isSuccess=false;this.errorDiv=null;this.waitDiv=null;this.type="POST";this.url="";this.page=null;this.perPage=10;this.pageNumber=1;this.frugal=true;this.sendOne=false;this.parameter=null;this.async=true;};mm.common.util.Ajax.prototype={getIsSuccess:function(){return this.isSuccess;
},success:function(a){},beforeSend:function(){},complete:function(){},error:function(){},beforeSuccess:function(a){},selfSuccess:function(a){this.state="success";this.isSuccess=true;if(this.errorDiv&&this.errorDiv.length>0){this.errorDiv.hide();}this.json=a;},afterSuccess:function(a){},selfBeforeSend:function(){this.state="wait";
this.isSuccess=false;if(this.waitDiv&&this.waitDiv.length>0){this.waitDiv.show();}if(this.errorDiv&&this.errorDiv.length>0){this.errorDiv.hide();}},selfComplete:function(){this.state="complete";if(this.waitDiv&&this.waitDiv.length>0){this.waitDiv.hide();}},selfError:function(c,b){this.state="error";this.isSuccess=false;
if(this.waitDiv){this.waitDiv.hide();}if(this.errorDiv){this.errorDiv.show();var a=this;$("[key='retry']",this.errorDiv).unbind().click(function(){a.send(c,b);return false;});}},send:function(b,a){if(this.frugal==true){if(this.state!="complete"&&this.state!="new"){return false;}}if(this.sendOne==true){if(this.state=="new"||(this.state=="complete"&&!this.isSuccess)){}else{if($.toJSON(this.parameter)==$.toJSON(b)){return false;
}}}this.parameter=$.evalJSON($.toJSON(b));if(this.page){this.sendPage(b,a);}else{this.sendSimple(b,a);}},sendPage:function(d,c){var a=this;var b={parameters:d,success:function(e){a.selfSuccess(e);a.beforeSuccess(e);a.success(e);if(c){c(e);}if(e&&(e.totalRecord==null||e.totalRecord<=0||e.totalRecord<=a.perPage)){a.page.hide();
}else{a.page.show();}a.afterSuccess(e);},error:function(){a.selfError(d,c);a.error();},startLoad:function(){a.selfBeforeSend();a.beforeSend();},overLoad:function(){a.selfComplete();a.complete();},type:this.type,proxyUrl:this.url,perPage:this.perPage,pageNumber:this.pageNumber||1};if(this.state=="new"&&this.istatic&&this.istatic()){this.pagination=mm.ui.pagination.create(this.page,b,this.totalRecord);
this.isSuccess=true;this.selfComplete();return;}else{this.pagination=mm.ui.pagination.create(this.page,b);}this.state="wait";this.isSuccess=false;},sendSimple:function(d,c){var a=this;var b={data:d,success:function(e){a.selfSuccess(e);a.beforeSuccess(e);a.success(e);if(c){c(e);}a.afterSuccess(e);},error:function(){a.selfError(d,c);
a.error();},beforeSend:function(){a.selfBeforeSend();a.beforeSend();},complete:function(){a.selfComplete();a.complete();},type:this.type,async:this.async};mm.common.business.service.send(this.url,b);this.state="wait";this.isSuccess=false;}};mm.common.util.createAjax=function(){return new mm.common.util.Ajax();
};mm.common.util.createBraceAjax=function(a,b,e){var d=mm.common.util.createAjax();d.contentDiv=$("[key='content']",a);d.templateDiv=$("[key='template']",a);d.fillDiv=$("[key='fillTemplate']",a);d.noneDiv=$("[key='noneTemplate']",a);d.waitDiv=$("[key='waitDiv']",a);d.errorDiv=$("[key='errorDiv']",a);
d.beforeSend=function(){this.contentDiv.empty();this.noneDiv.hide();};d.error=function(){this.contentDiv.empty();this.noneDiv.hide();};d.success=function(f){if(f.ret!=0){if(f.ret==-100){var h=f.message?f.message:"";this.contentDiv.html(h);}else{var h=f.message?f.message:"对不起，系统繁忙，请稍候再试！";this.contentDiv.html(h);
}}else{this.contentDiv.empty();if(e){e(f);}if(f.data.length==0){if(this.noneDiv.length>0){this.noneDiv.show();}else{if(this.fillDiv.length>0){c(this.contentDiv,this.fillDiv,this.parameter.num);}else{a.hide();}}return;}if(f.data.length>0){var g=this.templateDiv.braceClone().show().removeAttr("key").removeAttr("id");
this.contentDiv.brace(g,f.data,b);if(this.parameter&&this.parameter.num&&f.data&&f.data.length<this.parameter.num){if(this.fillDiv.length>0){c(this.contentDiv,this.fillDiv,this.parameter.num-f.data.length);}}}}};d.reLoad=function(){this.success(this.json);};function c(g,h,j){for(var f=0;f<j;f++){g.append(h.clone().removeAttr("key").removeAttr("id").show());
}}return d;};mm.common.util.shelfCreateBraceAjax=function(a){var b=mm.common.util.createBraceAjax(a,mm.module.goods,function(c){mm.module.goods.expandData(c.data,c);});b.url=mm.common.business.url.fresh.goodsAdapter;return b;};mm.common.util.shelfCreateBraceAjaxTwo=function(b,c){var a=mm.common.util.createAjax();
a.firstContent=$("[key='firstContent']",b);a.firstTemplate=$("[key='firstTemplate']",b);a.secondContent=$("[key='secondContent']",b);a.secondTemplate=$("[key='secondTemplate']",b);a.firstFillTemplate=$("[key='firstFillTemplate']",b);a.secondFillTemplate=$("[key='secondFillTemplate']",b);a.noneDiv=$("[key='noneTemplate']",b);
a.waitDiv=$("[key='waitDiv']",b);a.errorDiv=$("[key='errorDiv']",b);a.url=mm.common.business.url.fresh.goodsAdapter;a.success=function(d){a.totalRecord=d.totalRecord;if(d.ret!=0){var e=d.message?d.message:"对不起，系统繁忙，请稍候再试！";alert(e);}else{mm.module.goods.expandData(d.data,d);this.firstContent.empty();
this.secondContent.empty();this.noneDiv.hide();mm.common.util.appendContentBraceTwo(a,c,a.parameter.num,d.data,mm.module.goods);}};a.beforeSend=function(){this.firstContent.empty();this.secondContent.empty();this.noneDiv.hide();};a.error=function(){this.firstContent.empty();this.secondContent.empty();
this.noneDiv.hide();};return a;};mm.common.util.appendContentBraceTwo=function(a,h,c,g,e){if(g.length==0&&a.noneDiv&&a.noneDiv.length>0){a.noneDiv.show();return;}if(g.length<=h){b(a.firstContent,g,a.firstTemplate,mm.module.goods,0,h);f(a.firstContent,a.firstFillTemplate,h-g.length);var d=c-h;f(a.secondContent,a.secondFillTemplate,d);
}else{if(g.length>h){b(a.firstContent,g,a.firstTemplate,mm.module.goods,0,h);b(a.secondContent,g,a.secondTemplate,mm.module.goods,h);var d=c-g.length;f(a.secondContent,a.secondFillTemplate,d);}}function b(m,n,k,l,o,j){if(!o){o=0;}if(!j){j=n.length;}var k=k.braceClone().show().removeAttr("key").removeAttr("id");
m.brace(k,n.slice(o,j),l);}function f(k,l,m){if(l&&l.length>0){for(var j=0;j<m;j++){k.append(l.clone().removeAttr("key").removeAttr("id").show());}}}};Package("mm.common.util.cookie");mm.common.util.cookie={setCookie:function(b,g,j){var e={expires:24*60*60*1000,path:"/",domain:"",secure:false};for(i in e){if(typeof(j[i])==="undefined"){j[i]=e[i];
}}if(typeof g==="undefined"||g===null){g="";j.expires=-1;}var c="";if(j.expires!=0&&typeof j.expires==="number"){var d=new Date();d.setTime(d.getTime()+(j.expires*1000));c="; expires="+d.toUTCString();}var h=j.path?"; path="+j.path:"";var f=j.domain?"; domain="+j.domain:"";var a=j.secure?"; secure":"";
document.cookie=[b,"=",encodeURIComponent(g),c,h,f,a].join("");},getCookie:function(a){var e=null;if(document.cookie&&document.cookie!=""){var d=document.cookie.split(";");for(var c=0;c<d.length;c++){var b=d[c].replace(/^\s*|\s*$/g,"");if(b.substring(0,a.length+1)==(a+"=")){e=decodeURIComponent(b.substring(a.length+1));
break;}}}return e;}};Package("mm.common.util.localdata");mm.common.util.localdata={browserType:null,init:function(){this.browserType=this.getBrowserType();if(this.browserType==0){document.documentElement.addBehavior("#default#userdata");}},getBrowserType:function(){var a=navigator.appName;if(a=="Microsoft Internet Explorer"){return 0;
}else{if(a=="Netscape"){return 1;}else{if(a=="Opera"){return 2;}else{return -1;}}}},set:function(b,c){var a={expires:60*60*24*360,path:"/"};if(this.browserType==0){mm.common.util.cookie.setCookie(b,c,a);}else{if(this.browserType==1){try{globalStorage[location.hostname][b]=c;}catch(d){mm.common.util.cookie.setCookie(b,c,a);
}}else{mm.common.util.cookie.setCookie(b,c,a);}}},get:function(a){if(this.browserType==0){var b=mm.common.util.cookie.getCookie(a);return b?b:"";}else{if(this.browserType==1){try{var b=globalStorage[location.hostname][a];if(b){b+="";}return b;}catch(c){var b=mm.common.util.cookie.getCookie(a);return b?b:"";
}}else{var b=mm.common.util.cookie.getCookie(a);return b?b:"";}}},del:function(b){var a={expires:-1,path:"/"};if(this.browserType==0){mm.common.util.cookie.setCookie(b,null,a);}else{if(this.browserType==1){try{globalStorage[location.hostname].removeItem(b);}catch(c){mm.common.util.cookie.setCookie(b,null,a);
}}else{mm.common.util.cookie.setCookie(b,null,a);}}}};mm.common.util.localdata.init();Package("mm.common.util.request");mm.common.util.request={parameters:null,parameterArrs:null,getParameters:function(){if(this.parameters!=null){return this.parameters;}var f=(location.search).replace("?","");var h={};
if(!f){return h;}var j=f.split(/[;&]/);for(var c=0;c<j.length;c++){var k=j[c].split("=");var g="";var b="";if(!k){continue;}else{if(k.length!=2){var a=j[c];g=decodeURIComponent(decodeURIComponent(a.substring(0,a.indexOf("="))));b=decodeURIComponent(decodeURIComponent(a.substring(a.indexOf("=")+1,a.length)));
}else{g=decodeURIComponent(decodeURIComponent(k[0]));try{b=decodeURIComponent(decodeURIComponent(k[1]));}catch(d){if(gb2312decode){b=gb2312decode(k[1]);}}}}h[g]=b;}this.parameters=h;return h;},getParameter:function(a){if(!a){return null;}var b=this.getParameters()[a];if(b==""||b){return b;}else{return null;
}},getParameterArrs:function(){if(this.parameterArrs!=null){return this.parameterArrs;}var e=decodeURIComponent(location.search).replace("?","");e=decodeURIComponent(e);var b={};if(!e){return b;}var a=e.split(/[;&]/);for(var d=0;d<a.length;d++){var h=a[d].split("=");var c="";var g="";if(!h){continue;
}else{if(h.length!=2){var f=a[d];c=f.substring(0,f.indexOf("="));g=f.substring(f.indexOf("=")+1,f.length);}else{c=h[0];g=h[1];}}g=g.replace(/\+/g," ");if(typeof b[c]=="undefined"){b[c]=new Array(g);}else{b[c].push(g);}}this.parameterArrs=b;return b;},getParameterArr:function(a){if(!a){return null;}var b=this.parameterArrs()[a];
if(b==""||b){return b;}else{return null;}},encodeURIComponent:function(b){var l=b.split("?");var a=l[0];var j=l[1];var d="";var m=j.split(/[;&]/);for(var g=0;g<m.length;g++){var n=m[g].split("=");var k="";var f="";if(!n){continue;}else{if(n.length!=2){var c=m[g];k=encodeURIComponent(c.substring(0,c.indexOf("=")));
f=encodeURIComponent(c.substring(c.indexOf("=")+1,c.length));}else{k=encodeURIComponent(n[0]);try{f=encodeURIComponent(n[1]);}catch(h){if(gb2312decode){f=gb2312decode(n[1]);}}}}if(g==0){d+="?"+k+"="+f;}else{d+="&"+k+"="+f;}}return a+d;}};Package("mm.common.util.TableSwitch");mm.common.util.TableSwitch=function(){this.items=[];
this.currentlyIndex=-1;};mm.common.util.TableSwitch.prototype={addItem:function(d,a){var b=this;this.items.push({"head":d,"body":a});var c=b.items.length-1;d.bind("click",function(){b.pitchOn(c);});},pitchOn:function(a){if(this.currentlyIndex!=a){if(this.currentlyIndex>=0){this.blur(this.currentlyIndex);
}else{this.blur(0);}this.select(a);this.currentlyIndex=a;}},select:function(a){this.items[a].head.addClass("selected");this.items[a].body.show();},blur:function(a){this.items[a].head.removeClass("selected");this.items[a].body.hide();}};mm.common.util.createTableSwitch=function(){return new mm.common.util.TableSwitch();
};Package("mm.common.util.tool");mm.common.util.tool={blength:function(c){var a=0;if(typeof(c)==="string"){for(var b=c.length-1;b>=0;b--){if(c.charCodeAt(b)>255){a+=2;}else{a++;}}}else{if(typeof(c)==="number"){c=new String(c);a=c.length;}}return a;},trim:function(a){if(typeof(a)==="string"){return a.replace(/^\s*|\s*$/g,"");
}else{return a;}},triml:function(a){if(typeof(a)==="string"){return a.replace(/^\s*/g,"");}else{return a;}},trimr:function(a){if(typeof(a)==="string"){return a.replace(/\s*$/g,"");}else{return a;}},trima:function(a){if(typeof(a)==="string"){return a.replace(/\s/g,"");}else{return a;}}};Package("mm.common.util.validate");
mm.common.util.validate={isNumber:function(a){return this.checkReg(a,/^\d+$/);},isNaturalNumber:function(a){return this.checkReg(a,/^[0-9]+$/);},isInteger:function(a){return this.checkReg(a,/^(\+|-)?\d+$/);},isFloat:function(a){return this.checkReg(a,/^(\+|-)?\d+($|\.\d+$)/);},isZH:function(a){return this.checkReg(a,/^[\u4e00-\u9fa5]+$/);
},isLowercase:function(a){return this.checkReg(a,/^[a-z]+$/);},isUppercase:function(a){return this.checkReg(a,/^[A-Z]+$/);},isLetter:function(a){return this.checkReg(a,/^[A-Za-z]+$/);},isEmail:function(a){return this.checkReg(a,/^([-_A-Za-z0-9\.]+)@([-_A-Za-z0-9]+\.)+[A-Za-z0-9]{2,3}$/);},checkReg:function(b,a){if(a.test(b)){return true;
}else{return false;}},checkMsisdn:function(a){if(a.length==0){return{ret:1,message:"请输入手机号码！"};}else{if(/^\d+$/.test(a)==false){return{ret:2,message:"手机号码是由０－９的数字组成！"};}else{if(a.length!=11){return{ret:3,message:"手机号码是11位数字！"};}}}var e=/^1[3458]\d{9}$/;var g=/^13[456789]\d{8}$/;var f=/^\+?15\d{9}$/;var d=/^134[012345678]\d{7}$/;
var c=/^\+?18[278]\d{8}$/;var b=/^\+?147\d{8}$/;if(!e.test(a)){return{ret:4,message:"您输入的手机号码不正确!"};}if(g.test(a)||f.test(a)||d.test(a)||c.test(a)||b.test(a)){return{ret:0,message:"手机号码正确！"};}else{return{ret:5,message:"对不起，我们的服务暂不对非中国移动用户开放!"};}}};
