
(function(){var _jQuery=window.jQuery,_$=window.$,jQuery=window.jQuery=window.$=function($,_){return new jQuery.fn.init($,_)},quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/,isSimple=/^.[^:#\[\.]*$/,undefined;jQuery.fn=jQuery.prototype={init:function(B,$){B=B||document;if(B.nodeType){this[0]=B;this.length=1;return this}if(typeof B=="string"){var A=quickExpr.exec(B);if(A&&(A[1]||!$)){if(A[1])B=jQuery.clean([A[1]],$);else{var _=document.getElementById(A[3]);if(_){if(_.id!=A[3])return jQuery().find(B);return jQuery(_)}B=[]}}else return jQuery($).find(B)}else if(jQuery.isFunction(B))return jQuery(document)[jQuery.fn.ready?"ready":"load"](B);return this.setArray(jQuery.makeArray(B))},jquery:"1.2.6",size:function(){return this.length},length:0,get:function($){return $==undefined?jQuery.makeArray(this):this[$]},pushStack:function(_){var $=jQuery(_);$.prevObject=this;return $},setArray:function($){this.length=0;Array.prototype.push.apply(this,$);return this},each:function(_,$){return jQuery.each(this,_,$)},index:function(_){var $=-1;return jQuery.inArray(_&&_.jquery?_[0]:_,this)},attr:function(A,B,$){var _=A;if(A.constructor==String)if(B===undefined)return this[0]&&jQuery[$||"attr"](this[0],A);else{_={};_[A]=B}return this.each(function(B){for(A in _)jQuery.attr($?this.style:this,A,jQuery.prop(this,_[A],$,B,A))})},css:function(_,$){if((_=="width"||_=="height")&&parseFloat($)<0)$=undefined;return this.attr(_,$,"curCSS")},text:function(_){if(typeof _!="object"&&_!=null)return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(_));var $="";jQuery.each(_||this,function(){jQuery.each(this.childNodes,function(){if(this.nodeType!=8)$+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this])})});return $},wrapAll:function($){if(this[0])jQuery($,this[0].ownerDocument).clone().insertBefore(this[0]).map(function(){var $=this;while($.firstChild)$=$.firstChild;return $}).append(this);return this},wrapInner:function($){return this.each(function(){jQuery(this).contents().wrapAll($)})},wrap:function($){return this.each(function(){jQuery(this).wrapAll($)})},append:function(){return this.domManip(arguments,true,false,function($){if(this.nodeType==1)this.appendChild($)})},prepend:function(){return this.domManip(arguments,true,true,function($){if(this.nodeType==1)this.insertBefore($,this.firstChild)})},before:function(){return this.domManip(arguments,false,false,function($){this.parentNode.insertBefore($,this)})},after:function(){return this.domManip(arguments,false,true,function($){this.parentNode.insertBefore($,this.nextSibling)})},end:function(){return this.prevObject||jQuery([])},find:function($){var _=jQuery.map(this,function(_){return jQuery.find($,_)});return this.pushStack(/[^+>] [^+>]/.test($)||$.indexOf("..")>-1?jQuery.unique(_):_)},clone:function($){var _=this.map(function(){if(jQuery.browser.msie&&!jQuery.isXMLDoc(this)){var $=this.cloneNode(true),_=document.createElement("div");_.appendChild($);return jQuery.clean([_.innerHTML])[0]}else return this.cloneNode(true)}),A=_.find("*").andSelf().each(function(){if(this[expando]!=undefined)this[expando]=null});if($===true)this.find("*").andSelf().each(function(C){if(this.nodeType==3)return;var B=jQuery.data(this,"events");for(var $ in B)for(var _ in B[$])jQuery.event.add(A[C],$,B[$][_],B[$][_].data)});return _},filter:function($){return this.pushStack(jQuery.isFunction($)&&jQuery.grep(this,function(A,_){return $.call(A,_)})||jQuery.multiFilter($,this))},not:function(_){if(_.constructor==String)if(isSimple.test(_))return this.pushStack(jQuery.multiFilter(_,this,true));else _=jQuery.multiFilter(_,this);var $=_.length&&_[_.length-1]!==undefined&&!_.nodeType;return this.filter(function(){return $?jQuery.inArray(this,_)<0:this!=_})},add:function($){return this.pushStack(jQuery.unique(jQuery.merge(this.get(),typeof $=="string"?jQuery($):jQuery.makeArray($))))},is:function($){return!!$&&jQuery.multiFilter($,this).length>0},hasClass:function($){return this.is("."+$)},val:function($){if($==undefined){if(this.length){var E=this[0];if(jQuery.nodeName(E,"select")){var G=E.selectedIndex,D=[],B=E.options,F=E.type=="select-one";if(G<0)return null;for(var A=F?G:0,C=F?G+1:B.length;A<C;A++){var _=B[A];if(_.selected){$=jQuery.browser.msie&&!_.attributes.value.specified?_.text:_.value;if(F)return $;D.push($)}}return D}else return(this[0].value||"").replace(/\r/g,"")}return undefined}if($.constructor==Number)$+="";return this.each(function(){if(this.nodeType!=1)return;if($.constructor==Array&&/radio|checkbox/.test(this.type))this.checked=(jQuery.inArray(this.value,$)>=0||jQuery.inArray(this.name,$)>=0);else if(jQuery.nodeName(this,"select")){var _=jQuery.makeArray($);jQuery("option",this).each(function(){this.selected=(jQuery.inArray(this.value,_)>=0||jQuery.inArray(this.text,_)>=0)});if(!_.length)this.selectedIndex=-1}else this.value=$})},html:function($){return $==undefined?(this[0]?this[0].innerHTML:null):this.empty().append($)},replaceWith:function($){return this.after($).remove()},eq:function($){return this.slice($,$+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments))},map:function($){return this.pushStack(jQuery.map(this,function(A,_){return $.call(A,_,A)}))},andSelf:function(){return this.add(this.prevObject)},data:function(A,B){var $=A.split(".");$[1]=$[1]?"."+$[1]:"";if(B===undefined){var _=this.triggerHandler("getData"+$[1]+"!",[$[0]]);if(_===undefined&&this.length)_=jQuery.data(this[0],A);return _===undefined&&$[1]?this.data($[0]):_}else return this.trigger("setData"+$[1]+"!",[$[0],B]).each(function(){jQuery.data(this,A,B)})},removeData:function($){return this.each(function(){jQuery.removeData(this,$)})},domManip:function(_,$,D,B){var A=this.length>1,C;return this.each(function(){if(!C){C=jQuery.clean(_,this.ownerDocument);if(D)C.reverse()}var F=this;if($&&jQuery.nodeName(this,"table")&&jQuery.nodeName(C[0],"tr"))F=this.getElementsByTagName("tbody")[0]||this.appendChild(this.ownerDocument.createElement("tbody"));var E=jQuery([]);jQuery.each(C,function(){var $=A?jQuery(this).clone(true)[0]:this;if(jQuery.nodeName($,"script"))E=E.add($);else{if($.nodeType==1)E=E.add(jQuery("script",$).remove());B.call(F,$)}});E.each(evalScript)})}};jQuery.fn.init.prototype=jQuery.fn;function evalScript(_,$){if($.src)jQuery.ajax({url:$.src,async:false,dataType:"script"});else jQuery.globalEval($.text||$.textContent||$.innerHTML||"");if($.parentNode)$.parentNode.removeChild($)}function now(){return+new Date}jQuery.extend=jQuery.fn.extend=function(){var B=arguments[0]||{},A=1,F=arguments.length,E=false,_;if(B.constructor==Boolean){E=B;B=arguments[1]||{};A=2}if(typeof B!="object"&&typeof B!="function")B={};if(F==A){B=this;--A}for(;A<F;A++)if((_=arguments[A])!=null)for(var D in _){var C=B[D],$=_[D];if(B===$)continue;if(E&&$&&typeof $=="object"&&!$.nodeType)B[D]=jQuery.extend(E,C||($.length!=null?[]:{}),$);else if($!==undefined)B[D]=$}return B};var expando="jQuery"+now(),uuid=0,windowData={},exclude=/z-?index|font-?weight|opacity|zoom|line-?height/i,defaultView=document.defaultView||{};jQuery.extend({noConflict:function($){window.$=_$;if($)window.jQuery=_jQuery;return jQuery},isFunction:function($){return!!$&&typeof $!="string"&&!$.nodeName&&$.constructor!=Array&&/^[\s[]?function/.test($+"")},isXMLDoc:function($){return $.documentElement&&!$.body||$.tagName&&$.ownerDocument&&!$.ownerDocument.body},globalEval:function(_){_=jQuery.trim(_);if(_){var $=document.getElementsByTagName("head")[0]||document.documentElement,A=document.createElement("script");A.type="text/javascript";if(jQuery.browser.msie)A.text=_;else A.appendChild(document.createTextNode(_));$.insertBefore(A,$.firstChild);$.removeChild(A)}},nodeName:function($,_){return $.nodeName&&$.nodeName.toUpperCase()==_.toUpperCase()},cache:{},data:function(B,$,A){B=B==window?windowData:B;var _=B[expando];if(!_)_=B[expando]=++uuid;if($&&!jQuery.cache[_])jQuery.cache[_]={};if(A!==undefined)jQuery.cache[_][$]=A;return $?jQuery.cache[_][$]:_},removeData:function(B,A){B=B==window?windowData:B;var _=B[expando];if(A){if(jQuery.cache[_]){delete jQuery.cache[_][A];A="";for(A in jQuery.cache[_])break;if(!A)jQuery.removeData(B)}}else{try{delete B[expando]}catch($){if(B.removeAttribute)B.removeAttribute(expando)}delete jQuery.cache[_]}},each:function($,D,C){var E,_=0,B=$.length;if(C){if(B==undefined){for(E in $)if(D.apply($[E],C)===false)break}else for(;_<B;)if(D.apply($[_++],C)===false)break}else if(B==undefined){for(E in $)if(D.call($[E],E,$[E])===false)break}else for(var A=$[0];_<B&&D.call(A,_,A)!==false;A=$[++_]);return $},prop:function(A,$,_,B,C){if(jQuery.isFunction($))$=$.call(A,B);return $&&$.constructor==Number&&_=="curCSS"&&!exclude.test(C)?$+"px":$},className:{add:function($,_){jQuery.each((_||"").split(/\s+/),function(_,A){if($.nodeType==1&&!jQuery.className.has($.className,A))$.className+=($.className?" ":"")+A})},remove:function($,_){if($.nodeType==1)$.className=_!=undefined?jQuery.grep($.className.split(/\s+/),function($){return!jQuery.className.has(_,$)}).join(" "):""},has:function($,_){return jQuery.inArray(_,($.className||$).toString().split(/\s+/))>-1}},swap:function(A,B,_){var C={};for(var $ in B){C[$]=A.style[$];A.style[$]=B[$]}_.call(A);for($ in B)A.style[$]=C[$]},css:function(E,C,D){if(C=="width"||C=="height"){var B,_={position:"absolute",visibility:"hidden",display:"block"},A=C=="width"?["Left","Right"]:["Top","Bottom"];function $(){B=C=="width"?E.offsetWidth:E.offsetHeight;var $=0,_=0;jQuery.each(A,function(){$+=parseFloat(jQuery.curCSS(E,"padding"+this,true))||0;_+=parseFloat(jQuery.curCSS(E,"border"+this+"Width",true))||0});B-=Math.round($+_)}if(jQuery(E).is(":visible"))$();else jQuery.swap(E,_,$);return Math.max(0,B)}return jQuery.curCSS(E,C,D)},curCSS:function($,I,K){var D,_=$.style;function A(_){if(!jQuery.browser.safari)return false;var $=defaultView.getComputedStyle(_,null);return!$||$.getPropertyValue("color")==""}if(I=="opacity"&&jQuery.browser.msie){D=jQuery.attr(_,"opacity");return D==""?"1":D}if(jQuery.browser.opera&&I=="display"){var M=_.outline;_.outline="0 solid black";_.outline=M}if(I.match(/float/i))I=styleFloat;if(!K&&_&&_[I])D=_[I];else if(defaultView.getComputedStyle){if(I.match(/float/i))I="float";I=I.replace(/([A-Z])/g,"-$1").toLowerCase();var H=defaultView.getComputedStyle($,null);if(H&&!A($))D=H.getPropertyValue(I);else{var L=[],G=[],C=$,F=0;for(;C&&A(C);C=C.parentNode)G.unshift(C);for(;F<G.length;F++)if(A(G[F])){L[F]=G[F].style.display;G[F].style.display="block"}D=I=="display"&&L[G.length-1]!=null?"none":(H&&H.getPropertyValue(I))||"";for(F=0;F<L.length;F++)if(L[F]!=null)G[F].style.display=L[F]}if(I=="opacity"&&D=="")D="1"}else if($.currentStyle){var E=I.replace(/\-(\w)/g,function(_,$){return $.toUpperCase()});D=$.currentStyle[I]||$.currentStyle[E];if(!/^\d+(px)?$/i.test(D)&&/^\d/.test(D)){var J=_.left,B=$.runtimeStyle.left;$.runtimeStyle.left=$.currentStyle.left;_.left=D||0;D=_.pixelLeft+"px";_.left=J;$.runtimeStyle.left=B}}return D},clean:function($,A){var _=[];A=A||document;if(typeof A.createElement=="undefined")A=A.ownerDocument||A[0]&&A[0].ownerDocument||document;jQuery.each($,function(D,F){if(!F)return;if(F.constructor==Number)F+="";if(typeof F=="string"){F=F.replace(/(<(\w+)[^>]*?)\/>/g,function($,A,_){return _.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?$:A+"></"+_+">"});var E=jQuery.trim(F).toLowerCase(),B=A.createElement("div"),G=!E.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!E.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||E.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!E.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!E.indexOf("<td")||!E.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!E.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||jQuery.browser.msie&&[1,"div<div>","</div>"]||[0,"",""];B.innerHTML=G[1]+F+G[2];while(G[0]--)B=B.lastChild;if(jQuery.browser.msie){var $=!E.indexOf("<table")&&E.indexOf("<tbody")<0?B.firstChild&&B.firstChild.childNodes:G[1]=="<table>"&&E.indexOf("<tbody")<0?B.childNodes:[];for(var C=$.length-1;C>=0;--C)if(jQuery.nodeName($[C],"tbody")&&!$[C].childNodes.length)$[C].parentNode.removeChild($[C]);if(/^\s/.test(F))B.insertBefore(A.createTextNode(F.match(/^\s*/)[0]),B.firstChild)}F=jQuery.makeArray(B.childNodes)}if(F.length===0&&(!jQuery.nodeName(F,"form")&&!jQuery.nodeName(F,"select")))return;if(F[0]==undefined||jQuery.nodeName(F,"form")||F.options)_.push(F);else _=jQuery.merge(_,F)});return _},attr:function(D,E,$){if(!D||D.nodeType==3||D.nodeType==8)return undefined;var F=!jQuery.isXMLDoc(D),C=$!==undefined,B=jQuery.browser.msie;E=F&&jQuery.props[E]||E;if(D.tagName){var A=/href|src|style/.test(E);if(E=="selected"&&jQuery.browser.safari)D.parentNode.selectedIndex;if(E in D&&F&&!A){if(C){if(E=="type"&&jQuery.nodeName(D,"input")&&D.parentNode)throw"type property can't be changed";D[E]=$}if(jQuery.nodeName(D,"form")&&D.getAttributeNode(E))return D.getAttributeNode(E).nodeValue;return D[E]}if(B&&F&&E=="style")return jQuery.attr(D.style,"cssText",$);if(C)D.setAttribute(E,""+$);var _=B&&F&&A?D.getAttribute(E,2):D.getAttribute(E);return _===null?undefined:_}if(B&&E=="opacity"){if(C){D.zoom=1;D.filter=(D.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt($)+""=="NaN"?"":"alpha(opacity="+$*100+")")}return D.filter&&D.filter.indexOf("opacity=")>=0?(parseFloat(D.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}E=E.replace(/-([a-z])/ig,function(_,$){return $.toUpperCase()});if(C)D[E]=$;return D[E]},trim:function($){return($||"").replace(/^\s+|\s+$/g,"")},makeArray:function($){var _=[];if($!=null){var A=$.length;if(A==null||$.split||$.setInterval||$.call)_[0]=$;else while(A)_[--A]=$[A]}return _},inArray:function(A,_){for(var $=0,B=_.length;$<B;$++)if(_[$]===A)return $;return-1},merge:function($,C){var B=0,A,_=$.length;if(jQuery.browser.msie){while(A=C[B++])if(A.nodeType!=8)$[_++]=A}else while(A=C[B++])$[_++]=A;return $},unique:function(_){var E=[],C={};try{for(var $=0,D=_.length;$<D;$++){var B=jQuery.data(_[$]);if(!C[B]){C[B]=true;E.push(_[$])}}}catch(A){E=_}return E},grep:function(C,_,B){var A=[];for(var $=0,D=C.length;$<D;$++)if(!B!=!_(C[$],$))A.push(C[$]);return A},map:function(C,B){var A=[];for(var $=0,_=C.length;$<_;$++){var D=B(C[$],$);if(D!=null)A[A.length]=D}return A.concat.apply([],A)}});var userAgent=navigator.userAgent.toLowerCase();jQuery.browser={version:(userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(userAgent),opera:/opera/.test(userAgent),msie:/msie/.test(userAgent)&&!/opera/.test(userAgent),mozilla:/mozilla/.test(userAgent)&&!/(compatible|webkit)/.test(userAgent)};var styleFloat=jQuery.browser.msie?"styleFloat":"cssFloat";jQuery.extend({boxModel:!jQuery.browser.msie||document.compatMode=="CSS1Compat",props:{"for":"htmlFor","class":"className","float":styleFloat,cssFloat:styleFloat,styleFloat:styleFloat,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing"}});jQuery.each({parent:function($){return $.parentNode},parents:function($){return jQuery.dir($,"parentNode")},next:function($){return jQuery.nth($,2,"nextSibling")},prev:function($){return jQuery.nth($,2,"previousSibling")},nextAll:function($){return jQuery.dir($,"nextSibling")},prevAll:function($){return jQuery.dir($,"previousSibling")},siblings:function($){return jQuery.sibling($.parentNode.firstChild,$)},children:function($){return jQuery.sibling($.firstChild)},contents:function($){return jQuery.nodeName($,"iframe")?$.contentDocument||$.contentWindow.document:jQuery.makeArray($.childNodes)}},function($,_){jQuery.fn[$]=function($){var A=jQuery.map(this,_);if($&&typeof $=="string")A=jQuery.multiFilter($,A);return this.pushStack(jQuery.unique(A))}});jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function($,_){jQuery.fn[$]=function(){var $=arguments;return this.each(function(){for(var B=0,A=$.length;B<A;B++)jQuery($[B])[_](this)})}});jQuery.each({removeAttr:function($){jQuery.attr(this,$,"");if(this.nodeType==1)this.removeAttribute($)},addClass:function($){jQuery.className.add(this,$)},removeClass:function($){jQuery.className.remove(this,$)},toggleClass:function($){jQuery.className[jQuery.className.has(this,$)?"remove":"add"](this,$)},remove:function($){if(!$||jQuery.filter($,[this]).r.length){jQuery("*",this).add(this).each(function(){jQuery.event.remove(this);jQuery.removeData(this)});if(this.parentNode)this.parentNode.removeChild(this)}},empty:function(){jQuery(">*",this).remove();while(this.firstChild)this.removeChild(this.firstChild)}},function($,_){jQuery.fn[$]=function(){return this.each(_,arguments)}});jQuery.each(["Height","Width"],function($,_){var A=_.toLowerCase();jQuery.fn[A]=function($){return this[0]==window?jQuery.browser.opera&&document.body["client"+_]||jQuery.browser.safari&&window["inner"+_]||document.compatMode=="CSS1Compat"&&document.documentElement["client"+_]||document.body["client"+_]:this[0]==document?Math.max(Math.max(document.body["scroll"+_],document.documentElement["scroll"+_]),Math.max(document.body["offset"+_],document.documentElement["offset"+_])):$==undefined?(this.length?jQuery.css(this[0],A):null):this.css(A,$.constructor==String?$:$+"px")}});function num($,_){return $[0]&&parseInt(jQuery.curCSS($[0],_,true),10)||0}var chars=jQuery.browser.safari&&parseInt(jQuery.browser.version)<417?"(?:[\\w*_-]|\\\\.)":"(?:[\\w\u0128-\uffff*_-]|\\\\.)",quickChild=new RegExp("^>\\s*("+chars+"+)"),quickID=new RegExp("^("+chars+"+)(#)("+chars+"+)"),quickClass=new RegExp("^([#.]?)("+chars+"*)");jQuery.extend({expr:{"":function(_,$,A){return A[2]=="*"||jQuery.nodeName(_,A[2])},"#":function(_,$,A){return _.getAttribute("id")==A[2]},":":{lt:function(_,$,A){return $<A[3]-0},gt:function(_,$,A){return $>A[3]-0},nth:function(_,$,A){return A[3]-0==$},eq:function(_,$,A){return A[3]-0==$},first:function($,_){return _==0},last:function(B,A,$,_){return A==_.length-1},even:function($,_){return _%2==0},odd:function($,_){return _%2},"first-child":function($){return $.parentNode.getElementsByTagName("*")[0]==$},"last-child":function($){return jQuery.nth($.parentNode.lastChild,1,"previousSibling")==$},"only-child":function($){return!jQuery.nth($.parentNode.lastChild,2,"previousSibling")},parent:function($){return $.firstChild},empty:function($){return!$.firstChild},contains:function(_,$,A){return(_.textContent||_.innerText||jQuery(_).text()||"").indexOf(A[3])>=0},visible:function($){return"hidden"!=$.type&&jQuery.css($,"display")!="none"&&jQuery.css($,"visibility")!="hidden"},hidden:function($){return"hidden"==$.type||jQuery.css($,"display")=="none"||jQuery.css($,"visibility")=="hidden"},enabled:function($){return!$.disabled},disabled:function($){return $.disabled},checked:function($){return $.checked},selected:function($){return $.selected||jQuery.attr($,"selected")},text:function($){return"text"==$.type},radio:function($){return"radio"==$.type},checkbox:function($){return"checkbox"==$.type},file:function($){return"file"==$.type},password:function($){return"password"==$.type},submit:function($){return"submit"==$.type},image:function($){return"image"==$.type},reset:function($){return"reset"==$.type},button:function($){return"button"==$.type||jQuery.nodeName($,"button")},input:function($){return/input|select|textarea|button/i.test($.nodeName)},has:function(_,$,A){return jQuery.find(A[3],_).length},header:function($){return/h\d/i.test($.nodeName)},animated:function($){return jQuery.grep(jQuery.timers,function(_){return $==_.elem}).length}}},parse:[/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,new RegExp("^([:.#]*)("+chars+"+)")],multiFilter:function(C,$,D){var _,B=[];while(C&&C!=_){_=C;var A=jQuery.filter(C,$,D);C=A.t.replace(/^\s*,\s*/,"");B=D?$=A.r:jQuery.merge(B,A.r)}return B},find:function(R,S){if(typeof R!="string")return[R];if(S&&S.nodeType!=1&&S.nodeType!=9)return[];S=S||document;var U=[S],A=[],C,K;while(R&&C!=R){var Q=[];C=R;R=jQuery.trim(R);var O=false,N=quickChild,L=N.exec(R);if(L){K=L[1].toUpperCase();for(var G=0;U[G];G++)for(var F=U[G].firstChild;F;F=F.nextSibling)if(F.nodeType==1&&(K=="*"||F.nodeName.toUpperCase()==K))Q.push(F);U=Q;R=R.replace(N,"");if(R.indexOf(" ")==0)continue;O=true}else{N=/^([>+~])\s*(\w*)/i;if((L=N.exec(R))!=null){Q=[];var _={};K=L[2].toUpperCase();L=L[1];for(var M=0,E=U.length;M<E;M++){var B=L=="~"||L=="+"?U[M].nextSibling:U[M].firstChild;for(;B;B=B.nextSibling)if(B.nodeType==1){var J=jQuery.data(B);if(L=="~"&&_[J])break;if(!K||B.nodeName.toUpperCase()==K){if(L=="~")_[J]=true;Q.push(B)}if(L=="+")break}}U=Q;R=jQuery.trim(R.replace(N,""));O=true}}if(R&&!O)if(!R.indexOf(",")){if(S==U[0])U.shift();A=jQuery.merge(A,U);Q=U=[S];R=" "+R.substr(1,R.length)}else{var I=quickID,L=I.exec(R);if(L)L=[0,L[2],L[3],L[1]];else{I=quickClass;L=I.exec(R)}L[2]=L[2].replace(/\\/g,"");var H=U[U.length-1];if(L[1]=="#"&&H&&H.getElementById&&!jQuery.isXMLDoc(H)){var T=H.getElementById(L[2]);if((jQuery.browser.msie||jQuery.browser.opera)&&T&&typeof T.id=="string"&&T.id!=L[2])T=jQuery("[@id=\""+L[2]+"\"]",H)[0];U=Q=T&&(!L[3]||jQuery.nodeName(T,L[3]))?[T]:[]}else{for(G=0;U[G];G++){var $=L[1]=="#"&&L[3]?L[3]:L[1]!=""||L[0]==""?"*":L[2];if($=="*"&&U[G].nodeName.toLowerCase()=="object")$="param";Q=jQuery.merge(Q,U[G].getElementsByTagName($))}if(L[1]==".")Q=jQuery.classFilter(Q,L[2]);if(L[1]=="#"){var P=[];for(G=0;Q[G];G++)if(Q[G].getAttribute("id")==L[2]){P=[Q[G]];break}Q=P}U=Q}R=R.replace(I,"")}if(R){var D=jQuery.filter(R,Q);U=Q=D.r;R=jQuery.trim(D.t)}}if(R)U=[];if(U&&S==U[0])U.shift();A=jQuery.merge(A,U);return A},classFilter:function(D,B,A){B=" "+B+" ";var _=[];for(var $=0;D[$];$++){var C=(" "+D[$].className+" ").indexOf(B)>=0;if(!A&&C||A&&!C)_.push(D[$])}return _},filter:function(t,r,not){var last;while(t&&t!=last){last=t;var p=jQuery.parse,m;for(var i=0;p[i];i++){m=p[i].exec(t);if(m){t=t.substring(m[0].length);m[2]=m[2].replace(/\\/g,"");break}}if(!m)break;if(m[1]==":"&&m[2]=="not")r=isSimple.test(m[3])?jQuery.filter(m[3],r,true).r:jQuery(r).not(m[3]);else if(m[1]==".")r=jQuery.classFilter(r,m[2],not);else if(m[1]=="["){var tmp=[],type=m[3];for(var i=0,rl=r.length;i<rl;i++){var a=r[i],z=a[jQuery.props[m[2]]||m[2]];if(z==null||/href|src|selected/.test(m[2]))z=jQuery.attr(a,m[2])||"";if((type==""&&!!z||type=="="&&z==m[5]||type=="!="&&z!=m[5]||type=="^="&&z&&!z.indexOf(m[5])||type=="$="&&z.substr(z.length-m[5].length)==m[5]||(type=="*="||type=="~=")&&z.indexOf(m[5])>=0)^not)tmp.push(a)}r=tmp}else if(m[1]==":"&&m[2]=="nth-child"){var merge={},tmp=[],test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(m[3]=="even"&&"2n"||m[3]=="odd"&&"2n+1"||!/\D/.test(m[3])&&"0n+"+m[3]||m[3]),first=(test[1]+(test[2]||1))-0,last=test[3]-0;for(i=0,rl=r.length;i<rl;i++){var node=r[i],parentNode=node.parentNode,id=jQuery.data(parentNode);if(!merge[id]){var c=1;for(var n=parentNode.firstChild;n;n=n.nextSibling)if(n.nodeType==1)n.nodeIndex=c++;merge[id]=true}var add=false;if(first==0){if(node.nodeIndex==last)add=true}else if((node.nodeIndex-last)%first==0&&(node.nodeIndex-last)/first>=0)add=true;if(add^not)tmp.push(node)}r=tmp}else{var fn=jQuery.expr[m[1]];if(typeof fn=="object")fn=fn[m[2]];if(typeof fn=="string")fn=eval("false||function(a,i){return "+fn+";}");r=jQuery.grep(r,function($,_){return fn($,_,m,r)},not)}}return{r:r,t:t}},dir:function(A,$){var B=[],_=A[$];while(_&&_!=document){if(_.nodeType==1)B.push(_);_=_[$]}return B},nth:function(B,C,A,_){C=C||1;var $=0;for(;B;B=B[A])if(B.nodeType==1&&++$==C)break;return B},sibling:function($,_){var A=[];for(;$;$=$.nextSibling)if($.nodeType==1&&$!=_)A.push($);return A}});jQuery.event={add:function(C,D,_,B){if(C.nodeType==3||C.nodeType==8)return;if(jQuery.browser.msie&&C.setInterval)C=window;if(!_.guid)_.guid=this.guid++;if(B!=undefined){var $=_;_=this.proxy($,function(){return $.apply(this,arguments)});_.data=B}var A=jQuery.data(C,"events")||jQuery.data(C,"events",{}),E=jQuery.data(C,"handle")||jQuery.data(C,"handle",function(){if(typeof jQuery!="undefined"&&!jQuery.event.triggered)return jQuery.event.handle.apply(arguments.callee.elem,arguments)});E.elem=C;jQuery.each(D.split(/\s+/),function(D,$){var F=$.split(".");$=F[0];_.type=F[1];var B=A[$];if(!B){B=A[$]={};if(!jQuery.event.special[$]||jQuery.event.special[$].setup.call(C)===false)if(C.addEventListener)C.addEventListener($,E,false);else if(C.attachEvent)C.attachEvent("on"+$,E)}B[_.guid]=_;jQuery.event.global[$]=true});C=null},guid:1,global:{},remove:function(F,_,A){if(F.nodeType==3||F.nodeType==8)return;var E=jQuery.data(F,"events"),D,B;if(E){if(_==undefined||(typeof _=="string"&&_.charAt(0)==".")){for(var $ in E)this.remove(F,$+(_||""))}else{if(_.type){A=_.handler;_=_.type}jQuery.each(_.split(/\s+/),function(_,$){var B=$.split(".");$=B[0];if(E[$]){if(A)delete E[$][A.guid];else for(A in E[$])if(!B[1]||E[$][A].type==B[1])delete E[$][A];for(D in E[$])break;if(!D){if(!jQuery.event.special[$]||jQuery.event.special[$].teardown.call(F)===false)if(F.removeEventListener)F.removeEventListener($,jQuery.data(F,"handle"),false);else if(F.detachEvent)F.detachEvent("on"+$,jQuery.data(F,"handle"));D=null;delete E[$]}}})}for(D in E)break;if(!D){var C=jQuery.data(F,"handle");if(C)C.elem=null;jQuery.removeData(F,"events");jQuery.removeData(F,"handle")}}},trigger:function(A,_,B,H,F){_=jQuery.makeArray(_);if(A.indexOf("!")>=0){A=A.slice(0,-1);var $=true}if(!B){if(this.global[A])jQuery("*").add([window,document]).trigger(A,_)}else{if(B.nodeType==3||B.nodeType==8)return undefined;var D,J,I=jQuery.isFunction(B[A]||null),G=!_[0]||!_[0].preventDefault;if(G){_.unshift({type:A,target:B,preventDefault:function(){},stopPropagation:function(){},timeStamp:now()});_[0][expando]=true}_[0].type=A;if($)_[0].exclusive=true;var C=jQuery.data(B,"handle");if(C)D=C.apply(B,_);if((!I||(jQuery.nodeName(B,"a")&&A=="click"))&&B["on"+A]&&B["on"+A].apply(B,_)===false)D=false;if(G)_.shift();if(F&&jQuery.isFunction(F)){J=F.apply(B,D==null?_:_.concat(D));if(J!==undefined)D=J}if(I&&H!==false&&D!==false&&!(jQuery.nodeName(B,"a")&&A=="click")){this.triggered=true;try{B[A]()}catch(E){}}this.triggered=false}return D},handle:function(B){var F,D,A,E,_;B=arguments[0]=jQuery.event.fix(B||window.event);A=B.type.split(".");B.type=A[0];A=A[1];E=!A&&!B.exclusive;_=(jQuery.data(this,"events")||{})[B.type];for(var C in _){var $=_[C];if(E||$.type==A){B.handler=$;B.data=$.data;D=$.apply(this,arguments);if(F!==false)F=D;if(D===false){B.preventDefault();B.stopPropagation()}}}return F},fix:function(_){if(_[expando]==true)return _;var D=_;_={originalEvent:D};var C="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 timeStamp toElement type view wheelDelta which".split(" ");for(var $=C.length;$;$--)_[C[$]]=D[C[$]];_[expando]=true;_.preventDefault=function(){if(D.preventDefault)D.preventDefault();D.returnValue=false};_.stopPropagation=function(){if(D.stopPropagation)D.stopPropagation();D.cancelBubble=true};_.timeStamp=_.timeStamp||now();if(!_.target)_.target=_.srcElement||document;if(_.target.nodeType==3)_.target=_.target.parentNode;if(!_.relatedTarget&&_.fromElement)_.relatedTarget=_.fromElement==_.target?_.toElement:_.fromElement;if(_.pageX==null&&_.clientX!=null){var B=document.documentElement,A=document.body;_.pageX=_.clientX+(B&&B.scrollLeft||A&&A.scrollLeft||0)-(B.clientLeft||0);_.pageY=_.clientY+(B&&B.scrollTop||A&&A.scrollTop||0)-(B.clientTop||0)}if(!_.which&&((_.charCode||_.charCode===0)?_.charCode:_.keyCode))_.which=_.charCode||_.keyCode;if(!_.metaKey&&_.ctrlKey)_.metaKey=_.ctrlKey;if(!_.which&&_.button)_.which=(_.button&1?1:(_.button&2?3:(_.button&4?2:0)));return _},proxy:function(_,$){$.guid=_.guid=_.guid||$.guid||this.guid++;return $},special:{ready:{setup:function(){bindReady();return},teardown:function(){return}},mouseenter:{setup:function(){if(jQuery.browser.msie)return false;jQuery(this).bind("mouseover",jQuery.event.special.mouseenter.handler);return true},teardown:function(){if(jQuery.browser.msie)return false;jQuery(this).unbind("mouseover",jQuery.event.special.mouseenter.handler);return true},handler:function($){if(withinElement($,this))return true;$.type="mouseenter";return jQuery.event.handle.apply(this,arguments)}},mouseleave:{setup:function(){if(jQuery.browser.msie)return false;jQuery(this).bind("mouseout",jQuery.event.special.mouseleave.handler);return true},teardown:function(){if(jQuery.browser.msie)return false;jQuery(this).unbind("mouseout",jQuery.event.special.mouseleave.handler);return true},handler:function($){if(withinElement($,this))return true;$.type="mouseleave";return jQuery.event.handle.apply(this,arguments)}}}};jQuery.fn.extend({bind:function(A,_,$){return A=="unload"?this.one(A,_,$):this.each(function(){jQuery.event.add(this,A,$||_,$&&_)})},one:function($,B,A){var _=jQuery.event.proxy(A||B,function($){jQuery(this).unbind($,_);return(A||B).apply(this,arguments)});return this.each(function(){jQuery.event.add(this,$,_,A&&B)})},unbind:function($,_){return this.each(function(){jQuery.event.remove(this,$,_)})},trigger:function(A,_,$){return this.each(function(){jQuery.event.trigger(A,_,this,true,$)})},triggerHandler:function(A,_,$){return this[0]&&jQuery.event.trigger(A,_,this[0],false,$)},toggle:function(A){var _=arguments,$=1;while($<_.length)jQuery.event.proxy(A,_[$++]);return this.click(jQuery.event.proxy(A,function(A){this.lastToggle=(this.lastToggle||0)%$;A.preventDefault();return _[this.lastToggle++].apply(this,arguments)||false}))},hover:function(_,$){return this.bind("mouseenter",_).bind("mouseleave",$)},ready:function($){bindReady();if(jQuery.isReady)$.call(document,jQuery);else jQuery.readyList.push(function(){return $.call(this,jQuery)});return this}});jQuery.extend({isReady:false,readyList:[],ready:function(){if(!jQuery.isReady){jQuery.isReady=true;if(jQuery.readyList){jQuery.each(jQuery.readyList,function(){this.call(document)});jQuery.readyList=null}jQuery(document).triggerHandler("ready")}}});var readyBound=false;function bindReady(){if(readyBound)return;readyBound=true;if(document.addEventListener&&!jQuery.browser.opera)document.addEventListener("DOMContentLoaded",jQuery.ready,false);if(jQuery.browser.msie&&window==top)(function(){if(jQuery.isReady)return;try{document.documentElement.doScroll("left")}catch($){setTimeout(arguments.callee,0);return}jQuery.ready()})();if(jQuery.browser.opera)document.addEventListener("DOMContentLoaded",function(){if(jQuery.isReady)return;for(var $=0;$<document.styleSheets.length;$++)if(document.styleSheets[$].disabled){setTimeout(arguments.callee,0);return}jQuery.ready()},false);if(jQuery.browser.safari){var $;(function(){if(jQuery.isReady)return;if(document.readyState!="loaded"&&document.readyState!="complete"){setTimeout(arguments.callee,0);return}if($===undefined)$=jQuery("style, link[rel=stylesheet]").length;if(document.styleSheets.length!=$){setTimeout(arguments.callee,0);return}jQuery.ready()})()}jQuery.event.add(window,"load",jQuery.ready)}jQuery.each(("blur,focus,load,resize,scroll,unload,click,dblclick,"+"mousedown,mouseup,mousemove,mouseover,mouseout,change,select,"+"submit,keydown,keypress,keyup,error").split(","),function(_,$){jQuery.fn[$]=function(_){return _?this.bind($,_):this.trigger($)}});var withinElement=function($,A){var _=$.relatedTarget;while(_&&_!=A){try{_=_.parentNode}catch(B){_=A}}return _==A};jQuery(window).bind("unload",function(){jQuery("*").add(document).unbind()});jQuery.fn.extend({_load:jQuery.fn.load,load:function(_,D,A){if(typeof _!="string")return this._load(_);var E=_.indexOf(" ");if(E>=0){var C=_.slice(E,_.length);_=_.slice(0,E)}A=A||function(){};var $="GET";if(D)if(jQuery.isFunction(D)){A=D;D=null}else{D=jQuery.param(D);$="POST"}var B=this;jQuery.ajax({url:_,type:$,dataType:"html",data:D,complete:function(_,$){if($=="success"||$=="notmodified")B.htm(C?jQuery("<div/>").append(_.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(C):_.responseText);B.each(A,[_.responseText,$,_])},argument:argument});return this},serialize:function(){return jQuery.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return jQuery.nodeName(this,"form")?jQuery.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($,A){var _=jQuery(this).val();return _==null?null:_.constructor==Array?jQuery.map(_,function(_,$){return{name:A.name,value:_}}):{name:A.name,value:_}}).get()}});jQuery.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(_,$){jQuery.fn[$]=function(_){return this.bind($,_)}});var jsc=now();jQuery.extend({get:function(B,$,C,A,_){if(jQuery.isFunction($)){C=$;$=null}return jQuery.ajax({type:"GET",url:B,data:$,success:C,dataType:A,argument:_})},getScript:function(_,$){return jQuery.ajax({type:"GET",url:_,success:$,dataType:"script",scriptCharset:"UTF-8"})},getJSON:function(A,$,B,_){return jQuery.get(A,$,B,"json",_)},post:function(A,B,_,$){if(jQuery.isFunction(B)){_=B;B={}}return jQuery.ajax({type:"POST",url:A,data:B,success:_,dataType:$})},ajaxSetup:function($){jQuery.extend(jQuery.ajaxSettings,$)},ajaxSettings:{url:location.href,global:true,type:"GET",timeout:0,contentType:"application/x-www-form-urlencoded",processData:true,async:true,data:null,username:null,password:null,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(N){N=jQuery.extend(true,N,jQuery.extend(true,{},jQuery.ajaxSettings,N));var H,O=/=\?(&|$)/g,$,A,K=N.type.toUpperCase();if(N.data&&N.processData&&typeof N.data!="string")N.data=jQuery.param(N.data);if(N.dataType=="jsonp"){if(K=="GET"){if(!N.url.match(O))N.url+=(N.url.match(/\?/)?"&":"?")+(N.jsonp||"callback")+"=?"}else if(!N.data||!N.data.match(O))N.data=(N.data?N.data+"&":"")+(N.jsonp||"callback")+"=?";N.dataType="json"}if(N.dataType=="json"&&(N.data&&N.data.match(O)||N.url.match(O))){H="jsonp"+jsc++;if(N.data)N.data=(N.data+"").replace(O,"="+H+"$1");N.url=N.url.replace(O,"="+H+"$1");N.dataType="script";window[H]=function(_){A=_;P();G();window[H]=undefined;try{delete window[H]}catch($){}if(J)J.removeChild(L)}}if(N.dataType=="script"&&N.cache==null)N.cache=true;if(N.cache===false&&K=="GET"){var F=now(),E=N.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+F+"$2");N.url=E+((E==N.url)?(N.url.match(/\?/)?"&":"?")+"_="+F:"")}if(N.data&&K=="GET"){N.url+=(N.url.match(/\?/)?"&":"?")+N.data;N.data=null}if(N.global&&!jQuery.active++)jQuery.event.trigger("ajaxStart");var B=/^(?:\w+:)?\/\/([^\/?#]+)/;if(N.dataType=="script"&&K=="GET"&&B.test(N.url)&&B.exec(N.url)[1]!=location.host){var J=document.getElementsByTagName("head")[0],L=document.createElement("script");L.src=N.url;if(N.scriptCharset)L.charset=N.scriptCharset;if(!H){var _=false;L.onload=L.onreadystatechange=function(){if(!_&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){_=true;P();G();L.onload=L.onreadystatechange=null;J.removeChild(L)}}}J.appendChild(L);return undefined}var D=false,I=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();if(N.username)I.open(K,N.url,N.async,N.username,N.password);else I.open(K,N.url,N.async);try{if(N.data)I.setRequestHeader("Content-Type",N.contentType);if(N.ifModified)I.setRequestHeader("If-Modified-Since",jQuery.lastModified[N.url]||"Thu, 01 Jan 1970 00:00:00 GMT");I.setRequestHeader("X-Requested-With","XMLHttpRequest");I.setRequestHeader("Accept",N.dataType&&N.accepts[N.dataType]?N.accepts[N.dataType]+", */*":N.accepts._default)}catch(Q){}if(N.beforeSend&&N.beforeSend(I,N)===false){N.global&&jQuery.active--;I.abort();return false}if(N.global)jQuery.event.trigger("ajaxSend",[I,N]);var C=function(B){if(!D&&I&&(I.readyState==4||B=="timeout")){D=true;if(M){clearInterval(M);M=null}$=B=="timeout"&&"timeout"||!jQuery.httpSuccess(I)&&"error"||N.ifModified&&jQuery.httpNotModified(I,N.url)&&"notmodified"||"success";if($=="success"){try{A=jQuery.httpData(I,N.dataType,N.dataFilter)}catch(C){$="parsererror"}}if($=="success"){var _;try{_=I.getResponseHeader("Last-Modified")}catch(C){}if(N.ifModified&&_)jQuery.lastModified[N.url]=_;if(!H)P()}else jQuery.handleError(N,I,$);G();if(N.async)I=null}};if(N.async){var M=setInterval(C,13);if(N.timeout>0)setTimeout(function(){if(I){I.abort();if(!D)C("timeout")}},N.timeout)}try{I.send(N.data)}catch(Q){jQuery.handleError(N,I,null,Q)}if(!N.async)C();function P(){if(N.success)N.success(A,N.argument,$);if(N.global)jQuery.event.trigger("ajaxSuccess",[I,N])}function G(){if(N.complete)N.complete(I,$);if(N.global)jQuery.event.trigger("ajaxComplete",[I,N]);if(N.global&&!--jQuery.active)jQuery.event.trigger("ajaxStop")}return I},handleError:function(B,A,$,_){if(B.error)B.error(A,$,_);if(B.global)jQuery.event.trigger("ajaxError",[A,B,_])},active:0,httpSuccess:function(_){try{return!_.status&&location.protocol=="file:"||(_.status>=200&&_.status<300)||_.status==304||_.status==1223||jQuery.browser.safari&&_.status==undefined}catch($){}return false},httpNotModified:function($,A){try{var B=$.getResponseHeader("Last-Modified");return $.status==304||B==jQuery.lastModified[A]||jQuery.browser.safari&&$.status==undefined}catch(_){}return false},httpData:function(xhr,type,filter){var ct=xhr.getResponseHeader("content-type"),xml=type=="xml"||!type&&ct&&ct.indexOf("xml")>=0,data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.tagName=="parsererror")throw"parsererror";if(filter)data=filter(data,type);if(type=="script")jQuery.globalEval(data);if(type=="json")data=eval("("+data+")");return data},param:function(A){var _=[];if(A.constructor==Array||A.jquery)jQuery.each(A,function(){_.push(encodeURIComponent(this.name)+"="+encodeURIComponent(this.value))});else for(var $ in A)if(A[$]&&A[$].constructor==Array)jQuery.each(A[$],function(){_.push(encodeURIComponent($)+"="+encodeURIComponent(this))});else _.push(encodeURIComponent($)+"="+encodeURIComponent(jQuery.isFunction(A[$])?A[$]():A[$]));return _.join("&").replace(/%20/g,"+")}});jQuery.fn.extend({show:function($,_){return $?this.animate({height:"show",width:"show",opacity:"show"},$,_):this.filter(":hidden").each(function(){this.style.display=this.oldblock||"";if(jQuery.css(this,"display")=="none"){var $=jQuery("<"+this.tagName+"/>").appendTo("body");this.style.display=$.css("display");if(this.style.display=="none")this.style.display="block";$.remove()}}).end()},hide:function($,_){return $?this.animate({height:"hide",width:"hide",opacity:"hide"},$,_):this.filter(":visible").each(function(){this.oldblock=this.oldblock||jQuery.css(this,"display");this.style.display="none"}).end()},_toggle:jQuery.fn.toggle,toggle:function(_,$){return jQuery.isFunction(_)&&jQuery.isFunction($)?this._toggle.apply(this,arguments):_?this.animate({height:"toggle",width:"toggle",opacity:"toggle"},_,$):this.each(function(){jQuery(this)[jQuery(this).is(":hidden")?"show":"hide"]()})},slideDown:function($,_){return this.animate({height:"show"},$,_)},slideUp:function($,_){return this.animate({height:"hide"},$,_)},slideToggle:function($,_){return this.animate({height:"toggle"},$,_)},fadeIn:function($,_){return this.animate({opacity:"show"},$,_)},fadeOut:function($,_){return this.animate({opacity:"hide"},$,_)},fadeTo:function(A,_,$){return this.animate({opacity:_},A,$)},animate:function(B,C,A,_){var $=jQuery.speed(C,A,_);return this[$.queue===false?"each":"queue"](function(){if(this.nodeType!=1)return false;var _=jQuery.extend({},$),D,C=jQuery(this).is(":hidden"),A=this;for(D in B){if(B[D]=="hide"&&C||B[D]=="show"&&!C)return _.complete.call(this);if(D=="height"||D=="width"){_.display=jQuery.css(this,"display");_.overflow=this.style.overflow}}if(_.overflow!=null)this.style.overflow="hidden";_.curAnim=jQuery.extend({},B);jQuery.each(B,function(E,G){var $=new jQuery.fx(A,_,E);if(/toggle|show|hide/.test(G))$[G=="toggle"?C?"show":"hide":G](B);else{var H=G.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),D=$.cur(true)||0;if(H){var I=parseFloat(H[2]),F=H[3]||"px";if(F!="px"){A.style[E]=(I||1)+F;D=((I||1)/$.cur(true))*D;A.style[E]=D+F}if(H[1])I=((H[1]=="-="?-1:1)*I)+D;$.custom(D,I,F)}else $.custom(D,G,"")}});return true})},queue:function($,_){if(jQuery.isFunction($)||($&&$.constructor==Array)){_=$;$="fx"}if(!$||(typeof $=="string"&&!_))return queue(this[0],$);return this.each(function(){if(_.constructor==Array)queue(this,$,_);else{queue(this,$).push(_);if(queue(this,$).length==1)_.call(this)}})},stop:function($,A){var _=jQuery.timers;if($)this.queue([]);this.each(function(){for(var $=_.length-1;$>=0;$--)if(_[$].elem==this){if(A)_[$](true);_.splice($,1)}});if(!A)this.dequeue();return this}});var queue=function(A,$,_){if(A){$=$||"fx";var B=jQuery.data(A,$+"queue");if(!B||_)B=jQuery.data(A,$+"queue",jQuery.makeArray(_))}return B};jQuery.fn.dequeue=function($){$=$||"fx";return this.each(function(){var _=queue(this,$);_.shift();if(_.length)_[0].call(this)})};jQuery.extend({speed:function(B,A,$){var _=B&&B.constructor==Object?B:{complete:$||!$&&A||jQuery.isFunction(B)&&B,duration:B,easing:$&&A||A&&A.constructor!=Function&&A};_.duration=(_.duration&&_.duration.constructor==Number?_.duration:jQuery.fx.speeds[_.duration])||jQuery.fx.speeds.def;_.old=_.complete;_.complete=function(){if(_.queue!==false)jQuery(this).dequeue();if(jQuery.isFunction(_.old))_.old.call(this)};return _},easing:{linear:function($,A,_,B){return _+B*$},swing:function($,A,_,B){return((-Math.cos($*Math.PI)/2)+0.5)*B+_}},timers:[],timerId:null,fx:function(_,$,A){this.options=$;this.elem=_;this.prop=A;if(!$.orig)$.orig={}}});jQuery.fx.prototype={update:function(){if(this.options.step)this.options.step.call(this.elem,this.now,this);(jQuery.fx.step[this.prop]||jQuery.fx.step._default)(this);if(this.prop=="height"||this.prop=="width")this.elem.style.display="block"},cur:function(_){if(this.elem[this.prop]!=null&&this.elem.style[this.prop]==null)return this.elem[this.prop];var $=parseFloat(jQuery.css(this.elem,this.prop,_));return $&&$>-10000?$:parseFloat(jQuery.curCSS(this.elem,this.prop))||0},custom:function(B,A,C){this.startTime=now();this.start=B;this.end=A;this.unit=C||this.unit||"px";this.now=this.start;this.pos=this.state=0;this.update();var _=this;function $($){return _.step($)}$.elem=this.elem;jQuery.timers.push($);if(jQuery.timerId==null)jQuery.timerId=setInterval(function(){var $=jQuery.timers;for(var _=0;_<$.length;_++)if(!$[_]())$.splice(_--,1);if(!$.length){clearInterval(jQuery.timerId);jQuery.timerId=null}},13)},show:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.show=true;this.custom(0,this.cur());if(this.prop=="width"||this.prop=="height")this.elem.style[this.prop]="1px";jQuery(this.elem).show()},hide:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(B){var D=now();if(B||D>this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var A=true;for(var $ in this.options.curAnim)if(this.options.curAnim[$]!==true)A=false;if(A){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(jQuery.css(this.elem,"display")=="none")this.elem.style.display="block"}if(this.options.hide)this.elem.style.display="none";if(this.options.hide||this.options.show)for(var _ in this.options.curAnim)jQuery.attr(this.elem.style,_,this.options.orig[_])}if(A)this.options.complete.call(this.elem);return false}else{var C=D-this.startTime;this.state=C/this.options.duration;this.pos=jQuery.easing[this.options.easing||(jQuery.easing.swing?"swing":"linear")](this.state,C,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};jQuery.extend(jQuery.fx,{speeds:{slow:600,fast:200,def:400},step:{scrollLeft:function($){$.elem.scrollLeft=$.now},scrollTop:function($){$.elem.scrollTop=$.now},opacity:function($){jQuery.attr($.elem.style,"opacity",$.now)},_default:function($){$.elem.style[$.prop]=$.now+$.unit}}});jQuery.fn.offset=function(){var left=0,top=0,elem=this[0],results;if(elem)with(jQuery.browser){var parent=elem.parentNode,offsetChild=elem,offsetParent=elem.offsetParent,doc=elem.ownerDocument,safari2=safari&&parseInt(version)<522&&!/adobeair/i.test(userAgent),css=jQuery.curCSS,fixed=css(elem,"position")=="fixed";if(elem.getBoundingClientRect){var box=elem.getBoundingClientRect();add(box.left+Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),box.top+Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));add(-doc.documentElement.clientLeft,-doc.documentElement.clientTop)}else{add(elem.offsetLeft,elem.offsetTop);while(offsetParent){add(offsetParent.offsetLeft,offsetParent.offsetTop);if(mozilla&&!/^t(able|d|h)$/i.test(offsetParent.tagName)||safari&&!safari2)border(offsetParent);if(!fixed&&css(offsetParent,"position")=="fixed")fixed=true;offsetChild=/^body$/i.test(offsetParent.tagName)?offsetChild:offsetParent;offsetParent=offsetParent.offsetParent}while(parent&&parent.tagName&&!/^body|html$/i.test(parent.tagName)){if(!/^inline|table.*$/i.test(css(parent,"display")))add(-parent.scrollLeft,-parent.scrollTop);if(mozilla&&css(parent,"overflow")!="visible")border(parent);parent=parent.parentNode}if((safari2&&(fixed||css(offsetChild,"position")=="absolute"))||(mozilla&&css(offsetChild,"position")!="absolute"))add(-doc.body.offsetLeft,-doc.body.offsetTop);if(fixed)add(Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),Math.max(doc.documentElement.scrollTop,doc.body.scrollTop))}results={top:top,left:left}}function border($){add(jQuery.curCSS($,"borderLeftWidth",true),jQuery.curCSS($,"borderTopWidth",true))}function add(_,$){left+=parseInt(_,10)||0;top+=parseInt($,10)||0}return results};jQuery.fn.extend({position:function(){var B=0,$=0,A;if(this[0]){var D=this.offsetParent(),C=this.offset(),_=/^body|html$/i.test(D[0].tagName)?{top:0,left:0}:D.offset();C.top-=num(this,"marginTop");C.left-=num(this,"marginLeft");_.top+=num(D,"borderTopWidth");_.left+=num(D,"borderLeftWidth");A={top:C.top-_.top,left:C.left-_.left}}return A},offsetParent:function(){var $=this[0].offsetParent;while($&&(!/^body|html$/i.test($.tagName)&&jQuery.css($,"position")=="static"))$=$.offsetParent;return jQuery($)}});jQuery.each(["Left","Top"],function($,_){var A="scroll"+_;jQuery.fn[A]=function(_){if(!this[0])return;return _!=undefined?this.each(function(){this==window||this==document?window.scrollTo(!$?_:jQuery(window).scrollLeft(),$?_:jQuery(window).scrollTop()):this[A]=_}):this[0]==window||this[0]==document?self[$?"pageYOffset":"pageXOffset"]||jQuery.boxModel&&document.documentElement[A]||document.body[A]:this[0][A]}});jQuery.each(["Height","Width"],function(A,B){var _=A?"Left":"Top",$=A?"Right":"Bottom";jQuery.fn["inner"+B]=function(){return this[B.toLowerCase()]()+num(this,"padding"+_)+num(this,"padding"+$)};jQuery.fn["outer"+B]=function(A){return this["inner"+B]()+num(this,"border"+_+"Width")+num(this,"border"+$+"Width")+(A?num(this,"margin"+_)+num(this,"margin"+$):0)}})})();function mAjax(_){if(typeof _.type=="undefined")_.type="POST";if(typeof _.cache=="undefined")_.cache=false;if(typeof _.error=="undefined")if(typeof _.success!="undefined")_.error=_.success;$.ajax(_)}function mAjaxDom(_,B,A){if(B!=null){if(_.indexOf("?")==-1)_+="?";else _+="&";_+="mCallBack="+B;if(A!=null)_+="&arg="+A}_+="&b=?";$.ajax({url:_,dataType:"json"})}var strMainSiteUrl="http://www.frface.com",strSiteDomain="frface.com",loadImg="<img src=\""+strMainSiteUrl+"/s/images/loading.gif\"/> ";function Tip(_){if(_==""||_==null)_="\u6b63\u5728\u64cd\u4f5c\uff0c\u8bf7\u7a0d\u540e";var $=MidPosition(220,40);CreateDiv("pageTipBg",$.left-5,$.top-5);CreateDiv("pageTip",$.left,$.top);var A="opacity:0.14;";if(Jbb.browser.IE)A="filter:alpha(opacity=14);";m$("pageTipBg").innerHTML="<div style=\"width:220px;height:40px;padding:5px;"+A+"\">"+"</div>";m$("pageTip").innerHTML="<img src=\""+strMainSiteUrl+"/s/images/loading1.gif\"/><br />"+"<div style=\"line-height:18px;padding:3px 0 0 7px;\" class=\"s12 cRed\">"+_+"..."+"</div>";m$("pageTipBg").style.zIndex=(++floatZIndex);m$("pageTip").style.zIndex=(++floatZIndex);ShowBox("pageTipBg");ShowBox("pageTip")}function CloseTip(){if(m$("pageTipBg")){HideBox("pageTipBg");HideBox("pageTip")}}function JbbConfig_OverFunBox(){return{dragH:27,margin:7,border:1,boxHTML:"<div style=\"background-color:#fff5f8;\">"+"{#drag}"+"<div style=\"margin:0 7px;width:{#width}px;height:{#height}px;background:#fff;border:#ffd2de 1px solid;overflow:auto;word-break:break-all;\">"+"{#innerHTML}"+"</div>"+"<div style=\"border-top:#fff5f8 7px solid;\">"+"</div>"+"</div>",dragHTML:"<div id=\"overFunBoxDrag\" style=\"height:27px;\">"+"<div style=\"height:19px;float:left;padding:6px 0 0 5px;font-size:14px;font-weight:bold;color:#F3709A;\">{#title}"+"</div>"+"<div style=\"float:right;margin:8px 8px 0 0;\">{#closeBtn}"+"</div>"+"</div>",notTitDragHTML:"<div id=\"overFunBoxDrag\" style=\"height:7px;overflow:hidden;\"></div>"}}function Addjquery(){var $=document.createElement("script");$.setAttribute("language","javascript");$.setAttribute("type","text/javascript");$.setAttribute("src",strMainSiteUrl+"/s/js/jquery.js");document.getElementsByTagName("head")[0].appendChild($)}var AOnClick="<a href=\"javascript:void(0)\" onclick=\"",floatZIndex=10000,isJsToCookie=true;function testCookie(){document.cookie="TestCookie=ok;expires="+new Date((new Date()).getTime()+5000).toGMTString()+";path=/;"}testCookie();function testCookie1(){if(document.cookie.indexOf("TestCookie=ok")==-1)isJsToCookie=false}testCookie1();if(IDsOfSelectHTMLComponent==undefined)var IDsOfSelectHTMLComponent=[];var Jbb={};m$=function($){return"string"==typeof $?document.getElementById($):$};Jbb.browser=(function(){var $=navigator.userAgent.toLowerCase();return{VERSION:$.match(/(msie|firefox|webkit|opera)[\/:\s](\d+)/)?RegExp.$2:"0",IE:($.indexOf("msie")>-1&&$.indexOf("opera")==-1),IE6:(window.XMLHttpRequest)?false:true,IE7:(window.XMLHttpRequest&&!!window.ActiveXObject),GECKO:($.indexOf("gecko")>-1&&$.indexOf("khtml")==-1),WEBKIT:($.indexOf("applewebkit")>-1),OPERA:($.indexOf("opera")>-1)}})();if(!Jbb.browser.IE)HTMLElement.prototype.click=function(){var $=this.ownerDocument.createEvent("MouseEvents");$.initMouseEvent("click",true,true,this.ownerDocument.defaultView,1,0,0,0,0,false,false,false,false,0,null);this.dispatchEvent($)};if(!window.attachEvent&&window.addEventListener){HTMLDocument.prototype.attachEvent=HTMLElement.prototype.attachEvent=function(B,A,_){var $=_?true:false;this.addEventListener(B.toLowerCase().substr(2),A,$)};if(typeof Window!="undefined")Window.prototype.attachEvent=HTMLDocument.prototype.attachEvent}if(!window.detachEvent&&window.removeEventListener){HTMLDocument.prototype.detachEvent=HTMLElement.prototype.detachEvent=function(B,A,_){var $=_?true:false;this.removeEventListener(B.toLowerCase().substr(2),A,$)};if(typeof Window!="undefined")Window.prototype.detachEvent=HTMLDocument.prototype.detachEvent}function StopEvDefault(){StopPropagation();var $=GetEv();if($.preventDefault)$.preventDefault();else $.returnValue=false}function StopPropagation(){var $=GetEv();if($.stopPropagation)$.stopPropagation();else $.cancelBubble=true}function GetStyle(obj,styleName){var myObj=typeof obj=="string"?document.getElementById(obj):obj;if(Jbb.browser.IE)return eval("myObj.currentStyle."+styleName);else return eval("document.defaultView.getComputedStyle(myObj,null)."+styleName)}function mConfirm(str,strExec,w,h){if(confirm(str))eval(strExec)}function CopyStr($,_){if(Jbb.browser.IE){window.clipboardData.setData("text",$);alert(_)}else alert("\u60a8\u7684\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u6b64\u590d\u5236\u65b9\u5f0f\uff0c\u8bf7\u4f7f\u7528Ctrl+C\u6216\u9f20\u6807\u53f3\u952e\u590d\u5236")}function GetRandom(B,_){var $=_-B,A=Math.random();return(B+Math.round(A*$))}Jbb.util={getDocumentElement:function($){$=$||document;return($.compatMode!="CSS1Compat")?$.body:$.documentElement},getScrollPos:function(){var A,_;if(Jbb.browser.IE||Jbb.browser.OPERA){var $=this.getDocumentElement();A=$.scrollLeft;_=$.scrollTop}else{A=window.scrollX;_=window.scrollY}return{left:A,top:_}}};function GetEv(){if(Jbb.browser.IE)return window.event;func=GetEv.caller;while(func!=null){var $=func.arguments[0];if($)if(($.constructor==Event||$.constructor==MouseEvent)||(typeof($)=="object"&&$.preventDefault&&$.stopPropagation))return $;func=func.caller}return null}function GetEvObj(){var $=GetEv();return $.srcElement?$.srcElement:$.target}function MidPosition(B,_,$){var A=document.documentElement.scrollTop;if(!Jbb.browser.IE&&$)A=0;var D=((((document.documentElement.clientHeight+16-_)/2)-20)+A),C=(document.documentElement.clientWidth+16-B)/2;return{top:D,left:C}}function MousePosition(){var $=GetEv();if($.pageX||$.pageY)return{x:$.pageX,y:$.pageY};else return{x:$.clientX+document.documentElement.scrollLeft-document.documentElement.clientLeft,y:$.clientY+document.documentElement.scrollTop-document.documentElement.clientTop}}function URIComponentEncode($){if($!=null&&$!=""){$=encodeURIComponent($).replace(/~/ig,"%7e");var A=new RegExp("%[A-F0-9]{2}","g"),_=$.match(A);if(_!=null)for(var B=0;B<_.length;B++)$=$.replace(_[B],_[B].toLowerCase())}return $}function URIComponentDecode($){if($!=null)$=decodeURIComponent($);return $}String.prototype.URIComponentEncode=function(){return URIComponentEncode(this)};String.prototype.URIComponentDecode=function(){return URIComponentDecode(this)};function HtmlEncode($){if($!=null&&$!="")$=$.replace(/&/ig,"&amp;").replace(/</ig,"&lt;").replace(/>/ig,"&gt;").replace(/\"/ig,"&quot;").replace(/\r\n/ig,"<br/>").replace(/\r/ig,"<br/>").replace(/\n/ig,"<br/>").replace(/ /ig,"&nbsp;").replace(/\t/ig,"&nbsp;&nbsp;&nbsp;&nbsp;").replace(/\'/ig,"&#39;").replace(/\\/ig,"&#92;");return $}function HtmlDecode($){if($!=null&&$!="")$=$.replace(/&#92;/ig,"\\").replace(/&#39;/ig,"'").replace(/&nbsp;/ig," ").replace(/<br\/>/ig,"\r\n").replace(/<br>/ig,"\r\n").replace(/&quot;/ig,"\"").replace(/&gt;/ig,">").replace(/&lt;/ig,"<").replace(/&amp;/ig,"&");return $}String.prototype.HtmlEncode=function(){return HtmlEncode(this)};String.prototype.HtmlDecode=function(){return HtmlDecode(this)};function EncodeUnicode(_){if(_!=null&&_!=""){_=_.replace(/\r\n/ig,"\n").replace(/\r/ig,"\n").replace(/\n/ig,"\r\n");_=escape(_);var C=new RegExp("%[A-F0-9]{2}","g"),A=_.match(C);if(A!=null)for(var D=0;D<A.length;D++)_=_.replace(A[D],A[D].toLowerCase());var $=new RegExp("%u[A-F0-9]{4}","g"),B=_.match($);if(B!=null)for(D=0;D<B.length;D++)_=_.replace(B[D],B[D].toLowerCase());_=_.replace(/\*/ig,"%2a").replace(/\./ig,"%2e").replace(/-/ig,"%2d").replace(/_/ig,"%5f").replace(/\+/ig,"%2b").replace(/\//ig,"%2f").replace(/@/ig,"%40")}return _}function DecodeUnicode($){if($!=null)$=unescape($);return $}String.prototype.EncodeUnicode=function(){return EncodeUnicode(this)};String.prototype.DecodeUnicode=function(){return DecodeUnicode(this)};function AjaxEncode($){if($!=null)$=EncodeUnicode($).replace(new RegExp("(?:%(?!u)([89a-f]{1})([a-f0-9]{1}))","gi"),"%u00$1$2");return $}String.prototype.AjaxEncode=function(){return AjaxEncode(this)};function EncodeJson($){if($!=null)$=$.replace(/\n|\r|\t|\\|\'|\"/g,function($){return("\r"==$)?"&j0d;":("\t"==$)?"&j09;":("\n"==$)?"&j0a;":("'"==$)?"&j27;":("\""==$)?"&j22;":("\\"==$)?"&j5c;":""});return $}function DecodeJson($){if($!=null)$=$.replace(/&j(0d|09|0a|27|22|5c);/g,function($){return("&j0d;"==$)?"\r":("&j09;"==$)?"\t":("&j0a;"==$)?"\n":("&j27;"==$)?"'":("&j22;"==$)?"\"":("&j5c;"==$)?"\\":""}).replace(/%25/g,"%");return $}String.prototype.EncodeJson=function(){return EncodeJson(this)};String.prototype.DecodeJson=function(){return DecodeJson(this)};function GetURL(){return window.document.location.href}function GetUrlParms(){var C=new Object(),B=location.search.substring(1),_=B.split("&");for(var F=0;F<_.length;F++){var E=_[F].indexOf("=");if(E==-1)continue;var A=_[F].substring(0,E),D=_[F].substring(E+1);try{C[A]=URIComponentDecode(D)}catch($){C[A]=D}}return C}function IsStrMatching($,A){if($!=0&&($==null||$==""))return false;switch(A){case 1:var _=/[^0-9]/;if(_.exec($)==null)return true;return false;case 2:_=/[^A-Za-z]/;if(_.exec($)==null)return true;return false;case 3:_=/[^A-Za-z0-9]/;if(_.exec($)==null)return true;return false;case 4:_=/[^0-9-_]/;if(_.exec($)==null)return true;return false;case 5:_=/[^A-Za-z0-9-_]/;if(_.exec($)==null)return true;return false;case 6:_=/[^\u4E00-\u9FA5]/;if(_.exec($)==null)return true;return false;case 7:_=/[\u4E00-\u9FA5]/;if(_.test($))return true;return false;default:return false}}String.prototype.Trim=function(){return this.replace(/(^\s+)|\s+$/g,"")};String.prototype.Money=function(){try{var $=this.split(".")[1];return parseInt(this)+"."+$.substr(0,2)}catch(_){return this}};String.prototype.SetCharAt=function(_,$){var A=new RegExp("([\\s\\S]{"+$+"})[\\s\\S]([\\s\\S]*)");return this.replace(A,"$1"+_+"$2")};function GetSubStrNum(_,$){var A=_.split($);return A.length-1}function StringDimension($){aMatch=$.match(/[^\x00-\x80]/g);return $.length+(!aMatch?0:aMatch.length)}function GetNowTime1970(){today=new Date();return today.getTime()}function GetNowTime(){var $=new Date();return $.getFullYear()+"-"+($.getMonth()+1)+"-"+$.getDate()+" "+$.getHours()+":"+$.getMinutes()+":"+$.getSeconds()}function StrTimeToArray(A){var $=new Array(6),C=A.split(" "),B=C[0].split("-"),_=C[1].split(":");$[0]=B[0];$[1]=B[1];$[2]=B[2];$[3]=_[0];$[4]=_[1];$[5]=_[2];return $}function StrTimeTo1970(_){var $=StrTimeToArray(_),A=new Date($[0],($[1]-1),$[2],$[3],$[4],$[5]);return Date.parse(A)}function N1970ToStrTime(_){var $=new Date();$.setTime(_);return $.getFullYear()+"-"+($.getMonth()+1)+"-"+$.getDate()+" "+$.getHours()+":"+$.getMinutes()+":"+$.getSeconds()}function CreateStyleOnHead($,A){var _=document.createElement("style");_.id=$;_.setAttribute("type","text/css");if(_.styleSheet)_.styleSheet.cssText=A;else _.appendChild(document.createTextNode(A));document.getElementsByTagName("head")[0].appendChild(_)}isJsToCookie=false;function testCookie(){document.cookie="TestCookie=ok;expires="+new Date((new Date()).getTime()+5000).toGMTString()+";path=/;"}testCookie();function testCookie1(){if(document.cookie.indexOf("TestCookie=ok")!=-1)isJsToCookie=true}testCookie1();function CookieExpires($){if($!=0){var _=new Date((new Date()).getTime()+$*1000).toGMTString();if($==1)_=new Date((new Date()).getTime()+315360000*1000).toGMTString();return";expires="+_}else return""}function CookieDomain($){if($==""||$==null)return";domain=."+strSiteDomain;else return";domain="+$}function CookiePath($){if($==""||$==null)return";path=/";else return";path="+$}function SetCookieObj_Edit($,D,A,_,B){if($==""||$==null)alert("\u201cstrCookieName\u201d\u4e0d\u53ef\u4e3a\u7a7a");if(D==null)alert("\u201cstrValue\u201d\u4e0d\u53ef\u4e3a\u7a7a");if(A==""||A==null)alert("\u201ciExpires\u201d\u4e0d\u53ef\u4e3a\u7a7a");var C=$.Trim()+"="+D+CookieExpires(A)+CookieDomain(_)+CookiePath(B);document.cookie=C}function GetCookieObjNum(){var $=document.cookie;if($=="")return 0;var _=$.split(";");return _.length}function GetCookieObjValue($){var _=document.cookie;if(_=="")return"CookieNonexistence";var E=_.split(";");for(var F=0;F<E.length;F++){var D=E[F].Trim();if(D==$||D==$+"=")return"";var B=D.indexOf($+"=");if(B==0){var A=D.replace($+"=",""),C=A.indexOf("=");if(C==-1)return DecodeUnicode(A);else return A}}return"CookieNonexistence"}function GetCookieObjValueFromI(E){var _=document.cookie;if(_=="")return"CookieNonexistence";var D=_.split(";"),C=D[E].Trim(),$=D.split("="),B=C.indexOf($[0]+"=");if(B!=0)return"";var A=C.replace($[0]+"=",""),B=A.indexOf("=");if(B==-1)return DecodeUnicode(A);else return A}function GetCookieObjNameFromI(C){var _=document.cookie;if(_=="")return"CookieNonexistence";var B=_.split(";"),A=B[C].Trim(),$=B.split("=");return $[0]}function GetCookieKeyNum($){var _=document.cookie;if(_=="")return"CookieNonexistence";var E=_.split(";");for(var F=0;F<E.length;F++){var D=E[F].Trim(),B=D.indexOf($);if(B==0){var C=D.indexOf($+"=");if(C!=0)return"0";var A=D.replace($+"=",""),C=A.indexOf("=");if(C==-1)return 0;else return GetSubStrNum(A,"=")}}return"CookieNonexistence"}function GetCookieKeyValue($,B){var A=GetCookieObjValue($).Trim();if(A=="CookieNonexistence")return"CookieNonexistence";if(B!=null){var D=A.split("&");for(var E=0;E<D.length;E++){var F=D[E].split("=");if(B==F[0])return DecodeUnicode(F[1])}return"KeyNonexistence"}else{var C=A.indexOf("=");if(C==-1)return"KeyValueNonexistence";else{var D=A.split("&"),_=new Array(D.length);for(var G=0;G<D.length;G++){_[G]=new Array(2);F=D[G].split("=");_[G][0]=F[0];_[G][1]=DecodeUnicode(F[1])}return _}}}function GetCookieKeyValueFromI($,D){var A=GetCookieObjValue($).Trim();if(A=="CookieNonexistence")return"CookieNonexistence";try{var B=A.split("&"),C=B[D].split("=");return DecodeUnicode(C[1])}catch(_){return"KeyNonexistence"}}function GetCookieKeyNameFromI($,D){var A=GetCookieObjValue($).Trim();if(A=="CookieNonexistence")return"CookieNonexistence";try{var B=A.split("&"),C=B[D].split("=");return DecodeUnicode(C[0])}catch(_){return"KeyNonexistence"}}function SetCookieObj_Value($,D,A,_,B){if($==""||$==null)alert("\u201cstrCookieName\u201d\u4e0d\u53ef\u4e3a\u7a7a");if(A==""||A==null)alert("\u201ciExpires\u201d\u4e0d\u53ef\u4e3a\u7a7a");var C=$.Trim()+"="+EncodeUnicode((D+"").Trim())+CookieExpires(A)+CookieDomain(_)+CookiePath(B);document.cookie=C}function SetCookieObj_Key($,F,A,_,C){if($==""||$==null){alert("\u201cstrCookieName\u201d\u4e0d\u53ef\u4e3a\u7a7a");return}for(var H=0;H<F.length;H++){if(F[H].keyName==""||F[H].keyName==null){alert("\u201ckeyName\u201d\u4e0d\u53ef\u4e3a\u7a7a");return}if(F[H].keyValue==null){alert("\u201cKeyValue\u201d\u4e0d\u53ef\u4e3a\u7a7a");return}}if(A==""||A==null){alert("\u201ciExpires\u201d\u4e0d\u53ef\u4e3a\u7a7a");return}var E="";for(H=0;H<F.length;H++){var B=F[H].keyName.Trim(),G=EncodeUnicode(F[H].keyValue.Trim());E+=B;E+="=";E+=G;if(H==F.length-1)break;E+="&"}var D=$.Trim()+"="+E+CookieExpires(A)+CookieDomain(_)+CookiePath(C);document.cookie=D}function EditCookieKey(_,D,B,A){var $=GetCookieKeyValue(_,D);if($=="CookieNonexistence")return"CookieNonexistence";var C=GetCookieObjValue(_);if($!="KeyNonexistence"){var $=GetCookieKeyValue(_,D),F=D+"="+EncodeUnicode($),E=C.indexOf("&"+F);if(E==-1){C=C.replace(F+"&","");C=C.replace(F,"")}else C=C.replace("&"+F,"")}if(C==""){C+=D+"=";C+=EncodeUnicode((B+"").Trim())}else{C+="&"+D+"=";C+=EncodeUnicode((B+"").Trim())}SetCookieObj_Edit(_,C,A);return"success"}function AddCookieKey($,B,A,_){if(EditCookieKey($,B,A,_)=="CookieNonexistence")SetCookieObj_Value($,"",1);EditCookieKey($,B,A,_)}function DelCookie($){var _=GetCookieObjValue($);if(_=="CookieNonexistence")return;SetCookieObj_Value($,"",-1)}function ClearCookie(E){var _=document.cookie;if(_=="")return"CookieNonexistence";var C=_.split(";");if(E==null)E="";var $=E.split(",");for(var F=0;F<C.length;F++){var A=C[F].Trim(),B=(A.split("="))[0];for(var D=0;D<$.length;D++)if(B==$[D])continue;DelCookie(B)}}function DelCookieKey(_,D,A){var $=GetCookieKeyValue(_,D);if($=="CookieNonexistence")return"CookieNonexistence";if($=="KeyNonexistence")return"KeyNonexistence";else{var B=GetCookieKeyValue(_,D),F=D+"="+EncodeUnicode(B),G="",C=GetCookieObjValue(_),E=C.indexOf("&"+F);if(E==-1){G=C.replace(F+"&","");G=G.replace(F,"")}else G=C.replace("&"+F,"");SetCookieObj_Edit(_,G,A);return"success"}}function DelCookieKeyFromI($,A,_){DelCookieKey($,GetCookieKeyNameFromI($,A),_)}function JsonLength(_){var $=0;for(var A in _)$++;return $}Json={encode:function(A){switch(typeof(A)){case"object":var $=[];if(A instanceof Array){for(var C=0,B=A.length;C<B;C++)$.push(arguments.callee(A[C]));return"["+$.join(",")+"]"}else if(A instanceof RegExp)return A.toString();else{for(var _ in A)$.push(_+":"+arguments.callee(A[_]));return"{"+$.join(",")+"}"}case"string":return"\""+EncodeJson(A)+"\"";default:return A.toString()}},decode:function(str){var k;try{k=eval("("+str+")");return(typeof k=="object")?k:""}catch(e){return""}}};function GetCloseBtn(A,B,_){if(B!=null&&B!=""){var $="ShowBox('"+B+"')";if(_==null)_=$;else _=$+_}if(_==null)_="";return"<img src=\""+strMainSiteUrl+"/s/images/ico/closeBtn.gif\" onclick=\"HideBox('"+A+"');"+_+"\" title=\"\u5173\u95ed\" style=\"cursor:pointer;margin-left:8px;\"/>"}function TipString(_,C,H,F,I){var G="TipString_"+_;if(C=="")if(H)C="\u64cd\u4f5c\u6210\u529f\uff01";else C="\u64cd\u4f5c\u5931\u8d25\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\uff01";var B=0;if(!H)B=-17;var D="",A="";if(F){D=" style=\"float:left;\"";A=GetCloseBtn(G)}var E="style=\"background-color:#FF9;border:#BAB9B9 1px solid;padding:8px;width:91%\">"+"<div style=\"float:left;width:17px; height:17px;font-size:1px; background:url("+strMainSiteUrl+"/s/images/ico/tips.gif) no-repeat 0px "+B+"px;margin:-1px 10px 0 0;\"></div>"+"<div"+D+">"+DecodeUnicode(C)+"\uff01</div>"+A+"</div>";switch(I){case"float":var $=MidPosition(400,33);CreateDiv(G,$.left,$.top);m$(G).innerHTML="<div "+E;ShowBox(G);break;case"reString":return"<div id=\""+G+"\" "+E;default:if(m$(I))m$(I).innerHTML="<div id=\""+G+"\" "+E;else alert("\u51fa\u9519\uff01\u8bf7\u8054\u7cfb\u6280\u672f\u670d\u52a1\u4eba\u5458")}}function EditBgImg($,_,A){if(A==null)A=0;if($==0||$==null){if(_==null){GetEvObj().style.backgroundPosition="";return}GetEvObj().style.backgroundPosition=_+"px "+A+"px";return}if($=="p"){if(_==null){GetEvObj().parentNode.style.backgroundPosition="";return}GetEvObj().parentNode.style.backgroundPosition=_+"px "+A+"px";return}if(typeof $=="string")$=m$($);if(_==null){$.style.backgroundPosition="";return}$.style.backgroundPosition=_+"px "+A+"px"}function HelpTip($){var $="<div style=\"wdith:200px;height:200;background-color:#F7F7F7;padding:5px;\">"+"<div style=\"height:24px;\">\u5e2e\u52a9\u63d0\u793a\uff01</div>"+"<div style=\"wdith:184px;height:148px;overflow-x:hidden;overflow-y:auto;background-color:#fff;padding:8px;\">"+$+"</div>"+"</div>";CreatFloatBox("helpTipBox",200,200,$,GetEv())}function HelpTipImg($){return"<img src=\"/s/images/ico/help.png\" onmouseover=\"HelpTip('"+$+"')\"/>"}function IsHide($){if(typeof $=="string")$=m$($);if($.style.display=="none")return true;return false}function RemoveEle($){if(typeof $=="string")if(m$($))m$($).parentNode.removeChild(m$($));if(typeof $=="object")$.parentNode.removeChild($)}function HideBox(_){if(typeof _=="string")$("#"+_).hide();else _.style.display="none"}function ShowBox(_){if(typeof _=="string")$("#"+_).show();else _.style.display=""}function CreateDiv($,A,B){if(m$($))RemoveEle($);var _=document.createElement("div");_.id=$;document.body.appendChild(_);_=null;if(A!=null)m$($).style.cssText="position:absolute;left:"+A+"px;top:"+B+"px;"}function ShadeShow($,B,C){var D;if(Jbb.browser.IE){var A=false;try{D=(m$($).filters.alpha.opacity)/10}catch(_){D=0}m$($).style.filter="alpha(opacity="+((++D)*10)+")"}else{D=(m$($).style.opacity)*10;m$($).style.opacity=(++D)/10}if(D<B)setTimeout("ShadeShow('"+$+"',"+B+","+C+")",C)}function BoxNewPosition(A,_){var $=GetEv(),F=MousePosition($),E=F.x,D=F.y,C=E+A,B=D+_;if((document.documentElement.clientWidth-E)<A)if($.clientX>A){C=E;E=E-A}if((document.documentElement.clientHeight-D)<_)if($.clientY>_){B=D;D=D-_}return{x:E,y:D,x2:C,y2:B}}function ShowEventBox(_,E,B){var $=BoxNewPosition(E,B),D=$.x,A=$.y,F="position:absolute;display:block;left:"+D+"px;top:"+A+"px;width:"+E+"px;height:"+B+"px;";m$(_).style.cssText=F;if(m$(_+"Shadow")){var G=B;if(Jbb.browser.IE6)G=G+10;var C="position:absolute;display:block;left:"+(D+6)+"px;top:"+(A+6)+"px;width:"+E+"px;height:"+G+"px;background:#000000;"+"filter:progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=12);opacity:0.12;";m$(_+"Shadow").style.cssText=C}}function CreatFloatBox(C,_,D,G,E){var $=BoxNewPosition(_,D),J=$.x-18,I=$.y-18,B=$.x2+19,A=$.y2+19;if(!m$(C)){CreateDiv(C+"Shadow");CreateDiv(C)}var F;if(typeof(E)=="string"&&E!="")F=m$(E);else F=E;var H=function(){var E=MousePosition(GetEv());if((!(J<E.x&&E.x<B&&I<E.y&&E.y<A))&&(F!=GetEvObj())){if(m$(C+"Shadow"))HideBox(C+"Shadow");HideBox(C);document.detachEvent("onmousemove",H);J=null;I=null;B=null;A=null;$=null;H=null;C=null;_=null;D=null;G=null;F=null}};document.attachEvent("onmousemove",H);m$(C).innerHTML=G;ShowEventBox(C,_,D);if(m$(C+"Shadow"))m$(C+"Shadow").style.zIndex=++floatZIndex;m$(C).style.zIndex=++floatZIndex}function CreateDivAndMousedownOfDoc(_,C,A,F,B){if(typeof(window["isIdOldState"+_])=="undefined")window["isIdOldState"+_]=false;var $=BoxNewPosition(C,A),I=$.x-1,H=$.y-1,E=$.x2+2,D=$.y2+2;CreateDiv(_+"Shadow");CreateDiv(_);m$(_+"Shadow").style.width=C+"px";m$(_).style.width=C+"px";m$(_+"Shadow").style.height=A+"px";m$(_).style.height=A+"px";if(window["isIdOldState"+_]==false){var G=function(){if(m$(_).style.display=="none")window["isIdOldState"+_]=false;else window["isIdOldState"+_]=true;var J=MousePosition(GetEv());if(!(I<J.x&&J.x<E&&H<J.y&&J.y<D)){if(B!=GetEvObj().id)window["isIdOldState"+_]=false;m$(_).style.display="none";m$(_+"Shadow").style.display="none";document.detachEvent("onmousedown",G);I=null;H=null;E=null;D=null;$=null;G=null;_=null;C=null;A=null;F=null;B=null}};document.attachEvent("onmousedown",G);m$(_).innerHTML=F;ShowEventBox(_,C,A)}else{m$(_).style.display="none";m$(_+"Shadow").style.display="none";window["isIdOldState"+_]=false}m$(_+"Shadow").style.zIndex=++floatZIndex;m$(_).style.zIndex=++floatZIndex}function DivDrag(){var $,_,A;this.dragStart=function(){var C=MousePosition(),B=GetEv();if((B.which&&(B.which!=1))||(B.button&&(B.button!=1)))return;var D=this.cursorToEvObjPos;A=this.parent||this;if(A.id!="overTipBox"&&A.id!="overFunBox")A.style.zIndex=(++floatZIndex);D.ox=MousePosition().x-parseInt(GetStyle(A,"left"));D.oy=MousePosition().y-parseInt(GetStyle(A,"top"));if($){document.detachEvent("onmousemove",$);document.detachEvent("onmouseup",_)}$=this.dragMove.create(this);_=this.dragEnd.create(this);document.attachEvent("onmousemove",$);document.attachEvent("onmouseup",_);this.stop()};this.dragMove=function(){var _=MousePosition(),$=GetEv(),B=this.cursorToEvObjPos;A=this.parent||this;if(document.documentElement.clientWidth>$.clientX&&$.clientX>3&&document.documentElement.clientHeight>$.clientY&&$.clientY>40){A.style.top=_.y-B.oy+"px";A.style.left=_.x-B.ox+"px"}this.stop()};this.dragEnd=function(){var B=GetEv();if((B.which&&(B.which!=1))||(B.button&&(B.button!=1)))return;A=this.parent||this;document.detachEvent("onmousemove",$);document.detachEvent("onmouseup",_);$=null;_=null;this.stop()};this.stop=function(){var $=GetEv();if($.stopPropagation)$.stopPropagation();else $.cancelBubble=true;if($.preventDefault)$.preventDefault();else $.returnValue=false};this.create=function(A){var _=this,$=A;return function(A){return _.apply($,[A])}};this.dragStart.create=this.create;this.dragMove.create=this.create;this.dragEnd.create=this.create;this.position=function(){return{ox:0,oy:0}};this.initialize=function(){for(var _=0,$=arguments.length;_<$;_++){C=arguments[_];if(!(C.push))C=[C];$C=(typeof(C[0])=="object")?C[0]:(typeof(C[0])=="string"?m$(C[0]):null);if(!$C)continue;$C.cursorToEvObjPos=this.position($C);$C.dragMove=this.dragMove;$C.dragEnd=this.dragEnd;$C.stop=this.stop;if(C[1]){$C.parent=(typeof(C[1])=="object")?C[1]:(typeof(C[1])=="string"?m$(C[1]):null);if(C[2]=="fixed"){if(Jbb.browser.IE6)$C.parent.style.position="absolute";else $C.parent.style.position="fixed"}else $C.parent.style.position="absolute"}else if(C[2]=="fixed"){if(Jbb.browser.IE6)$C.style.position="absolute";else $C.style.position="fixed"}else $C.style.position="absolute";$C.style.cursor="move";$C.attachEvent("onmousedown",this.dragStart.create($C))}};this.initialize.apply(this,arguments)}function HideSelectsOfOB(){var $=IDsOfSelectHTMLComponent;for(var _=0;_<$.length;_++)if($[_]!=""&&m$($[_]))HideBox($[_])}function ShowSelectsOfOB(){var $=IDsOfSelectHTMLComponent;for(var _=0;_<$.length;_++)if($[_]!=""&&m$($[_]))ShowBox($[_])}function ShowOverFunBox(K,B,H,I,A,_,G,D){if(D==null)D="";var C=JbbConfig_OverFunBox();CreateDiv("overFunPage");m$("overFunPage").style.cssText="top:0px;left:0px;position:absolute;background:#333;z-index:"+(++floatZIndex)+";"+"width:"+document.documentElement.scrollWidth+"px;"+"height:"+document.documentElement.scrollHeight+"px;";CreateDiv("overFunBox");var F=B+2*(C.margin+C.border),E=H+2*(C.margin+C.border);if(A)E=H+C.margin+(C.border*2)+C.dragH;var $=MidPosition(F,E,true);m$("overFunBox").style.cssText="top:"+$.top+"px;"+"left:"+$.left+"px;"+"position:absolute;z-index:"+(++floatZIndex)+";"+"width:"+F+"px;"+"height:"+E+"px;font-size:12px";var J=C.boxHTML;if(A)J=J.replace(/{#drag}/g,C.dragHTML.replace(/{#title}/g,G).replace(/{#closeBtn}/g,GetCloseBtn("overFunBox","",D+"CloseOverFunBox();")));else J=J.replace(/{#drag}/g,C.notTitDragHTML);m$("overFunBox").innerHTML=J.replace(/{#width}/g,B).replace(/{#height}/g,H).replace(/{#innerHTML}/g,K);if(_==null)_=5;ShadeShow("overFunPage",_,I);new DivDrag(["overFunBoxDrag","overFunBox","fixed"]);HideSelectsOfOB()}function CloseOverFunBox(){if(m$("overFunPage")){RemoveEle("overFunPage");RemoveEle("overFunBox");ShowSelectsOfOB()}}function UserPath($,_,E){var C=$/10000|0,A=C/10000|0,D=C%10000,B=$%10000;return _+A+"/"+D+"/"+B+E}function IsLogin(functionName){if(!(GetMy("id")>0)){mAjaxDom(strMainSiteUrl+"/s/admin/login.ashx?fn=IsLogin","IsLoginBack",functionName);return}eval(functionName+"(true)")}function IsLoginBack(s,functionName){if(s=="true"){eval(functionName+"(true)");return}eval(functionName+"(false)");return}function GetMy($){return GetCookieObjValue("u_"+$)}function Logout(){Tip();mAjaxDom(strMainSiteUrl+"/s/admin/login.ashx?fn=Logout","LogoutBack")}function LogoutBack($){if($=="ok"){location.reload();return}CloseTip();alert("\u51fa\u9519\uff01")}if(Jbb.browser.IE)onunload=function(){CollectGarbage();Purge()};function Purge(_){if(!_)_=document.body;var $=_.attributes;if($)for(var B=0,A=$.length;B<A;B++)if(typeof _[$[B].name]=="function")_[$[B].name]=null;if(_.childNodes)for(B=0,A=_.childNodes.length;B<A;B++)arguments.callee(_.childNodes[B])}
