﻿/*!
 * lhgcore JavaScript Library v1.3.6
 * Date : 2010-01-01 23:06:11
 * Copyright (c) 2009 - 2010 By Li Hui Gang
 */
(function(){function R(c,d){d.src?f.ajax({url:d.src,async:false,dataType:"script"}):f.globalEval(d.text||d.textContent||d.innerHTML||"");d.parentNode&&d.parentNode.removeChild(d)}function L(){return(new Date).getTime()}function K(c){for(var d=0,g,h;(g=c[d])!=null;d++)if(!f.noData[g.nodeName.toLowerCase()]&&(h=g.lhguid))delete f.cache[h]}function S(){this.returnValue=false}function T(){this.cancelBubble=true}function M(c,d,g){var h,k,m;if(c.length===1&&typeof c[0]==="string"&&c[0].length<512&&c[0].indexOf("<option")<0){k=true;if(m=f.fragments[c[0]])if(m!==1)h=m}if(!h){d=d&&d[0]?d[0].ownerDocument||d[0]:document;h=d.createDocumentFragment();f.clean(c,d,h,g)}if(k)f.fragments[c[0]]=m?h:1;return{fragment:h,cacheable:k}}var G=this,A,f=function(c,d){return new f.fn.init(c,d)},U=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,V=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,N=Object.prototype.toString,W=Array.prototype.push,O=Array.prototype.slice;f.fn=f.prototype={init:function(c,d){d=d||document;if(!c)return this;if(c.nodeType){this[0]=c;this.length=1;return this}if(typeof c==="string")if(c.indexOf("<")===0){var g=d.ownerDocument||d,h=V.exec(c);if(h)c=[g.createElement(h[1])];else{h=M([c],[g]);c=(h.cacheable?h.fragment.cloneNode(true):h.fragment).childNodes}}else if(/^#\w+$/.test(c)){c=c.substr(1);if(d=d.getElementById(c)){this.length=1;this[0]=d}return this}else c=d.nodeType&&/^\w+$/.test(c)?d.getElementsByTagName(c):f.find(c,d);this.context=d;return this.setArray(f.isArray(c)?c:f.makeArray(c))},context:"",lhgren:"LiHuiGang",setArray:function(c){this.length=0;W.apply(this,c);return this},each:function(c,d){return f.each(this,c,d)},get:function(c){return c===A?O.call(this):this[c]},eq:function(c){return this.slice(c,+c+1)},slice:function(){return f(O.apply(this,arguments))},map:function(c){var d=f.map(this,function(g,h){return c.call(g,h,g)});return f(d)},is:function(c){if(!c)return false;var d=false;c=f.find(c,this.context);for(var g=0,h=this.length;g<h;g++)if(f.inArray(this[g],c)!==-1){d=true;break}return d}};f.fn.init.prototype=f.fn;f.extend=f.fn.extend=function(){var c=arguments[0]||{},d=1,g=arguments.length,h=false,k,m,p;if(typeof c==="boolean"){h=c;c=arguments[1]||{};d=2}if(typeof c!=="object"&&!f.isFunction(c))c={};if(g==d){c=this;--d}for(;d<g;d++)if((k=arguments[d])!=null)for(var u in k){m=c[u];p=k[u];if(c!==p)if(h&&p&&typeof p==="object"&&!p.nodeType)c[u]=f.extend(h,m||(p.length!=null?[]:{}),p);else if(p!==A)c[u]=p}return c};f.extend({isFunction:function(c){return N.call(c)==="[object Function]"},isArray:function(c){return N.call(c)==="[object Array]"},trim:function(c){return(c||"").replace(U,"")},globalEval:function(c){if(c&&/\S/.test(c)){var d=document.getElementsByTagName("head")[0]||document.documentElement,g=document.createElement("script");g.type="text/javascript";if(f.browser.ie)g.text=c;else g.appendChild(document.createTextNode(c));d.insertBefore(g,d.firstChild);d.removeChild(g)}},nodeName:function(c,d){return c.nodeName&&c.nodeName.toUpperCase()==d.toUpperCase()},each:function(c,d,g){var h,k=0,m=c.length;if(g)if(m===A)for(h in c){if(d.apply(c[h],g)===false)break}else for(;k<m;){if(d.apply(c[k++],g)===false)break}else if(m===A)for(h in c){if(d.call(c[h],h,c[h])===false)break}else for(g=c[0];k<m&&d.call(g,k,g)!==false;g=c[++k]);return c},makeArray:function(c){var d=[];if(c!=null){var g=c.length;if(g==null||typeof c==="string"||f.isFunction(c)||c.setInterval)d[0]=c;else for(;g;)d[--g]=c[g]}return d},inArray:function(c,d){for(var g=0,h=d.length;g<h;g++)if(d[g]===c)return g;return-1},grep:function(c,d,g){for(var h=[],k=0,m=c.length;k<m;k++)!g!=!d(c[k],k)&&h.push(c[k]);return h},merge:function(c,d){var g=0,h,k=c.length;if(f.browser.ie)for(;(h=d[g++])!=null;){if(h.nodeType!=8)c[k++]=h}else for(;(h=d[g++])!=null;)c[k++]=h;return c},map:function(c,d){for(var g=[],h=0,k=c.length;h<k;h++){var m=d(c[h],h);if(m!=null)g[g.length]=m}return g.concat.apply([],g)},prop:function(c,d,g,h,k){if(f.isFunction(d))d=d.call(c,h);return typeof d==="number"&&g=="curCSS"&&!X.test(k)?d+"px":d}});(function(c){var d={ie:/msie/.test(c)&&!/opera/.test(c),ch:/chrome/.test(c),op:/opera/.test(c),ff:/firefox/.test(c),sa:/webkit/.test(c)&&!/chrome/.test(c)};d.ver=(c.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1];d.i7=d.ie&&d.ver>=7;d.i8=d.ie&&d.ver==8;d.isDTD=document.compatMode=="CSS1Compat";f.browser=d;f.props={"for":"htmlFor","class":"className","float":d.ie?"styleFloat":"cssFloat"};f.fragments={}})(navigator.userAgent.toLowerCase());f.fn.extend({bind:function(c,d){return this.each(function(){f.event.add(this,c,d)})},unbind:function(c,d){return this.each(function(){f.event.remove(this,c,d)})},hover:function(c,d){return this.mouseover(c).mouseout(d)}});f.extend({cache:{guid:1,fuid:1,addListener:function(c){return typeof f!=="undefined"?function(){f.event.handle.apply(f.cache[c].elem,arguments)}:A}},noData:{embed:true,object:true,applet:true},event:{add:function(c,d,g){var h=c.lhguid||(c.lhguid=f.cache.guid++);f.cache[h]||(f.cache[h]={elem:c,listener:f.cache.addListener(h),events:{}});if(d&&!f.cache[h].events[d]){f.cache[h].events[d]={};if(c.addEventListener)c.addEventListener(d,f.cache[h].listener,false);else c.attachEvent&&c.attachEvent("on"+d,f.cache[h].listener)}if(g){if(!g.fuid)g.fuid=f.cache.fuid++;f.cache[h].events[d][g.fuid]=g}},remove:function(c,d,g){try{var h=f.cache?f.cache[c.lhguid]:A,k,m}catch(p){return}if(h){k=h.events;if(d===A)for(d in k)this.remove(c,d);else if(k[d]){if(g)delete k[d][g.fuid];else for(var u in k[d])delete k[d][u];for(m in k[d])break;if(!m){if(c.removeEventListener)c.removeEventListener(d,h.listener,false);else c.detachEvent&&c.detachEvent("on"+d,h.listener);m=null;delete k[d]}}for(m in k)break;if(!m){delete f.cache[c.lhguid];try{delete c.lhguid}catch(y){c.removeAttribute&&c.removeAttribute("lhguid")}}}},handle:function(c){c=c=f.event.fix(c||G.event);if(!c.currentTarget)c.currentTarget=this;var d=f.cache[this.lhguid].events[c.type];for(var g in d){this.func=d[g];if(this.func(c)===false){c.preventDefault();c.stopPropagation()}}},fix:function(c){if(!c.preventDefault)c.preventDefault=S;if(!c.stopPropagation)c.stopPropagation=T;if(!c.target)c.target=c.srcElement||document;if(c.pageX==null&&c.clientX!=null){var d=document.documentElement,g=document.body;c.pageX=c.clientX+(d&&d.scrollLeft||g&&g.scrollLeft||0)-(d.clientLeft||0);c.pageY=c.clientY+(d&&d.scrollTop||g&&g.scrollTop||0)-(d.clientTop||0)}if(!c.relatedTarget&&c.fromElement)c.relatedTarget=c.fromElement==c.target?c.toElement:c.fromElement;return c}}});f.each("blur,focus,load,resize,scroll,unload,click,dblclick,contextmenu,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error".split(","),function(c,d){f.fn[d]=function(g){return this.each(function(){f.event.remove(this,d);this["on"+d]=null;f.event.add(this,d,g)})}});f(G).bind("unload",function(){for(var c in f.cache)c!=1&&f.cache[c].listener&&f.event.remove(f.cache[c].elem)});(function(){function c(e,i){var j=[],n={};if(i)i=new RegExp("^"+i+"$","i");for(var o=0,t;t=e[o++];){t.uid=t.uid||y++;if(!n[t.uid]&&(!i||t.nodeName.search(i)!==-1))j[j.length]=n[t.uid]=t}return j}function d(e,i){if(!e)return null;if(i==="class"||i==="className")return e.className;if(i==="for")return e.htmlFor;return e.getAttribute(i)||e[i]}function g(e,i,j,n,o,t,q){var s=[];if(q)return i.test(j.className)?[j]:[];if(j.getElementsByClassName){s=E(j.getElementsByClassName(e));if(n)if(i.test(j.className))s[s.length]=j;if(t!="*")s=c(s,t);p[o]=s.slice(0);return s}else if(m.getElementsByClassName){s=E(m.getElementsByClassName(e));if(t!="*")s=c(s,t);p[o]=s.slice(0);return s}e=t=="*"&&j.all?j.all:j.getElementsByTagName(t);if(n)e[e.length]=j;for(j=0;n=e[j++];)if(i.test(n.className))s[s.length]=n;return s}function h(e,i,j,n,o,t){var q=[];if(t)return d(i,"id")===e?[i]:[];if((t=i.getElementById?i.getElementById(e):m.getElementById(e))&&d(t,"id")===e){q[q.length]=t;p[n]=q.slice(0);return q}n=i.getElementsByTagName(o);if(j)n[n.length]=i;for(i=0;j=n[i++];)if(d(j,"id")===e){q[q.length]=j;break}return q}function k(e,i,j,n){var o,t,q="",s=[],w=[],x,C,B;v.id.lastIndex=v.typeSelector.lastIndex=v.classRE.lastIndex=0;v.tag.test(e)||(e="*"+e);o=v.typeSelector.exec(e)[1];i=i instanceof Array?i.slice(0):[i];B=i.length;C=B-1;if(v.id.test(o)){q="id";t=(t=o.match(/^\w+/))?t[0]:"*";o=o.replace(v.id,"")}else if(v.classRE.test(o)){q="class";t=(t=o.match(v.tag))?t[0]:"*";o=o.replace(v.tag,"");contextRE=u[o+"RegExp"]||(u[o+"RegExp"]=new RegExp("(?:^|\\s)"+o.replace(/\./g,"\\s*")+"(?:\\s|$)"));o=o.replace(/\./g," ")}for(;C>-1;){x=i[C--];x.uid=x.uid||y++;var D=e+x.uid;if(p[D])s=s.concat(p[D]);else{if(q==="id")w=h(o,x,j,D,t,n);else if(q==="class")w=g(o,contextRE,x,j,D,t,n);else{w=E(x.getElementsByTagName(o));if(j&&(x.nodeName.toUpperCase()===o.toUpperCase()||o==="*"))w[w.length]=x}s=B>1?s.concat(w):w;p[D]=s.slice(0)}}return s}var m=document,p={},u={},y=0,v={trim:/^(\s|\u00A0)+|(\s|\u00A0)+$/g,quickTest:/^[^:\[>+~ ,]+$/,typeSelector:/(^[^\[:]+?)(?:\[|\:|$)/,tag:/^(\w+|\*)/,id:/^(\w*|\*)#/,classRE:/^(\w*|\*)\./,attributeName:/(\w+)(?:[!+~*\^$|=])|\w+/,attributeValue:/(?:[!+~*\^$|=]=*)(.+)(?:\])/,pseudoName:/(\:[^\(]+)/,pseudoArgs:/(?:\()(.+)(?:\))/,nthParts:/([+-]?\d)*(n)([+-]\d+)*/i,combinatorTest:/[+>~ ](?![^\(]+\)|[^\[]+\])/,combinator:/\s*[>~]\s*(?![=])|\s*\+\s*(?![0-9)])|\s+/g,recursive:/:(not|has)\((\w+|\*)?([#.](\w|\d)+)*(\:(\w|-)+(\([^\)]+\))?|\[[^\}]+\])*(\s*,\s*(\w+|\*)?([#.](\w|\d)+)*(\:(\w|-)+(\([^\)]+\))?|\[[^\}]+\])*)*\)/gi},E=function(){return G.attachEvent&&!G.opera?function(e){if(e instanceof Array)return e;for(var i=0,j=[],n;n=e[i++];)j[j.length]=n;return j}:function(e){return Array.prototype.slice.call(e)}}(),F={query:function(e,i,j,n,o){var t=[];n||(e=e.replace(v.trim,"").replace(/(\[)\s+/g,"$1").replace(/\s+(\])/g,"$1").replace(/(\[[^\] ]+)\s+/g,"$1").replace(/\s+([^ \[]+\])/g,"$1").replace(/(\()\s+/g,"$1").replace(/(\+)([^0-9])/g,"$1 $2").replace(/['"]/g,"").replace(/\(\s*even\s*\)/gi,"(2n)").replace(/\(\s*odd\s*\)/gi,"(2n+1)"));if(typeof i==="string")i=(i=k(i,m)).length>0?i:A;i=i||m;i.uid=i.uid||y++;n=e+i.uid;if(p[n])return p[n];v.quickTest.lastIndex=0;if(v.quickTest.test(e)){t=k(e,i,j,o);return p[n]=t.slice(0)}var q,s;q=[];q=e.split(/\s*,\s*/g);e=q.length>1?[""]:q;for(var w=0,x=0,C=0,B;q.length>1&&(B=q[w++])!==A;){x+=((l=B.match(/\(/g))?l.length:0)-((r=B.match(/\)/g))?r.length:0);e[C]=e[C]||"";e[C]+=e[C]===""?B:","+B;x===0&&C++}for(B=0;(s=e[B++])!==A;){v.quickTest.lastIndex=0;if(v.quickTest.test(s)){D=k(s,i,j,o);t=e.length>1?t.concat(D):D}else{v.combinatorTest.lastIndex=0;if(v.combinatorTest.test(s)){C=x=0;var D;q=s.split(v.combinator);w=q.length;for(s=s.match(v.combinator)||[""];x<w;){var J,P;J=s[C++].replace(v.trim,"");D=D||F.query(q[x++],i,j,true,o);P=F.query(q[x++],J==""||J==">"?D:i,J==""||J==">",true,o);D=F.queryCombinator(D,P,J)}t=e.length>1?t.concat(D):D;D=A}else{D=F.querySelector(s,i,j);t=e.length>1?t.concat(D):D}}}if(e.length>1)t=c(t);return p[n]=t.slice(0)},queryCombinator:function(e,i,j){var n=[],o={},t={},q={},s={};j=F.simpleSelector.combinator[j];for(var w=0,x;x=e[w++];){x.uid=x.uid||y++;o[x.uid]=x}for(e=0;w=i[e++];){w.uid=w.uid||y++;if(!t[w.uid]&&j(w,o,s,q))n[n.length]=w;t[w.uid]=w}return n},querySelector:function(e,i,j,n){var o=[],t=true;i=k(e,i,j,n);j=i.length-1;var q;if(/:(not|has)/i.test(e)){q=e.match(v.recursive);e=e.replace(v.recursive,"")}if(!(e=e.match(/:(\w|-)+(\([^\(]+\))*|\[[^\[]+\]/g)))e=[];if(q)e=e.concat(q);for(;(n=e.pop())!==A;){var s=u[n],w,x;q=[];x=false;o=[];if(s){x=s[0];w=s[1];q=s.slice(2);s=w[x]}else{if(/^:/.test(n)){w=n.match(v.pseudoArgs);q[1]=w?w[1]:"";x=n.match(v.pseudoName)[1];w=F.simpleSelector.pseudos;if(/nth-(?!.+only)/i.test(n)){var C,B=q[1];if(!u[B])if(C=B.match(v.nthParts)){s=parseInt(C[1],10)||0;C=parseInt(C[3],10)||0;if(/^\+n|^n/i.test(B))s=1;else if(/^-n/i.test(B))s=-1;q[2]=s;q[3]=C;u[B]=[s,C]}}else if(/^:contains/.test(n)){s=q[1];B=u[s];q[1]=B?B:(u[s]=new RegExp(s))}}else{w=n.match(v.attributeName);x=n.match(v.attributeValue);q[1]=w[1]||w[0];q[2]=x?x[1]:"";x=""+n.match(/[~!+*\^$|=]/);w=F.simpleSelector.attribute}s=w[x];u[n]=[x,w].concat(q)}/:(\w|-)+type/i.test(n);if(x=/^:(nth[^-]|eq|gt|lt|first|last)/i.test(n))q[3]=j;for(B=i.length-1;B>-1;){n=i[B--];if(t)n.peppyCount=B+1;C=true;q[0]=n;if(x)q[2]=n.peppyCount;s.apply(w,q)||(C=false);C&&o.push(n)}i=o;t=false}return o},simpleSelector:{attribute:{"null":function(e,i){return!!d(e,i)},"=":function(e,i,j){return d(e,i)==j},"~":function(e,i,j){return d(e,i).match(new RegExp("\\b"+j+"\\b"))},"^":function(e,i,j){return d(e,i).indexOf(j)===0},$:function(e,i,j){e=d(e,i);return e.lastIndexOf(j)===e.length-j.length},"*":function(e,i,j){return d(e,i).indexOf(j)!=-1},"|":function(e,i,j){return d(e,i).match("^"+j+"-?(("+j+"-)*("+j+"$))*")},"!":function(e,i,j){return d(e,i)!==j}},pseudos:{":root":function(e){return e===m.getElementsByTagName("html")[0]?true:false},":nth-child":function(e,i,j,n){if(!e.nodeIndex){for(var o=e.parentNode.firstChild,t=0,q;o;o=o.nextSibling)if(o.nodeType==1){q=o;o.nodeIndex=++t}q.IsLastNode=true;if(t==1)q.IsOnlyChild=true}o=e.nodeIndex;if(i=="first")return o==1;if(i=="last")return!!e.IsLastNode;if(i=="only")return!!e.IsOnlyChild;return!j&&!n&&o==i||(j==0?o==n:j>0?o>=n&&(o-n)%j==0:o<=n&&(o+n)%j==0)},":nth-last-child":function(e,i){return this[":nth-child"](e,i,a,b)},":nth-of-type":function(e,i,j){return this[":nth-child"](e,i,a,b,j)},":nth-last-of-type":function(e,i,j){return this[":nth-child"](e,i,a,b,j)},":first-child":function(e){return this[":nth-child"](e,"first")},":last-child":function(e){return this[":nth-child"](e,"last")},":first-of-type":function(e,i,j){return this[":nth-child"](e,"first",null,null,j)},":last-of-type":function(e,i,j){return this[":nth-child"](e,"last",null,null,j)},":only-child":function(e){return this[":nth-child"](e,"only")},":only-of-type":function(e,i,j){return this[":nth-child"](e,"only",null,null,j)},":empty":function(e){for(e=e.firstChild;e!==null;e=e.nextSibling)if(e.nodeType===1||e.nodeType===3)return false;return true},":not":function(e,i){return F.query(i,e,true,true,true).length===0},":has":function(e,i){return F.query(i,e,true,true,true).length>0},":selected":function(e){return e.selected},":hidden":function(e){return e.type==="hidden"||e.style.display==="none"},":visible":function(e){return e.type!=="hidden"&&e.style.display!=="none"},":input":function(e){return e.nodeName.search(/input|select|textarea|button/i)!==-1},":radio":function(e){return e.type==="radio"},":checkbox":function(e){return e.type==="checkbox"},":text":function(e){return e.type==="text"},":header":function(e){return e.nodeName.search(/h\d/i)!==-1},":enabled":function(e){return!e.disabled&&e.type!=="hidden"},":disabled":function(e){return e.disabled},":checked":function(e){return e.checked},":contains":function(e,i){return i.test(e.textContent||e.innerText||"")},":parent":function(e){return!!e.firstChild},":odd":function(e){return this[":nth-child"](e,"2n+2",2,2)},":even":function(e){return this[":nth-child"](e,"2n+1",2,1)},":nth":function(e,i,j){return i==j},":eq":function(e,i,j){return i==j},":gt":function(e,i,j){return j>i},":lt":function(e,i,j){return j<i},":first":function(e,i,j){return j==0},":last":function(e,i,j,n){return j==n}},combinator:{"":function(e,i,j,n){for(var o=e.uid;(e=e.parentNode)!==null&&!j[e.uid];)if(i[e.uid]||n[e.uid])return n[o]=true;return j[o]=false},">":function(e,i){return e.parentNode&&i[e.parentNode.uid]},"+":function(e,i,j){for(;(e=e.previousSibling)!==null&&!j[e.uid];)if(e.nodeType===1)return e.uid in i;return false},"~":function(e,i,j,n){for(var o=e.uid;(e=e.previousSibling)!==null&&!j[e.uid];)if(i[e.uid]||n[e.uid])return n[o]=true;return j[o]=false}}}};if(m.querySelectorAll)(function(){var e=F.query;F.query=function(i,j){j=j||m;if(j===m)try{return j.querySelectorAll(i)}catch(n){}return e(i,j)}})();else{var I=m.addEventListener||m.attachEvent;function z(){p={}}I("DOMAttrModified",z,false);I("DOMNodeInserted",z,false);I("DOMNodeRemoved",z,false)}f.find=F.query})();var Y=/(<([\w:]+)[^>]*?)\/>/g,Z=/<|&\w+;/,$=/<([\w:]+)/,aa=/<tbody/i,ba=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,ca=function(c,d,g){return ba.test(g)?c:d+"></"+g+">"},H={option:[1,'<select multiple="multiple">',"</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:f.browser.ie?[1,"div<div>","</div>"]:[0,"",""]};H.optgroup=H.option;H.tbody=H.tfoot=H.colgroup=H.caption=H.thead;H.th=H.td;f.fn.extend({html:function(c){if(c===A)return this[0]?this[0].innerHTML:null;else if(typeof c==="string"&&!/<script/i.test(c))for(var d=0,g=this.length;d<g;d++){if(this[d].nodeType===1){K(this[d].getElementsByTagName("*"));this[d].innerHTML=c}}else this.empty().append(c);return this},text:function(c){return c===A?this[0]?this[0].innerText?this[0].innerText:this[0].textContent:null:this.each(function(){this.innerText?(this.innerText=c):(this.textContent=c)})},val:function(c){if(c===A){var d=this[0];if(d){if(f.nodeName(d,"option"))return(d.attributes.value||{}).specified?d.value:d.text;if(f.nodeName(d,"select")){var g=d.selectedIndex,h=[],k=d.options;d=d.type=="select-one";if(g<0)return null;var m=d?g:0;for(g=d?g+1:k.length;m<g;m++){var p=k[m];if(p.selected){c=f(p).val();if(d)return c;h.push(c)}}return h}return(d.value||"").replace(/\r/g,"")}return A}if(typeof c==="number")c+="";return this.each(function(){if(this.nodeType==1)if(f.isArray(c)&&/radio|checkbox/.test(this.type))this.checked=f.inArray(this.value,c)>=0||f.inArray(this.name,c)>=0;else if(f.nodeName(this,"select")){var u=f.makeArray(c);f("option",this).each(function(){this.selected=f.inArray(this.value,u)>=0||f.inArray(this.text,u)>=0});if(!u.length)this.selectedIndex=-1}else this.value=c})},append:function(){return this.domManip(arguments,true,function(c){this.nodeType===1&&this.appendChild(c)})},prepend:function(){return this.domManip(arguments,true,function(c){this.nodeType===1&&this.insertBefore(c,this.firstChild)})},before:function(){return this.domManip(arguments,false,function(c){this.parentNode.insertBefore(c,this)})},after:function(){return this.domManip(arguments,false,function(c){this.parentNode.insertBefore(c,this.nextSibling)})},domManip:function(c,d,g){function h(E,F){return d&&f.nodeName(E,"table")&&f.nodeName(F,"tr")?E.getElementsByTagName("tbody")[0]||E.appendChild(E.ownerDocument.createElement("tbody")):E}var k,m,p=c[0],u=[];if(f.isFunction(p))return this.each(function(){c[0]=p.call(this);return f(this).domManip(c,d,g)});if(this[0]){k=c[0]&&c[0].parentNode&&c[0].parentNode.nodeType===11?{fragment:c[0].parentNode}:M(c,this,u);if(m=k.fragment.firstChild){d=d&&f.nodeName(m,"tr");for(var y=0,v=this.length;y<v;y++)g.call(d?h(this[y],m):this[y],k.cacheable||this.length>1||y>0?k.fragment.cloneNode(true):k.fragment)}u&&f.each(u,R)}return this}});f.extend({clean:function(c,d,g,h){d=d||document;if(typeof d.createElement==="undefined")d=d.ownerDocument||d[0]&&d[0].ownerDocument||document;var k=[];f.each(c,function(m,p){if(typeof p==="number")p+="";if(p){if(typeof p==="string"&&!Z.test(p))p=d.createTextNode(p);else if(typeof p==="string"){p=p.replace(Y,ca);var u=($.exec(p)||["",""])[1].toLowerCase(),y=H[u]||H._default,v=y[0];m=d.createElement("div");for(m.innerHTML=y[1]+p+y[2];v--;)m=m.lastChild;if(f.browser.ie){v=aa.test(p);u=u==="table"&&!v?m.firstChild&&m.firstChild.childNodes:y[1]=="<table>"&&!v?m.childNodes:[];for(y=u.length-1;y>=0;--y)f.nodeName(u[y],"tbody")&&!u[y].childNodes.length&&u[y].parentNode.removeChild(u[y])}f.browser.ie&&/^\s+/.test(p)&&m.insertBefore(d.createTextNode(/^\s+/.exec(p)[0]),m.firstChild);p=f.makeArray(m.childNodes)}if(p.nodeType)k.push(p);else k=f.merge(k,p)}});if(g)for(c=0;k[c];c++)if(h&&f.nodeName(k[c],"script")&&(!k[c].type||k[c].type.toLowerCase()==="text/javascript"))h.push(k[c].parentNode?k[c].parentNode.removeChild(k[c]):k[c]);else{k[c].nodeType===1&&k.splice.apply(k,[c+1,0].concat(f.makeArray(k[c].getElementsByTagName("script"))));g.appendChild(k[c])}return k}});f.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after"},function(c,d){f.fn[c]=function(g){g=f(g,this.context);for(var h=0,k=this.length;h<k;h++)g[d](this[h]);return this}});var Q=document.defaultView||{},X=/z-?index|font-?weight|opacity|zoom|line-?height/i;f.fn.extend({css:function(c,d){if((c=="width"||c=="height")&&parseFloat(d)<0)d=A;return this.attr(c,d,"curCSS")},attr:function(c,d,g){var h=c;if(typeof c==="string")if(d===A)return this[0]&&f[g||"attr"](this[0],c);else{h={};h[c]=d}return this.each(function(k){for(c in h)f.attr(g?this.style:this,c,f.prop(this,h[c],g,k,c))})}});f.extend({attr:function(c,d,g){if(!c||c.nodeType==3||c.nodeType==8)return A;var h=g!==A;d=f.props[d]||d;if(c.tagName){var k=/href|src|style/.test(d);if(d in c&&!k){if(h){if(d=="type"&&f.nodeName(c,"input")&&c.parentNode)throw"type property can't be changed";c[d]=g}if(f.nodeName(c,"form")&&c.getAttributeNode(d))return c.getAttributeNode(d).nodeValue;return c[d]}if(f.browser.ie&&d=="style")return f.attr(c.style,"cssText",g);h&&c.setAttribute(d,""+g);c=f.browser.ie&&k?c.getAttribute(d,2):c.getAttribute(d);return c===null?A:c}if(f.browser.ie&&d=="opacity"){if(h){c.zoom=1;c.filter=(c.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(g)+""=="NaN"?"":"alpha(opacity="+g*100+")")}return c.filter&&c.filter.indexOf("opacity=")>=0?parseFloat(c.filter.match(/opacity=([^)]*)/)[1])/100+"":""}d=d.replace(/-([a-z])/ig,function(m,p){return p.toUpperCase()});if(h)c[d]=g;return c[d]},curCSS:function(c,d,g){var h,k=c.style;if(d=="opacity"&&f.browser.ie){h=f.attr(k,"opacity");return h==""?"1":h}if(d.match(/float/i))d=f.props["float"];if(!g&&k&&k[d])h=k[d];else if(Q.getComputedStyle){if(d.match(/float/i))d="float";d=d.replace(/([A-Z])/g,"-$1").toLowerCase();if(c=Q.getComputedStyle(c,null))h=c.getPropertyValue(d);if(d=="opacity"&&h=="")h="1"}else if(c.currentStyle){h=d.replace(/\-(\w)/g,function(m,p){return p.toUpperCase()});h=c.currentStyle[d]||c.currentStyle[h];if(!/^\d+(px)?$/i.test(h)&&/^\d/.test(h)){d=k.left;g=c.runtimeStyle.left;c.runtimeStyle.left=c.currentStyle.left;k.left=h||0;h=k.pixelLeft+"px";k.left=d;c.runtimeStyle.left=g}}return h},className:{add:function(c,d){f.each((d||"").split(/\s+/),function(g,h){if(c.nodeType==1&&!f.className.has(c.className,h))c.className+=(c.className?" ":"")+h})},remove:function(c,d){if(c.nodeType==1)c.className=d!==A?f.grep(c.className.split(/\s+/),function(g){return!f.className.has(d,g)}).join(" "):""},has:function(c,d){return c&&f.inArray(d,(c.className||c).toString().split(/\s+/))>-1}}});f.each({removeAttr:function(c){f.attr(this,c,"");this.nodeType==1&&this.removeAttribute(c)},addClass:function(c){f.className.add(this,c)},removeClass:function(c){f.className.remove(this,c)},toggleClass:function(c,d){if(typeof d!=="boolean")d=!f.className.has(this,c);f.className[d?"add":"remove"](this,c)},remove:function(){if(this.nodeType===1){K(this.getElementsByTagName("*"));K([this])}this.parentNode&&this.parentNode.removeChild(this)},empty:function(){for(this.nodeType===1&&K(this.getElementsByTagName("*"));this.firstChild;)this.removeChild(this.firstChild)}},function(c,d){f.fn[c]=function(){return this.each(d,arguments)}});f.extend({dir:function(c,d){var g=[];for(c=c[d];c&&c!=document;){c.nodeType==1&&g.push(c);c=c[d]}return g},nth:function(c,d,g){d=d||1;for(var h=0;c;c=c[g])if(c.nodeType==1&&++h==d)break;return c},sibling:function(c,d){for(var g=[];c;c=c.nextSibling)c.nodeType==1&&c!=d&&g.push(c);return g}});f.each({parent:function(c){return c.parentNode},parents:function(c){return f.dir(c,"parentNode")},next:function(c){return f.nth(c,2,"nextSibling")},prev:function(c){return f.nth(c,2,"previousSibling")},nextAll:function(c){return f.dir(c,"nextSibling")},prevAll:function(c){return f.dir(c,"previousSibling")},siblings:function(c){return f.sibling(c.parentNode.firstChild,c)},children:function(c){return f.sibling(c.firstChild)},contents:function(c){return f.nodeName(c,"iframe")?c.contentDocument||c.contentWindow.document:f.makeArray(c.childNodes)}},function(c,d){f.fn[c]=function(g){var h=f.map(this,d),k=[];if(g&&typeof g==="string"){for(var m=0,p=h.length;m<p;m++)f(h[m]).is(g)&&k.push(h[m]);h=k}return f(h)}});var da=L();f.extend({ajaxSet:{url:location.href,type:"GET",contentType:"application/x-www-form-urlencoded",async:true,xhr:function(){return G.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:"*/*"},processData:true},lastModified:{},ajax:function(c){function d(){c.success&&c.success(p,m)}function g(){c.complete&&c.complete(z,m)}f.extend(true,c,f.extend(true,{},f.ajaxSet,c));var h,k=/=\?(&|$)/g,m,p,u=c.type.toUpperCase();if(c.data&&c.processData&&typeof c.data!=="string")c.data=f.param(c.data);if(c.dataType=="jsonp"){if(u=="GET")c.url.match(k)||(c.url+=(c.url.match(/\?/)?"&":"?")+(c.jsonp||"callback")+"=?");else if(!c.data||!c.data.match(k))c.data=(c.data?c.data+"&":"")+(c.jsonp||"callback")+"=?";c.dataType="json"}if(c.dataType=="json"&&(c.data&&c.data.match(k)||c.url.match(k))){h="jsonp"+da++;if(c.data)c.data=(c.data+"").replace(k,"="+h+"$1");c.url=c.url.replace(k,"="+h+"$1");c.dataType="script";G[h]=function(o){p=o;d();g();G[h]=A;try{delete G[h]}catch(t){}v&&v.removeChild(E)}}if(c.dataType=="script"&&c.cache==null)c.cache=false;if(c.cache===false&&u=="GET"){k=L();var y=c.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+k+"$2");c.url=y+(y==c.url?(c.url.match(/\?/)?"&":"?")+"_="+k:"")}if(c.data&&u=="GET"){c.url+=(c.url.match(/\?/)?"&":"?")+c.data;c.data=null}k=/^(\w+:)?\/\/([^\/?#]+)/.exec(c.url);if(c.dataType=="script"&&u=="GET"&&k&&(k[1]&&k[1]!=location.protocol||k[2]!=location.host)){var v=document.getElementsByTagName("head")[0],E=document.createElement("script");E.src=c.url;if(c.scriptCharset)E.charset=c.scriptCharset;if(!h){var F=false;E.onload=E.onreadystatechange=function(){if(!F&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){F=true;d();g();E.onload=E.onreadystatechange=null;v.removeChild(E)}}}v.appendChild(E);return A}var I=false,z=c.xhr();c.username?z.open(u,c.url,c.async,c.username,c.password):z.open(u,c.url,c.async);try{c.data&&z.setRequestHeader("Content-Type",c.contentType);if(c.ifModified)z.setRequestHeader("If-Modified-Since",f.lastModified[c.url]||"Thu, 01 Jan 1970 00:00:00 GMT");z.setRequestHeader("X-Requested-With","XMLHttpRequest");z.setRequestHeader("Accept",c.dataType&&c.accepts[c.dataType]?c.accepts[c.dataType]+", */*":c.accepts._default)}catch(e){}if(c.beforeSend&&c.beforeSend(z,c)===false){z.abort();return false}var i=function(o){if(z.readyState==0){if(j){clearInterval(j);j=null}}else if(!I&&z&&(z.readyState==4||o=="timeout")){I=true;if(j){clearInterval(j);j=null}m=o=="timeout"?"timeout":!f.httpSuccess(z)?"error":c.ifModified&&f.httpNotModified(z,c.url)?"notmodified":"success";if(m=="success")try{p=f.httpData(z,c.dataType,c)}catch(t){m="parsererror"}if(m=="success"){var q;try{q=z.getResponseHeader("Last-Modified")}catch(s){}if(c.ifModified&&q)f.lastModified[c.url]=q;h||d()}else f.handleError(c,z,m);g();o&&z.abort();if(c.async)z=null}};if(c.async){var j=setInterval(i,13);c.timeout>0&&setTimeout(function(){z&&!I&&i("timeout")},c.timeout)}try{z.send(c.data)}catch(n){f.handleError(c,z,null,n)}c.async||i();return z},handleError:function(c,d,g,h){c.error&&c.error(d,g,h)},httpSuccess:function(c){try{return!c.status&&location.protocol=="file:"||c.status>=200&&c.status<300||c.status==304||c.status==1223}catch(d){}return false},httpNotModified:function(c,d){try{var g=c.getResponseHeader("Last-Modified");return c.status==304||g==f.lastModified[d]}catch(h){}return false},httpData:function(c,d,g){var h=c.getResponseHeader("content-type");c=(h=d=="xml"||!d&&h&&h.indexOf("xml")>=0)?c.responseXML:c.responseText;if(h&&c.documentElement.tagName=="parsererror")throw"parsererror";if(g&&g.dataFilter)c=g.dataFilter(c,d);if(typeof c==="string"){d=="script"&&f.globalEval(c);if(d=="json")c=G.eval("("+c+")")}return c},param:function(c){function d(k,m){g[g.length]=encodeURIComponent(k)+"="+encodeURIComponent(m)}var g=[];if(f.isArray(c)||c.lhgren)f.each(c,function(){d(this.name,this.value)});else for(var h in c)f.isArray(c[h])?f.each(c[h],function(){d(h,this)}):d(h,f.isFunction(c[h])?c[h]():c[h]);return g.join("&").replace(/%20/g,"+")}});G.lhgcore=G.J=f})();
