(function(){var c=this,f=c.JUI,e=c.$,b=1,d=JUI=c.JUI=c.$=function(g,h){if(g==c){return d.Window?new d.Window(g):c}if(d.Element){return new d.Element(g,false)}return document.getElementById(g)};var a={initialize:function(l){l=l||{};var h=l.initialize;var g=l.legacy;var k=l.name||JUI.name;var j=h||g;var i=l.protect;var m=l.afterImplement||function(){};j.constructor=this.initialize;j.$family=k.toLowerCase();if(g&&h){j.prototype=g.prototype}j.prototype.constructor=j;j.prototype.$family=j.$family;var o=function(r,p,s,q){if(!i||q||!r.prototype[p]){r.prototype[p]=s}m.call(r,p,s);return r};j.alias=function(r,p,s){if(typeof r=="string"){if((r=this.prototype[r])){return o(this,p,r,s)}}for(var q in r){this.alias(q,r[q],p)}return this};j.genericize=function(q,p){if(typeof q=="string"){if((!p||!this[q])&&typeof this.prototype[q]=="function"){this[q]=function(){var s=Array.prototype.slice.call(arguments);return this.prototype[q].apply(s.shift(),s)}}return}for(var r=0;r<q.length;r++){this.genericize(q[r],p)}return this};j.implement=function(r,q,u){if(typeof r=="string"){return o(this,r,q,u)}for(var s in r){o(this,s,r[s],q)}return this}},genericize:function(g,h){g&&g.genericize(h)},implement:function(i,h){var g=i.length;while(g--){i[g].implement(h)}}};d.Native=a;(function(){var h={Array:Array,Boolean:Boolean,Date:Date,Function:Function,Number:Number,RegExp:RegExp,String:String,JUI:d};for(var m in h){a.initialize({name:m,initialize:h[m],protect:true})}var l={Array:["concat","indexOf","join","lastIndexOf","pop","push","reverse","shift","slice","sort","splice","toString","unshift","valueOf"],String:["charAt","charCodeAt","concat","indexOf","lastIndexOf","match","replace","search","slice","split","substr","substring","toLowerCase","toUpperCase","valueOf"]};for(var k in l){for(var j=l[k].length;j--;){a.genericize(c[k],l[k])}}})();d.name="jui";d.version="1.0.0.0";d.expando="_JUI_"+new Date,d.type=function(g){if(g==undefined){return false}if(g.$family){return(g.$family=="number"&&!isFinite(g))?false:g.$family}if(g.nodeName){switch(g.nodeType){case 1:return"element";case 3:return(/\S/).test(g.nodeValue)?"textnode":"whitespace"}}else{if(typeof g.length=="number"){if(g.callee){return"arguments"}else{if(g.item){return"collection"}}}}return typeof g};d.empty=function(){};d.noConfilict=function(){c.$=e;return this};d.extend=function(k,i){if(!i){throw"Failed! Inherit from a null object"}var g=i.prototype,j=function(){};j.prototype=g;var h=new j();k.prototype=h;h.constructor=k;k.superclass=g;if(i!=Object&&g.constructor==Object.prototype.constructor){g.constructor=i}return k};d.now=function(){return +new Date};d.getUid=(c.ActiveXObject)?function(g){return(g[d.expando]||(g[d.expando]=[b++]))[0]}:function(g){return g[d.expando]||(g[d.expando]=b++)}})();(function(b){var a=(function(){var A={},p={},m={},f={"class":"className"},d=/^(?:(?:([-]?\d*)(n{1}))?([-+]?\d*)|(odd|even))$/,z=/((?:[_a-zA-Z][\w-]*)|\*)|(?:#([\w-]+))|(?:\.([\w-]+))|(?:\[([a-z]+\w*)+([~\|\^\$\*!]?=)?['"]?([^\]]*?)["']?\])|(?::([\-\w]+)(?:\(['"]?(.+?)["']?\))*)|(?:\s*((?:[>+~\s,])|$)\s*)/g;(function(){var F=document.createElement("div"),G=(new Date()).getTime();F.innerHTML='<a name="'+G+'" class="€ b"></a>';p.qsa=!!(F.querySelectorAll&&F.querySelectorAll(".€").length)})();function E(G){var F=b.getUid(G);return(A[F])?null:(A[F]=true)}function w(F){return true}function g(F){return F.replace(/[-.*+?^${}()|[\]\/\\]/g,"\\$&")}function q(F){return{combinator:F||" ",tag:"*",id:null,classes:[],attributes:[],pseudos:[]}}function y(I){if(m[I]){return m[I]}var H=[],L=[],F,G,K,J=sli=ci=ai=pi=0;F=q();z.lastIndex=0;while(G=z.exec(I)){if(G[1]){F.tag=G[1].toUpperCase()}else{if(G[2]){F.id=G[2]}else{if(G[3]){F.classes[ci++]=G[3]}else{if(G[4]){F.attributes[ai++]={key:G[4],op:G[5],value:G[6]}}else{if(G[7]){F.pseudos[pi++]={key:G[7],value:G[8]}}else{if(G[9]){L[J++]=F;if(G[9]==","){H[sli++]=L;L=[];J=0;K=null}else{K=G[9]}F=q(K);ci=ai=pi=0}else{break}}}}}}}L[J++]=F;H[sli++]=L;return m[I]=H}var B={" ":function(G,H,J,L){var I,M,K=0,F=J.length;I=H.getElementsByTagName(G);if(L){while(M=I[K++]){M.nodeType==1&&L(M)&&(J[F++]=M)}}else{while(M=I[K++]){M.nodeType==1&&(J[F++]=M)}}return J},">":function(G,H,J){var I,L,K=0,F=J.length;I=H.getElementsByTagName(G);while(L=I[K++]){L.parentNode==H&&(J[F++]=L)}return J},"+":function(G,H,I,J){var F=I.length;while(H=H.nextSibling){if(H.nodeType==1){H.tagName==G&&J(H)&&(I[F++]=H);break}}return I},"~":function(G,H,I,J){var F=I.length;while(H=H.nextSibling){if(H.nodeType==1){if(!J(H)){break}H.tagName==G&&(I[F++]=H)}}return I}};var k={" ":function(G,F){while(G=G.parentNode){if(G==F||(F==document&&G.documentElement)){return true}}return false},">":function(G,F){return G.parentNode==F},"+":function(G,F){while(G=G.previousSibling){if(G.nodeType!=1){continue}if(G==F){return true}else{if(G.tagName==G.tagName){return false}}}return false},"~":function(G,F){while(n=n.previousSibling){if(n==F){return true}}return false}};var j={"=":function(F){return F},"~=":function(F){return new RegExp("(?:^|\\s+)"+g(F)+"(?:\\s+|$)")},"!=":function(F){return F},"^=":function(F){return new RegExp("^"+g(F))},"$=":function(F){return new RegExp(g(F)+"$")},"*=":function(F){return new RegExp(g(F))},"|=":function(F){return new RegExp("^"+g(F)+"-?")}};var s={"=":function(F,G){return F==G},"~=":function(F,G){return G.test(F)},"!=":function(F,G){return F!=G},"^=":function(F,G){return G.test(F)},"$=":function(F,G){return G.test(F)},"*=":function(F,G){return G.test(F)},"|=":function(F,G){return G.test(F)}};var r={},u={};function v(I){if(r[I]){return r[I]}var G,H,F;G=I.match(d);switch(G[4]){case"even":H=2;F=0;break;case"odd":H=2;F=1;break;default:H=parseInt(G[1],10);H=isNaN(H)?(G[2]?1:0):H;F=parseInt(G[3],10);isNaN(F)&&(F=0);break}return(r[I]={a:H,b:F})}function i(G,K,M,N){var J,H,L,F,I=1;J=b.getUid(G);H=b.getUid(G.parentNode);F=u[H]||(u[H]={});if(!F[J]){while((G=G[M])){if(G.nodeType!=1||(N&&G.tagName!=N)){continue}L=F[b.getUid(G)];if(L){I=L+I;break}I++}F[J]=I}return K.a?F[J]%K.a==K.b:K.b==F[J]}function x(I,F){var H=I;while((H=H.previousSibling)){if(H.nodeType===1&&(!F||H.tagName==F)){return false}}var G=I;while((G=G.nextSibling)){if(G.nodeType===1&&(!F||G.tagName==F)){return false}}return true}var e={root:function(F){return F===F.ownerDocument.documentElement},"nth-child":function(G,F){return(F.a==1&&!F.b)?true:i(G,F,"previousSibling",false)},"nth-last-child":function(G,F){return(F.a==1&&!F.b)?true:i(G,F,"previousSibling",false)},"nth-of-type":function(G,F){return i(G,F,"previousSibling",G.tagName)},"nth-last-of-type":function(G,F){return i(G,F,"nextSibling",G.tagName)},"first-child":function(G){var F=G.parentNode.firstChild;while(F.nodeType!=1){F=F.nextSibling}return G===F},"last-child":function(F){while((F=F.nextSibling)){if(F.nodeType===1){return false}}return true},"first-of-type":function(H){var G=H.parentNode.firstChild,F=H.tagName;while(G.nodeType!=1||G.tagName!=F){G=G.nextSibling}return H===G},"last-of-type":function(G){var F=G.tagName;while((G=G.nextSibling)){if(G.nodeType==1&&G.tagName==F){return false}}return true},"only-child":function(F){return x(F)},"only-of-type":function(F){return x(F,F.tagName)},empty:function(F){return !F.firstChild},parent:function(F){return !!F.firstChild},enabled:function(){return node.disabled===false&&node.type!=="hidden"},disabled:function(){return node.disabled===true},checked:function(F){return F.checked===true},selected:function(F){F.parentNode.selectedIndex;return F.selected===true},visible:function(F){return F.offsetWidth>0||F.offsetHeight>0},hidden:function(F){return F.offsetWidth===0||F.offsetHeight===0},not:function(F,G){return !c(F,G)},contains:function(G,F){return F.test(G.innerText||G.textContent||"")},odd:function(F){return},even:function(F){return}};e.nth=e["nth-child"];e.index=e["nth-child"];var C={t:function(F){return y(F)},n:function(F){return new RegExp(g(F))},h:function(F){return v(F)}};var o={klass:function(F,G){var L,I=0,H=[],J=0,K;K=new RegExp("(?:^|\\s+)"+g(G)+"(?:\\s+|$)");while(L=F[I++]){K.test(L.className)&&(H[J++]=L)}return H},attribute:function(G,K){var H,I=0,J=[],F=0,M,N=f[K.key]||K.key,L=/^(?:src|href|action)$/.test(N)?2:0;if(K.op){M=j[K.op](K.value);while(H=G[I++]){s[K.op](H[N]||H.getAttribute(N,L),M)&&(J[F++]=H)}}else{while(H=G[I++]){((H[N]||H.getAttribute(N,L))!=null)&&(J[F++]=H)}}return J},pseudo:function(G,H){var F=H.value,K=H.key,M,J=0,I=[],L=0;F&&(F=C[K.charAt(2)](F));while(M=G[J++]){e[K](M,F)&&(I[L++]=M)}return I}};function D(J,L){var N=[],O,M=0,Q,S=E,G=J.combinator,F=J.id,R=J.tag,I=J.classes,K=J.attributes,P=J.pseudos;if(F){var H=document.getElementById(F);if(R=="*"||H.tagName==R){while(cxt=L[M++]){if(k[G](H,cxt)){N=[H];break}}}}else{if(R){M=0;A={};if(L.length==1){S=false}while(cxt=L[M++]){N=B[G](R,cxt,N,S)}}}if(I.length>(M=0)){while(Q=I[M++]){N=o.klass(N,Q)}}if(K.length>(M=0)){while(Q=K[M++]){N=o.attribute(N,Q)}}if(P.length>(M=0)){while(Q=P[M++]){N=o.pseudo(N,Q)}}return N}function l(H,I){var G=0,F;A={};u={};while(F=H[G++]){I=D(F,I)}return I}function h(F,K){var I=[],H=0,J,G=y(F);while(J=G[H++]){if(I.length>0){I=l(J,K).concat(I)}else{I=l(J,K)}}return I}function c(K,G){var I=0,J,H,L,F;G=G[0][0];if(G.id&&G.id!=K.id){return false}if(G.classes.length>(I=0)){while(J=G.classes[I++]){if(!(new RegExp("(?:^|\\s+)"+g(J)+"(?:\\s+|$)")).test(K.className)){return false}}}if(G.attributes.length>(I=0)){while(J=G.attributes[I++]){H=f[J.key];F=/^(?:src|href|action)$/.test(H)?2:0;H=K[H]||K.getAttribute(H,F);if(J.op){if(!s[J.op](H,j[J.op](J.value))){return false}}else{if(H==null){return false}}}}if(G.pseudos.length>(I=0)){while(J=G.pseudos[I++]){(L=J.value)&&(L=C[J.key.charAt(2)](L));if(!e[J.key](K,L)){return false}}}return true}return function(F,G){if(!F||typeof F!=="string"){return[]}G=G||document;if(G.nodeType!==1&&G.nodeType!==9){return[]}if(p.qsa){try{return G.querySelectorAll(F)}catch(H){return h(F,[G])}}else{return h(F,[G])}}})();b.Selector=a})(JUI);(function(e){var k={};(function(){var o=document.createElement("div"),q="_jui_"+(new Date()).getTime(),m;o.innerHTML='   <link/><table></table><a name="'+q+'" class="€ b" href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select>';k={opacity:(typeof o.style.opacity)!=="undefined"?true:false,innerText:(typeof o.innerText)!==undefined?true:false,leadingWhitespace:o.firstChild&&o.firstChild.nodeType==3,cssFloat:!(o.style.cssFloat===undefined),cloneEvent:false,tbody:false,htmlSerialize:false};if(o.getElementsByTagName){k.tbody=!!o.getElementsByTagName("tbody").length;k.htmlSerialize=!!o.getElementsByTagName("link").length}if(o.attachEvent&&o.fireEvent){o.attachEvent("onclick",function p(){k.cloneEvent=true;o.detachEvent("onclick",p)});o.cloneNode(true).fireEvent("onclick")}})();function i(m){return m.replace(/-\D/g,function(o){return o.charAt(1).toUpperCase()})}function d(m){return m.replace(/[A-Z]/g,function(o){return("-"+o.charAt(0).toLowerCase())})}var f={"class":"className","for":"htmlFor","float":k.cssFloat?"cssFloat":"styleFloat"},j={left:"@px",top:"@px",bottom:"@px",right:"@px",width:"@px",height:"@px",maxWidth:"@px",maxHeight:"@px",minWidth:"@px",minHeight:"@px",backgroundColor:"rgb(@, @, @)",backgroundPosition:"@px @px",color:"rgb(@, @, @)",fontSize:"@px",letterSpacing:"@px",lineHeight:"@px",clip:"rect(@px @px @px @px)",margin:"@px @px @px @px",padding:"@px @px @px @px",border:"@px @ rgb(@, @, @) @px @ rgb(@, @, @) @px @ rgb(@, @, @)",borderWidth:"@px @px @px @px",borderStyle:"@ @ @ @",borderColor:"rgb(@, @, @) rgb(@, @, @) rgb(@, @, @) rgb(@, @, @)",zIndex:"@",zoom:"@",fontWeight:"@",textIndent:"@px",opacity:"@"},h={margin:{},padding:{},border:{},borderWidth:{},borderStyle:{},borderColor:{}};(function(){var B=["Top","Right","Bottom","Left"],r="margin",o="padding",A="border",u=B.length,x;while(x=B[--u]){var z=r+x,y=o+x,w=A+x;h[r][z]=j[z]="@px";h[o][y]=j[y]="@px";h[A][w]=j[w]="@px @ rgb(@, @, @)";var s=w+"Width",v=w+"Style",q=w+"Color";h[w]={};h.borderWidth[s]=h[w][s]=j[s]="@px";h.borderStyle[v]=h[w][v]=j[v]="@";h.borderColor[q]=h[w][q]=j[q]="rgb(@, @, @)"}})();var b={compact:true,nowrap:true,ismap:true,declare:true,noshade:true,checked:true,disabled:true,readonly:true,multiple:true,selected:true,noresize:true,defer:true};var c=function(m,v){if(v!==false){if(e.type(m)!=="string"){var o=[];for(var u in m){o.push(new c(u,m[u]))}return new a(o)}var s=l(document.createElement(m));if(v){if(v.style){s.css(v.style);delete v.style}if(v.html){s.html(v.html)}}s.attr(v);return s}if(e.type(m)!=="string"){return l(m)}var s,q,r=/^#([\w-]+)$/;if(r.test(m)||!e.Selector){return l(document.getElementById(m.replace("#","")))}else{q=e.Selector(m);return new a(q,false)}};var a=function(o){if(o&&o.$family!=="elements"){var m=0,s=[];while((s[m]=l(o[m++]))){}s.length--;var q=a.prototype;for(var r in q){s[r]=q[r]}o=s}return o};function l(m){if(m&&!m.$family&&!(/^object|embed$/i).test(m.tagName)){var o=c.prototype;for(var q in o){m[q]=o[q]}}return m}e.Native.initialize({name:"Element",initialize:c,protect:true,afterImplement:function(m,o){if(Array[m]){return}a.implement(m,function(){var p=[],u=true;for(var r=0,q=this.length;r<q;r++){var s=this[r][m].apply(this[r],arguments);p.push(s);if(u){u=(e.type(s)=="element")}}return(u)?new a(p,false):p})}});e.Native.initialize({name:"Elements",initialize:a,protect:true});function g(u){var v=/^<(\w+)\s*\/?>$/.exec(u);if(v){return document.createElement(v[1])}var w=[],q=[],m=document.createElement("div");u=u.replace(/(<(\w+)[^>]*?)\/>/g,function(z,A,y){return y.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?z:A+"></"+y+">"});var x=u.replace(/^\s+/,"").substring(0,10).toLowerCase();var p=!x.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!x.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||x.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!x.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!x.indexOf("<td")||!x.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!x.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!k.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];m.innerHTML=p[1]+u+p[2];while(p[0]--){m=m.lastChild}if(k.tbody){var o=/<tbody/i.test(u),s=!x.indexOf("<table")&&!o?m.firstChild&&m.firstChild.childNodes:p[1]=="<table>"&&!o?m.childNodes:[];for(var r=s.length-1;r>=0;--r){if((s[r].tagName=="TBODY")&&!s[r].childNodes.length){s[r].parentNode.removeChild(s[r])}}}if(!k.leadingWhitespace&&/^\s/.test(u)){m.insertBefore(document.createTextNode(u.match(/^\s*/)[0]),m.firstChild)}return m.firstChild}c.implement({hasClass:function(m){return(" "+this.className+" ").indexOf(" "+m+" ")>-1},addClass:function(m){if(!this.hasClass(m)){this.className=this.className===""?m:(this.className+" "+m)}return this},removeClass:function(m){this.className=this.className.replace(new RegExp("(^|\\s)"+m+"(?:\\s|$)","g"),"$1");return this},setStyle:function(r,s){if(r=="opacity"){s=parseFloat(s);if(k.opacity){this.style.opacity=s}else{this.style.filter=(this.style.filter||"").replace(/alpha\([^)]*\)/,"")+(s+""=="NaN"?"":"alpha(opacity="+s*100+")");this.zoom=1}if(s==0){if(this.style.visibility!="hidden"){this.style.visibility="hidden"}}else{if(this.style.visibility!="visible"){this.style.visibility="visible"}}return}r=f[r]||i(r);var q=e.type(s);if(q!="string"){s=(q!="array"&&q!="arguments")?[s]:s;var m=(j[r]||"@").split(" "),p=m.length,o;while(p--){o=s[p];if(!(o===0||o)){m[p]=""}else{m[p]=e.type(o)=="number"?m[p].replace("@",Math.round(o)):o}}s=m.join(" ")}else{if(s==""+Number(s)){s=Math.round(s)}}try{this.style[r]=s}catch(u){}return this},getStyle:function(q){if(q=="opacity"){if(k.opacity){return this.style.opacity}else{return this.style.filter&&this.style.filter.indexOf("opacity=")>=0?(parseFloat(this.style.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}}q=f[q]||i(q);var m=this.style[q];if(!(m===0||m)){m=[];for(var o in h){if(q!=o){continue}for(var p in h[o]){m.push(this.getStyle(p))}return m.join(" ")}if(this.currentStyle){return this.currentStyle[q]}var r=this.getDocument().defaultView.getComputedStyle(this,null);return(r)?r.getPropertyValue([d(q)]):null}return m},css:function(m,o){if(e.type(m)=="object"){for(var q in m){this.setStyle(q,m[q])}return this}if(o===undefined){return this.getStyle(m)}else{this.setStyle(m,o);return this}},getProperty:function(m){var o=f[m];var p=(o)?this[o]:this.getAttribute(m,2);return(b[m])?!!p:(o)?p:p||null},setProperty:function(m,p){var o=f[m];if(o&&b[m]){p=!!p}o?this[o]=p:this.setAttribute(m,""+p);return this},attr:function(m,p){if(e.type(m)=="object"){for(var o in m){this.setProperty(o,m[o])}return this}if(p===undefined){return this.getProperty(m)}else{this.setProperty(m,p);return this}},dimension:function(m){if(!(m===0||m)){return{width:this.offsetWidth,height:this.offsetHeight}}if(m.width!==undefined){this.css("width",m.width)}if(m.height!==undefined){this.css("height",m.height)}return this},position:function(r){if(r===undefined){if(this.parentNode===null||this.style.display=="none"){return false}if(this.getBoundingClientRect){box=this.getBoundingClientRect();var o=Math.max(document.documentElement.scrollTop,document.body.scrollTop);var p=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft);return{x:box.left+p,y:box.top+o}}else{if(document.getBoxObjectFor){box=document.getBoxObjectFor(this);var m=(this.style.borderLeftWidth)?parseInt(this.style.borderLeftWidth):0;var q=(this.style.borderTopWidth)?parseInt(this.style.borderTopWidth):0;r=[box.x-m,box.y-q]}else{r=[this.offsetLeft,this.offsetTop];parent=this.offsetParent;if(parent!=this){while(parent){r[0]+=parent.offsetLeft;r[1]+=parent.offsetTop;parent=parent.offsetParent}}if(this.style.position=="absolute"){r[0]-=document.body.offsetLeft;r[1]-=document.body.offsetTop}}}if(this.parentNode){parent=this.parentNode}else{parent=null}while(parent&&parent.tagName!="BODY"&&parent.tagName!="HTML"){r[0]-=parent.scrollLeft;r[1]-=parent.scrollTop;if(parent.parentNode){parent=parent.parentNode}else{parent=null}}return{x:r[0],y:r[1]}}if(r.x!==undefined){this.css("left",r.x)}if(r.y!==undefined){this.css("top",r.y)}return this}});c.implement({getDocument:function(){return this.ownerDocument},getElement:function(m){var o=[];if(e.Selector){o=e.Selector(m,this)}else{o=this.getElementsByTagName(m)}return o[0]?new c(o[0],false):null},getElements:function(m){if(e.Selector){return new a(e.Selector(m,this),false)}else{return new a(this.getElementsByTagName(m),false)}}});c.implement({txt:function(m){if(m===undefined){return this[k.innerText?"innerText":"textContent"]}else{this.html(m.escapeHTML());return m}},html:function(m){if(m!==undefined){this.innerHTML=m}return this.innerHTML},clone:function(o){o=o!==false;if(k.cloneEvent){var m=this.outerHTML;if(!m){var p=this.ownerDocument.createElement("div");p.appendChild(this.cloneNode(o));m=p.innerHTML}return new c(g(m.replace(new RegExp(e.expando+'="(?:\d+|null)"',"g"),"").replace(/^\s*/,"")),false)}else{return new c(this.cloneNode(o),false)}},prepend:function(m){m=m.clone();if(this.firstChild){this.insertBefore(m,this.firstChild)}else{this.appendChild(m)}return this},append:function(m){this.appendChild(m.clone());return this},inject:function(m,o){if(o=="top"){this.prependTo(m)}else{this.appendTo(m)}return this},insert:function(m,o){if(o=="after"){this.after(m)}else{this.before(m)}return this},before:function(m){this.parentNode.insertBefore(m.clone(),this);return this},after:function(m){m=m.clone();var o=this.parentNode;if(this.nextSibling){o.insertBefore(m,this.nextSibling)}else{o.appendChild(m)}return this},dispose:function(){return(this.parentNode)?this.parentNode.removeChild(this):this},empty:function(){var o=this.childNodes,m;for(var m=o.length;m>0;m--){o[m]&&e(o[m]).destroy()}return this},destroy:function(){this.empty();this.dispose();this.removeEvents();return null}});c.alias({dispose:"remove"});e.Element=c;e.Elements=a})(JUI);(function(b){var a=function(e){if(e&&!e.$family){var c=a.prototype;for(var d in c){e[d]=c[d]}}return e};b.Native.initialize({name:"Window",legacy:window.Window?window.Window:null,initialize:a,afterImplement:function(d,c){window[d]=a.prototype[d]=c}});a.implement({dimension:function(e){var d=0,c=0;if(typeof(window.innerWidth)=="number"){d=window.innerWidth;c=window.innerHeight}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){d=document.documentElement.clientWidth;c=document.documentElement.clientHeight}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){d=document.body.clientWidth;c=document.body.clientHeight}}}if(!e){return{width:d,height:c}}if(e.width!==undefined&&e.height!==undefined){window.resizeTo(e.width,e.height)}else{if(e.width===undefined&&e.height!==undefined){window.resizeTo(d,e.height)}else{if(e.width!==undefined&&e.height===undefined){window.resizeTo(e.width,c)}}}return this},scrollPos:function(e){var d=0,c=0;if(typeof(window.pageYOffset)=="number"){c=window.pageYOffset;d=window.pageXOffset}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){c=document.body.scrollTop;d=document.body.scrollLeft}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){c=document.documentElement.scrollTop;d=document.documentElement.scrollLeft}}}if(!e){return{x:d,y:c}}return this}});new a(window);b.Window=a})(JUI);(function(c){var d=[],a={};c.Element&&d.push(c.Element);c.Window&&d.push(c.Window);function b(e,g){var f=e.length;while(f){if(e[f--]==g){return true}}return false}c.Native.implement(d,{cache:function(e,g){var f=c.getUid(this);if(e&&!a[f]){a[f]={}}if(g!==undefined){a[f][e]=g;return g}return e?a[f][e]:f},erase:function(e){var f=c.getUid(this);if(e){if(a[f]){delete a[f][e];e="";for(e in a[f]){break}(!e)&&this.erase()}}else{delete a[f]}return this}});c.Native.implement(d,{addEvent:function(i,h,k,j){var f=this.cache("events")||this.cache("events",{});k=k?k:this;f[i]=f[i]||{keys:[],values:[]};if(!j&&b(f[i].keys,h)){return this}var g=function(l){if(c.Event){l=new c.Event(l)}h.call(k,l)};if(i=="unload"){var e=g;g=function(){self.removeListener("unload",g);e()}}if(this.addEventListener){this.addEventListener(i,g,false)}else{this.attachEvent("on"+i,g)}f[i].keys.push(h);f[i].values.push(g);return this},removeEvent:function(k,j){var h=this.cache("events");if(!h||!h[k]){return this}if(!j){var g=0,e=h[k].keys;while(j=e[g++]){this.removeEvent(k,j)}delete h[k];k="";for(k in h){break}if(!k){this.erase()}else{this.cache("events",h)}return this}var m=-1,g=0,l;while(l=h[k].keys[g]){if(l==j){m=g;break}g++}if(m==-1){return this}h[k].keys.splice(m,1);j=h[k].values.splice(m,1)[0];if(this.removeEventListener){this.removeEventListener(k,j,false)}else{this.detachEvent("on"+k,j)}return this},addEvents:function(e){for(var f in e){this.addEvent(f,e[f])}return this},removeEvents:function(e){if(c.type(e)=="object"){for(var g in e){this.removeEvent(g,e[g])}return this}var f=this.cache("events");if(!f){return this}if(!e){for(var g in f){this.removeEvent(g)}this.erase("events")}else{this.removeEvent(e)}return this},fireEvent:function(j,h,f){var o=this.cache("events");if(!o||!o[j]){return this}var e=0,l=o[j],k,g,m=this;while(k=l[e++]){g=function(i){return function(){i.apply(m,h)}};setTimeout(g(k),f)}return this}})})(JUI);(function(c){var b={"8":"backspace","9":"tab","13":"enter","27":"esc","32":"space","38":"up","40":"down","37":"left","39":"right","46":"delete"};var a=function(d){if(d.$family==="event"){return d}var o=document,i=window,m=d.type;var j=d.target||d.srcElement;while(j&&j.nodeType==3){j=j.parentNode}if(/key/.test(m)){var e=d.which||d.keyCode;var p=b[e];if(m=="keydown"){var g=e-111;if(g>0&&g<13){p="f"+g}}p=p||String.fromCharCode(e).toLowerCase()}else{if(m.match(/(click|mouse|menu)/i)){o=(!o.compatMode||o.compatMode=="CSS1Compat")?o.documentElement:o.body;var l={x:d.pageX||d.clientX+o.scrollLeft,y:d.pageY||d.clientY+o.scrollTop};var f={x:(d.pageX)?d.pageX-i.pageXOffset:d.clientX,y:(d.pageY)?d.pageY-i.pageYOffset:d.clientY};if(m.match(/DOMMouseScroll|mousewheel/)){var k=(d.wheelDelta)?d.wheelDelta/120:-(d.detail||0)/3}var h=(d.which==3)||(d.button==2)}}return(function(r,q){for(var s in q){r[s]=q[s]}return r})(this,{event:d,type:m,page:l,client:f,rightClick:h,wheel:k,target:j,code:e,key:p,shift:d.shiftKey,control:d.ctrlKey,alt:d.altKey,meta:d.metaKey})};c.Native.initialize({name:"Event",initialize:a,protect:true});a.implement({stop:function(){return this.stopPropagation().preventDefault()},stopPropagation:function(){if(this.event.stopPropagation){this.event.stopPropagation()}else{this.event.cancelBubble=true}return this},preventDefault:function(){if(this.event.preventDefault){this.event.preventDefault()}else{this.event.returnValue=false}return this}});c.Event=a})(JUI);(function(b){var a=function(c){this.events=[];this.name=c};b.Native.initialize({name:"CustomEvent",initialize:a,protect:true});a.implement({fire:function(){var d=[];for(var e=0;e<arguments.length;e++){d.push(arguments[e])}for(var e=0,c=this.events.length;e<c;e++){var f=this.events[e];f[0].call(f[1],this.name,d)}},subscribe:function(d,c){this.events.push([d,c])},clear:function(){this.events=[]}});b.CustomEvent=a})(JUI);(function(a){a.browser={};(function(){a.browser={ie:0,opera:0,gecko:0,webkit:0,mobile:null};var c=navigator.userAgent,b;if((/KHTML/).test(c)){a.browser.webkit=1}b=c.match(/AppleWebKit\/([^\s]*)/);if(b&&b[1]){a.browser.webkit=parseFloat(b[1]);if(/ Mobile\//.test(c)){a.browser.mobile="Apple"}else{b=c.match(/NokiaN[^\/]*/);if(b){a.browser.mobile=b[0]}}}if(!a.browser.webkit){b=c.match(/Opera[\s\/]([^\s]*)/);if(b&&b[1]){a.browser.opera=parseFloat(b[1]);b=c.match(/Opera Mini[^;]*/);if(b){a.browser.mobile=b[0]}}else{b=c.match(/MSIE\s([^;]*)/);if(b&&b[1]){a.browser.ie=parseFloat(b[1])}else{b=c.match(/Gecko\/([^\s]*)/);if(b){a.browser.gecko=1;b=c.match(/rv:([^\s\)]*)/);if(b&&b[1]){a.browser.gecko=parseFloat(b[1])}}}}}})()})(JUI);(function(c){function a(f,g){for(var e in g){f[e]=g[e]}return f}function b(e){return e.replace(/\b[a-z]/g,function(f){return f.toUpperCase()})}var d=function(o){var l={onStart:c.empty,onComplete:c.empty,onCancel:c.empty,onEnterFrame:c.empty,fps:50,duration:500,unit:false,link:"ignore",effect:false},e=20,h=null,m=0,i=0,f=0,j=function(q){return q},k=this;l=a(l,o);function g(){var p=(c.now()-m)/l.duration;if(p>=1){k.stopTimer();p=1}p=j(p);k.change(p);l.onEnterFrame(p)}this.change=function(p){return p};this.startTimer=function(p){l=a(l,p);e=Math.round(1000/l.fps);if(l.effect&&c.Fx.Transitions){var q=l.effect.split(":");j=c.Fx.Transitions;j=j[b(q[0])];if(q[1]){j=j["ease"+b(q[1])+(q[2]?b(q[2]):"")]}}m=c.now();try{clearInterval(h)}catch(r){}h=setInterval(g,e);l.onStart()};this.stopTimer=function(){clearInterval(h);l.onComplete()};this.cancelTimer=function(){clearInterval(h);l.onCancel()};return this};c.Native.initialize({name:"Fx",initialize:d,protect:false});c.Fx=d})(JUI);(function(b){var a=function(f,d){var e={},c={},g=b(f);this.constructor.superclass.constructor.apply(this,[d]);this.change=function(i){for(var h in e){g.setStyle(h,Math.round(e[h]+i*c[h]))}};this.start=function(i,h){if(!i){return}for(var j in i){if(b.type(i[j])!=="array"||i[j].length===1||i[j][0]===undefined){e[j]=parseFloat(g.getStyle(j));e[j]=isNaN(e[j])?0:e[j];c[j]=parseFloat(i[j][0]===undefined?i[j]:i[j][1]);c[j]=(isNaN(c[j])?0:c[j])-e[j]}else{e[j]=parseFloat(i[j][0]);e[j]=isNaN(e[j])?0:e[j];c[j]=parseFloat(i[j][1]);c[j]=(isNaN(c[j])?0:c[j])-e[j]}}this.startTimer()}};a=b.extend(a,b.Fx);b.Native.initialize({name:"Fx.Morph",initialize:a,protect:false});b.Fx.Morph=a})(JUI);(function(d){var e={Linear:function(f){return f},Pow:function(g,f){return Math.pow(g,f||6)},Expo:function(f){return Math.pow(2,8*(f-1))},Circ:function(f){return 1-Math.sin(Math.acos(f))},Sine:function(f){return 1-Math.sin((1-f)*Math.PI/2)},Back:function(g,f){f=f||1.618;return Math.pow(g,2)*((f+1)*g-f)},Bounce:function(i){var h;for(var g=0,f=1;1;g+=f,f/=2){if(i>=(7-4*g)/11){h=f*f-Math.pow((11-6*g-11*i)/4,2);break}}return h},Elastic:function(g,f){return Math.pow(2,10*--g)*Math.cos(20*g*Math.PI*(f||1)/3)}};var c=["Quad","Cubic","Quart","Quint"],b=0,a;while(a=c[b]){e[a]=function(f){return Math.pow(f,b+2)};b++}d.Fx.Transitions={};for(a in e){d.Fx.Transitions[a]=(function(f){return{easeIn:function(h,g){return e[f](h,g)},easeOut:function(h,g){return 1-e[f](1-h,g)},easeInOut:function(h,g){return(h<=0.5)?e[f](2*h,g)/2:(2-e[f](2*(1-h),g))/2}}})(a)}})(JUI);(function(b){var a=function(f,e,c,d){this.onChangePage=new b.CustomEvent("onChangePage");this.ops={btnTriggerEvent:"click",autoSwitchTime:5000,direction:"horizontal",onChangePage:null};this.mergeOptions(d);if(this.ops.onChangePage!=null){this.onChangePage.subscribe(this.ops.onChangePage)}this.pageCount=0;this.selectedPageNum=0;this.width=e;this.height=c;this.tpEl=f;this.init()};b.Native.initialize({name:"PhotoSlide",initialize:a,protect:true});a.implement({mergeOptions:function(c){for(var d in c){this.ops[d]=c[d]}},beginAutoSwitch:function(){if(this.ops.autoSwitchTime<1||this.pageCount<2){return}clearInterval(this.sid);var c=this;this.sid=setInterval(function(){var d=0;if(c.selectedPageNum<c.pageCount-1){d=c.selectedPageNum+1}c.changePage(d)},this.ops.autoSwitchTime)},stopAutoSwitch:function(){clearInterval(this.sid)},init:function(){this.picsEl=this.tpEl.getElement("div.pics");this.picsEl.css({width:this.width,height:this.height,overflow:"hidden"});this.picsMoveEl=this.picsEl.getElement("div");this.fx=new b.Fx.Morph(this.picsMoveEl,{duration:500,effect:"Quad:in:out"});this.titleEl=this.tpEl.getElement("div.info .title");this.btnsEl=this.tpEl.getElement("div.info .btns");this.tpEl.addEvent("mouseover",function(c){this.stopAutoSwitch()},this);this.tpEl.addEvent("mouseout",function(c){this.beginAutoSwitch()},this);this.fnc()},fnc:function(){this.infos=[];var f=this.picsMoveEl.getElements("div");this.pageCount=f.length;if(this.pageCount==0){return}var d=this.width;var j=this.height;if(this.ops.direction=="horizontal"){d=this.pageCount*this.width}else{j=this.pageCount*this.height}this.picsMoveEl.css({width:d,height:j,overflow:"hidden"});var g=[];for(var e=0,c=this.pageCount;e<c;e++){f[e].css({width:this.width,height:this.height,overflow:"hidden","float":"left"});g.push(['<a href="javascript:;">',e+1,"</a>"].join(""));var l=f[e].getElements("a");if(l.length>0){this.infos.push({title:l[0].attr("title"),link:l[0].attr("href")})}else{this.infos.push({title:"No Text",link:""})}}if(this.btnsEl!=null){this.btnsEl.html(g.join(""));var k=this.btnsEl.getElements("a");k.addEvent(this.ops.btnTriggerEvent,function(i){var h=parseInt(b(i.target).html())-1;this.changePage(h)},this)}this.changePage(0);this.beginAutoSwitch()},changePage:function(c){if(this.btnsEl!=null){var d=this.btnsEl.getElements("a");d[this.selectedPageNum].className="";d[c].className="now"}if(this.titleEl!=null){var e=this.infos[c];this.titleEl.html(e.title);this.titleEl.attr("href",e.link)}this.selectedPageNum=c;this.onChangePage.fire(this.selectedPageNum);if(this.ops.direction=="horizontal"){this.fx.start({"margin-left":-(this.selectedPageNum*this.width)})}else{this.fx.start({"margin-top":-(this.selectedPageNum*this.height)})}}});b.PhotoSlide=a})(JUI);window.$$={};window.DEBUG=true;window.Txt={copySuccess:"复制成功！",copyFail:"被浏览器拒绝！\n请在浏览器地址栏输入'about:config'并回车\n然后将'signed.applets.codebase_principal_support'设置为'true'",OK:"确定"};window.log=function(a){if(window.console&&window.console.log&&DEBUG){window.console.log(a)}};window.warn=function(a){if(window.console&&window.console.warn&&DEBUG){window.console.warn(a)}};window.info=function(a){if(window.console&&window.console.info&&DEBUG){window.console.info(a)}};window.err=function(a){if(window.console&&window.console.error&&DEBUG){window.console.error(a)}};window.group=function(b,a){if(window.console&&window.console.group&&a&&DEBUG){window.console.group(b)}else{if(window.console&&window.console.groupCollapsed&&!a&&DEBUG){window.console.groupCollapsed(b)}}};window.groupEnd=function(){if(window.console&&window.console.groupEnd&&DEBUG){window.console.groupEnd()}};(function(a){a.Window.implement({width:function(b){if(b){this.dimension({width:b})}else{return this.dimension().width}},height:function(b){if(b){this.dimension({height:b})}else{return this.dimension().height}},scroll_left:function(b){if(b){this.scrollPos({x:b})}else{return this.scrollPos().x}},scroll_top:function(b){if(b){this.dimension({y:b})}else{return this.scrollPos().y}}});a.Element.implement({pd:function(e,d,c,b){return this.css({left:e,top:d,width:c,height:b})},w:function(b){if(b){this.dimension({width:b})}else{return this.dimension().width}},h:function(b){if(b){this.dimension({height:b})}else{return this.dimension().height}}})})(JUI);(function(a){a.format=a.empty;a.Element.implement({format:function(d,c){var b=[].slice.call(arguments,0);b.shift();if(a.format[d]){a.format[d].apply(this,b)}else{err("[NOT IMPLEMENT] $.format."+d+"();")}return this}})})(JUI);$.format.photo=function(){var d=this;var a=parseInt(d.css("width"));var c=parseInt(d.css("height"));var b=d.getElement("img");var e=function(){var f=this.width;var i=this.height;if(f==1&&i==1){return}var g=f/i;if(a<c){var j=a/g;if(j>c){b.height=c;var k=c*g;b.width=k;b.css("margin-left",(a-k)/2)}else{b.width=a;b.height=j;b.css("margin-top",(c-j)/2)}}else{var k=c*g;if(k>a){b.width=a;var j=a/g;b.height=j;b.css("margin-top",(c-j)/2)}else{b.height=c;b.width=k;b.css("margin-left",(a-k)/2)}}d.css("overflow","hidden");b.css({visibility:"visible",display:"block"})};b.onload=e;b.src=b.alt;return d};(function(a){a.Element.implement({show:function(){var c=this.cache("__display__");return this.css("display",c&&c!="none"?c:"block")},hide:function(){this.cache("__display__",this.css("display"));return this.css("display","none")},slideDown:function(f,i,g){if(!f){f=1000}this.show().stop();var c=this.css("height");if(parseInt(c)==0){this.css("height","auto");var c=this.css("height")}var c=this.h();var d=parseInt(this.css("padding-top"));var e=parseInt(this.css("padding-bottom"));this.css({height:0,overflow:"hidden"}).animate({height:c-d-e},f,i,g)},slideUp:function(f,i,g){if(!f){f=1000}this.show().stop();this.css("height","auto");var c=this.h();var d=parseInt(this.css("padding-top"));var e=parseInt(this.css("padding-bottom"));this.css({height:c-d-e,overflow:"hidden"}).animate({height:0},f,i,function(){log(this)})},stop:function(){var c=this.cache("__animate__");if(c){c.stopTimer()}return this},animate:function(d,g,i,h){switch(arguments.length){case 2:i="Swing:in";h=a.empty;break;case 3:if(typeof i=="string"){h=a.empty}else{h=i;i="Swing:in"}break;case 4:break;default:err("PARAM ERROR - .animate(properties, duration[, easing[, callback]])");break}var f={};for(var c in d){f[c]=[this.css(c),d[c]]}var e=new a.Fx.Morph(this,{fps:100,duration:g,effect:i,onComplete:h}).start(f);this.cache("__animate__",e);return this}});var b={Vibration:function(c){return -Math.pow(Math.E,-5*c)*Math.cos(c/18*500)+1},Swing:function(c){return -Math.cos(c*Math.PI)/2+0.5}};for(t in b){a.Fx.Transitions[t]=(function(c){return{easeIn:function(e,d){return b[c](e,d)},easeOut:function(e,d){return 1-b[c](1-e,d)},easeInOut:function(e,d){return(e<=0.5)?b[c](2*e,d)/2:(2-b[c](2*(1-e),d))/2}}})(t)}})(JUI);(function(e){var c=["mouseover","mousedown","mouseup","click","dblclick","mouseout","mousemove","keypress","keyup","keydown"];var a={};var d=function(h){return function(i){return this.addEvent(h,i)}};for(var b=0;b<c.length;b++){var g=c[b];a[g]=d(g)}e.Element.implement(a);e.Window.implement(a);var f=function(i){if(!i.target){i.target=i.srcElement||document}if(!i.relatedTarget&&i.fromElement){i.relatedTarget=i.fromElement===i.target?i.toElement:i.fromElement}var h=i.relatedTarget;try{while(h&&h!==this){h=h.parentNode}}catch(j){}return !!h};e.Element.implement({mouseenter:function(h){this.mouseover(function(i){if(!this.cache("__mouseenter__")){i.type="mouseenter";h.call(this,i);this.cache("__mouseenter__",true)}});return this},mouseleave:function(h){this.mouseout(function(i){if(!f.call(this,i.event)){i.type="mouseleave";h.call(this,i);this.cache("__mouseenter__",false)}});return this},hover:function(h,i){return this.mouseenter(h).mouseleave(i||h)}});e.bind=function(){var j=arguments[0];switch(arguments.length){case 2:var k={};var i=arguments[1];break;case 3:var k=arguments[1];var i=arguments[2];break;default:return}var h=arguments.callee._events;if(!h[j]){h[j]=[]}var l={data:k,fn:i};h[j].push(l);return l};e.trigger=function(j,k){if(!k){var k=[]}var m=e.bind._events[j];if(!m){return}for(var h=0;h<m.length;h++){var l={data:m[h].data};k.unshift(l);m[h].fn.apply(null,k)}return m.length};e.bind._events={}})(JUI);(function(c){var b={msie:c.browser.ie>0,msie6:c.browser.ie==6,msie7:c.browser.ie==7,msie8:c.browser.ie==8,mozilla:!!c.browser.gecko,opera:!!c.browser.opera,webkit:!!c.browser.webkit};for(var a in b){window[a]=b[a]}})(JUI);
