if(typeof YAHOO=="undefined"||!YAHOO){var YAHOO={};}YAHOO.namespace=function(){var A=arguments,E=null,C,B,D;for(C=0;C<A.length;C=C+1){D=(""+A[C]).split(".");E=YAHOO;for(B=(D[0]=="YAHOO")?1:0;B<D.length;B=B+1){E[D[B]]=E[D[B]]||{};E=E[D[B]];}}return E;};YAHOO.log=function(D,A,C){var B=YAHOO.widget.Logger;if(B&&B.log){return B.log(D,A,C);}else{return false;}};YAHOO.register=function(A,E,D){var I=YAHOO.env.modules,B,H,G,F,C;if(!I[A]){I[A]={versions:[],builds:[]};}B=I[A];H=D.version;G=D.build;F=YAHOO.env.listeners;B.name=A;B.version=H;B.build=G;B.versions.push(H);B.builds.push(G);B.mainClass=E;for(C=0;C<F.length;C=C+1){F[C](B);}if(E){E.VERSION=H;E.BUILD=G;}else{YAHOO.log("mainClass is undefined for module "+A,"warn");}};YAHOO.env=YAHOO.env||{modules:[],listeners:[]};YAHOO.env.getVersion=function(A){return YAHOO.env.modules[A]||null;};YAHOO.env.ua=function(){var C={ie:0,opera:0,gecko:0,webkit:0,mobile:null,air:0,caja:0},B=navigator.userAgent,A;if((/KHTML/).test(B)){C.webkit=1;}A=B.match(/AppleWebKit\/([^\s]*)/);if(A&&A[1]){C.webkit=parseFloat(A[1]);if(/ Mobile\//.test(B)){C.mobile="Apple";}else{A=B.match(/NokiaN[^\/]*/);if(A){C.mobile=A[0];}}A=B.match(/AdobeAIR\/([^\s]*)/);if(A){C.air=A[0];}}if(!C.webkit){A=B.match(/Opera[\s\/]([^\s]*)/);if(A&&A[1]){C.opera=parseFloat(A[1]);A=B.match(/Opera Mini[^;]*/);if(A){C.mobile=A[0];}}else{A=B.match(/MSIE\s([^;]*)/);if(A&&A[1]){C.ie=parseFloat(A[1]);}else{A=B.match(/Gecko\/([^\s]*)/);if(A){C.gecko=1;A=B.match(/rv:([^\s\)]*)/);if(A&&A[1]){C.gecko=parseFloat(A[1]);}}}}}A=B.match(/Caja\/([^\s]*)/);if(A&&A[1]){C.caja=parseFloat(A[1]);}return C;}();(function(){YAHOO.namespace("util","widget","example");if("undefined"!==typeof YAHOO_config){var B=YAHOO_config.listener,A=YAHOO.env.listeners,D=true,C;if(B){for(C=0;C<A.length;C=C+1){if(A[C]==B){D=false;break;}}if(D){A.push(B);}}}})();YAHOO.lang=YAHOO.lang||{};(function(){var B=YAHOO.lang,F="[object Array]",C="[object Function]",A=Object.prototype,E=["toString","valueOf"],D={isArray:function(G){return A.toString.apply(G)===F;},isBoolean:function(G){return typeof G==="boolean";},isFunction:function(G){return A.toString.apply(G)===C;},isNull:function(G){return G===null;},isNumber:function(G){return typeof G==="number"&&isFinite(G);},isObject:function(G){return(G&&(typeof G==="object"||B.isFunction(G)))||false;},isString:function(G){return typeof G==="string";},isUndefined:function(G){return typeof G==="undefined";},_IEEnumFix:(YAHOO.env.ua.ie)?function(I,H){var G,K,J;for(G=0;G<E.length;G=G+1){K=E[G];J=H[K];if(B.isFunction(J)&&J!=A[K]){I[K]=J;}}}:function(){},extend:function(J,K,I){if(!K||!J){throw new Error("extend failed, please check that "+"all dependencies are included.");}var H=function(){},G;H.prototype=K.prototype;J.prototype=new H();J.prototype.constructor=J;J.superclass=K.prototype;if(K.prototype.constructor==A.constructor){K.prototype.constructor=K;}if(I){for(G in I){if(B.hasOwnProperty(I,G)){J.prototype[G]=I[G];}}B._IEEnumFix(J.prototype,I);}},augmentObject:function(K,J){if(!J||!K){throw new Error("Absorb failed, verify dependencies.");}var G=arguments,I,L,H=G[2];if(H&&H!==true){for(I=2;I<G.length;I=I+1){K[G[I]]=J[G[I]];}}else{for(L in J){if(H||!(L in K)){K[L]=J[L];}}B._IEEnumFix(K,J);}},augmentProto:function(J,I){if(!I||!J){throw new Error("Augment failed, verify dependencies.");}var G=[J.prototype,I.prototype],H;for(H=2;H<arguments.length;H=H+1){G.push(arguments[H]);}B.augmentObject.apply(this,G);},dump:function(G,L){var I,K,N=[],O="{...}",H="f(){...}",M=", ",J=" => ";if(!B.isObject(G)){return G+"";}else{if(G instanceof Date||("nodeType"in G&&"tagName"in G)){return G;}else{if(B.isFunction(G)){return H;}}}L=(B.isNumber(L))?L:3;if(B.isArray(G)){N.push("[");for(I=0,K=G.length;I<K;I=I+1){if(B.isObject(G[I])){N.push((L>0)?B.dump(G[I],L-1):O);}else{N.push(G[I]);}N.push(M);}if(N.length>1){N.pop();}N.push("]");}else{N.push("{");for(I in G){if(B.hasOwnProperty(G,I)){N.push(I+J);if(B.isObject(G[I])){N.push((L>0)?B.dump(G[I],L-1):O);}else{N.push(G[I]);}N.push(M);}}if(N.length>1){N.pop();}N.push("}");}return N.join("");},substitute:function(V,H,O){var L,K,J,R,S,U,Q=[],I,M="dump",P=" ",G="{",T="}",N;for(;;){L=V.lastIndexOf(G);if(L<0){break;}K=V.indexOf(T,L);if(L+1>=K){break;}I=V.substring(L+1,K);R=I;U=null;J=R.indexOf(P);if(J>-1){U=R.substring(J+1);R=R.substring(0,J);}S=H[R];if(O){S=O(R,S,U);}if(B.isObject(S)){if(B.isArray(S)){S=B.dump(S,parseInt(U,10));}else{U=U||"";N=U.indexOf(M);if(N>-1){U=U.substring(4);}if(S.toString===A.toString||N>-1){S=B.dump(S,parseInt(U,10));}else{S=S.toString();}}}else{if(!B.isString(S)&&!B.isNumber(S)){S="~-"+Q.length+"-~";Q[Q.length]=I;}}V=V.substring(0,L)+S+V.substring(K+1);}for(L=Q.length-1;L>=0;L=L-1){V=V.replace(new RegExp("~-"+L+"-~"),"{"+Q[L]+"}","g");}return V;},trim:function(G){try{return G.replace(/^\s+|\s+$/g,"");}catch(H){return G;}},merge:function(){var J={},H=arguments,G=H.length,I;for(I=0;I<G;I=I+1){B.augmentObject(J,H[I],true);}return J;},later:function(N,H,O,J,K){N=N||0;H=H||{};var I=O,M=J,L,G;if(B.isString(O)){I=H[O];}if(!I){throw new TypeError("method undefined");}if(!B.isArray(M)){M=[J];}L=function(){I.apply(H,M);};G=(K)?setInterval(L,N):setTimeout(L,N);return{interval:K,cancel:function(){if(this.interval){clearInterval(G);}else{clearTimeout(G);}}};},isValue:function(G){return(B.isObject(G)||B.isString(G)||B.isNumber(G)||B.isBoolean(G));}};B.hasOwnProperty=(A.hasOwnProperty)?function(G,H){return G&&G.hasOwnProperty(H);}:function(G,H){return!B.isUndefined(G[H])&&G.constructor.prototype[H]!==G[H];};D.augmentObject(B,D,true);YAHOO.util.Lang=B;B.augment=B.augmentProto;YAHOO.augment=B.augmentProto;YAHOO.extend=B.extend;})();YAHOO.register("yahoo",YAHOO,{version:"2.7.0",build:"1796"});(function(){YAHOO.env._id_counter=YAHOO.env._id_counter||0;var E=YAHOO.util,L=YAHOO.lang,m=YAHOO.env.ua,A=YAHOO.lang.trim,d={},h={},N=/^t(?:able|d|h)$/i,X=/color$/i,K=window.document,W=K.documentElement,e="ownerDocument",n="defaultView",v="documentElement",t="compatMode",b="offsetLeft",P="offsetTop",u="offsetParent",Z="parentNode",l="nodeType",C="tagName",O="scrollLeft",i="scrollTop",Q="getBoundingClientRect",w="getComputedStyle",a="currentStyle",M="CSS1Compat",c="BackCompat",g="class",F="className",J="",B=" ",s="(?:^|\\s)",k="(?= |$)",U="g",p="position",f="fixed",V="relative",j="left",o="top",r="medium",q="borderLeftWidth",R="borderTopWidth",D=m.opera,I=m.webkit,H=m.gecko,T=m.ie;E.Dom={CUSTOM_ATTRIBUTES:(!W.hasAttribute)?{"for":"htmlFor","class":F}:{"htmlFor":"for","className":g},get:function(y){var AA,Y,z,x,G;if(y){if(y[l]||y.item){return y;}if(typeof y==="string"){AA=y;y=K.getElementById(y);if(y&&y.id===AA){return y;}else{if(y&&K.all){y=null;Y=K.all[AA];for(x=0,G=Y.length;x<G;++x){if(Y[x].id===AA){return Y[x];}}}}return y;}if(y.DOM_EVENTS){y=y.get("element");}if("length"in y){z=[];for(x=0,G=y.length;x<G;++x){z[z.length]=E.Dom.get(y[x]);}return z;}return y;}return null;},getComputedStyle:function(G,Y){if(window[w]){return G[e][n][w](G,null)[Y];}else{if(G[a]){return E.Dom.IE_ComputedStyle.get(G,Y);}}},getStyle:function(G,Y){return E.Dom.batch(G,E.Dom._getStyle,Y);},_getStyle:function(){if(window[w]){return function(G,y){y=(y==="float")?y="cssFloat":E.Dom._toCamel(y);var x=G.style[y],Y;if(!x){Y=G[e][n][w](G,null);if(Y){x=Y[y];}}return x;};}else{if(W[a]){return function(G,y){var x;switch(y){case"opacity":x=100;try{x=G.filters["DXImageTransform.Microsoft.Alpha"].opacity;}catch(z){try{x=G.filters("alpha").opacity;}catch(Y){}}return x/100;case"float":y="styleFloat";default:y=E.Dom._toCamel(y);x=G[a]?G[a][y]:null;return(G.style[y]||x);}};}}}(),setStyle:function(G,Y,x){E.Dom.batch(G,E.Dom._setStyle,{prop:Y,val:x});},_setStyle:function(){if(T){return function(Y,G){var x=E.Dom._toCamel(G.prop),y=G.val;if(Y){switch(x){case"opacity":if(L.isString(Y.style.filter)){Y.style.filter="alpha(opacity="+y*100+")";if(!Y[a]||!Y[a].hasLayout){Y.style.zoom=1;}}break;case"float":x="styleFloat";default:Y.style[x]=y;}}else{}};}else{return function(Y,G){var x=E.Dom._toCamel(G.prop),y=G.val;if(Y){if(x=="float"){x="cssFloat";}Y.style[x]=y;}else{}};}}(),getXY:function(G){return E.Dom.batch(G,E.Dom._getXY);},_canPosition:function(G){return(E.Dom._getStyle(G,"display")!=="none"&&E.Dom._inDoc(G));},_getXY:function(){if(K[v][Q]){return function(y){var z,Y,AA,AF,AE,AD,AC,G,x,AB=Math.floor,AG=false;if(E.Dom._canPosition(y)){AA=y[Q]();AF=y[e];z=E.Dom.getDocumentScrollLeft(AF);Y=E.Dom.getDocumentScrollTop(AF);AG=[AB(AA[j]),AB(AA[o])];if(T&&m.ie<8){AE=2;AD=2;AC=AF[t];G=S(AF[v],q);x=S(AF[v],R);if(m.ie===6){if(AC!==c){AE=0;AD=0;}}if((AC==c)){if(G!==r){AE=parseInt(G,10);}if(x!==r){AD=parseInt(x,10);}}AG[0]-=AE;AG[1]-=AD;}if((Y||z)){AG[0]+=z;AG[1]+=Y;}AG[0]=AB(AG[0]);AG[1]=AB(AG[1]);}else{}return AG;};}else{return function(y){var x,Y,AA,AB,AC,z=false,G=y;if(E.Dom._canPosition(y)){z=[y[b],y[P]];x=E.Dom.getDocumentScrollLeft(y[e]);Y=E.Dom.getDocumentScrollTop(y[e]);AC=((H||m.webkit>519)?true:false);while((G=G[u])){z[0]+=G[b];z[1]+=G[P];if(AC){z=E.Dom._calcBorders(G,z);}}if(E.Dom._getStyle(y,p)!==f){G=y;while((G=G[Z])&&G[C]){AA=G[i];AB=G[O];if(H&&(E.Dom._getStyle(G,"overflow")!=="visible")){z=E.Dom._calcBorders(G,z);}if(AA||AB){z[0]-=AB;z[1]-=AA;}}z[0]+=x;z[1]+=Y;}else{if(D){z[0]-=x;z[1]-=Y;}else{if(I||H){z[0]+=x;z[1]+=Y;}}}z[0]=Math.floor(z[0]);z[1]=Math.floor(z[1]);}else{}return z;};}}(),getX:function(G){var Y=function(x){return E.Dom.getXY(x)[0];};return E.Dom.batch(G,Y,E.Dom,true);},getY:function(G){var Y=function(x){return E.Dom.getXY(x)[1];};return E.Dom.batch(G,Y,E.Dom,true);},setXY:function(G,x,Y){E.Dom.batch(G,E.Dom._setXY,{pos:x,noRetry:Y});},_setXY:function(G,z){var AA=E.Dom._getStyle(G,p),y=E.Dom.setStyle,AD=z.pos,Y=z.noRetry,AB=[parseInt(E.Dom.getComputedStyle(G,j),10),parseInt(E.Dom.getComputedStyle(G,o),10)],AC,x;if(AA=="static"){AA=V;y(G,p,AA);}AC=E.Dom._getXY(G);if(!AD||AC===false){return false;}if(isNaN(AB[0])){AB[0]=(AA==V)?0:G[b];}if(isNaN(AB[1])){AB[1]=(AA==V)?0:G[P];}if(AD[0]!==null){y(G,j,AD[0]-AC[0]+AB[0]+"px");}if(AD[1]!==null){y(G,o,AD[1]-AC[1]+AB[1]+"px");}if(!Y){x=E.Dom._getXY(G);if((AD[0]!==null&&x[0]!=AD[0])||(AD[1]!==null&&x[1]!=AD[1])){E.Dom._setXY(G,{pos:AD,noRetry:true});}}},setX:function(Y,G){E.Dom.setXY(Y,[G,null]);},setY:function(G,Y){E.Dom.setXY(G,[null,Y]);},getRegion:function(G){var Y=function(x){var y=false;if(E.Dom._canPosition(x)){y=E.Region.getRegion(x);}else{}return y;};return E.Dom.batch(G,Y,E.Dom,true);},getClientWidth:function(){return E.Dom.getViewportWidth();},getClientHeight:function(){return E.Dom.getViewportHeight();},getElementsByClassName:function(AB,AF,AC,AE,x,AD){AB=L.trim(AB);AF=AF||"*";AC=(AC)?E.Dom.get(AC):null||K;if(!AC){return[];}var Y=[],G=AC.getElementsByTagName(AF),z=E.Dom.hasClass;for(var y=0,AA=G.length;y<AA;++y){if(z(G[y],AB)){Y[Y.length]=G[y];}}if(AE){E.Dom.batch(Y,AE,x,AD);}return Y;},hasClass:function(Y,G){return E.Dom.batch(Y,E.Dom._hasClass,G);},_hasClass:function(x,Y){var G=false,y;if(x&&Y){y=E.Dom.getAttribute(x,F)||J;if(Y.exec){G=Y.test(y);}else{G=Y&&(B+y+B).indexOf(B+Y+B)>-1;}}else{}return G;},addClass:function(Y,G){return E.Dom.batch(Y,E.Dom._addClass,G);},_addClass:function(x,Y){var G=false,y;if(x&&Y){y=E.Dom.getAttribute(x,F)||J;if(!E.Dom._hasClass(x,Y)){E.Dom.setAttribute(x,F,A(y+B+Y));G=true;}}else{}return G;},removeClass:function(Y,G){return E.Dom.batch(Y,E.Dom._removeClass,G);},_removeClass:function(y,x){var Y=false,AA,z,G;if(y&&x){AA=E.Dom.getAttribute(y,F)||J;E.Dom.setAttribute(y,F,AA.replace(E.Dom._getClassRegex(x),J));z=E.Dom.getAttribute(y,F);if(AA!==z){E.Dom.setAttribute(y,F,A(z));Y=true;if(E.Dom.getAttribute(y,F)===""){G=(y.hasAttribute&&y.hasAttribute(g))?g:F;y.removeAttribute(G);}}}else{}return Y;},replaceClass:function(x,Y,G){return E.Dom.batch(x,E.Dom._replaceClass,{from:Y,to:G});},_replaceClass:function(y,x){var Y,AB,AA,G=false,z;if(y&&x){AB=x.from;AA=x.to;if(!AA){G=false;}else{if(!AB){G=E.Dom._addClass(y,x.to);}else{if(AB!==AA){z=E.Dom.getAttribute(y,F)||J;Y=(B+z.replace(E.Dom._getClassRegex(AB),B+AA)).split(E.Dom._getClassRegex(AA));Y.splice(1,0,B+AA);E.Dom.setAttribute(y,F,A(Y.join(J)));G=true;}}}}else{}return G;},generateId:function(G,x){x=x||"yui-gen";var Y=function(y){if(y&&y.id){return y.id;}var z=x+YAHOO.env._id_counter++;if(y){if(y[e].getElementById(z)){return E.Dom.generateId(y,z+x);}y.id=z;}return z;};return E.Dom.batch(G,Y,E.Dom,true)||Y.apply(E.Dom,arguments);},isAncestor:function(Y,x){Y=E.Dom.get(Y);x=E.Dom.get(x);var G=false;if((Y&&x)&&(Y[l]&&x[l])){if(Y.contains&&Y!==x){G=Y.contains(x);}else{if(Y.compareDocumentPosition){G=!!(Y.compareDocumentPosition(x)&16);}}}else{}return G;},inDocument:function(G,Y){return E.Dom._inDoc(E.Dom.get(G),Y);},_inDoc:function(Y,x){var G=false;if(Y&&Y[C]){x=x||Y[e];G=E.Dom.isAncestor(x[v],Y);}else{}return G;},getElementsBy:function(Y,AF,AB,AD,y,AC,AE){AF=AF||"*";AB=(AB)?E.Dom.get(AB):null||K;if(!AB){return[];}var x=[],G=AB.getElementsByTagName(AF);for(var z=0,AA=G.length;z<AA;++z){if(Y(G[z])){if(AE){x=G[z];break;}else{x[x.length]=G[z];}}}if(AD){E.Dom.batch(x,AD,y,AC);}return x;},getElementBy:function(x,G,Y){return E.Dom.getElementsBy(x,G,Y,null,null,null,true);},batch:function(x,AB,AA,z){var y=[],Y=(z)?AA:window;x=(x&&(x[C]||x.item))?x:E.Dom.get(x);if(x&&AB){if(x[C]||x.length===undefined){return AB.call(Y,x,AA);}for(var G=0;G<x.length;++G){y[y.length]=AB.call(Y,x[G],AA);}}else{return false;}return y;},getDocumentHeight:function(){var Y=(K[t]!=M||I)?K.body.scrollHeight:W.scrollHeight,G=Math.max(Y,E.Dom.getViewportHeight());return G;},getDocumentWidth:function(){var Y=(K[t]!=M||I)?K.body.scrollWidth:W.scrollWidth,G=Math.max(Y,E.Dom.getViewportWidth());return G;},getViewportHeight:function(){var G=self.innerHeight,Y=K[t];if((Y||T)&&!D){G=(Y==M)?W.clientHeight:K.body.clientHeight;}return G;},getViewportWidth:function(){var G=self.innerWidth,Y=K[t];if(Y||T){G=(Y==M)?W.clientWidth:K.body.clientWidth;}return G;},getAncestorBy:function(G,Y){while((G=G[Z])){if(E.Dom._testElement(G,Y)){return G;}}return null;},getAncestorByClassName:function(Y,G){Y=E.Dom.get(Y);if(!Y){return null;}var x=function(y){return E.Dom.hasClass(y,G);};return E.Dom.getAncestorBy(Y,x);},getAncestorByTagName:function(Y,G){Y=E.Dom.get(Y);if(!Y){return null;}var x=function(y){return y[C]&&y[C].toUpperCase()==G.toUpperCase();};return E.Dom.getAncestorBy(Y,x);},getPreviousSiblingBy:function(G,Y){while(G){G=G.previousSibling;if(E.Dom._testElement(G,Y)){return G;}}return null;},getPreviousSibling:function(G){G=E.Dom.get(G);if(!G){return null;}return E.Dom.getPreviousSiblingBy(G);},getNextSiblingBy:function(G,Y){while(G){G=G.nextSibling;if(E.Dom._testElement(G,Y)){return G;}}return null;},getNextSibling:function(G){G=E.Dom.get(G);if(!G){return null;}return E.Dom.getNextSiblingBy(G);},getFirstChildBy:function(G,x){var Y=(E.Dom._testElement(G.firstChild,x))?G.firstChild:null;return Y||E.Dom.getNextSiblingBy(G.firstChild,x);},getFirstChild:function(G,Y){G=E.Dom.get(G);if(!G){return null;}return E.Dom.getFirstChildBy(G);},getLastChildBy:function(G,x){if(!G){return null;}var Y=(E.Dom._testElement(G.lastChild,x))?G.lastChild:null;return Y||E.Dom.getPreviousSiblingBy(G.lastChild,x);},getLastChild:function(G){G=E.Dom.get(G);return E.Dom.getLastChildBy(G);},getChildrenBy:function(Y,y){var x=E.Dom.getFirstChildBy(Y,y),G=x?[x]:[];E.Dom.getNextSiblingBy(x,function(z){if(!y||y(z)){G[G.length]=z;}return false;});return G;},getChildren:function(G){G=E.Dom.get(G);if(!G){}return E.Dom.getChildrenBy(G);},getDocumentScrollLeft:function(G){G=G||K;return Math.max(G[v].scrollLeft,G.body.scrollLeft);},getDocumentScrollTop:function(G){G=G||K;return Math.max(G[v].scrollTop,G.body.scrollTop);},insertBefore:function(Y,G){Y=E.Dom.get(Y);G=E.Dom.get(G);if(!Y||!G||!G[Z]){return null;}return G[Z].insertBefore(Y,G);},insertAfter:function(Y,G){Y=E.Dom.get(Y);G=E.Dom.get(G);if(!Y||!G||!G[Z]){return null;}if(G.nextSibling){return G[Z].insertBefore(Y,G.nextSibling);}else{return G[Z].appendChild(Y);}},getClientRegion:function(){var x=E.Dom.getDocumentScrollTop(),Y=E.Dom.getDocumentScrollLeft(),y=E.Dom.getViewportWidth()+Y,G=E.Dom.getViewportHeight()+x;return new E.Region(x,y,G,Y);},setAttribute:function(Y,G,x){G=E.Dom.CUSTOM_ATTRIBUTES[G]||G;Y.setAttribute(G,x);},getAttribute:function(Y,G){G=E.Dom.CUSTOM_ATTRIBUTES[G]||G;return Y.getAttribute(G);},_toCamel:function(Y){var x=d;function G(y,z){return z.toUpperCase();}return x[Y]||(x[Y]=Y.indexOf("-")===-1?Y:Y.replace(/-([a-z])/gi,G));},_getClassRegex:function(Y){var G;if(Y!==undefined){if(Y.exec){G=Y;}else{G=h[Y];if(!G){Y=Y.replace(E.Dom._patterns.CLASS_RE_TOKENS,"\\$1");G=h[Y]=new RegExp(s+Y+k,U);}}}return G;},_patterns:{ROOT_TAG:/^body|html$/i,CLASS_RE_TOKENS:/([\.\(\)\^\$\*\+\?\|\[\]\{\}])/g},_testElement:function(G,Y){return G&&G[l]==1&&(!Y||Y(G));},_calcBorders:function(x,y){var Y=parseInt(E.Dom[w](x,R),10)||0,G=parseInt(E.Dom[w](x,q),10)||0;if(H){if(N.test(x[C])){Y=0;G=0;}}y[0]+=G;y[1]+=Y;return y;}};var S=E.Dom[w];if(m.opera){E.Dom[w]=function(Y,G){var x=S(Y,G);if(X.test(G)){x=E.Dom.Color.toRGB(x);}return x;};}if(m.webkit){E.Dom[w]=function(Y,G){var x=S(Y,G);if(x==="rgba(0, 0, 0, 0)"){x="transparent";}return x;};}})();YAHOO.util.Region=function(C,D,A,B){this.top=C;this.y=C;this[1]=C;this.right=D;this.bottom=A;this.left=B;this.x=B;this[0]=B;this.width=this.right-this.left;this.height=this.bottom-this.top;};YAHOO.util.Region.prototype.contains=function(A){return(A.left>=this.left&&A.right<=this.right&&A.top>=this.top&&A.bottom<=this.bottom);};YAHOO.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left));};YAHOO.util.Region.prototype.intersect=function(E){var C=Math.max(this.top,E.top),D=Math.min(this.right,E.right),A=Math.min(this.bottom,E.bottom),B=Math.max(this.left,E.left);if(A>=C&&D>=B){return new YAHOO.util.Region(C,D,A,B);}else{return null;}};YAHOO.util.Region.prototype.union=function(E){var C=Math.min(this.top,E.top),D=Math.max(this.right,E.right),A=Math.max(this.bottom,E.bottom),B=Math.min(this.left,E.left);return new YAHOO.util.Region(C,D,A,B);};YAHOO.util.Region.prototype.toString=function(){return("Region {"+"top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+", height: "+this.height+", width: "+this.width+"}");};YAHOO.util.Region.getRegion=function(D){var F=YAHOO.util.Dom.getXY(D),C=F[1],E=F[0]+D.offsetWidth,A=F[1]+D.offsetHeight,B=F[0];return new YAHOO.util.Region(C,E,A,B);};YAHOO.util.Point=function(A,B){if(YAHOO.lang.isArray(A)){B=A[1];A=A[0];}YAHOO.util.Point.superclass.constructor.call(this,B,A,B,A);};YAHOO.extend(YAHOO.util.Point,YAHOO.util.Region);(function(){var B=YAHOO.util,A="clientTop",F="clientLeft",J="parentNode",K="right",W="hasLayout",I="px",U="opacity",L="auto",D="borderLeftWidth",G="borderTopWidth",P="borderRightWidth",V="borderBottomWidth",S="visible",Q="transparent",N="height",E="width",H="style",T="currentStyle",R=/^width|height$/,O=/^(\d[.\d]*)+(em|ex|px|gd|rem|vw|vh|vm|ch|mm|cm|in|pt|pc|deg|rad|ms|s|hz|khz|%){1}?/i,M={get:function(X,Z){var Y="",a=X[T][Z];if(Z===U){Y=B.Dom.getStyle(X,U);}else{if(!a||(a.indexOf&&a.indexOf(I)>-1)){Y=a;}else{if(B.Dom.IE_COMPUTED[Z]){Y=B.Dom.IE_COMPUTED[Z](X,Z);}else{if(O.test(a)){Y=B.Dom.IE.ComputedStyle.getPixel(X,Z);}else{Y=a;}}}}return Y;},getOffset:function(Z,e){var b=Z[T][e],X=e.charAt(0).toUpperCase()+e.substr(1),c="offset"+X,Y="pixel"+X,a="",d;if(b==L){d=Z[c];if(d===undefined){a=0;}a=d;if(R.test(e)){Z[H][e]=d;if(Z[c]>d){a=d-(Z[c]-d);}Z[H][e]=L;}}else{if(!Z[H][Y]&&!Z[H][e]){Z[H][e]=b;}a=Z[H][Y];}return a+I;},getBorderWidth:function(X,Z){var Y=null;if(!X[T][W]){X[H].zoom=1;}switch(Z){case G:Y=X[A];break;case V:Y=X.offsetHeight-X.clientHeight-X[A];break;case D:Y=X[F];break;case P:Y=X.offsetWidth-X.clientWidth-X[F];break;}return Y+I;},getPixel:function(Y,X){var a=null,b=Y[T][K],Z=Y[T][X];Y[H][K]=Z;a=Y[H].pixelRight;Y[H][K]=b;return a+I;},getMargin:function(Y,X){var Z;if(Y[T][X]==L){Z=0+I;}else{Z=B.Dom.IE.ComputedStyle.getPixel(Y,X);}return Z;},getVisibility:function(Y,X){var Z;while((Z=Y[T])&&Z[X]=="inherit"){Y=Y[J];}return(Z)?Z[X]:S;},getColor:function(Y,X){return B.Dom.Color.toRGB(Y[T][X])||Q;},getBorderColor:function(Y,X){var Z=Y[T],a=Z[X]||Z.color;return B.Dom.Color.toRGB(B.Dom.Color.toHex(a));}},C={};C.top=C.right=C.bottom=C.left=C[E]=C[N]=M.getOffset;C.color=M.getColor;C[G]=C[P]=C[V]=C[D]=M.getBorderWidth;C.marginTop=C.marginRight=C.marginBottom=C.marginLeft=M.getMargin;C.visibility=M.getVisibility;C.borderColor=C.borderTopColor=C.borderRightColor=C.borderBottomColor=C.borderLeftColor=M.getBorderColor;B.Dom.IE_COMPUTED=C;B.Dom.IE_ComputedStyle=M;})();(function(){var C="toString",A=parseInt,B=RegExp,D=YAHOO.util;D.Dom.Color={KEYWORDS:{black:"000",silver:"c0c0c0",gray:"808080",white:"fff",maroon:"800000",red:"f00",purple:"800080",fuchsia:"f0f",green:"008000",lime:"0f0",olive:"808000",yellow:"ff0",navy:"000080",blue:"00f",teal:"008080",aqua:"0ff"},re_RGB:/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i,re_hex:/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i,re_hex3:/([0-9A-F])/gi,toRGB:function(E){if(!D.Dom.Color.re_RGB.test(E)){E=D.Dom.Color.toHex(E);}if(D.Dom.Color.re_hex.exec(E)){E="rgb("+[A(B.$1,16),A(B.$2,16),A(B.$3,16)].join(", ")+")";}return E;},toHex:function(H){H=D.Dom.Color.KEYWORDS[H]||H;if(D.Dom.Color.re_RGB.exec(H)){var G=(B.$1.length===1)?"0"+B.$1:Number(B.$1),F=(B.$2.length===1)?"0"+B.$2:Number(B.$2),E=(B.$3.length===1)?"0"+B.$3:Number(B.$3);H=[G[C](16),F[C](16),E[C](16)].join("");}if(H.length<6){H=H.replace(D.Dom.Color.re_hex3,"$1$1");}if(H!=="transparent"&&H.indexOf("#")<0){H="#"+H;}return H.toLowerCase();}};}());YAHOO.register("dom",YAHOO.util.Dom,{version:"2.7.0",build:"1796"});YAHOO.util.CustomEvent=function(D,C,B,A){this.type=D;this.scope=C||window;this.silent=B;this.signature=A||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var E="_YUICEOnSubscribe";if(D!==E){this.subscribeEvent=new YAHOO.util.CustomEvent(E,this,true);}this.lastError=null;};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(A,B,C){if(!A){throw new Error("Invalid callback for subscriber to '"+this.type+"'");}if(this.subscribeEvent){this.subscribeEvent.fire(A,B,C);}this.subscribers.push(new YAHOO.util.Subscriber(A,B,C));},unsubscribe:function(D,F){if(!D){return this.unsubscribeAll();}var E=false;for(var B=0,A=this.subscribers.length;B<A;++B){var C=this.subscribers[B];if(C&&C.contains(D,F)){this._delete(B);E=true;}}return E;},fire:function(){this.lastError=null;var K=[],E=this.subscribers.length;if(!E&&this.silent){return true;}var I=[].slice.call(arguments,0),G=true,D,J=false;if(!this.silent){}var C=this.subscribers.slice(),A=YAHOO.util.Event.throwErrors;for(D=0;D<E;++D){var M=C[D];if(!M){J=true;}else{if(!this.silent){}var L=M.getScope(this.scope);if(this.signature==YAHOO.util.CustomEvent.FLAT){var B=null;if(I.length>0){B=I[0];}try{G=M.fn.call(L,B,M.obj);}catch(F){this.lastError=F;if(A){throw F;}}}else{try{G=M.fn.call(L,this.type,I,M.obj);}catch(H){this.lastError=H;if(A){throw H;}}}if(false===G){if(!this.silent){}break;}}}return(G!==false);},unsubscribeAll:function(){var A=this.subscribers.length,B;for(B=A-1;B>-1;B--){this._delete(B);}this.subscribers=[];return A;},_delete:function(A){var B=this.subscribers[A];if(B){delete B.fn;delete B.obj;}this.subscribers.splice(A,1);},toString:function(){return"CustomEvent: "+"'"+this.type+"', "+"context: "+this.scope;}};YAHOO.util.Subscriber=function(A,B,C){this.fn=A;this.obj=YAHOO.lang.isUndefined(B)?null:B;this.overrideContext=C;};YAHOO.util.Subscriber.prototype.getScope=function(A){if(this.overrideContext){if(this.overrideContext===true){return this.obj;}else{return this.overrideContext;}}return A;};YAHOO.util.Subscriber.prototype.contains=function(A,B){if(B){return(this.fn==A&&this.obj==B);}else{return(this.fn==A);}};YAHOO.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+this.obj+", overrideContext: "+(this.overrideContext||"no")+" }";};if(!YAHOO.util.Event){YAHOO.util.Event=function(){var H=false;var I=[];var J=[];var G=[];var E=[];var C=0;var F=[];var B=[];var A=0;var D={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9};var K=YAHOO.env.ua.ie?"focusin":"focus";var L=YAHOO.env.ua.ie?"focusout":"blur";return{POLL_RETRYS:2000,POLL_INTERVAL:20,EL:0,TYPE:1,FN:2,WFN:3,UNLOAD_OBJ:3,ADJ_SCOPE:4,OBJ:5,OVERRIDE:6,lastError:null,isSafari:YAHOO.env.ua.webkit,webkit:YAHOO.env.ua.webkit,isIE:YAHOO.env.ua.ie,_interval:null,_dri:null,DOMReady:false,throwErrors:false,startInterval:function(){if(!this._interval){var M=this;var N=function(){M._tryPreloadAttach();};this._interval=setInterval(N,this.POLL_INTERVAL);}},onAvailable:function(S,O,Q,R,P){var M=(YAHOO.lang.isString(S))?[S]:S;for(var N=0;N<M.length;N=N+1){F.push({id:M[N],fn:O,obj:Q,overrideContext:R,checkReady:P});}C=this.POLL_RETRYS;this.startInterval();},onContentReady:function(P,M,N,O){this.onAvailable(P,M,N,O,true);},onDOMReady:function(M,N,O){if(this.DOMReady){setTimeout(function(){var P=window;if(O){if(O===true){P=N;}else{P=O;}}M.call(P,"DOMReady",[],N);},0);}else{this.DOMReadyEvent.subscribe(M,N,O);}},_addListener:function(O,M,Y,S,W,b){if(!Y||!Y.call){return false;}if(this._isValidCollection(O)){var Z=true;for(var T=0,V=O.length;T<V;++T){Z=this.on(O[T],M,Y,S,W)&&Z;}return Z;}else{if(YAHOO.lang.isString(O)){var R=this.getEl(O);if(R){O=R;}else{this.onAvailable(O,function(){YAHOO.util.Event.on(O,M,Y,S,W);});return true;}}}if(!O){return false;}if("unload"==M&&S!==this){J[J.length]=[O,M,Y,S,W];return true;}var N=O;if(W){if(W===true){N=S;}else{N=W;}}var P=function(c){return Y.call(N,YAHOO.util.Event.getEvent(c,O),S);};var a=[O,M,Y,P,N,S,W];var U=I.length;I[U]=a;if(this.useLegacyEvent(O,M)){var Q=this.getLegacyIndex(O,M);if(Q==-1||O!=G[Q][0]){Q=G.length;B[O.id+M]=Q;G[Q]=[O,M,O["on"+M]];E[Q]=[];O["on"+M]=function(c){YAHOO.util.Event.fireLegacyEvent(YAHOO.util.Event.getEvent(c),Q);};}E[Q].push(a);}else{try{this._simpleAdd(O,M,P,b);}catch(X){this.lastError=X;this.removeListener(O,M,Y);return false;}}return true;},addListener:function(N,Q,M,O,P){return this._addListener(N,Q,M,O,P,false);},addFocusListener:function(N,M,O,P){return this._addListener(N,K,M,O,P,true);},removeFocusListener:function(N,M){return this.removeListener(N,K,M);},addBlurListener:function(N,M,O,P){return this._addListener(N,L,M,O,P,true);},removeBlurListener:function(N,M){return this.removeListener(N,L,M);},fireLegacyEvent:function(R,P){var T=true,M,V,U,N,S;V=E[P].slice();for(var O=0,Q=V.length;O<Q;++O){U=V[O];if(U&&U[this.WFN]){N=U[this.ADJ_SCOPE];S=U[this.WFN].call(N,R);T=(T&&S);}}M=G[P];if(M&&M[2]){M[2](R);}return T;},getLegacyIndex:function(N,O){var M=this.generateId(N)+O;if(typeof B[M]=="undefined"){return-1;}else{return B[M];}},useLegacyEvent:function(M,N){return(this.webkit&&this.webkit<419&&("click"==N||"dblclick"==N));},removeListener:function(N,M,V){var Q,T,X;if(typeof N=="string"){N=this.getEl(N);}else{if(this._isValidCollection(N)){var W=true;for(Q=N.length-1;Q>-1;Q--){W=(this.removeListener(N[Q],M,V)&&W);}return W;}}if(!V||!V.call){return this.purgeElement(N,false,M);}if("unload"==M){for(Q=J.length-1;Q>-1;Q--){X=J[Q];if(X&&X[0]==N&&X[1]==M&&X[2]==V){J.splice(Q,1);return true;}}return false;}var R=null;var S=arguments[3];if("undefined"===typeof S){S=this._getCacheIndex(N,M,V);}if(S>=0){R=I[S];}if(!N||!R){return false;}if(this.useLegacyEvent(N,M)){var P=this.getLegacyIndex(N,M);var O=E[P];if(O){for(Q=0,T=O.length;Q<T;++Q){X=O[Q];if(X&&X[this.EL]==N&&X[this.TYPE]==M&&X[this.FN]==V){O.splice(Q,1);break;}}}}else{try{this._simpleRemove(N,M,R[this.WFN],false);}catch(U){this.lastError=U;return false;}}delete I[S][this.WFN];delete I[S][this.FN];I.splice(S,1);return true;},getTarget:function(O,N){var M=O.target||O.srcElement;return this.resolveTextNode(M);},resolveTextNode:function(N){try{if(N&&3==N.nodeType){return N.parentNode;}}catch(M){}return N;},getPageX:function(N){var M=N.pageX;if(!M&&0!==M){M=N.clientX||0;if(this.isIE){M+=this._getScrollLeft();}}return M;},getPageY:function(M){var N=M.pageY;if(!N&&0!==N){N=M.clientY||0;if(this.isIE){N+=this._getScrollTop();}}return N;},getXY:function(M){return[this.getPageX(M),this.getPageY(M)];},getRelatedTarget:function(N){var M=N.relatedTarget;if(!M){if(N.type=="mouseout"){M=N.toElement;}else{if(N.type=="mouseover"){M=N.fromElement;}}}return this.resolveTextNode(M);},getTime:function(O){if(!O.time){var N=new Date().getTime();try{O.time=N;}catch(M){this.lastError=M;return N;}}return O.time;},stopEvent:function(M){this.stopPropagation(M);this.preventDefault(M);},stopPropagation:function(M){if(M.stopPropagation){M.stopPropagation();}else{M.cancelBubble=true;}},preventDefault:function(M){if(M.preventDefault){M.preventDefault();}else{M.returnValue=false;}},getEvent:function(O,M){var N=O||window.event;if(!N){var P=this.getEvent.caller;while(P){N=P.arguments[0];if(N&&Event==N.constructor){break;}P=P.caller;}}return N;},getCharCode:function(N){var M=N.keyCode||N.charCode||0;if(YAHOO.env.ua.webkit&&(M in D)){M=D[M];}return M;},_getCacheIndex:function(Q,R,P){for(var O=0,N=I.length;O<N;O=O+1){var M=I[O];if(M&&M[this.FN]==P&&M[this.EL]==Q&&M[this.TYPE]==R){return O;}}return-1;},generateId:function(M){var N=M.id;if(!N){N="yuievtautoid-"+A;++A;M.id=N;}return N;},_isValidCollection:function(N){try{return(N&&typeof N!=="string"&&N.length&&!N.tagName&&!N.alert&&typeof N[0]!=="undefined");}catch(M){return false;}},elCache:{},getEl:function(M){return(typeof M==="string")?document.getElementById(M):M;},clearCache:function(){},DOMReadyEvent:new YAHOO.util.CustomEvent("DOMReady",this),_load:function(N){if(!H){H=true;var M=YAHOO.util.Event;M._ready();M._tryPreloadAttach();}},_ready:function(N){var M=YAHOO.util.Event;if(!M.DOMReady){M.DOMReady=true;M.DOMReadyEvent.fire();M._simpleRemove(document,"DOMContentLoaded",M._ready);}},_tryPreloadAttach:function(){if(F.length===0){C=0;if(this._interval){clearInterval(this._interval);this._interval=null;}return;}if(this.locked){return;}if(this.isIE){if(!this.DOMReady){this.startInterval();return;}}this.locked=true;var S=!H;if(!S){S=(C>0&&F.length>0);}var R=[];var T=function(V,W){var U=V;if(W.overrideContext){if(W.overrideContext===true){U=W.obj;}else{U=W.overrideContext;}}W.fn.call(U,W.obj);};var N,M,Q,P,O=[];for(N=0,M=F.length;N<M;N=N+1){Q=F[N];if(Q){P=this.getEl(Q.id);if(P){if(Q.checkReady){if(H||P.nextSibling||!S){O.push(Q);F[N]=null;}}else{T(P,Q);F[N]=null;}}else{R.push(Q);}}}for(N=0,M=O.length;N<M;N=N+1){Q=O[N];T(this.getEl(Q.id),Q);}C--;if(S){for(N=F.length-1;N>-1;N--){Q=F[N];if(!Q||!Q.id){F.splice(N,1);}}this.startInterval();}else{if(this._interval){clearInterval(this._interval);this._interval=null;}}this.locked=false;},purgeElement:function(Q,R,T){var O=(YAHOO.lang.isString(Q))?this.getEl(Q):Q;var S=this.getListeners(O,T),P,M;if(S){for(P=S.length-1;P>-1;P--){var N=S[P];this.removeListener(O,N.type,N.fn);}}if(R&&O&&O.childNodes){for(P=0,M=O.childNodes.length;P<M;++P){this.purgeElement(O.childNodes[P],R,T);}}},getListeners:function(O,M){var R=[],N;if(!M){N=[I,J];}else{if(M==="unload"){N=[J];}else{N=[I];}}var T=(YAHOO.lang.isString(O))?this.getEl(O):O;for(var Q=0;Q<N.length;Q=Q+1){var V=N[Q];if(V){for(var S=0,U=V.length;S<U;++S){var P=V[S];if(P&&P[this.EL]===T&&(!M||M===P[this.TYPE])){R.push({type:P[this.TYPE],fn:P[this.FN],obj:P[this.OBJ],adjust:P[this.OVERRIDE],scope:P[this.ADJ_SCOPE],index:S});}}}}return(R.length)?R:null;},_unload:function(T){var N=YAHOO.util.Event,Q,P,O,S,R,U=J.slice(),M;for(Q=0,S=J.length;Q<S;++Q){O=U[Q];if(O){M=window;if(O[N.ADJ_SCOPE]){if(O[N.ADJ_SCOPE]===true){M=O[N.UNLOAD_OBJ];}else{M=O[N.ADJ_SCOPE];}}O[N.FN].call(M,N.getEvent(T,O[N.EL]),O[N.UNLOAD_OBJ]);U[Q]=null;}}O=null;M=null;J=null;if(I){for(P=I.length-1;P>-1;P--){O=I[P];if(O){N.removeListener(O[N.EL],O[N.TYPE],O[N.FN],P);}}O=null;}G=null;N._simpleRemove(window,"unload",N._unload);},_getScrollLeft:function(){return this._getScroll()[1];},_getScrollTop:function(){return this._getScroll()[0];},_getScroll:function(){var M=document.documentElement,N=document.body;if(M&&(M.scrollTop||M.scrollLeft)){return[M.scrollTop,M.scrollLeft];}else{if(N){return[N.scrollTop,N.scrollLeft];}else{return[0,0];}}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(O,P,N,M){O.addEventListener(P,N,(M));};}else{if(window.attachEvent){return function(O,P,N,M){O.attachEvent("on"+P,N);};}else{return function(){};}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(O,P,N,M){O.removeEventListener(P,N,(M));};}else{if(window.detachEvent){return function(N,O,M){N.detachEvent("on"+O,M);};}else{return function(){};}}}()};}();(function(){var EU=YAHOO.util.Event;EU.on=EU.addListener;EU.onFocus=EU.addFocusListener;EU.onBlur=EU.addBlurListener;if(EU.isIE){YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var n=document.createElement("p");EU._dri=setInterval(function(){try{n.doScroll("left");clearInterval(EU._dri);EU._dri=null;EU._ready();n=null;}catch(ex){}},EU.POLL_INTERVAL);}else{if(EU.webkit&&EU.webkit<525){EU._dri=setInterval(function(){var rs=document.readyState;if("loaded"==rs||"complete"==rs){clearInterval(EU._dri);EU._dri=null;EU._ready();}},EU.POLL_INTERVAL);}else{EU._simpleAdd(document,"DOMContentLoaded",EU._ready);}}EU._simpleAdd(window,"load",EU._load);EU._simpleAdd(window,"unload",EU._unload);EU._tryPreloadAttach();})();}YAHOO.util.EventProvider=function(){};YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(A,C,F,E){this.__yui_events=this.__yui_events||{};var D=this.__yui_events[A];if(D){D.subscribe(C,F,E);}else{this.__yui_subscribers=this.__yui_subscribers||{};var B=this.__yui_subscribers;if(!B[A]){B[A]=[];}B[A].push({fn:C,obj:F,overrideContext:E});}},unsubscribe:function(C,E,G){this.__yui_events=this.__yui_events||{};var A=this.__yui_events;if(C){var F=A[C];if(F){return F.unsubscribe(E,G);}}else{var B=true;for(var D in A){if(YAHOO.lang.hasOwnProperty(A,D)){B=B&&A[D].unsubscribe(E,G);}}return B;}return false;},unsubscribeAll:function(A){return this.unsubscribe(A);},createEvent:function(G,D){this.__yui_events=this.__yui_events||{};var A=D||{};var I=this.__yui_events;if(I[G]){}else{var H=A.scope||this;var E=(A.silent);var B=new YAHOO.util.CustomEvent(G,H,E,YAHOO.util.CustomEvent.FLAT);I[G]=B;if(A.onSubscribeCallback){B.subscribeEvent.subscribe(A.onSubscribeCallback);}this.__yui_subscribers=this.__yui_subscribers||{};var F=this.__yui_subscribers[G];if(F){for(var C=0;C<F.length;++C){B.subscribe(F[C].fn,F[C].obj,F[C].overrideContext);}}}return I[G];},fireEvent:function(E,D,A,C){this.__yui_events=this.__yui_events||{};var G=this.__yui_events[E];if(!G){return null;}var B=[];for(var F=1;F<arguments.length;++F){B.push(arguments[F]);}return G.fire.apply(G,B);},hasEvent:function(A){if(this.__yui_events){if(this.__yui_events[A]){return true;}}return false;}};(function(){var A=YAHOO.util.Event,C=YAHOO.lang;YAHOO.util.KeyListener=function(D,I,E,F){if(!D){}else{if(!I){}else{if(!E){}}}if(!F){F=YAHOO.util.KeyListener.KEYDOWN;}var G=new YAHOO.util.CustomEvent("keyPressed");this.enabledEvent=new YAHOO.util.CustomEvent("enabled");this.disabledEvent=new YAHOO.util.CustomEvent("disabled");if(C.isString(D)){D=document.getElementById(D);}if(C.isFunction(E)){G.subscribe(E);}else{G.subscribe(E.fn,E.scope,E.correctScope);}function H(O,N){if(!I.shift){I.shift=false;}if(!I.alt){I.alt=false;}if(!I.ctrl){I.ctrl=false;}if(O.shiftKey==I.shift&&O.altKey==I.alt&&O.ctrlKey==I.ctrl){var J,M=I.keys,L;if(YAHOO.lang.isArray(M)){for(var K=0;K<M.length;K++){J=M[K];L=A.getCharCode(O);if(J==L){G.fire(L,O);break;}}}else{L=A.getCharCode(O);if(M==L){G.fire(L,O);}}}}this.enable=function(){if(!this.enabled){A.on(D,F,H);this.enabledEvent.fire(I);}this.enabled=true;};this.disable=function(){if(this.enabled){A.removeListener(D,F,H);this.disabledEvent.fire(I);}this.enabled=false;};this.toString=function(){return"KeyListener ["+I.keys+"] "+D.tagName+(D.id?"["+D.id+"]":"");};};var B=YAHOO.util.KeyListener;B.KEYDOWN="keydown";B.KEYUP="keyup";B.KEY={ALT:18,BACK_SPACE:8,CAPS_LOCK:20,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,META:224,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PRINTSCREEN:44,RIGHT:39,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,UP:38};})();YAHOO.register("event",YAHOO.util.Event,{version:"2.7.0",build:"1796"});YAHOO.register("yahoo-dom-event",YAHOO,{version:"2.7.0",build:"1796"});;YAHOO.util.Connect={_msxml_progid:["Microsoft.XMLHTTP","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP"],_http_headers:{},_has_http_headers:false,_use_default_post_header:true,_default_post_header:"application/x-www-form-urlencoded; charset=UTF-8",_default_form_header:"application/x-www-form-urlencoded",_use_default_xhr_header:true,_default_xhr_header:"XMLHttpRequest",_has_default_headers:true,_default_headers:{},_isFormSubmit:false,_isFileUpload:false,_formNode:null,_sFormData:null,_poll:{},_timeOut:{},_polling_interval:50,_transaction_id:0,_submitElementValue:null,_hasSubmitListener:(function(){if(YAHOO.util.Event){YAHOO.util.Event.addListener(document,"click",function(C){var B=YAHOO.util.Event.getTarget(C),A=B.nodeName.toLowerCase();if((A==="input"||A==="button")&&(B.type&&B.type.toLowerCase()=="submit")){YAHOO.util.Connect._submitElementValue=encodeURIComponent(B.name)+"="+encodeURIComponent(B.value);}});return true;}return false;})(),startEvent:new YAHOO.util.CustomEvent("start"),completeEvent:new YAHOO.util.CustomEvent("complete"),successEvent:new YAHOO.util.CustomEvent("success"),failureEvent:new YAHOO.util.CustomEvent("failure"),uploadEvent:new YAHOO.util.CustomEvent("upload"),abortEvent:new YAHOO.util.CustomEvent("abort"),_customEvents:{onStart:["startEvent","start"],onComplete:["completeEvent","complete"],onSuccess:["successEvent","success"],onFailure:["failureEvent","failure"],onUpload:["uploadEvent","upload"],onAbort:["abortEvent","abort"]},setProgId:function(A){this._msxml_progid.unshift(A);},setDefaultPostHeader:function(A){if(typeof A=="string"){this._default_post_header=A;}else{if(typeof A=="boolean"){this._use_default_post_header=A;}}},setDefaultXhrHeader:function(A){if(typeof A=="string"){this._default_xhr_header=A;}else{this._use_default_xhr_header=A;}},setPollingInterval:function(A){if(typeof A=="number"&&isFinite(A)){this._polling_interval=A;}},createXhrObject:function(F){var E,A;try{A=new XMLHttpRequest();E={conn:A,tId:F};}catch(D){for(var B=0;B<this._msxml_progid.length;++B){try{A=new ActiveXObject(this._msxml_progid[B]);E={conn:A,tId:F};break;}catch(C){}}}finally{return E;}},getConnectionObject:function(A){var C;var D=this._transaction_id;try{if(!A){C=this.createXhrObject(D);}else{C={};C.tId=D;C.isUpload=true;}if(C){this._transaction_id++;}}catch(B){}finally{return C;}},asyncRequest:function(F,C,E,A){var D=(this._isFileUpload)?this.getConnectionObject(true):this.getConnectionObject();var B=(E&&E.argument)?E.argument:null;if(!D){return null;}else{if(E&&E.customevents){this.initCustomEvents(D,E);}if(this._isFormSubmit){if(this._isFileUpload){this.uploadFile(D,E,C,A);return D;}if(F.toUpperCase()=="GET"){if(this._sFormData.length!==0){C+=((C.indexOf("?")==-1)?"?":"&")+this._sFormData;}}else{if(F.toUpperCase()=="POST"){A=A?this._sFormData+"&"+A:this._sFormData;}}}if(F.toUpperCase()=="GET"&&(E&&E.cache===false)){C+=((C.indexOf("?")==-1)?"?":"&")+"rnd="+new Date().valueOf().toString();}D.conn.open(F,C,true);if(this._use_default_xhr_header){if(!this._default_headers["X-Requested-With"]){this.initHeader("X-Requested-With",this._default_xhr_header,true);}}if((F.toUpperCase()==="POST"&&this._use_default_post_header)&&this._isFormSubmit===false){this.initHeader("Content-Type",this._default_post_header);}if(this._has_default_headers||this._has_http_headers){this.setHeader(D);}this.handleReadyState(D,E);D.conn.send(A||"");if(this._isFormSubmit===true){this.resetFormState();}this.startEvent.fire(D,B);if(D.startEvent){D.startEvent.fire(D,B);}return D;}},initCustomEvents:function(A,C){var B;for(B in C.customevents){if(this._customEvents[B][0]){A[this._customEvents[B][0]]=new YAHOO.util.CustomEvent(this._customEvents[B][1],(C.scope)?C.scope:null);A[this._customEvents[B][0]].subscribe(C.customevents[B]);}}},handleReadyState:function(C,D){var B=this;var A=(D&&D.argument)?D.argument:null;if(D&&D.timeout){this._timeOut[C.tId]=window.setTimeout(function(){B.abort(C,D,true);},D.timeout);}this._poll[C.tId]=window.setInterval(function(){if(C.conn&&C.conn.readyState===4){window.clearInterval(B._poll[C.tId]);delete B._poll[C.tId];if(D&&D.timeout){window.clearTimeout(B._timeOut[C.tId]);delete B._timeOut[C.tId];}B.completeEvent.fire(C,A);if(C.completeEvent){C.completeEvent.fire(C,A);}B.handleTransactionResponse(C,D);}},this._polling_interval);},handleTransactionResponse:function(F,G,A){var D,C;var B=(G&&G.argument)?G.argument:null;try{if(F.conn.status!==undefined&&F.conn.status!==0){D=F.conn.status;}else{D=13030;}}catch(E){D=13030;}if(D>=200&&D<300||D===1223){C=this.createResponseObject(F,B);if(G&&G.success){if(!G.scope){G.success(C);}else{G.success.apply(G.scope,[C]);}}this.successEvent.fire(C);if(F.successEvent){F.successEvent.fire(C);}}else{switch(D){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:C=this.createExceptionObject(F.tId,B,(A?A:false));if(G&&G.failure){if(!G.scope){G.failure(C);}else{G.failure.apply(G.scope,[C]);}}break;default:C=this.createResponseObject(F,B);if(G&&G.failure){if(!G.scope){G.failure(C);}else{G.failure.apply(G.scope,[C]);}}}this.failureEvent.fire(C);if(F.failureEvent){F.failureEvent.fire(C);}}this.releaseObject(F);C=null;},createResponseObject:function(A,G){var D={};var I={};try{var C=A.conn.getAllResponseHeaders();var F=C.split("\n");for(var E=0;E<F.length;E++){var B=F[E].indexOf(":");if(B!=-1){I[F[E].substring(0,B)]=F[E].substring(B+2);}}}catch(H){}D.tId=A.tId;D.status=(A.conn.status==1223)?204:A.conn.status;D.statusText=(A.conn.status==1223)?"No Content":A.conn.statusText;D.getResponseHeader=I;D.getAllResponseHeaders=C;D.responseText=A.conn.responseText;D.responseXML=A.conn.responseXML;if(G){D.argument=G;}return D;},createExceptionObject:function(H,D,A){var F=0;var G="communication failure";var C=-1;var B="transaction aborted";var E={};E.tId=H;if(A){E.status=C;E.statusText=B;}else{E.status=F;E.statusText=G;}if(D){E.argument=D;}return E;},initHeader:function(A,D,C){var B=(C)?this._default_headers:this._http_headers;B[A]=D;if(C){this._has_default_headers=true;}else{this._has_http_headers=true;}},setHeader:function(A){var B;if(this._has_default_headers){for(B in this._default_headers){if(YAHOO.lang.hasOwnProperty(this._default_headers,B)){A.conn.setRequestHeader(B,this._default_headers[B]);}}}if(this._has_http_headers){for(B in this._http_headers){if(YAHOO.lang.hasOwnProperty(this._http_headers,B)){A.conn.setRequestHeader(B,this._http_headers[B]);}}delete this._http_headers;this._http_headers={};this._has_http_headers=false;}},resetDefaultHeaders:function(){delete this._default_headers;this._default_headers={};this._has_default_headers=false;},setForm:function(M,H,C){var L,B,K,I,P,J=false,F=[],O=0,E,G,D,N,A;this.resetFormState();if(typeof M=="string"){L=(document.getElementById(M)||document.forms[M]);}else{if(typeof M=="object"){L=M;}else{return;}}if(H){this.createFrame(C?C:null);this._isFormSubmit=true;this._isFileUpload=true;this._formNode=L;return;}for(E=0,G=L.elements.length;E<G;++E){B=L.elements[E];P=B.disabled;K=B.name;if(!P&&K){K=encodeURIComponent(K)+"=";I=encodeURIComponent(B.value);switch(B.type){case"select-one":if(B.selectedIndex>-1){A=B.options[B.selectedIndex];F[O++]=K+encodeURIComponent((A.attributes.value&&A.attributes.value.specified)?A.value:A.text);}break;case"select-multiple":if(B.selectedIndex>-1){for(D=B.selectedIndex,N=B.options.length;D<N;++D){A=B.options[D];if(A.selected){F[O++]=K+encodeURIComponent((A.attributes.value&&A.attributes.value.specified)?A.value:A.text);}}}break;case"radio":case"checkbox":if(B.checked){F[O++]=K+I;}break;case"file":case undefined:case"reset":case"button":break;case"submit":if(J===false){if(this._hasSubmitListener&&this._submitElementValue){F[O++]=this._submitElementValue;}J=true;}break;default:F[O++]=K+I;}}}this._isFormSubmit=true;this._sFormData=F.join("&");this.initHeader("Content-Type",this._default_form_header);return this._sFormData;},resetFormState:function(){this._isFormSubmit=false;this._isFileUpload=false;this._formNode=null;this._sFormData="";},createFrame:function(A){var B="yuiIO"+this._transaction_id;var C;if(YAHOO.env.ua.ie){C=document.createElement('<iframe id="'+B+'" name="'+B+'" />');if(typeof A=="boolean"){C.src="javascript:false";}}else{C=document.createElement("iframe");C.id=B;C.name=B;}C.style.position="absolute";C.style.top="-1000px";C.style.left="-1000px";document.body.appendChild(C);},appendPostData:function(A){var D=[],B=A.split("&"),C,E;for(C=0;C<B.length;C++){E=B[C].indexOf("=");if(E!=-1){D[C]=document.createElement("input");D[C].type="hidden";D[C].name=decodeURIComponent(B[C].substring(0,E));D[C].value=decodeURIComponent(B[C].substring(E+1));this._formNode.appendChild(D[C]);}}return D;},uploadFile:function(D,N,E,C){var I="yuiIO"+D.tId,J="multipart/form-data",L=document.getElementById(I),O=this,K=(N&&N.argument)?N.argument:null,M,H,B,G;var A={action:this._formNode.getAttribute("action"),method:this._formNode.getAttribute("method"),target:this._formNode.getAttribute("target")};this._formNode.setAttribute("action",E);this._formNode.setAttribute("method","POST");this._formNode.setAttribute("target",I);if(YAHOO.env.ua.ie){this._formNode.setAttribute("encoding",J);}else{this._formNode.setAttribute("enctype",J);}if(C){M=this.appendPostData(C);}this._formNode.submit();this.startEvent.fire(D,K);if(D.startEvent){D.startEvent.fire(D,K);}if(N&&N.timeout){this._timeOut[D.tId]=window.setTimeout(function(){O.abort(D,N,true);},N.timeout);}if(M&&M.length>0){for(H=0;H<M.length;H++){this._formNode.removeChild(M[H]);}}for(B in A){if(YAHOO.lang.hasOwnProperty(A,B)){if(A[B]){this._formNode.setAttribute(B,A[B]);}else{this._formNode.removeAttribute(B);}}}this.resetFormState();var F=function(){if(N&&N.timeout){window.clearTimeout(O._timeOut[D.tId]);delete O._timeOut[D.tId];}O.completeEvent.fire(D,K);if(D.completeEvent){D.completeEvent.fire(D,K);}G={tId:D.tId,argument:N.argument};try{G.responseText=L.contentWindow.document.body?L.contentWindow.document.body.innerHTML:L.contentWindow.document.documentElement.textContent;G.responseXML=L.contentWindow.document.XMLDocument?L.contentWindow.document.XMLDocument:L.contentWindow.document;}catch(P){}if(N&&N.upload){if(!N.scope){N.upload(G);}else{N.upload.apply(N.scope,[G]);}}O.uploadEvent.fire(G);if(D.uploadEvent){D.uploadEvent.fire(G);}YAHOO.util.Event.removeListener(L,"load",F);setTimeout(function(){document.body.removeChild(L);O.releaseObject(D);},100);};YAHOO.util.Event.addListener(L,"load",F);},abort:function(E,G,A){var D;var B=(G&&G.argument)?G.argument:null;if(E&&E.conn){if(this.isCallInProgress(E)){E.conn.abort();window.clearInterval(this._poll[E.tId]);delete this._poll[E.tId];if(A){window.clearTimeout(this._timeOut[E.tId]);delete this._timeOut[E.tId];}D=true;}}else{if(E&&E.isUpload===true){var C="yuiIO"+E.tId;var F=document.getElementById(C);if(F){YAHOO.util.Event.removeListener(F,"load");document.body.removeChild(F);if(A){window.clearTimeout(this._timeOut[E.tId]);delete this._timeOut[E.tId];}D=true;}}else{D=false;}}if(D===true){this.abortEvent.fire(E,B);if(E.abortEvent){E.abortEvent.fire(E,B);}this.handleTransactionResponse(E,G,true);}return D;},isCallInProgress:function(B){if(B&&B.conn){return B.conn.readyState!==4&&B.conn.readyState!==0;}else{if(B&&B.isUpload===true){var A="yuiIO"+B.tId;return document.getElementById(A)?true:false;}else{return false;}}},releaseObject:function(A){if(A&&A.conn){A.conn=null;A=null;}}};YAHOO.register("connection",YAHOO.util.Connect,{version:"2.7.0",build:"1796"});;
/*======================================================================*\
|| #################################################################### ||
|| # vBulletin 3.8.4 Patch Level 2
|| # ---------------------------------------------------------------- # ||
|| # Copyright ©2000-2011 Jelsoft Enterprises Ltd. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| #################################################################### ||
\*======================================================================*/
if(!window.console||!console.firebug)
{window.console={};var names=["log","debug","info","warn","error","assert","dir","dirxml","group","groupEnd","time","timeEnd","count","trace","profile","profileEnd"];for(var i=0;i<names.length;++i)window.console[names[i]]=function(){};}
var SESSIONURL=(typeof(SESSIONURL)=="undefined"?"":SESSIONURL);var SECURITYTOKEN=(typeof(SECURITYTOKEN)=="undefined"?"":SECURITYTOKEN);var vbphrase=(typeof(vbphrase)=="undefined"?new Array():vbphrase);var vB_Editor=new Array();var ignorequotechars=false;var pagenavcounter=0;var is_regexp=(window.RegExp)?true:false;var AJAX_Compatible=false;var viewport_info=null;var vB_Default_Timeout=15000;var userAgent=navigator.userAgent.toLowerCase();var is_opera=(YAHOO.env.ua.opera>0);var is_saf=(YAHOO.env.ua.webkit>0);var is_webtv=(userAgent.indexOf('webtv')!=-1);var is_ie=((YAHOO.env.ua.ie>0)&&(!is_opera)&&(!is_saf)&&(!is_webtv));var is_ie4=(YAHOO.env.ua.ie==4);var is_ie7=(YAHOO.env.ua.ie>=7);var is_ps3=(userAgent.indexOf('playstation 3')!=-1);var is_moz=(YAHOO.env.ua.gecko>0);var is_kon=(userAgent.indexOf('konqueror')!=-1);var is_ns=((userAgent.indexOf('compatible')==-1)&&(userAgent.indexOf('mozilla')!=-1)&&(!is_opera)&&(!is_webtv)&&(!is_saf));var is_ns4=((is_ns)&&(parseInt(navigator.appVersion)==4));var is_mac=(userAgent.indexOf('mac')!=-1);var pointer_cursor=(is_ie?'hand':'pointer');String.prototype.vBlength=function()
{return(is_ie&&this.indexOf("\n")!=-1)?this.replace(/\r?\n/g,"_").length:this.length;}
if("1234".substr(-2,2)=="12")
{String.prototype.substr_orig=String.prototype.substr;String.prototype.substr=function(start,length)
{if(typeof(length)=="undefined")
{return this.substr_orig((start<0?this.length+start:start));}
else
{return this.substr_orig((start<0?this.length+start:start),length);}};}
if(typeof Array.prototype.shift==='undefined')
{Array.prototype.shift=function()
{for(var i=0,b=this[0],l=this.length-1;i<l;i++)
{this[i]=this[i+1];}
this.length--;return b;};}
function fetch_object(idname)
{if(document.getElementById)
{return document.getElementById(idname);}
else if(document.all)
{return document.all[idname];}
else if(document.layers)
{return document.layers[idname];}
else
{return null;}}
function fetch_tags(parentobj,tag)
{if(parentobj==null)
{return new Array();}
else if(typeof parentobj.getElementsByTagName!='undefined')
{return parentobj.getElementsByTagName(tag);}
else if(parentobj.all&&parentobj.all.tags)
{return parentobj.all.tags(tag);}
else
{return new Array();}}
function fetch_tag_count(parentobj,tag)
{return fetch_tags(parentobj,tag).length;}
function do_an_e(eventobj)
{if(!eventobj||is_ie)
{window.event.returnValue=false;window.event.cancelBubble=true;return window.event;}
else
{eventobj.stopPropagation();eventobj.preventDefault();return eventobj;}}
function e_by_gum(eventobj)
{if(!eventobj||is_ie)
{window.event.cancelBubble=true;return window.event;}
else
{if(eventobj.target.type=='submit')
{eventobj.target.form.submit();}
eventobj.stopPropagation();return eventobj;}}
function validatemessage(messagetext,subjecttext,minchars)
{if(is_kon||is_saf||is_webtv)
{return true;}
else if(subjecttext.length<1)
{alert(vbphrase['must_enter_subject']);return false;}
else
{var stripped=PHP.trim(stripcode(messagetext,false,ignorequotechars));if(stripped.length<minchars)
{alert(construct_phrase(vbphrase['message_too_short'],minchars));return false;}
else if(typeof(document.forms.vbform)!='undefined'&&typeof(document.forms.vbform.imagestamp)!='undefined')
{document.forms.vbform.imagestamp.failed=false;if(document.forms.vbform.imagestamp.value.length!=6)
{alert(vbphrase['complete_image_verification']);document.forms.vbform.imagestamp.failed=true;document.forms.vbform.imagestamp.focus();return false;}
else
{return true;}}
else
{return true;}}}
function stripcode(str,ishtml,stripquotes)
{if(!is_regexp)
{return str;}
if(stripquotes)
{var start_time=new Date().getTime();while((startindex=PHP.stripos(str,'[quote'))!==false)
{if(new Date().getTime()-start_time>2000)
{break;}
if((stopindex=PHP.stripos(str,'[/quote]'))!==false)
{fragment=str.substr(startindex,stopindex-startindex+8);str=str.replace(fragment,'');}
else
{break;}
str=PHP.trim(str);}}
if(ishtml)
{str=str.replace(/<img[^>]+src="([^"]+)"[^>]*>/gi,'$1');var html1=new RegExp("<(\\w+)[^>]*>",'gi');var html2=new RegExp("<\\/\\w+>",'gi');str=str.replace(html1,'');str=str.replace(html2,'');var html3=new RegExp('(&nbsp;)','gi');str=str.replace(html3,' ');}
else
{var bbcode1=new RegExp("\\[(\\w+)(=[^\\]]*)?\\]",'gi');var bbcode2=new RegExp("\\[\\/(\\w+)\\]",'gi');str=str.replace(bbcode1,'');str=str.replace(bbcode2,'');}
return str;}
function vB_PHP_Emulator()
{}
vB_PHP_Emulator.prototype.stripos=function(haystack,needle,offset)
{if(typeof offset=='undefined')
{offset=0;}
index=haystack.toLowerCase().indexOf(needle.toLowerCase(),offset);return(index==-1?false:index);}
vB_PHP_Emulator.prototype.ltrim=function(str)
{return str.replace(/^\s+/g,'');}
vB_PHP_Emulator.prototype.rtrim=function(str)
{return str.replace(/(\s+)$/g,'');}
vB_PHP_Emulator.prototype.trim=function(str)
{return this.ltrim(this.rtrim(str));}
vB_PHP_Emulator.prototype.preg_quote=function(str)
{return str.replace(/(\+|\{|\}|\(|\)|\[|\]|\||\/|\?|\^|\$|\\|\.|\=|\!|\<|\>|\:|\*)/g,"\\$1");}
vB_PHP_Emulator.prototype.match_all=function(string,regex)
{var gmatch=string.match(RegExp(regex,"gim"));if(gmatch)
{var matches=new Array();var iregex=new RegExp(regex,"im");for(var i=0;i<gmatch.length;i++)
{matches[matches.length]=gmatch[i].match(iregex);}
return matches;}
else
{return false;}}
vB_PHP_Emulator.prototype.unhtmlspecialchars=function(str)
{var f=new Array(/&lt;/g,/&gt;/g,/&quot;/g,/&amp;/g);var r=new Array('<','>','"','&');for(var i in f)
{if(YAHOO.lang.hasOwnProperty(f,i))
{str=str.replace(f[i],r[i]);}}
return str;}
vB_PHP_Emulator.prototype.unescape_cdata=function(str)
{var r1=/<\=\!\=\[\=C\=D\=A\=T\=A\=\[/g;var r2=/\]\=\]\=>/g;return str.replace(r1,'<![CDATA[').replace(r2,']]>');}
vB_PHP_Emulator.prototype.htmlspecialchars=function(str)
{var f=new Array((is_mac&&is_ie?new RegExp('&','g'):new RegExp('&(?!#[0-9]+;)','g')),new RegExp('<','g'),new RegExp('>','g'),new RegExp('"','g'));var r=new Array('&amp;','&lt;','&gt;','&quot;');for(var i=0;i<f.length;i++)
{str=str.replace(f[i],r[i]);}
return str;}
vB_PHP_Emulator.prototype.in_array=function(ineedle,haystack,caseinsensitive)
{var needle=new String(ineedle);var i;if(caseinsensitive)
{needle=needle.toLowerCase();for(i in haystack)
{if(YAHOO.lang.hasOwnProperty(haystack,i))
{if(haystack[i].toLowerCase()==needle)
{return i;}}}}
else
{for(i in haystack)
{if(YAHOO.lang.hasOwnProperty(haystack,i))
{if(haystack[i]==needle)
{return i;}}}}
return-1;}
vB_PHP_Emulator.prototype.str_pad=function(text,length,padstring)
{text=new String(text);padstring=new String(padstring);if(text.length<length)
{padtext=new String(padstring);while(padtext.length<(length-text.length))
{padtext+=padstring;}
text=padtext.substr(0,(length-text.length))+text;}
return text;}
vB_PHP_Emulator.prototype.urlencode=function(text)
{text=escape(text.toString()).replace(/\+/g,"%2B");var matches=text.match(/(%([0-9A-F]{2}))/gi);if(matches)
{for(var matchid=0;matchid<matches.length;matchid++)
{var code=matches[matchid].substring(1,3);if(parseInt(code,16)>=128)
{text=text.replace(matches[matchid],'%u00'+code);}}}
text=text.replace('%25','%u0025');return text;}
vB_PHP_Emulator.prototype.ucfirst=function(str,cutoff)
{if(typeof cutoff!='undefined')
{var cutpos=str.indexOf(cutoff);if(cutpos>0)
{str=str.substr(0,cutpos);}}
str=str.split(' ');for(var i=0;i<str.length;i++)
{str[i]=str[i].substr(0,1).toUpperCase()+str[i].substr(1);}
return str.join(' ');}
vB_PHP_Emulator.prototype.array_diff=function(array)
{var arr_dif=[],i=1,argc=arguments.length,argv=arguments,key,key_c,found=false,cntr=0;if(array)
{for(key in array){for(i=1;i<argc;i++){found=false;for(key_c in argv[i]){if(argv[i][key_c]==array[key]){found=true;break;}}
if(!found){arr_dif[cntr]=array[key];cntr++;}}}}
return arr_dif;}
function vB_AJAX_Handler(async){this.async=async?true:false;this.conn=null;};vB_AJAX_Handler.prototype.init=function(){return AJAX_Compatible;};vB_AJAX_Handler.is_compatible=function(){return AJAX_Compatible;};vB_AJAX_Handler.prototype.onreadystatechange=function(callback){this.callback=callback;};vB_AJAX_Handler.prototype.fetch_data=function(xml_node){console.warn("vB_AJAX_Handler.prototype.fetch_data() is deprecated.\nUse responseXML.getElementsByTagName(\"x\")[i].firstChild.nodeValue instead.");if(xml_node&&xml_node.firstChild&&xml_node.firstChild.nodeValue){return PHP.unescape_cdata(xml_node.firstChild.nodeValue);}else{return'';}};vB_AJAX_Handler.prototype.send=function(desturl,datastream){this.conn=YAHOO.util.Connect.asyncRequest("POST",desturl,{success:this.callback},datastream+"&securitytoken="+SECURITYTOKEN+"&s="+fetch_sessionhash());this.handler=this.conn.conn;};function is_ajax_compatible()
{if(typeof vb_disable_ajax!="undefined"&&vb_disable_ajax==2)
{return false;}
else if(is_ie&&!is_ie4)
{return true;}
else if(window.XMLHttpRequest)
{try
{var ajax_test=new XMLHttpRequest();return ajax_test.setRequestHeader?true:false;}
catch(e)
{return false;}}
else
{return false;}}
AJAX_Compatible=is_ajax_compatible();console.info("This browser is%s AJAX compatible",AJAX_Compatible?"":" NOT");function vBulletin_AJAX_Error_Handler(ajax)
{console.warn("AJAX Error: Status = %s: %s",ajax.status,ajax.statusText);}
function vB_Hidden_Form(script)
{this.action=script;this.variables=new Array();}
vB_Hidden_Form.prototype.add_variable=function(name,value)
{this.variables[this.variables.length]=new Array(name,value);console.log("vB_Hidden_Form :: add_variable(%s)",name);};vB_Hidden_Form.prototype.add_variables_from_object=function(obj)
{if(!obj)
{return;}
console.info("vB_Hidden_Form :: add_variables_from_object(%s)",obj.id);var inputs=fetch_tags(obj,'input');var i;for(i=0;i<inputs.length;i++)
{switch(inputs[i].type)
{case'checkbox':case'radio':if(inputs[i].checked)
{this.add_variable(inputs[i].name,inputs[i].value);}
break;case'text':case'hidden':case'password':this.add_variable(inputs[i].name,inputs[i].value);break;default:continue;}}
var textareas=fetch_tags(obj,'textarea');for(i=0;i<textareas.length;i++)
{this.add_variable(textareas[i].name,textareas[i].value);}
var selects=fetch_tags(obj,'select');for(i=0;i<selects.length;i++)
{if(selects[i].multiple)
{for(var j=0;j<selects[i].options.length;j++)
{if(selects[i].options[j].selected)
{this.add_variable(selects[i].name,selects[i].options[j].value);}}}
else
{this.add_variable(selects[i].name,selects[i].options[selects[i].selectedIndex].value);}}};vB_Hidden_Form.prototype.fetch_variable=function(varname)
{for(var i=0;i<this.variables.length;i++)
{if(this.variables[i][0]==varname)
{return this.variables[i][1];}}
return null;};vB_Hidden_Form.prototype.submit_form=function()
{this.form=document.createElement('form');this.form.method='post';this.form.action=this.action;for(var i=0;i<this.variables.length;i++)
{var inputobj=document.createElement('input');inputobj.type='hidden';inputobj.name=this.variables[i][0];inputobj.value=this.variables[i][1];this.form.appendChild(inputobj);}
console.info("vB_Hidden_Form :: submit_form() -> %s",this.action);document.body.appendChild(this.form).submit();};vB_Hidden_Form.prototype.build_query_string=function()
{var query_string='';for(var i=0;i<this.variables.length;i++)
{query_string+=this.variables[i][0]+'='+PHP.urlencode(this.variables[i][1])+'&';}
console.info("vB_Hidden_Form :: Query String = %s",query_string);return query_string;}
vB_Hidden_Form.prototype.add_input=vB_Hidden_Form.prototype.add_variable;vB_Hidden_Form.prototype.add_inputs_from_object=vB_Hidden_Form.prototype.add_variables_from_object;function vB_Select_Overlay_Handler(overlay)
{this.browser_affected=(is_ie&&YAHOO.env.ua.ie<7);if(this.browser_affected)
{this.overlay=YAHOO.util.Dom.get(overlay);this.hidden_selects=new Array();console.log("Initializing <select> overlay handler for '%s'.",this.overlay.id);}}
vB_Select_Overlay_Handler.prototype.hide=function()
{if(this.browser_affected)
{var overlay_region=YAHOO.util.Dom.getRegion(this.overlay);var selects=document.getElementsByTagName("select");for(var i=0;i<selects.length;i++)
{if(region_intersects(selects[i],overlay_region))
{if(YAHOO.util.Dom.isAncestor(this.overlay,selects[i]))
{continue;}
else
{YAHOO.util.Dom.setStyle(selects[i],"visibility","hidden");this.hidden_selects.push(YAHOO.util.Dom.generateId(selects[i]));}}}}};vB_Select_Overlay_Handler.prototype.show=function()
{if(this.browser_affected)
{var selectid;while(selectid=this.hidden_selects.pop())
{YAHOO.util.Dom.setStyle(selectid,"visibility","visible");}}};function openWindow(url,width,height,windowid)
{return window.open(url,(typeof windowid=='undefined'?'vBPopup':windowid),'statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes'
+(typeof width!='undefined'?(',width='+width):'')+(typeof height!='undefined'?(',height='+height):''));}
function js_open_help(scriptname,actiontype,optionval)
{return openWindow('help.php?s='+SESSIONHASH+'&do=answer&page='+scriptname+'&pageaction='+actiontype+'&option='+optionval,600,450,'helpwindow');}
function attachments(threadid)
{return openWindow('misc.php?'+SESSIONURL+'do=showattachments&t='+threadid,480,300);}
function who(threadid)
{return openWindow('misc.php?'+SESSIONURL+'do=whoposted&t='+threadid,230,300);}
function imwindow(imtype,userid,width,height)
{return openWindow('sendmessage.php?'+SESSIONURL+'do=im&type='+imtype+'&u='+userid,width,height);}
function SendMSNMessage(name)
{if(!is_ie)
{alert(vbphrase['msn_functions_only_work_in_ie']);}
else
{try
{MsgrObj.InstantMessage(name);}
catch(e)
{alert(vbphrase['msn_functions_only_work_in_ie']);}}
return false;}
function AddMSNContact(name)
{if(!is_ie)
{alert(vbphrase['msn_functions_only_work_in_ie']);}
else
{try
{MsgrObj.AddContact(0,name);}
catch(e)
{alert(vbphrase['msn_functions_only_work_in_ie']);}}
return false;}
function detect_caps_lock(e)
{e=(e?e:window.event);var keycode=(e.which?e.which:(e.keyCode?e.keyCode:(e.charCode?e.charCode:0)));var shifted=(e.shiftKey||(e.modifiers&&(e.modifiers&4)));var ctrled=(e.ctrlKey||(e.modifiers&&(e.modifiers&2)));return(keycode>=65&&keycode<=90&&!shifted&&!ctrled)||(keycode>=97&&keycode<=122&&shifted);}
function log_out(confirmation_message)
{var ht=document.getElementsByTagName("html")[0];ht.style.filter="progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";if(confirm(confirmation_message))
{return true;}
else
{ht.style.filter="";return false;}}
function set_cookie(name,value,expires)
{console.log("Set Cookie :: %s = '%s'",name,value);document.cookie=name+'='+escape(value)+'; path=/'+(typeof expires!='undefined'?'; expires='+expires.toGMTString():'');}
function delete_cookie(name)
{console.log("Delete Cookie :: %s",name);document.cookie=name+'='+'; expires=Thu, 01-Jan-70 00:00:01 GMT'+'; path=/';}
function fetch_cookie(name)
{cookie_name=name+'=';cookie_length=document.cookie.length;cookie_begin=0;while(cookie_begin<cookie_length)
{value_begin=cookie_begin+cookie_name.length;if(document.cookie.substring(cookie_begin,value_begin)==cookie_name)
{var value_end=document.cookie.indexOf(';',value_begin);if(value_end==-1)
{value_end=cookie_length;}
var cookie_value=unescape(document.cookie.substring(value_begin,value_end));console.log("Fetch Cookie :: %s = '%s'",name,cookie_value);return cookie_value;}
cookie_begin=document.cookie.indexOf(' ',cookie_begin)+1;if(cookie_begin==0)
{break;}}
console.log("Fetch Cookie :: %s (null)",name);return null;}
function js_toggle_all(formobj,formtype,option,exclude,setto)
{for(var i=0;i<formobj.elements.length;i++)
{var elm=formobj.elements[i];if(elm.type==formtype&&PHP.in_array(elm.name,exclude,false)==-1)
{switch(formtype)
{case'radio':if(elm.value==option)
{elm.checked=setto;}
break;case'select-one':elm.selectedIndex=setto;break;default:elm.checked=setto;break;}}}}
function js_select_all(formobj)
{exclude=new Array();exclude[0]='selectall';js_toggle_all(formobj,'select-one','',exclude,formobj.selectall.selectedIndex);}
function js_check_all(formobj)
{exclude=new Array();exclude[0]='keepattachments';exclude[1]='allbox';exclude[2]='removeall';js_toggle_all(formobj,'checkbox','',exclude,formobj.allbox.checked);}
function js_check_all_option(formobj,option)
{exclude=new Array();exclude[0]='useusergroup';js_toggle_all(formobj,'radio',option,exclude,true);}
function checkall(formobj)
{js_check_all(formobj);}
function checkall_option(formobj,option)
{js_check_all_option(formobj,option);}
function resize_textarea(to,id)
{var textarea=fetch_object(id);textarea.style.width=parseInt(textarea.offsetWidth)+(to<0?-100:100)+"px";textarea.style.height=parseInt(textarea.offsetHeight)+(to<0?-100:100)+"px";return false;}
function region_intersects(obj1,obj2)
{obj1=typeof(obj1.left)=="undefined"?YAHOO.util.Dom.getRegion(obj1):obj1;obj2=typeof(obj2.left)=="undefined"?YAHOO.util.Dom.getRegion(obj2):obj2;return(obj1.left>obj2.right||obj1.right<obj2.left||obj1.top>obj2.bottom||obj1.bottom<obj2.top)?false:true;}
function fetch_viewport_info()
{if(viewport_info==null)
{viewport_info={x:YAHOO.util.Dom.getDocumentScrollLeft(),y:YAHOO.util.Dom.getDocumentScrollTop(),w:YAHOO.util.Dom.getViewportWidth(),h:YAHOO.util.Dom.getViewportHeight()};console.info("Viewport Info: Size = %dx%d, Position = %d,%d",viewport_info['w'],viewport_info['h'],viewport_info['x'],viewport_info['y']);}
return viewport_info;}
function clear_viewport_info()
{viewport_info=null;}
function center_element(el)
{viewport_info=fetch_viewport_info();YAHOO.util.Dom.setXY(el,[viewport_info['w']/2+viewport_info['x']-el.clientWidth/2,viewport_info['h']/2+viewport_info['y']-el.clientHeight/2]);}
function fetch_all_stylesheets(sheets)
{var all_sheets=new Array(),i=0,current_sheet=null,current_rule=0,current_import=0;for(i=0;i<document.styleSheets.length;i++)
{current_sheet=document.styleSheets[i];all_sheets.push(current_sheet);try
{if(current_sheet.cssRules)
{for(current_rule=0;current_rule<current_sheet.cssRules.length;current_rule++)
{if(current_sheet.cssRules[current_rule].styleSheet)
{all_sheets.push(current_sheet.cssRules[current_rule].styleSheet);}}}
else
{if(current_sheet.imports)
{for(current_import=0;current_import<current_sheet.imports.length;current_import++)
{all_sheets.push(current_sheet.imports[current_import]);}}}}
catch(e)
{all_sheets.pop();continue;}}
return all_sheets;}
function highlight_login_box()
{var obj=fetch_object('navbar_username');var addclass='inlinemod';var i,timeout=1600,flash_speed=200;if(obj)
{obj.focus();obj.select();for(i=0;i<timeout;i+=2*flash_speed)
{window.setTimeout(function(){YAHOO.util.Dom.addClass(obj,addclass)},i);window.setTimeout(function(){YAHOO.util.Dom.removeClass(obj,addclass)},i+flash_speed);}}
return false;}
function toggle_collapse(objid,forcestate)
{if(!is_regexp)
{return false;}
var obj=fetch_object('collapseobj_'+objid);var img=fetch_object('collapseimg_'+objid);var cel=fetch_object('collapsecel_'+objid);if(!obj)
{if(img)
{img.style.display='none';}
return false;}
if(obj.style.display=='none'||'open'==forcestate)
{obj.style.display='';if(!forcestate)
{save_collapsed(objid,false);}
if(img)
{img_re=new RegExp("_collapsed\\.gif$");img.src=img.src.replace(img_re,'.gif');}
if(cel)
{cel_re=new RegExp("^(thead|tcat)(_collapsed)$");cel.className=cel.className.replace(cel_re,'$1');}}
else if(obj.style.display!='none'||'closed'==forcestate)
{obj.style.display='none';if(!forcestate)
{save_collapsed(objid,true);}
if(img)
{img_re=new RegExp("\\.gif$");img.src=img.src.replace(img_re,'_collapsed.gif');}
if(cel)
{cel_re=new RegExp("^(thead|tcat)$");cel.className=cel.className.replace(cel_re,'$1_collapsed');}}
return false;}
function save_collapsed(objid,addcollapsed)
{var collapsed=fetch_cookie('vbulletin_collapse');var tmp=new Array();if(collapsed!=null)
{collapsed=collapsed.split('\n');for(var i in collapsed)
{if(YAHOO.lang.hasOwnProperty(collapsed,i)&&collapsed[i]!=objid&&collapsed[i]!='')
{tmp[tmp.length]=collapsed[i];}}}
if(addcollapsed)
{tmp[tmp.length]=objid;}
expires=new Date();expires.setTime(expires.getTime()+(1000*86400*365));set_cookie('vbulletin_collapse',tmp.join('\n'),expires);}
function vBpagenav()
{}
vBpagenav.prototype.controlobj_onclick=function(e)
{this._onclick(e);var inputs=fetch_tags(this.menu.menuobj,'input');for(var i=0;i<inputs.length;i++)
{if(inputs[i].type=='text')
{inputs[i].focus();break;}}};vBpagenav.prototype.form_gotopage=function(e)
{if((pagenum=parseInt(fetch_object('pagenav_itxt').value,10))>0)
{window.location=vBmenu.menus[vBmenu.activemenu].addr+'&page='+pagenum;}
return false;};vBpagenav.prototype.ibtn_onclick=function(e)
{return this.form.gotopage();};vBpagenav.prototype.itxt_onkeypress=function(e)
{return((e?e:window.event).keyCode==13?this.form.gotopage():true);};function vbmenu_register(controlid,noimage,datefield)
{if(typeof(vBmenu)=="object")
{return vBmenu.register(controlid,noimage);}
else
{return false;}}
function string_to_node(html_string)
{var node_container=document.createElement("div");node_container.innerHTML=html_string;var node=node_container.firstChild;while(node&&node.nodeType!=1)
{node=node.nextSibling;}
if(!node)
{return node_container.firstChild.cloneNode(true);}
else
{return node.cloneNode(true);}}
function set_unselectable(obj)
{obj=YAHOO.util.Dom.get(obj);if(!is_ie4&&typeof obj.tagName!='undefined')
{if(obj.hasChildNodes())
{for(var i=0;i<obj.childNodes.length;i++)
{set_unselectable(obj.childNodes[i]);}}
obj.unselectable='on';}}
function fetch_sessionhash()
{return(SESSIONURL==''?'':SESSIONURL.substr(2,32));}
function construct_phrase()
{if(!arguments||arguments.length<1||!is_regexp)
{return false;}
var args=arguments;var str=args[0];var re;for(var i=1;i<args.length;i++)
{re=new RegExp("%"+i+"\\$s",'gi');str=str.replace(re,args[i]);}
return str;}
function switch_id(selectobj,type)
{var id=selectobj.options[selectobj.selectedIndex].value;if(id=='')
{return;}
var url=new String(window.location);var fragment=new String('');url=url.split('#');if(url[1])
{fragment='#'+url[1];}
url=url[0];if(url.indexOf(type+'id=')!=-1&&is_regexp)
{var re=new RegExp(type+"id=\\d+&?");url=url.replace(re,'');}
if(url.indexOf('?')==-1)
{url+='?';}
else
{lastchar=url.substr(url.length-1);if(lastchar!='&'&&lastchar!='?')
{url+='&';}}
window.location=url+type+'id='+id+fragment;}
function child_img_alt_2_title(object)
{if(!object)return;var imgs=object.getElementsByTagName("img");for(var i=0;i<imgs.length;i++)
{img_alt_2_title(imgs[i]);}}
function img_alt_2_title(img)
{if(!img.title&&img.alt!='')
{img.title=img.alt;}}
function do_securitytoken_replacement(newtoken)
{if(newtoken=='')
{return;}
for(var formid=0;formid<document.forms.length;formid++)
{if(document.forms[formid].elements['securitytoken']&&document.forms[formid].elements['securitytoken'].value==SECURITYTOKEN)
{document.forms[formid].elements['securitytoken'].value=newtoken;}}
SECURITYTOKEN=newtoken;console.log("Securitytoken updated");}
function handle_securitytoken_response(ajax)
{console.log("Processing securitytoken update");if(ajax.responseXML&&ajax.responseXML.getElementsByTagName("securitytoken").length)
{var newtoken=ajax.responseXML.getElementsByTagName("securitytoken")[0].firstChild.nodeValue;do_securitytoken_replacement(newtoken);securitytoken_errors=0;}
else
{handle_securitytoken_error(ajax);}}
function handle_securitytoken_error(ajax)
{console.log("Securitytoken Error");if(++securitytoken_errors==3)
{do_securitytoken_replacement('guest');}}
var securitytoken_timeout=window.setTimeout('replace_securitytoken()',3600000);var securitytoken_errors=0;function replace_securitytoken()
{window.clearTimeout(securitytoken_timeout);if(AJAX_Compatible&&SECURITYTOKEN!=''&&SECURITYTOKEN!='guest')
{securitytoken_timeout=window.setTimeout('replace_securitytoken()',3600000);YAHOO.util.Connect.asyncRequest("POST","ajax.php",{success:handle_securitytoken_response,failure:handle_securitytoken_error,timeout:vB_Default_Timeout},SESSIONURL+"securitytoken="+SECURITYTOKEN+"&do=securitytoken");}}
function Comment_Init(obj)
{if(typeof obj.id=="undefined")
{return;}
var objectid=obj.id;if(isNaN(objectid))
{var match=null;if(match=objectid.match(/(\d+)/))
{objectid=match[0];}}
if(typeof inlineMod_comment!="undefined")
{im_init(obj,inlineMod_comment);}
if(typeof vB_QuickEditor_Factory!="undefined")
{if(typeof vB_QuickEditor_Factory.controls[objectid]=="undefined")
{vB_QuickEditor_Factory.controls[objectid]=new vB_QuickEditor(objectid,vB_QuickEditor_Factory);}
else
{vB_QuickEditor_Factory.controls[objectid].init();}}
if(typeof vB_QuickLoader_Factory!="undefined")
{vB_QuickLoader_Factory.controls[objectid]=new vB_QuickLoader(objectid,vB_QuickLoader_Factory);}
child_img_alt_2_title(obj);}
function PostBit_Init(obj,postid)
{console.log("PostBit Init: %d",postid);if(typeof vBmenu!='undefined')
{var divs=fetch_tags(obj,'div');for(var i=0;i<divs.length;i++)
{if(divs[i].id&&divs[i].id.substr(0,9)=='postmenu_')
{vBmenu.register(divs[i].id,true);}}}
if(typeof vB_QuickEditor!='undefined')
{vB_AJAX_QuickEdit_Init(obj);}
if(typeof vB_QuickReply!='undefined')
{qr_init_buttons(obj);}
if(typeof mq_init!='undefined')
{mq_init(obj);}
if(typeof vBrep!='undefined')
{if(typeof postid!='undefined'&&typeof postid!='null')
{vbrep_register(postid);}}
if(typeof inlineMod!='undefined')
{im_init(obj);}
if(typeof vB_Lightbox!='undefined')
{init_postbit_lightbox(obj,false,true);}
child_img_alt_2_title(obj);}
function vBulletin_init()
{if(is_webtv)
{return false;}
child_img_alt_2_title(fetch_object('posts'));if(typeof vBmenu=='object')
{if(typeof(YAHOO)!="undefined")
{YAHOO.util.Event.on(document,"click",vbmenu_hide);YAHOO.util.Event.on(window,"resize",vbmenu_hide);}
else if(window.attachEvent&&!is_saf)
{document.attachEvent('onclick',vbmenu_hide);window.attachEvent('onresize',vbmenu_hide);}
else if(document.addEventListener&&!is_saf)
{document.addEventListener('click',vbmenu_hide,false);window.addEventListener('resize',vbmenu_hide,false);}
else
{window.onclick=vbmenu_hide;window.onresize=vbmenu_hide;}
var pagenavs=fetch_tags(document,'td');for(var n=0;n<pagenavs.length;n++)
{if(pagenavs[n].hasChildNodes()&&pagenavs[n].firstChild.name&&pagenavs[n].firstChild.name.indexOf('PageNav')!=-1)
{var addr=pagenavs[n].title;pagenavs[n].title='';pagenavs[n].innerHTML='';pagenavs[n].id='pagenav.'+n;var pn=vBmenu.register(pagenavs[n].id);pn.addr=addr;if(is_saf)
{pn.controlobj._onclick=pn.controlobj.onclick;pn.controlobj.onclick=vBpagenav.prototype.controlobj_onclick;}}}
if(typeof addr!='undefined')
{fetch_object('pagenav_form').gotopage=vBpagenav.prototype.form_gotopage;fetch_object('pagenav_ibtn').onclick=vBpagenav.prototype.ibtn_onclick;fetch_object('pagenav_itxt').onkeypress=vBpagenav.prototype.itxt_onkeypress;}
vBmenu.activate(true);}
vBulletin.init();return true;}
function vBulletin_Framework()
{this.elements=new Array();this.ajaxurls=new Array();this.events=new Array();this.time=new Date();this.add_event("systemInit");}
vBulletin_Framework.prototype.init=function()
{console.info("Firing System Init");this.events.systemInit.fire();}
vBulletin_Framework.prototype.extend=function(subClass,baseClass)
{function inheritance(){}
inheritance.prototype=baseClass.prototype;subClass.prototype=new inheritance();subClass.prototype.constructor=subClass;subClass.baseConstructor=baseClass;subClass.superClass=baseClass.prototype;}
vBulletin_Framework.prototype.register_control=function(controltype,element)
{var args=new Array();for(var i=1;i<arguments.length;i++)
{args.push(arguments[i]);}
if(!this.elements[controltype])
{console.info("Creating array vBulletin.elements[\"%s\"]",controltype);this.elements[controltype]=new Array();}
var x=this.elements[controltype].push(args);console.log("vBulletin.elements[\"%s\"][%d] = %s",controltype,x-1,args.join(", "));}
vBulletin_Framework.prototype.register_ajax_urls=function(fetch,save,elements)
{fetch=fetch.split("?");fetch[1]=SESSIONURL+"securitytoken="+SECURITYTOKEN+"&ajax=1&"+fetch[1].replace(/\{(\d+)(:\w+)?\}/gi,'%$1$s');save=save.split("?");save[1]=SESSIONURL+"securitytoken="+SECURITYTOKEN+"&ajax=1&"+save[1].replace(/\{(\d+)(:\w+)?\}/gi,'%$1$s');console.log("Register AJAX URLs for %s",elements);for(var i=0;i<elements.length;i++)
{this.ajaxurls[elements[i]]=new Array(fetch,save);}}
vBulletin_Framework.prototype.add_event=function(eventname)
{this.events[eventname]=new YAHOO.util.CustomEvent(eventname);}
vBulletin_Framework.prototype.console=function()
{if(window.console||console.firebug)
{var args=new Array();for(var i=0;i<arguments.length;i++)
{args[args.length]=arguments[i];}
try
{eval("console.log('"+args.join("','")+"');");}
catch(e){}}}
var PHP=new vB_PHP_Emulator();var vBulletin=new vBulletin_Framework();vBulletin.events.systemInit.subscribe(function()
{YAHOO.util.Event.on(window,"resize",clear_viewport_info);YAHOO.util.Event.on(window,"scroll",clear_viewport_info)});function handle_dismiss_notice_error(ajax)
{if(ajax.argument)
{var nodeDismissID=YAHOO.util.Dom.get("dismiss_notice_hidden");nodeDismissID.value=ajax.argument;var nodeForm=YAHOO.util.Dom.get("notices");nodeForm.submit();}}
function handle_dismiss_notice_ajax(ajax)
{if(ajax.responseXML&&ajax.responseXML.getElementsByTagName("dismissed").length)
{var dismissed=ajax.responseXML.getElementsByTagName("dismissed")[0].firstChild.nodeValue;var nodeNotice=YAHOO.util.Dom.get("navbar_notice_"+dismissed);if(nodeNotice!=null)
{nodeNotice.style.display="none";var nodeNotices=YAHOO.util.Dom.getElementsByClassName("navbar_notice","",YAHOO.util.Dom.get("notices"));var showing=0;for(i=0;i<nodeNotices.length;i++)
{if(nodeNotices[i].style.display!="none")
{showing++;}}
if(showing==0)
{var nodeNoticeTable=YAHOO.util.Dom.get("notices");if(nodeNoticeTable!=null)
{nodeNoticeTable.style.display="none";}}}}
else
{handle_dismiss_notice_error(ajax);}}
function dismiss_notice(noticeid)
{if(AJAX_Compatible)
{var ajax_req=YAHOO.util.Connect.asyncRequest("POST","ajax.php?do=dismissnotice",{success:handle_dismiss_notice_ajax,failure:handle_dismiss_notice_error,timeout:vB_Default_Timeout,argument:noticeid},SESSIONURL+"securitytoken="+SECURITYTOKEN+"&do=dismissnotice&noticeid="+PHP.urlencode(noticeid));return false;}
return true;};if(!Array.prototype.filter){Array.prototype.filter=function(e,d){var b=this.length;if(typeof e!="function"){throw TypeError("First parameter to Array.filter() should be a function.")}var a=[];for(var c=0;c<b;c++){if(c in this){var f=this[c];if(e.call(d,f,c,this)){a.push(f)}}}return a}}Array.prototype.liveFilter=function(c,b){if(typeof c=="function"){for(var a=0;a<this.length;a++){if(a in this&&!c.call(b,this[a],a,this)){this.splice(a--,1)}}}return this};Array.prototype.cleanUp=function(){return this.filter(function(a){return!!a||a===0||a===""})};Array.prototype.remove=function(d,b){var a=-1,c=-1;do{c=this.indexOf(d);if(c>-1){this.splice(c,1);a=c}}while(c>-1&&!b);return a};if(!Array.prototype.indexOf){Array.prototype.indexOf=function(b,c){var a=this.length;c=Number(arguments[1])||0;c=(c<0)?Math.ceil(c):Math.floor(c);if(c<0){c+=a}for(;c<a;c++){if(c in this&&this[c]===b){return c}}return-1}}Array.prototype.contains=function(a){return this.indexOf(a)>-1};Array.prototype.diff=function(a){return this.filter(function(b){return a.indexOf(b)==-1})};Array.prototype.intersect=function(a){return this.filter(function(b){return a.indexOf(b)>-1})};if(!Array.prototype.map){Array.prototype.map=function(e,d){if(typeof e!="function"){return[]}var a=this.length;var c=new Array(a);for(var b=0;b<a;b++){if(b in this){c[b]=e.call(d,this[b],b,this)}}return c}}Array.prototype.addAt=function(a,b,c){if(c){this.splice(a,1)}if(b&&b.sort&&b.filter&&b.splice){b=b.clone();b.splice(0,0,a,0);Array.prototype.splice.apply(this,b);return b.length-2}else{if(b||b===0||b===""){this.splice(a,0,b);return 1}}return 0};Array.prototype.replace=function(d,c){if(d.call){var a=this.length;for(var b=a-1;b>=0;b--){var e=d.call(c,this[b],b,this);this.addAt(b,e,true)}}return this};if(!Array.prototype.forEach){Array.prototype.forEach=function(d,c){var a=this.length;if(typeof d!="function"){return[]}for(var b=0;b<a;b++){if(b in this){d.call(c,this[b],b,this)}}return this}}Array.prototype.iterate=function(e,d,b){var a=this.length;if(typeof e!="function"){return[]}if(b){for(var c=a;c>=0;c--){if(c in this&&e.call(d,this[c],c,this)===false){break}}}else{for(var c=0;c<a;c++){if(c in this&&e.call(d,this[c],c,this)===false){break}}}return this};Array.prototype.unique=function(){var a=[];this.forEach(function(b){if(a.indexOf(b)==-1){a.push(b)}});return a};Array.prototype.sum=function(){var a=0;this.forEach(function(b){a+=parseFloat(b)});return a};if(!Array.prototype.max){Array.prototype.max=function(){return Math.max.apply(Math,this)}}if(!Array.prototype.min){Array.prototype.min=function(){return Math.min.apply(Math,this)}}Array.prototype.average=function(){return this.sum()/this.length};Array.prototype.last=function(){return this[this.length-1]};Array.prototype.clone=function(){var a=[];this.forEach(function(b){a.push(b)});return a};Array.prototype.equals=function(a){if(!a||a.length!=this.length){return false}for(var b=0;b<this.length;b++){if(this[b]!==a[b]){return false}}return true};if(!String.prototype.trim){String.prototype.trim=function(){return this.replace(/((^\s+)|(\s+$))/g,"")}}String.prototype.startsWith=function(){for(var a=0;a<arguments.length;a++){var b=arguments[a].toString();if(this.length>=b.length&&this.indexOf(b)==0){return true}}return false};String.prototype.endsWith=function(){for(var a=0;a<arguments.length;a++){var b=arguments[a].toString();if(this.length>=b.length&&this.lastIndexOf(b)==this.length-b.length){return true}}return false};String.prototype.equalsIgnoreCase=function(a){a=a||"";a=a.toString();return(this.toLowerCase()==a.toLowerCase())};String.prototype.contains=function(){for(var a=0;a<arguments.length;a++){var b=arguments[a]||"";if(this.indexOf(b)>-1){return true}}return false};String.prototype.urlencode=function(){result=escape(this).replace(/\+/g,"%2B");result=result.replace(/(?:%([0-9A-F]{2}))/gi,function(a){charCode=parseInt(a.replace("%",""),16);if(charCode>=128&&a.length<4){return a.replace("%","%u00")}else{return a}});return result.replace("%25","%u0025")};String.prototype.escapeHTML=function(){return this.replace(/</g,"&lt;").replace(/>/g,"&gt;")};String.prototype.stripHTML=function(){var a=jAsset.util.toArray(arguments);if(a.length>0){return this.replace(new RegExp("</?("+a.join("|")+").*?>","gi"),"")}else{return this.replace(/<\/?.+?>/gi,"")}};String.prototype.escapeRegex=function(){return this.replace(/\*|\-|\\|\]|\[/g,function(b){return"\\"+b})};String.prototype.toRegex=function(a){a=a||"";return new RegExp(this.escapeRegex(),a)};String.prototype.camelCase=function(a){a=a||"-";a=a.escapeRegex();return this.replace(new RegExp(a+"(.)","g"),function(c,b){return b.toUpperCase()})};String.prototype.from=function(b){var a=this.lastIndexOf(b);return a>-1?this.substr(a):""};String.prototype.to=function(b){var a=this.indexOf(b);return a>-1?this.substr(0,a):""};(function(){try{var a="ddd"=="abc".replace(/./g,function(c){return"d"})}catch(b){var a=false}if(!a){String.prototype._replace=String.prototype.replace;String.prototype.replace=function(h,j){if(typeof j!="function"){return this._replace(h,j)}var k=j;if(!(h instanceof RegExp)){var d=this.indexOf(h);return(d==-1)?this:this._replace(h,k(h,d,this))}var c=[],e=h.lastIndex,g;while((g=h.exec(this))!=null){var d=g.index,f=g.concat(d,this);c.push(this.slice(e,d),k.apply(null,f).toString());if(!h.global){e+=RegExp.lastMatch.length;break}else{e=h.lastIndex}}c.push(this.slice(e));return c.join("")}}})();Function.prototype.curry=function(a,b){if(!a||!a.length){return this}var c=this;return function(){var e=a.clone();var d=0;for(var f=0;f<e.length;f++){if(!e[f]&&e[f]!==0&&e[f]!==""){e[f]=arguments[d++]}}if(d<arguments.length){for(;d<arguments.length;d++){e.push(arguments[d])}}b=b||this;return c.apply(b,e)};return result};Function.dummy=function(){};Function.identity=function(b){return b};["round","floor","ceil"].forEach(function(a){Math["_"+a]=Math[a];Math[a]=function(d,b){b=Math.abs(parseInt(b))||0;var c=Math.pow(10,b);return Math["_"+a](d*c)/c}});var jAsset={version:"0.0.16",scriptElement:document.getElementsByTagName("script")[0]};jAsset.constrain=function(b,c,a){return Math.min(a,Math.max(b,c))};jAsset.each=function(e,d,c){if(!jAsset.util.isFunction(d)){throw Error("The second argument in jAsset.each() must be a function")}c=c||e;for(var b in e){if(e.hasOwnProperty&&e.hasOwnProperty(b)){var a=d.call(c,e[b],b);if(jAsset.util.exists(a)){return a}}}return null};jAsset.attach=function(a,c,e,d){var b=function(f,g){if(e||!(g in a)){a[g]=f}};if(d){d.forEach(function(f){b(c[f],f)})}else{jAsset.each(c,b)}return a};jAsset.clone=function(b){if(!jAsset.util.exists(b)||!b.clone&&b.constructor!=Object){return b}if(b.clone){var a=b.clone()}else{var a={};jAsset.each(b,function(c,d){a[d]=jAsset.clone(c)})}return a};jAsset.serialize=function(d,c,b){c=c||"&";b=b||"=";var a="";jAsset.each(d,function(f,e){a+=c+e;if(f){a+=b+f}});return a.substring(c.length)};jAsset.get=function(a,b){if(!a){a=b;b=null}if(jAsset.util.isString(a)){return jAsset.selector?jAsset.selector.get(a,b):jAsset.getByTag(a,b)}if(jAsset.util.isString(b)){return jAsset.selector?jAsset.selector.get(b,a):jAsset.getByTag(b,a)}return jAsset.extend(jAsset.util.toArray(a))};jAsset.getFirst=function(a,b){return jAsset.get(a,b)[0]||null};jAsset.getById=function(b){if(!arguments.callee.__native){arguments.callee.__native=document.getElementById?function(c){return document.getElementById(c)}:(function(){var c=document.all||document.layers||[null];return function(d){return c[d]}})()}result=arguments.callee.__native(b);if(result&&result.id!=b&&document.all){if(document.all[b]){for(var a=0;a<document.all[b].length;a++){if(document.all[b][a].id==b){result=document.all[b][a];break}else{result=null}}}}return(result)?jAsset.extend(result)[0]:null};jAsset.getByClass=function(d,a,b){d=jAsset.util.toArray(d);a=a||"*";b=b||document;if(b.getElementsByClassName&&!jAsset.support.bugs.mutipleClasses()){var c=jAsset.util.toArray(b.getElementsByClassName(d.join(" ")));if(a!="*"){c=c.filter(function(e){return e.nodeName.equalsIgnoreCase(a)})}}else{if(b.querySelectorAll){var f=a+"."+d.join(".");try{return jAsset.extend(b.querySelectorAll(f))}catch(g){}}var c=jAsset.getByTag(a,b);d.replace(function(e){return new RegExp("(^|\\s+)"+e+"($|\\s+)","i")});c=c.filter(function(h){if(!h.className){return false}for(var e=0;e<d.length;e++){if(!d[e].test(h.className)){return false}}return true})}return jAsset.extend(c)};jAsset.getByTag=function(d,c,e){d=d||"*";d=d.split(/\s*,\s*/);c=c||document;var b=[];if(d.length>1){d.forEach(function(f){b=b.concat(jAsset.getByTag(f,c,true))})}else{var a=d[0];if(c.getElementsByTagName){b=jAsset.util.toArray(c.getElementsByTagName(a))}else{if(c.all&&c.all.tags){b=jAsset.util.toArray(c.all.tags(a))}}if(a=="*"){if(!jAsset.support.asteriscTag()&&c.all){b=jAsset.util.toArray(c.all)}if(jAsset.support.bugs.commentsAsElements()){b=b.filter(jAsset.util.isElement)}}}return e?b:jAsset.extend(b)};jAsset.matches=function(b,a){if(!a||!jAsset.util.isElement(b)){return false}if(!/^[a-z*]$/i.test(a)&&jAsset.selector){return jAsset.selector.matches(b,a)}return a=="*"||a.equalsIgnoreCase(b.nodeName)};jAsset.module=function(c,b,d,a){(jAsset.module.all=jAsset.module.all||[]).push(this);this.dependencies=c||[];this.elementMethods=[];if(b){jAsset.attach(jAsset.support,b)}if(d){jAsset.attach(jAsset.support.bugs,d)}if(a){jAsset.attach(jAsset.util,a)}};jAsset.module.prototype={chainLink:function(e,a,d){if(!jAsset.util.isString(e)){throw Error(e+" is not a String")}if(!jAsset.util.isFunction(a)){throw Error("The function passed for "+e+" is not a valid function")}d=d||{};d.type=d.type||"middle";if(d.tags){var c=d.tags.split(/\s+/gi);var b=new RegExp("^("+c.join("|")+")$","i")}this[e]=function(m){var g=jAsset.util.toArray(arguments),k;if(d.type!="start"){if(jAsset.util.isGettable(this)){m=this;k=jAsset.util.isArray(this)?this:[this]}else{m=m||"*";if(!jAsset.util.isGettable(m)){throw Error("The function "+e+"() was called without HTMLElement(s) as a context or first argument")}else{g.splice(0,1)}k=jAsset.get(m)}if(d.type=="middle"&&!k.length){return[]}}else{m=jAsset.util.is("bindable",this)?this:jAsset.util.is("bindable",g.last())?g.last():document}if("preProcess"in d){if(jAsset.util.isFunction(d.preProcess)){g=d.preProcess.apply(k,[g])}else{throw TypeError("preProcess is specified on "+e+" but it isn't a valid function")}}if(g){if(d.type=="start"){return a.apply(m,g)}var j=[];for(var h=0;h<k.length;h++){if(!(h in k)||!k[h]){continue}if(b&&!b.test(k[h].nodeName)){continue}var f=a.apply(k[h],g);if(d.type=="middle"&&f){h+=k.addAt(h,f,true)-1}if(d.type=="end"){switch(d.multiple){case"or":if(f===true){return true}break;case"and":if(f===false){return false}break;case"first":return f;case"all":default:j.push(f)}}}if(d.type=="end"){switch(d.multiple){case"or":return false;case"and":return true;case"all":default:return jAsset.util.isElement(m)&&!d.forceArray?j[0]:j}}else{jAsset.extend(k=k.unique());if(jAsset.util.isElement(m)&&!d.forceArray){if(k[0]||k[0]===null){return k[0]}if(m){return m}if(jAsset.util.isArray(this)&&this[0]){return this[0]}else{if(!(this instanceof jAsset.module)){return this}}return null}else{if(this instanceof jAsset.module){return k||[]}return k||jAsset.util.toArray(this)||[]}}}else{return(d.multiple=="all")?[]:null}};this.__addToProto(e,c);Array.prototype[e]=this[e];this[e].options=d;this[e].internal=a;return this},alias:function(a,f,c,b){var d=b||this;var e=d[f];if(!e){throw Error("Function "+f+" does not exist in the module specified")}var g=c?e.internal.curry(c):e.internal;this.chainLink(a,g,e.options)},__addToProto:function(c,b){var e=this[c];if(b){b.forEach(function(f){var g=window["HTML"+a(f)+"Element"];if(g&&g.prototype){g.prototype[c]=e}else{jAsset.module.prototype.extend=jAsset.module.prototype._extend}},this)}else{var d=window.HTMLElement||window.Element;if(d&&d.prototype){d.prototype[c]=e}else{jAsset.module.prototype.extend=jAsset.module.prototype.__extend}if(window.HTMLDocument&&window.HTMLDocument.prototype){HTMLDocument.prototype[c]=e}else{document[c]=e;jAsset.module.prototype.extend=jAsset.module.prototype.__extend}}this.elementMethods.push(c);function a(f){f=f.toLowerCase();var g={optgroup:"OptGroup",textarea:"TextArea",p:"Paragraph",fieldset:"FieldSet",ul:"UList",ol:"OList",dl:"DList",dir:"Directory",h1:"Heading",q:"Quote",ins:"Mod",a:"Anchor",img:"Image",caption:"TableCaption",col:"TableCol",colgroup:"TableCol",thead:"TableSection",tr:"TableRow",th:"TableCell",frameset:"FrameSet",iframe:"IFrame"};g.h6=g.h5=g.h4=g.h3=g.h2=g.h1;g.tfoot=g.tbody=g.thead;g.del=g.ins;g.td=g.th;if(g[f]){return g[f]}return f.replace(/^./,function(h){return h.toUpperCase()})}return e},__extend:function(a){if(a&&a.forEach){a.forEach(function(b){this.elementMethods.forEach(function(c){try{if(!b[c]){b[c]=this[c]}}catch(d){}},this)},this)}},extend:function(a){if(jAsset.util.is("window",a)||(jAsset.util.isArray(a)&&a.indexOf(window)>-1)){this.__extend(a)}},meetsDependencies:function(){for(var a=0;a<this.dependencies.length;a++){if(!jAsset.enabled(this.dependencies[a])){return false}}return true}};jAsset.enabled=function(a){return(jAsset[a]instanceof jAsset.module&&jAsset[a].meetsDependencies())?jAsset[a]:false};jAsset.extend=function(a){if(a){if(!jAsset.util.isArray(a)){return jAsset.get(a)}if(jAsset.module.prototype.extend){jAsset.module.all.forEach(function(b){if(b.extend){b.extend(a)}})}}return a};jAsset.registerNamespace=function(a,b){var d=a.split("."),c=b||window;d.forEach(function(e){if(!c[e]){c[e]={}}c=c[e]});return c};jAsset.util=new jAsset.module();jAsset.util.is=function(b,c){if(!b){return true}if(arguments.length==2&&b.toLowerCase){b=b.toLowerCase();if(!jAsset.util.exists(c)){return false}switch(b){case"collection":return(!!c.item||!!c.callee||jAsset.util.isArray(c))&&!jAsset.util.is("window",c);case"emptycollection":return jAsset.util.is("collection",c)&&!c.length;case"htmlelement":return c.nodeType==1;case"window":return!!c.window;case"document":return!!c.getElementById;case"bindable":return jAsset.util.is(["HTMLElement","document","window"],c);case"gettable":return jAsset.util.is(["bindable","collection","string"],c);default:return Object.prototype.toString.call(c).toLowerCase()=="[object "+b+"]"}}else{if(arguments.length>2){for(var a=arguments.length-1;a>0;a--){if(jAsset.util.is(b,arguments[a])){return true}}return false}else{for(var a=0;a<b.length;a++){if(jAsset.util.is(b[a],arguments[1])){return true}}return false}}};jAsset.util.isString=function(a){return Object.prototype.toString.call(a)==="[object String]"};jAsset.util.isNumber=function(a){return Object.prototype.toString.call(a)==="[object Number]"};jAsset.util.isFunction=function(a){return Object.prototype.toString.call(a)==="[object Function]"};jAsset.util.isArray=function(a){return Object.prototype.toString.call(a)==="[object Array]"};jAsset.util.isCollection=jAsset.util.is.curry(["collection"]);jAsset.util.isEmptyCollection=jAsset.util.is.curry(["emptycollection"]);jAsset.util.isElement=function(a){return a&&a.nodeType==1};jAsset.util.isGettable=jAsset.util.is.curry(["gettable"]);jAsset.util.getNative=function(b){if(b===null){return"null"}if(b===jAsset.undefined){return"undefined"}var a=Object.prototype.toString.call(b).match(/^\[object\s+(.*?)\]$/)[1];a=a?a.toLowerCase():"";if(a=="number"&&isNaN(b)){a="NaN"}return a};jAsset.util.exists=function(a){return!!a||a===0||a===""};jAsset.util.toArray=function(d){if("useSlice"in arguments.callee){arguments.callee.useSlice=false;try{Array.prototype.slice.call(document.getElementsByTagName("script"),0);arguments.callee.useSlice=true}catch(c){}}if(!jAsset.util.exists(d)){return[]}if(jAsset.util.isArray(d)){return d}else{if(d.toArray){return d.toArray()}else{if(jAsset.util.isCollection(d)){if(arguments.callee.useSlice){return Array.prototype.slice.call(d,0)}else{var a=new Array(d.length);for(var b=d.length-1;b>=0;b--){a[b]=d[b]}return a}}else{return[d]}}}};jAsset.util.getDate=function(d,b){if(!("offsetRegex"in arguments.callee)){arguments.callee.offsetRegex=/((\+|\-|^)[0-9]+(s|min|h|d|w|m|y))+$/i}b=(new Date(b)).getTime()||jAsset.util.now();if(jAsset.util.isNumber(d)){d=d*86400000||0;var a=new Date(b+d)}else{if(jAsset.util.isString(d)){var a=new Date();d=d.replace(/\s+/g,"");if(d.match(jAsset.util.getDate.offsetRegex)){d=d.replace(/(\+|\-)/g," $1").split(" ");if(d[0]==""){d.splice(0,1)}var c=/(?:\+|\-|^)(?:[0-9]+)(s|min|h|d|w|m|y)$/i;d.forEach(function(f){var e=parseInt(f);var g=f.match(c)[1];var h="Date";switch(g){case"s":h="Seconds";break;case"min":h="Minutes";break;case"h":h="Hours";break;case"w":e*=7;break;case"m":h="Month";break;case"y":h="FullYear";break}a["set"+h](a["get"+h]()+e)})}else{a=new Date(d);if(isNaN(a)){a=null}}}else{if(d instanceof Date){var a=d}}}return a||new Date(b)};jAsset.util.getDate.offsetRegex=/((\+|\-|^)[0-9]+(s|min|h|d|w|m|y))+$/i;jAsset.util.preload=function(a){var b=(jAsset.util.isArray(a))?a:jAsset.util.toArray(arguments);b.forEach(function(c){(new Image()).src=c})};jAsset.util.now=function(){return(new Date()).getTime()};jAsset.util.convertCSSProperty=function(b,a){if(!jAsset.util.isString(b)){return b}if(a&&/(css|style)Float/.test(b)){return"float"}if(!a&&/float$/i.test(b)){return(jAsset.support.cssProperty("styleFloat")?"style":"css")+"Float"}if(a){return b.replace(/([A-Z])/g,"-$1").toLowerCase()}else{return b.camelCase()}};jAsset.util.offset=function(d,c,e){d=d||0;c=c||0;var a=parseFloat(d)+parseFloat(c);if(isNaN(a)&&jAsset.Color.is(d)){return(new jAsset.Color(d)).add(c)}if(!e){var b=d.toString().match(/^\-?[0-9]+\.?[0-9]*([a-z%]+)$/);b=b?b[1]:0}return a+(e?b:0)};jAsset.util.range=function(a,b){a=parseFloat(a,10);b=parseFloat(b,10);this.smaller=(a<b)?a:b;this.larger=(a<b)?b:a;this.isWithin=function(c){return(this.smaller<=c&&this.larger>=c)};this.isWithinStrict=function(c){return(this.smaller<c&&this.larger>c)}};jAsset.support=new jAsset.module(["util"]);jAsset.support.cssProperty=function(b){if(!b){return false}if(b=="float"){return arguments.callee("cssFloat")||arguments.callee("styleFloat")}else{if(!/^(css|style)Float$/.test(b)){b=jAsset.util.convertCSSProperty(b)}var a=document.documentElement||document.body;return b in a.style}};jAsset.support.rgba=function(){if(!("result"in arguments.callee)){var b=jAsset.scriptElement.style.color;var a="rgba(0, 0, 0, 0.5)";if(jAsset.scriptElement.style.color==a){arguments.callee.result=true}else{try{jAsset.scriptElement.style.color=a}catch(c){}arguments.callee.result=jAsset.scriptElement.style.color!=b;jAsset.scriptElement.style.color=b}}return arguments.callee.result};jAsset.support.vendorPrefix=function(b){if(b){return jAsset.support.vendorPrefix()+jAsset.util.convertCSSProperty(b)}if("result"in arguments.callee){return arguments.callee.result}var a=/^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/;for(var c in jAsset.scriptElement.style){if(a.test(c)){return arguments.callee.result=c.match(a)[0]}}if("WebkitOpacity"in jAsset.scriptElement.style){return"Webkit"}if("KhtmlOpacity"in jAsset.scriptElement.style){return"Khtml"}return arguments.callee.result=""};jAsset.support.asteriscTag=function(){if("result"in arguments.callee){return arguments.callee.result}return arguments.callee.result=document.getElementsByTagName("*").length!==0};jAsset.support.bugs={commentsAsElements:function(){if("result"in arguments.callee){return arguments.callee.result}var a=document.createElement("div");if(document.createComment){a.appendChild(document.createComment("test"))}return arguments.callee.result=jAsset.support.asteriscTag()?a.getElementsByTagName("*").length!==0:(a.all?a.all.length!==0:false)},mutipleClasses:function(){if("result"in arguments.callee){return arguments.callee.result}if(!document.getElementsByClassName){return arguments.callee.result=false}var c="jAsset-test-";var d=document.createElement("div");var b=jAsset.util.now();d.className=c+b+"1 "+c+b;d=document.body.appendChild(d);var a=!document.getElementsByClassName(c+b).length;document.body.removeChild(d);return arguments.callee.result=a}};jAsset.Color=function(a,c,b){if(a instanceof jAsset.Color){this.colorSpace=a.colorSpace;this.alpha=a.alpha;this.components=a.components.clone();if(a.hasOwnProperty("toString")){this.toString=a.toString}}else{this.colorSpace=b||jAsset.Color.csRGB;this.alpha=c||1;this.components=this.colorSpace.parse(a);if(!this.components){if(!b){jAsset.each(jAsset.Color,function(e,d){if(e instanceof jAsset.Color.Space){this.components=e.parse(a);if(this.components){this.colorSpace=e;return true}}return null},this)}if(!this.components){throw Error("Invalid color for the "+this.colorSpace.name+" color space.")}}if(this.components){this.alpha=this.alpha||this.components.alpha||1;this.components=this.components.components;this.toString=function(){return this.colorSpace.toAlphaString(this.components)}}}};jAsset.Color.prototype={toRGB:function(){return this.colorSpace.toRGB(this.components)},toColorSpace:function(a){if(!(a instanceof jAsset.Color.Space)){throw Error("The first argument to jAsset.Color.toColorSpace() must be an instance of jAsset.Color.Space.")}if(a==this.colorSpace){return this.clone()}return new jAsset.Color(a.fromRGB(this.toRGB()),this.alpha,a)},toColorSpaceArray:function(a){if(!(a instanceof jAsset.Color.Space)){throw Error("The first argument to jAsset.Color.toColorSpace() must be an instance of jAsset.Color.Space.")}if(a==this.colorSpace){return this.components}return a.fromRGB(this.toRGB())},toHexString:function(){return"#"+this.toRGB().map(function a(b){b=parseInt(b,10)||"00";b=b.toString(16).toUpperCase();return(b.length==1?"0":"")+b}).join("")},complementary:function(){var a=this.toColorSpaceArray(jAsset.Color.csHSL);a[0]=(a[0]+180)%360;a=new jAsset.Color(a,this.alpha,jAsset.Color.csHSL);return a.toColorSpace(this.colorSpace)},overlay:function(){var k=this.red,j=this.green,c=this.blue,d=this.alpha;for(var h=0;h<arguments.length;h++){try{var f=(arguments[h]instanceof jAsset.Color)?arguments[h]:new jAsset.Color(arguments[h])}catch(m){continue}k+=(f.red-k)*f.alpha;j+=(f.green-j)*f.alpha;c+=(f.blue-c)*f.alpha;d+=(1-d)*f.alpha}return new jAsset.Color(k,j,c,d)},add:function(){var k=this.red,j=this.green,c=this.blue,e=this.alpha;for(var h=0;h<arguments.length;h++){if(jAsset.util.isNumber(arguments[h])){if(Math.abs(arguments[h])>=1){k+=arguments[h];j+=arguments[h];c+=arguments[h]}else{e+=arguments[h]}}else{var f=(arguments[h]instanceof jAsset.Color)?arguments[h]:new jAsset.Color(arguments[h]);k+=f.red;j+=f.green;c+=f.blue;e+=f.alpha}}var d=function(b,a){return Math.max(-a,Math.min(b,a))};k=d(k,255);j=d(j,255);c=d(c,255);e=d(e,1);return new jAsset.Color(k,j,c,e)},divide:function(e,j){var h=this.red,f=this.green,c=this.blue,d=this.alpha;e=(jAsset.util.isNumber(e))?[e,e,e,e]:e;e=(e instanceof jAsset.Color)?e:new jAsset.Color(e);h/=e.red;f/=e.green;c/=e.blue;d/=e.alpha;return j?h:new jAsset.Color(h,f,c,d)},subtract:function(e){var h=this.red,f=this.green,c=this.blue,d=this.alpha;e=(e instanceof jAsset.Color)?e:new jAsset.Color(e);h-=e.red;f-=e.green;c-=e.blue;d-=e.alpha;return new jAsset.Color(h,f,c,d)},clone:function(){return new jAsset.Color(this)},toString:jAsset.Color.prototype.toHexString};jAsset.attach(jAsset.Color,{is:function(a){return!!(jAsset.Color.csRGB.parse(a)||jAsset.Color.csHSL.parse(a))}});jAsset.Color.Space=function(b,a){if(!a||!a.components||!a.toRGB||!a.fromRGB){throw Error("Insufficient parameters to create a new jAsset.Color.Space")}this.components=a.components;this.axes=[];this.min=[];this.max=[];this.suffix=[];for(var c in this.components){this.axes.push(c);this.components[c].min=this.components[c].min||0;this.components[c].max=this.components[c].max||100;this.min.push(this.components[c].min);this.max.push(this.components[c].max);this.suffix.push(this.components[c].suffix||"");this.components[c].stops=this.components[c].stops||[];this.components[c].stops.splice(0,0,this.components[c].min);this.components[c].stops.push(this.components[c].max)}this.name=b;this.toRGB=a.toRGB;this.fromRGB=a.fromRGB;this.parseString=a.parseString||this.parseString;this.keywords=a.keywords||{};this.attach()};jAsset.Color.Space.prototype={parse:function(a){var b=false;var c=false;a=this.keywords[a]||a;if(jAsset.util.isString(a)){b=this.parseString(a)}else{if(jAsset.util.isArray(a)){b=a}else{if(jAsset.util.isNumber(a)){b=[];b[2]=a%256;b[1]=(a%65536-b[2])/256;b[0]=a/65536-b[1]/256-b[2]/65536}else{if(a instanceof jAsset.Color){b=this.fromRGB(a.toRGB());c=a.alpha}else{if(jAsset.util.getNative(a)=="object"){b=[];this.axes.iterate(function(d,e){if(d in a){b[e]=a[d]}else{b=false;return false}return true});if(b&&a.alpha){b.push(a.alpha)}}}}}}if(b){if(b.length>this.axes.length){c=parseFloat(b.pop())}return{components:b.map(Math.round),alpha:c}}else{return false}},parseString:function(a){var d="^"+this.name.toLowerCase()+"a?\\(";for(var c=0;c<this.axes.length;c++){d+="(\\-?[0-9]{1,3})";d+=this.suffix[c]?this.suffix[c]+"?":"";d+=c<this.axes.length-1?",\\s*":""}d+="(?:,\\s*(\\-?[0-1]|(?:[0-1]?\\.[0-9]+)?))?\\)";d=new RegExp(d,"i");var e;if(jAsset.util.isString(a)){var e=a.match(d);if(e&&e.length>1){var b=e.cleanUp().slice(1);b=b.map(function(g,f){if(f<this.axes.length){return parseInt(jAsset.constrain(this.min[f],g,this.max[f]),10)}else{return parseFloat(jAsset.constrain(0,g,1))}},this);return b}}return false},toString:function(){return this.name},toColorString:function(a){var b=this.name.toLowerCase()+"(";a.forEach(function(c,d){b+=c+this.suffix[d]+","},this);return b.substring(0,b.length-1)+")"},toAlphaString:function(a,d,c){var b=this.toColorString(a);if(d<1||c){b=b.replace("(","a(").substring(0,b.length-1)+","+d+")"}return b},getDimension:function(){var a=this.axes.clone();a.forEach(function(b,c){a[c]=this.components[b].stops.length},this);return a},getAverageColor:function(){var a=[];this.axes.forEach(function(b){a.push(Math.round(this.components[b].stops.average()))},this);return new jAsset.Color(a,1,this)},attach:function(){var b=this;for(var a=0;a<this.axes.length;a++){var c=this.axes[a];if(c in jAsset.Color.prototype){c+=this.name}jAsset.Color.prototype[c]=(function(d){return function(e){if(arguments.length){e=parseFloat(e);e=Math.max(e,b.min[d]);e=Math.min(e,b.max[d]);if(this.colorSpace==b){this.components[d]=e}else{var f=this.toColorSpaceArray(b);f[d]=e;this.components=this.colorSpace.fromRGB(b.toRGB(f))}return this}return b.fromRGB(this.toRGB())[d]}})(a);jAsset.Color.prototype["to"+this.name+"String"]=function(){return b.toColorString(this.toColorSpaceArray(b))};jAsset.Color.prototype["to"+this.name+"AString"]=function(d){return b.toColorString(this.toColorSpaceArray(b),this.alpha,d)};jAsset.Color.prototype["to"+this.name+"Color"]=function(d){return this.colorSpace==b?this:this.toColorSpace(b)}}}};jAsset.Color.csRGB=new jAsset.Color.Space("RGB",{components:{red:{max:255},green:{max:255},blue:{max:255}},toRGB:Function.identity,fromRGB:Function.identity,parseString:function(a){var b=/^#([0-9A-F]{1,2})([0-9A-F]{1,2})([0-9A-F]{1,2})$/i,d;if(jAsset.util.isString(a)){var c=jAsset.Color.Space.prototype.parseString.call(this,a);if(c){return c}d=a.match(b);if(d&&d.length>1){return d.slice(1).map(function e(f){if(f.length==1){f+=f}return parseInt(f,16)||0})}}return false},keywords:{aqua:"#00FFFF",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blue:"#0000FF",brown:"#A52A2A",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",crimson:"#DC143C",cyan:"#00FFFF",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",gold:"#FFD700",gray:"#808080",green:"#008000",honeydew:"#F0FFF0",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lime:"#00FF00",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",moccasin:"#FFE4B5",navy:"#000080",olive:"#808000",orange:"#FFA500",orchid:"#DA70D6",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",purple:"#800080",red:"#FF0000",salmon:"#FA8072",sienna:"#A0522D",silver:"#C0C0C0",snow:"#FFFAFA",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",yellow:"#FFFF00"}});if(jAsset.support.rgba()){jAsset.Color.prototype.toString=jAsset.Color.prototype.toRGBAString}jAsset.Color.csHSL=new jAsset.Color.Space("HSL",{components:{hue:{max:360,stops:[60,120,180,240,300]},saturation:{suffix:"%"},lightness:{suffix:"%",stops:[50]}},toRGB:function(c){var g=parseInt(c[0],10)/360+2/3;s=parseInt(c[1],10)/100;l=parseInt(c[2],10)/100;var b=l+s*(l<=0.5?l:1-l),e=2*l-b;var d=[];for(var f=0;f<3;f++){g-=1/3;var a=g+(g<0?1:(g>1?-1:0));if(6*a<1){d[f]=e+(b-e)*a*6}else{if(2*a<1){d[f]=b}else{if(3*a<2){d[f]=e+(b-e)*(2/3-a)*6}else{d[f]=e}}}d[f]=Math.round(255*d[f])}return d},fromRGB:function(c){var b=new Array(3),e=c.min()/2.55,a=c.max()/2.55;b[2]=Math.round((a+e)/2);b[1]=b[2]?Math.round(100*(a-b[2])/Math.min(100-b[2],b[2])):0;c=c.map(function(f){return Math.round(f/255,6)});a=Math.round(a/100,6);e=Math.round(e/100,6);var d=c.remove(a,true);b[0]=(60*((c[0]-c[1])*(d==1?-1:1)/(a-e)+2*d)+360)%360;b=b.map(Math.round);return b}});jAsset.Color.csLab=new jAsset.Color.Space("Lab",{components:{L:{},a:{min:-128,max:127},b:{min:-128,max:127}},toRGB:function(c){function e(){var g=[];g[1]=(c[0]+16)/116;g[0]=c[1]/500+g[1];g[2]=g[1]-c[2]/200;for(var f=0;f<3;f++){g[f]=Math.pow(g[f],3)>0.008856?Math.pow(g[f],3):(g[f]-16/116)/7.787}g[0]=95.047*g[0];g[1]=100*g[1];g[2]=108.883*g[2];return g}var d=e().map(function(f){return f/100});var a=[d[0]*3.2406+d[1]*-1.5372+d[2]*-0.4986,d[0]*-0.9689+d[1]*1.8758+d[2]*0.0415,d[0]*0.0557+d[1]*-0.204+d[2]*1.057];for(var b=0;b<3;b++){a[b]=a[b]>0.0031308?1.055*Math.pow(a[b],1/2.4)-0.055:12.92*a[b];a[b]=jAsset.constrain(0,Math.round(a[b]*255),255)}return a},fromRGB:function(j){var m=216/24389,e=24389/27;j=j.map(function(k){return k/255});for(var f=0;f<3;f++){j[f]=j[f]<=0.04045?j[f]/12:Math.pow((j[f]+0.055)/1.055,2.4)}var d=0.436052025*j[0]+0.385081593*j[1]+0.143087414*j[2],c=0.222491598*j[0]+0.71688606*j[1]+0.060621486*j[2],b=0.013929122*j[0]+0.097097002*j[1]+0.71418547*j[2];var h=[d/0.964221,c/1,b/0.825211];var a=[];for(var f=0;f<3;f++){a[f]=h[f]>m?Math.pow(h[f],1/3):(e*h[f]+16)/116}var g=[(116*a[1])-16+0.2,500*(a[0]-a[1])+0.5,200*(a[1]-a[2])+0.5];return g.map(function(k){return Math.round(k)})}});jAsset.Color.csCMYK=new jAsset.Color.Space("CMYK",{components:{cyan:{},magenta:{},yellow:{},key:{}},toRGB:function(a){var b=a.map(function(c){return c*(100-a[3])/100+a[3]});b.splice(3,1);return b.map(function(c){return Math.round((100-c)*2.55)})},fromRGB:function(a){var c=a.map(function(d){return 100-d/2.55});c[3]=c.min();if(c[3]==100){return[0,0,0,100]}for(var b=0;b<3;b++){c[b]=Math.round(100*(c[b]-c[3])/(100-c[3]))}c[3]=Math.round(c[3]);return c}});jAsset.URI=function(f){if(jAsset.util.isString(f)){var b=jAsset.URI.a;b.href=f}else{if("protocol"in f&&"hostname"in f&&"port"in f&&"pathname"in f&&"search"in f&&"hash"in f){var b=f}}this.protocol=b.protocol;if(!this.protocol||this.protocol==":"){this.protocol=location.protocol}this.hostname=b.hostname||location.hostname;this.port=b.port=="0"?"":b.port;this.pathname=b.pathname||location.pathname;if(this.pathname&&this.pathname.indexOf("/")!==0){this.pathname="/"+this.pathname}this.search=b.search.startsWith("?")?b.search.substring(1):b.search;this.hash=b.hash.startsWith("#")?b.hash.substring(1):b.hash;this.parameters={};if(this.search){var e=this.search.split("&");for(var d=0;d<e.length;d++){var c=e[d].split("=");this.parameters[c[0]]=c[1]}}jAsset.URI.a.href=""};jAsset.URI.prototype={addParameter:function(a,b){if(a){this.parameters[a]=b;this.search=jAsset.serialize(this.parameters)}return this},removeParameter:function(a){if(a){delete this.parameters[a];this.search=jAsset.serialize(this.parameters)}return this},isRelative:function(a){a=a||location;return this.protocol==a.protocol&&this.hostname==a.hostname&&this.port==a.port},isHash:function(a){a=a||location;return this.isRelative()&&this.pathname==a.pathname&&this.search==(a.search.startsWith("?")?a.search.substring(1):a.search)},toString:function(){return this.protocol+"//"+this.hostname+(this.port?":"+this.port:"")+(this.pathname?this.pathname:"/")+(this.search?"?"+this.search:"")+(this.hash?"#"+this.hash:"")}};jAsset.URI.a=document.createElement("a");jAsset.DOM=new jAsset.module(["util"]);jAsset.DOM.__propSubs={"for":"htmlFor","class":"className",maxlength:"maxLength",readonly:"readOnly",cellspacing:"cellSpacing",accesskey:"accessKey",colspan:"colSpan",rowspan:"rowSpan",tabindex:"tabIndex",valign:"vAlign",cellpadding:"cellPadding"};jAsset.DOM.chainLink("getProperty",function(b){b=jAsset.DOM.__propSubs[b]||b;var a=this[b];if(!jAsset.util.exists(a)){if(this.getAttribute){a=this.getAttribute(b)}if(!jAsset.util.exists(a)&&this.getStyle){a=this.getStyle(b)}}return a},{type:"end"});jAsset.DOM.chainLink("setAttributes",function(a,b,c){jAsset.each(a,function(f,d){d=jAsset.DOM.__propSubs[d]||d;if(jAsset.util.isFunction(f)){f=f(this)}if(d in this){try{if(d==="style"&&jAsset.CSS){jAsset.CSS.setStyle(this,f)}else{this[d]=f}return null}catch(g){}}try{this.setAttribute(d,f)}catch(g){}return null},this)},{preProcess:function(c,b,d){if(c.length<1){return null}b=b||"end";var a;if(jAsset.util.isString(c[0])){a={};a[c[0]]=jAsset.util.exists(c[1])?c[1]:"";c[0]=a;c.splice(1,1)}a=a||c[0];if(c[1]&&jAsset.effects){var e=[];jAsset.each(a,function(h,g){var f={type:g,isAttribute:!d};f[b]=h;e.push(f)});jAsset.effects.transition(this,e,c[2]);return null}return c}});jAsset.DOM.chainLink("offsetAttributes",function(a,b,c){jAsset.each(a,function(f,e){var d=this.getProperty(e);a[e]=jAsset.util.offset(d,f)},this);jAsset.DOM.setAttributes(this,a)},{preProcess:jAsset.DOM.setAttributes.options.preProcess.curry([null,"offset"])});jAsset.DOM.chainLink("isDescendantOf",function(d,c){for(var a=0;a<d.length;a++){if(c){return this.parentNode==d[a]}else{if(d[a].contains){if(d[a].contains(this)){return true}}else{if(d[a].compareDocumentPosition){if(d[a].compareDocumentPosition(this)&16){return true}}else{var b=this.parentNode;while(b){if(b==d[a]){return true}b=b.parentNode}}}}}return false},{type:"end",preProcess:function(a){if(!a[0]){return null}a[0]=jAsset.get(a[0]);return a},multiple:"and"});jAsset.DOM.alias("isAncestor","isDescendantOf");jAsset.DOM.chainLink("isSibling",function(e,f,d){e=e.filter(function(g){return(g.parentNode==this.parentNode)&&g!=this},this);if(f===true||f===false){f=f?1:-1}if(!e.length){return false}if(!f){return true}if(d){var c=jAsset.DOM.getSibling.internal.call(children[0],false,type);(this,f>0);return e.indexOf(c)>-1}else{var a=jAsset.DOM.getSourceIndex(this);for(var b=e.length-1;b>=0;b--){if((jAsset.DOM.getSourceIndex(e[b])-a)*f>0){return true}}return false}},{type:"end",preProcess:function(a){if(!a[0]){return null}a[0]=jAsset.get(a[0]);return(a[0].length)?a:null},multiple:"and"});jAsset.DOM.chainLink("getSibling",function(c,b){b=b||"*";var d=(c?"previous":"next");d+=(this[d+"ElementSibling"]?"Element":"")+"Sibling";if(jAsset.util.isFunction(this[d])){var a=this[d]();while(a&&!jAsset.matches(a,b)){a=a[d]()}}else{var a=this[d];while(a&&!jAsset.matches(a,b)){a=a[d]}}return a||null});jAsset.DOM.chainLink("getSiblings",function(b,a){var c=jAsset.DOM.getChildren(this.parentNode,a);if(b){return c.slice(0,c.indexOf(this))}else{return c.slice(c.indexOf(this)+1)}},{preProcess:function(c){if(this.forEach&&this.length){var e=!!c[0],d=c[1];for(var b=this.length-1;b>=0;b--){for(var a=b-1;a>=0;a--){if(jAsset.DOM.isSibling(this[b],this[a],e)){this.splice(e?b:a,1)}}}}return c},forceArray:true});jAsset.DOM.chainLink("getFirstChild",function(b){var a=jAsset.DOM.getChildren.internal.call(this);if(b&&!jAsset.matches(a[0],b)){return jAsset.DOM.getSibling.internal.call(a[0],false,b)}else{return a[0]}});jAsset.DOM.chainLink("getLastChild",function(b){var a=jAsset.DOM.getChildren.internal.call(this);if(b&&!jAsset.matches(a.last(),b)){return jAsset.DOM.getSibling.internal.call(a.last(),true,b)}else{return a.last()}});jAsset.DOM.chainLink("getChildren",function(b){if(!this.hasChildNodes()){return[]}var a=jAsset.util.toArray(this.children||this.childNodes);if(b){a=a.filter(jAsset.matches.curry([null,b]))}else{if(!this.children){a=a.filter(jAsset.util.isElement)}}return a},{forceArray:true});jAsset.DOM.chainLink("getDescendants",function(a){if(!this.hasChildNodes()){return[]}a=a||"*";return jAsset.get(a,this)},{preProcess:function(a){if(this.liveFilter){this.liveFilter(function(b){return!jAsset.DOM.isDescendantOf(b,a[0])})}return a},forceArray:true});jAsset.DOM.chainLink("getParent",function(b){b=b>0?b:1;var a=this;while(b--){a=a.parentNode}return a});jAsset.DOM.chainLink("getAncestors",function(c){var a=(c)?[this]:[];for(var b=this.parentNode;b;b=b.parentNode){a.push(b)}return a},{forceArray:true});jAsset.DOM.chainLink("getClosest",function(b){var a=this;while(a&&!jAsset.matches(a,b)){a=a.parentNode}return a},{type:"end"});jAsset.DOM.chainLink("getSourceIndex",function(){if(this.sourceIndex===0||this.sourceIndex){return 0}return jAsset.util.toArray(document.getElementsByTagName("*")).indexOf(this)},{type:"end"});jAsset.DOM.chainLink("getOffsetLeft",function(){var a=this,b=a.offsetLeft;while(a.offsetParent&&!"html".equalsIgnoreCase(a.offsetParent.nodeName)){a=a.offsetParent;b+=a.offsetLeft}return b},{type:"end"});jAsset.DOM.chainLink("getOffsetTop",function(){var b=this,a=b.offsetTop;while(b.offsetParent&&!"html".equalsIgnoreCase(b.offsetParent.nodeName)){b=b.offsetParent;a+=b.offsetTop}return a},{type:"end"});jAsset.DOM.getScrollOffset=function(d,c){c=jAsset.util.is("window",c)?c:window;d=/left/i.test(d)?"Left":"Top";var b=d=="Left"?"X":"Y",a=c.document,e=a.documentElement||a.body;return e["scroll"+d]||c["page"+b+"Offset"]||0};jAsset.DOM.getScrollTop=jAsset.DOM.getScrollOffset.curry(["top"]);jAsset.DOM.getScrollLeft=jAsset.DOM.getScrollOffset.curry(["left"]);jAsset.DOM.create=function(b,a){if(!b||!jAsset.util.isString(b)){return null}var c=document.createElement(b);jAsset.extend(c);jAsset.DOM["set"+(jAsset.util.isString(a)?"Content":"Attributes")](c,a);return c};jAsset.DOM.createText=function(a){a=a||"";return document.createTextNode(a.toString().escapeHTML()+"")};jAsset.DOM.chainLink("dispose",function(){if(this.parentNode){this.parentNode.removeChild(this)}});jAsset.DOM.chainLink("destroy",function(){jAsset.DOM.setContent(this,"");jAsset.DOM.dispose(this)});jAsset.DOM.chainLink("insert",function(c,a){if(!c||!(c.appendChild||c.parentNode)){c=document.body}a=a||"end";a=(a+"").toLowerCase();if(this.ownerDocument!=c.ownerDocument&&"adoptNode"in c.ownerDocument){c.ownerDocument.adoptNode(this)}var b=c.parentNode;if(!b&&/^(before|after)$/i.test(a)){throw Error("Cannot insert "+a+" "+c+" because it doesn't (yet) have a parent.")}switch(a){case"wrap":if(b){b.insertBefore(this,c)}this.appendChild(c);break;case"before":b.insertBefore(this,c);break;case"after":if(c.nextSibling){b.insertBefore(this,c.nextSibling)}else{b.appendChild(this)}break;case"start":if(c.firstChild){c.insertBefore(this,c.firstChild)}else{c.appendChild(this)}break;case"end":default:c.appendChild(this)}});jAsset.DOM.chainLink("getTextContent",function(){return this.textContent||this.innerText||this.text||this.innerHTML.stripHTML()},{type:"end"});jAsset.DOM.chainLink("getContent",function(){switch(this.nodeType){case 1:return(this.hasChildNodes())?this.innerHTML:"";case 2:case 3:case 8:return this.nodeValue||this.data;case 9:return this[(this.documentElement)?"documentElement":"firstChild"].innerHTML}return""},{type:"end"});jAsset.DOM.chainLink("setContent",function(h,b,f){h+="";try{if(b&&jAsset.effects){jAsset.CSS.hide(this,b,function(e){jAsset.DOM.setContent(e,h,null,f);jAsset.CSS.show(e,{type:b})})}else{if(f&&this.outerHTML){var c,d,a;(c=this.previousSibling)||(d=this.nextSibling)||(a=this.parentNode);this.outerHTML=this.outerHTML.to(">")+">"+h+this.outerHTML.from("<");return c?c.nextSibling:(d?d.previousSibling:a.firstChild)}else{if(this.nodeName.toLowerCase()=="input"){throw Error()}this.innerHTML=h}}}catch(g){if("value"in this){this.value=h}else{if("text"in this){this.text=h}}}return jAsset.undefined});jAsset.DOM.alias("clearContent","setContent",[""]);jAsset.DOM.chainLink("offsetContent",function(a){this.setContent(jAsset.util.offset(this.getContent(),a))});jAsset.DOM.chainLink("undress",function(){jAsset.extend(this.childNodes).forEach(function(a){a.insert(this,"before")},this);this.destroy()});jAsset.DOM.chainLink("swapPosition",function(e,a){if(a!==false){a=a||document.body}var c,d,b;(d=this.nextSibling)||(b=this.parentNode);if(a){a.appendChild(this)}else{this.parentNode.removeChild(this)}e.call(this);if(d){d.parentNode.insertBefore(this,d)}else{if(b){b.appendChild(this)}else{if(a){a.removeChild(this)}}}});jAsset.selector=new jAsset.module(["DOM"]);jAsset.selector.Wrapper=function(b){var d=/(?=#|\.|\[.|:|$)/;var a=/(?=\^|\$|\*|~|\||!)|=/;var c=/^nth(\-last)?\-(child|of\-type)$/i;this.parseSimple=function(){var h={classes:[],attributes:[],pseudos:[]};var g=[];var f=this.selector.replace(/\((.*?)\)/g,function(m,k){g.push(k);return"()"});var j=f.split(d);if(j.last()===""){j.length--}j.forEach(function(k){var m=k.charAt(0);k=k.substr(1);switch(m){case"#":return h.id=k;case".":return h.classes.push(k);case"[":return h.attributes.push(k.substr(0,k.length-1));case":":return h.pseudos.push(k);default:return h.tag=m+k}},this);h.attributes.forEach(function(m,k){h.attributes[k]=h.attributes[k].split(a);h.attributes[k]={name:h.attributes[k][0],op:h.attributes[k].length>2?h.attributes[k][1]:"",query:h.attributes[k][h.attributes[k].length>2?2:1]||""};if(/^".*"$/.test(h.attributes[k].query)){h.attributes[k].query=h.attributes[k].query.substr(1,h.attributes[k].query.length-2)}},this);h.pseudos.forEach(function(m,k){if(h.pseudos[k].endsWith("()")){h.pseudos[k]=new String(h.pseudos[k].substr(0,h.pseudos[k].length-2));h.pseudos[k].param=g[0];g.splice(0,1);if(c.test(h.pseudos[k])){if(h.pseudos[k].param=="even"){h.pseudos[k].param=[2,0]}else{if(h.pseudos[k].param=="odd"){h.pseudos[k].param=[2,1]}else{var n=h.pseudos[k].param.split(/\+/);if(n.length==1){if(n[0].endsWith("n")){n[1]=0}else{n.splice(0,0,0)}}n=[parseInt(n[0]),parseInt(n[1])];if(isNaN(n[0])){n[0]=1}h.pseudos[k].param=n}}}}},this);return h};var e=/(?= (?:\+|~|>| ) )/;this.parseCombination=function(){if(this.selector.contains(" + "," ~ "," > ","   ")){var f=this.selector.split(e).replace(function(g){if(g.startsWith(" ")){return[g.charAt(1),(new jAsset.selector.Wrapper(g.substr(3))).parseSimple()]}else{return(new jAsset.selector.Wrapper(g)).parseSimple()}},this)}else{var f=[this.parseSimple()]}return f};this.parse=function(){if(this.selector.contains(",")){this.parsed=this.selector.split(",").map(function(g,f){return(new jAsset.selector.Wrapper(g)).parseCombination()},this)}else{this.parsed=[this.parseCombination()]}return this.parsed};this.toString=function(){return this.selector};this.matches=function(m){var g;allfor:for(var k=0;k<this.parsed.length;k++){var o=this.parsed[k];if(!this.matchesSimple(m,o.last())){continue allfor}combofor:for(var h=o.length-2;h>=0;h-=2){switch(o[h]){case"+":case"~":var n="Sibling"+(o[h]=="~"?"s":"");var f=true;break;case">":var n="Parent";break;case" ":var n="Ancestors"}m=jAsset.DOM["get"+n].internal.call(m,f);if(jAsset.util.isElement(m)&&this.matchesSimple(m,o[h-1])){continue combofor}else{if(jAsset.util.isArray(m)){for(var k=m.length;k>=0;k--){if(this.matchesSimple(m[k],o[h-1])){continue combofor}}continue allfor}else{continue allfor}}}return true}return false};this.matchesSimple=function(g,m){var j=jAsset.selector.Wrapper.filters;if(!g){return false}m=m||this.parsed[0][0];if(m.id&&g.id!=m.id){return false}if(m.tag&&m.tag!="*"&&!m.tag.equalsIgnoreCase(g.nodeName)){return false}if(m.classes.length){for(var f=m.classes.length-1;f>=0;f--){var k=jAsset.util.isString(m.classes[f])?new RegExp("(\\s+|^)"+m.classes[f]+"(\\s+|$)"):m.classes[f];if(!k.test(g.className)){return false}}}if(m.attributes.length){for(var f=0;f<m.attributes.length;f++){var n=jAsset.DOM.getProperty(g,m.attributes[f].name);if(!n){return false}else{if(m.attributes[f].query){var h=j.attributes[m.attributes[f].op+"="];if(h&&!h(m.attributes[f].query,n)){return false}}}}}if(m.pseudos.length){for(var f=0;f<m.pseudos.length;f++){if(j.pseudos[m.pseudos[f]]){if(!j.pseudos[m.pseudos[f]](g,m.pseudos[f].param)){return false}}}}return true};if(b instanceof jAsset.selector.Wrapper){this.selector=b.selector;this.parsed=b.parsed}else{if(jAsset.util.isString(b)){this.selector=b.trim().replace(/(?:\s*)(\+|>|~|,)(?:\s*)/g,"$1").replace(/(\+|~|>|\s)(?:\s*)/g," $1 ").replace(/ ~ =/g,"~=").replace(/\(\s*([0-9]+)n\s+\+(?:\s+)([0-9]+)\s*\)/ig,"($1n+$2)").replace(/:+/g,":");this.parse()}else{throw Error('Selector is neither a String nor a jAsset.selector.Wrapper object. (was "'+b+'")')}}};jAsset.selector.Wrapper.canBe=function(a){return jAsset.util.isString(a)||a instanceof jAsset.selector.Wrapper};jAsset.selector.Wrapper.filters={pseudos:{"first-child":function(a){return a==jAsset.DOM.getFirstChild(a.parentNode)},"not-first-child":function(a){return a!=jAsset.DOM.getFirstChild(a.parentNode)},"last-child":function(a){return a==jAsset.DOM.getLastChild(a.parentNode)},"not-last-child":function(a){return a!=jAsset.DOM.getLastChild(a.parentNode)},"only-child":function(a){return jAsset.DOM.getChildren.internal.call(a.parentNode).length<=1},"not-only-child":function(a){return jAsset.DOM.getChildren.internal.call(a.parentNode).length>1},"first-of-type":function(a){return a==jAsset.DOM.getFirstChild(a.parentNode,a.nodeName)},"not-first-of-type":function(a){return a!=jAsset.DOM.getFirstChild(a.parentNode,a.nodeName)},"last-of-type":function(a){return a==jAsset.DOM.getLastChild(a.parentNode,a.nodeName)},"not-last-of-type":function(a){return a!=jAsset.DOM.getLastChild(a.parentNode,a.nodeName)},"only-of-type":function(a){return jAsset.DOM.getChildren(a.parentNode,a.nodeName).length<=1},"not-only-of-type":function(a){return jAsset.DOM.getChildren(a.parentNode,a.nodeName).length>1},disabled:function(a){return a.disabled},enabled:function(a){return a.disabled===false},checked:function(a){return a.checked},empty:function(a){return!a.hasChildNodes()},target:function(a){return("#"+a.id).equalsIgnoreCase(location.hash)},even:function(b){var a=jAsset.DOM.getChildren.internal.call(b.parentNode);return a.indexOf(b)%2!=1},odd:function(b){var a=jAsset.DOM.getChildren.internal.call(b.parentNode);return!(a.indexOf(b)%2)},contains:function(a,b){return jAsset.DOM.getTextContent(a).contains(b)},"nth-child":function(b,c){var a=jAsset.DOM.getChildren.internal.call(b.parentNode);if(c[0]){return(a.indexOf(b)+1)%c[0]==c[1]}else{return a.indexOf(b)+1==c[1]}},"nth-of-type":function(b,c){var a=jAsset.DOM.getChildren.internal.call(b.parentNode,b.nodeName);if(c[0]){return(a.indexOf(b)+1)%c[0]==c[1]}else{return a.indexOf(b)+1==c[1]}},"nth-last-child":function(b,c){var a=jAsset.DOM.getChildren.internal.call(b.parentNode).reverse();if(c[0]){return(a.indexOf(b)+1)%c[0]==c[1]}else{return a.indexOf(b)+1==c[1]}},"nth-last-of-type":function(b,c){var a=jAsset.DOM.getChildren.internal.call(b.parentNode,b.nodeName).reverse();if(c[0]){return(a.indexOf(b)+1)%c[0]==c[1]}else{return a.indexOf(b)+1==c[1]}},not:function(a,b){return!jAsset.CSS.matches(a,b)}},attributes:{"=":function(b,a){return a.equalsIgnoreCase(b)},"~=":function(b,a){return(new RegExp("(^| )"+b+"($| )","i")).test(a)},"|=":function(b,a){return(new RegExp("(^|-)"+b+"($|-)","i")).test(a)},"^=":function(b,a){return a.startsWith(b)},"$=":function(b,a){return a.endsWith(b)},"*=":function(b,a){return a.indexOf(b)>-1},"!=":function(b,a){return a.indexOf(b)==-1}}};jAsset.selector.chainLink("get",function(a,d){var f,b=[];if(!a){return[]}a=new jAsset.selector.Wrapper(a);if(this==document&&!d){var c=jAsset.selector.get.cache.fetch(a);if(c){return c}}if(this.querySelectorAll){try{return jAsset.extend(this.querySelectorAll(a))}catch(g){}}a.parsed.forEach(function(j){var e=[];var h=j.last();if(h.id){e=[jAsset.getById(h.id)];if(this!=document&&!jAsset.DOM.isDescendantOf(e[0],this)){e=[]}}else{if(h.classes.length){e=jAsset.getByClass(h.classes,h.tag,this)}else{e=jAsset.getByTag(h.tag,this)}}e=e.filter(function(k){return a.matchesSimple(k,h)});if(j.length>1){e=e.filter(function(k){return a.matches(k,a)})}b=b.concat(e)},this);b=jAsset.extend(b);if(this==document){jAsset.selector.get.cache.store(a,b)}return b},{type:"start"});jAsset.selector.get.cache={storage:{},store:function(a,b){this.storage[a]={results:b.clone(),check:document.getElementsByTagName("*").length}},fetch:function(a){return this.storage[a]&&this.storage[a].check==document.getElementsByTagName("*").length?this.storage[a].results:null},empty:function(){this.storage={}}};jAsset.selector.chainLink("matches",function(a){if(!a){return false}a=new jAsset.selector.Wrapper(a);return a.matches(this)},{type:"end",multiple:"and"});jAsset.selector.chainLink("getFirst",function(a){if(this.querySelector){try{return jAsset.extend(this.querySelector(a))[0]}catch(b){}}return jAsset.selector.get(a,this)[0]||null},{type:"start"});jAsset.selector.chainLink("count",function(a){var b=jAsset.selector.get(a,this);return b?b.length:0},{type:"start"});jAsset.CSS=new jAsset.module(["DOM","util"]);jAsset.CSS.chainLink("getStyle",function(k,d){var o="";if(jAsset.util.isArray(k)){if(d){o=0}k.forEach(function(p){o+=jAsset.CSS.getStyle(this,p,d)+(d?0:" ")},this);return d?o:o.trim()}var f=jAsset.util.convertCSSProperty(k,true);var m=jAsset.util.convertCSSProperty(k);var a=jAsset.support.cssProperty(k);if(!a){if(jAsset.support.cssProperty(jAsset.support.vendorPrefix(k))){m=jAsset.support.vendorPrefix(k);f=jAsset.util.convertCSSProperty(m,true);a=true}}if(this.style[m]){o=this.style[m]}else{if(a){if(this.currentStyle){o=this.currentStyle[m];if(/^[0-9\.]+[a-z%]+$/.test(o)&&!/^[0-9\.]+px$/.test(o)){var b=this.style.left,c=this.runtimeStyle.left;this.runtimeStyle.left=this.currentStyle.left;this.style.left=o;o=style.pixelLeft+"px";this.style.left=b;this.runtimeStyle.left=c}}else{if(window.getComputedStyle){var e=document.defaultView.getComputedStyle(this,null);if(e){o=e.getPropertyValue(f)}}}}if(!o&&o!==0){switch(f){case"opacity":if(jAsset.support.cssProperty("filter")){if(this.filters.length&&this.filters.item("DXImageTransform.Microsoft.Alpha")){o=this.filters.item("DXImageTransform.Microsoft.Alpha").opacity/100+""}else{o="1"}}else{o=this.getStyle(jAsset.support.vendorPrefix()+"Opacity")}break;case"border":case"outline":case"border-top":case"border-right":case"border-bottom":case"border-left":o=this.getStyle([f+"-width",f+"-style",f+"-color"]);break;case"border-width":case"border-style":case"border-color":case"padding":case"margin":var g=[];if(!f.contains("-")){f+="-"}g[0]=g[1]=g[2]=g[3]=f;g[0]=f.replace("-","-top");g[1]=f.replace("-","-right");g[2]=f.replace("-","-bottom");g[3]=f.replace("-","-left");o=jAsset.CSS.getStyle(this,g);break;case"-moz-border-radius":o=jAsset.CSS.getStyle(this,[f+"-topleft",f+"-topright",f+"-bottomleft",f+"-bottomright"]);break;case"-webkit-border-radius":o=jAsset.CSS.getStyle(this,["-webkit-border-top-left-radius","-webkit-border-top-right-radius","-webkit-border-bottom-left-radius","-webkit-border-bottom-right-radius"]);break;case"font":o=jAsset.CSS.getStyle(this,["font-size","line-height","font-weight","font-style","font-family"]);break;case"background":o=jAsset.CSS.getStyle(this,["background-color","background-image","background-position","background-repeat","background-attachment"]);break;case"background-position-x":case"background-position-y":var h=jAsset.CSS.getStyle(this,"background-position").split(/\s+/);return h[f=="background-position-x"?0:1];break}}}if(jAsset.util.isString(o)){if(o=="auto"&&(f==="width"||f==="height")){var j=this.getStyle(f=="width"?["paddingLeft","paddingRight"]:["paddingTop","paddingBottom"],true)||0;o=Math.max(0,this[("client-"+f).camelCase()]-j)+"px"}if(parseInt(o)===0&&!this.isVisible()&&["width","height","top","left"].contains(f)){var n=this.getAncestors(true);if(n.length>1){n.forEach(function(p){if(p.style){p.__prevDisp=p.style.display;p.style.display="block"}});o=this.getStyle(f);n.forEach(function(p){if(p.style){p.style.display=p.__prevDisp;try{delete p.__prevDisp}catch(q){p.removeAttribute("__prevDisp")}}})}}o=o.split(" ");if(o.length>3&&o[1]==o[3]){o.splice(3,1)}if(o.length>2&&o[0]==o[2]){o.splice(2,1)}if(o.length>1&&o[0]==o[1]){o.splice(1,1)}o=o.join(" ");if(o=="normal"){o=""}if(jAsset.Color.is(o)){return(new jAsset.Color(o)).toString()}if(d){o=parseFloat(o)||0}return o}return jAsset.util.exists(o)?o:""},{type:"end"});jAsset.CSS.alias("getCurrent","getStyle");jAsset.CSS.chainLink("setStyle",function(c,a,b){jAsset.each(c,function(f,d){d=jAsset.util.convertCSSProperty(d);if(/^\-?[0-9]+\.?[0-9]*$/.test(f)&&!/^(lineHeight|zIndex|fontWeight|opacity|zoom)$/.test(d)){f+="px"}if(!jAsset.support.cssProperty(d)){if(jAsset.support.cssProperty(jAsset.support.vendorPrefix(d))){d=jAsset.support.vendorPrefix(d)}else{if(d=="opacity"&&jAsset.support.cssProperty("filter")){d="filter";if(f!==""){f=Math.round(parseFloat(f||0)*100);f="progid:DXImageTransform.Microsoft.Alpha(opacity="+f+")"}}else{if(d=="backgroundPositionX"){this.style.backgroundPosition=f+" "+jAsset.CSS.getStyle(this,"backgroundPositionY")}else{if(d=="backgroundPositionY"){this.style.backgroundPosition=jAsset.CSS.getStyle(this,"backgroundPositionX")+" "+f}}return null}}}try{if(d){this.style[d]=f}}catch(g){if(jAsset.debug){jAsset.debug("Unable to set property "+d+" to "+f+" on "+this)}}return null},this)},{preProcess:jAsset.DOM.setAttributes.options.preProcess.curry([null,null,true])});jAsset.CSS.chainLink("offsetStyle",function(c,a,b){jAsset.each(c,function(f,e){var d=jAsset.CSS.getStyle(this,e);c[e]=jAsset.util.offset(d,f)},this);jAsset.CSS.setStyle(this,c)},{preProcess:jAsset.CSS.setStyle.options.preProcess.curry([null,"offset",true])});jAsset.CSS.chainLink("clearStyle",function(a){if(a){this.setStyle(a)}else{this.removeAttribute("style")}},{preProcess:function(a){if(a[0]){var b={};jAsset.util.toArray(a[0]).forEach(function(c){b[c]=""});a[0]=b}return a}});jAsset.CSS.chainLink("swapStyle",function(c,d){if(c){var a={};for(var b in c){a[b]=this.style[b];this.style[b]=c[b]}}d.call(this);if(c){for(var b in c){this.style[b]=a[b]}}});jAsset.CSS.chainLink("hasClass",function(a){if(!this.className){return false}return a.intersect(this.className.split(/\s+/)).length==a.length},{type:"end",preProcess:function(a){if(a[0]){a[0]=jAsset.util.isArray(a[0])?a[0]:a[0].split(/\s+/);return a}return null},multiple:"and"});jAsset.CSS.chainLink("addClass",function(a){if(this.hasClass(a)){return}this.className=(this.className?this.className.split(/\s+/):[]).concat(a).join(" ")},{preProcess:jAsset.CSS.hasClass.options.preProcess});jAsset.CSS.chainLink("removeClass",function(a){this.className=(this.className?this.className.split(/\s+/):[]).diff(a).join(" ")},{preProcess:jAsset.CSS.hasClass.options.preProcess});jAsset.CSS.chainLink("toggleClass",function(a){this[(this.hasClass(a)?"remove":"add")+"Class"](a)},{preProcess:jAsset.CSS.hasClass.options.preProcess});jAsset.CSS.chainLink("isVisible",function(){var a=this;while(a){if(a.nodeType==11||(a.nodeType==1&&a.parentNode==null)){return false}else{if(jAsset.util.is("document",a)){return true}}if(jAsset.CSS.getStyle(a,"display")=="none"){return false}a=a.parentNode}return false},{type:"end",multiple:"and"});jAsset.CSS.chainLink("hide",function(a,b){if(jAsset.effects&&a){jAsset.effects.transition(this,a,function(c){a.forEach(function(d){if(!d.persist){c.clearStyle(d.type)}});jAsset.CSS.hide(c,null,b)})}else{jAsset.CSS.setStyle(this,"display","none");if(b){b(this)}}},{preProcess:function(a){if(a[0]&&jAsset.effects){a[0]=jAsset.util.toArray(a[0]);a[0].replace(function(b){if(jAsset.util.isString(b)){return{type:b,end:0}}else{b.end=b.end||0;return b}})}else{a[0]=null}if(a.length>1&&!jAsset.util.isFunction(a[1])){a[1]=null}return a}});jAsset.CSS.chainLink("show",function(a,b){if(jAsset.effects&&a){jAsset.effects.transition(this,a,function(c){a.forEach(function(d){if(!d.persist){c.clearStyle(d.type)}});if(b){b(this)}})}else{jAsset.CSS.setStyle(this,"display","block");if(b){b(this)}}},{preProcess:function(a){if(a[0]&&jAsset.effects){a[0]=jAsset.util.toArray(a[0]);a[0].replace(function(c){if(jAsset.util.isString(c)){var b={};b.type=c;b.start=0;return b}else{c.start=c.start||0;return c}})}else{a[0]=null}if(a.length>1&&!jAsset.util.isFunction(a[1])){a[1]=null}return a}});jAsset.CSS.chainLink("toggle",function(a,b,c){if(c!==false&&c!==true){c=!this.isVisible()}this[c?"show":"hide"](a,b)});jAsset.effects=new jAsset.module(true,["CSS"]);jAsset.effects.chainLink("transition",function(b,a){this.transitions=this.transitions||[];this.transitions.forEach(function(c){c.parameters.forEach(function(d){b.forEach(function(e){if(d.type==e.type){c.stop()}})})});this.transitions.push(new jAsset.effects.elementTransition(b,this,a));this.transitions.last().play()},{preProcess:function(a){if(!a[0]){return null}a[0]=jAsset.util.toArray(a[0]);if(!jAsset.util.isFunction(a[1])){a[1]=Function.dummy}return a}});jAsset.effects.chainLink("animation",function(f,e){if(!f){return}f=jAsset.util.toArray(f);var b=e||Function.dummy;var d=this;for(var c=f.length-1;c>0;c--){var a=b;b=(function(g){return function(h){jAsset.effects.transition(h,f[g],a)}})(c)}jAsset.effects.transition(this,f[0],b)});jAsset.effects.chainLink("playback",function(a,b){if(this.transitions.forEach){this.transitions.forEach(function(c){c[b]()})}},{preProcess:function(a){return(a.length>0)?a:null}});jAsset.effects.alias("stop","playback",["stop"]);jAsset.effects.alias("pause","playback",["pause"]);jAsset.effects.alias("resume","playback",["resume"]);jAsset.effects.alias("finalize","playback",["finalize"]);jAsset.effects.elementTransition=function(g,b,e){var f=25,a=0;this.onFinish=e;this.parameters=jAsset.clone(g);this.parameters.replace(function(h){h=new jAsset.effects.parameters(h,b);if(h.fps){f=h.fps}if(h.frames>a){a=h.frames}return h});this.parameters=this.parameters.cleanUp();var d=b.style.overflow||b.style.overflowX||b.style.overflowY;this.finalize=function(){this.parameters.forEach(function(h){if("opacity".equalsIgnoreCase(h.type)&&h.end==1){jAsset.CSS.clearStyle(b,h.type)}else{if(h.isAttribute){jAsset.DOM.setAttributes(b,h.type,h.end)}else{jAsset.CSS.setStyle(b,h.type,h.end)}}});jAsset.CSS.setStyle(b,"overflow",d).transitions.remove(this);b.transitions.remove(this);if(jAsset.util.isFunction(this.onFinish)){this.onFinish(b)}if(!b.transitions.length&&jAsset.event){jAsset.event.fire(b,"jAsset:transition:finished")}return b};this.play=function(){jAsset.CSS.setStyle(b,{display:"block",overflow:"hidden"});this.parameters.forEach(function(h){if(h.isAttribute){jAsset.DOM.setAttributes(b,h.type,h.start)}else{jAsset.CSS.setStyle(b,h.type,h.start)}});this.currentFrame=0;this[a>1?"animate":"finalize"]()};var c=this;this.animate=function(){if(++c.currentFrame<=a){c.parameters.forEach(function(h){if(c.currentFrame<=h.frames){if(h.isAttribute){jAsset.DOM.offsetAttributes(b,h.type,h.step)}else{jAsset.CSS.offsetStyle(b,h.type,h.step)}}});c.timer=setTimeout(arguments.callee,1000/f)}else{c.finalize()}};this.stop=function(){this.pause();this.finalize()};this.pause=function(){clearTimeout(this.timer)};this.resume=function(){this.animate()}};jAsset.effects.parameters=function(d,a){var b=20,f=25;this.type=d.type;this.isAttribute=d.isAttribute||false;if(!jAsset.Color&&/color/i.test(this.type)){throw Error("You need jAsset.Color in order to perform color transitions.")}this.start=d.start;if(!jAsset.util.exists(this.start)){this.start=a["get"+(this.isAttribute?"Property":"Current")](this.type)}this.end=d.end;this.offset=d.offset;if(!jAsset.util.exists(this.end)&&jAsset.util.exists(this.offset)){this.end=jAsset.util.offset(this.start,this.offset)}else{if(!jAsset.util.exists(this.end)){this.end=a["get"+(this.isAttribute?"Property":"Style")](this.type);if(this.end==this.start){a["set"+(this.isAttribute?"Attributes":"Style")](this.type,"");this.end=a["get"+(this.isAttribute?"Property":"Current")](this.type)}}}this.offset=c(this.end,this.start);this.step=d.step;if(this.offset){if(this.step){this.frames=d.frames||e(this.offset,this.step,true);this.frames=Math.round(Math.abs(this.frames))}this.frames=jAsset.util.isNumber(this.frames)?this.frames:b;this.step=e(this.offset,this.frames);if(this.step*this.offset<0){this.step=-this.step}}else{this.frames=this.step=0}this.fps=d.duration/this.frames||d.fps||f;this.duration=this.fps*this.frames;function e(j,m,k){var g=parseFloat(j)/parseFloat(m);if(!k){var h=j.toString().match(/^\-?[0-9]+\.?[0-9]*([a-z%]+)$/);h=h?h[1]:0}return g+(k?0:h)}function c(k,j,m){var g=parseFloat(k)-parseFloat(j);if(!m){var h=k.toString().match(/^\-?[0-9]+\.?[0-9]*([a-z%]+)$/);h=h?h[1]:0}return g+(m?h:0)}};jAsset.event=new jAsset.module(["util","DOM"],null,{duplicateEvents:function(){if("result"in arguments.callee){return arguments.callee.result}i=0;var f=function(){i++};var c=document.createElement("a");c.appendChild(document.createTextNode("test"));c.href="#";var e=document.body||jAsset.scriptElement.parentNode;c=e.appendChild(c);for(var d=0;d<2;d++){if(c.addEventListener){c.addEventListener("focus",f,false)}else{if(c.attachEvent){c.attachEvent("onfocus",f)}}}if(c.dispatchEvent){var b=document.createEvent("HTMLEvents");b.initEvent("focus",true,true);c.dispatchEvent(b)}else{if(c.fireEvent){c.fireEvent("onfocus",document.createEventObject())}}e.removeChild(c);return arguments.callee.result=i>1}});jAsset.event.storage={};jAsset.event.chainLink("bind",function(b,a){b.forEach(function(c){if(!(c in jAsset.event.storage)){jAsset.event.storage[c]=[]}var d=c=="DOMContentLoaded"?document:this;var e=new jAsset.event.Wrapper(d,c,a);jAsset.event.storage[c].push(e.bind())},this)},{preProcess:function(a){if(!a[0]||!jAsset.util.isFunction(a[1])){return null}a[0]=jAsset.util.toArray(a[0]);jAsset.event.unbind(this,a[0],a[1]);return a}});jAsset.event.chainLink("hover",function(b,a){if(jAsset.util.isFunction(b)){this.bind("mouseover",function(c){if(jAsset.DOM.isDescendantOf(this,c.relatedTarget)){b(c)}})}if(jAsset.util.isFunction(a)){this.bind("mouseout",function(c){if(jAsset.DOM.isDescendantOf(this,c.relatedTarget)){a(c)}})}});jAsset.event.chainLink("unbind",function(b,a){if(b&&b.length){b.forEach(function(c){if(!(c in jAsset.event.storage)){return}for(var d=jAsset.event.storage[c].length-1;d>=0;d--){var e=jAsset.event.storage[c][d];if(e&&e.matches(this,a)){e.unbind();e=null}}},this)}else{jAsset.each(jAsset.event.storage,function(d,c){d.forEach(function(f,e){if(f&&f.matches(this,a)){f.unbind();d[e]=f=null;delete d[e]}},this)},this)}},{preProcess:function(a){if(a[0]){a[0]=jAsset.util.toArray(a[0])}return a}});jAsset.event.chainLink("fire",function(c,a){var b=this.dispatchEvent?function(e){var d=document.createEvent("HTMLEvents");d.initEvent(e,true,true);d.custom=true;if(a){jAsset.attach(d,a)}this.dispatchEvent(d)}:(this.fireEvent?function(f){var d=document.createEventObject();d.type="on"+f;d.custom=true;if(a){jAsset.attach(d,a)}try{this.fireEvent("on"+f,d)}catch(h){if(h.message.startsWith("Invalid argument")){if(f in jAsset.event.storage){d.cancelBubble=false;if(!d.target&&!d.srcElement){d.target=this}var g=jAsset.DOM.getAncestors(this,true);g.iterate(function(e){if(!d.cancelBubble){jAsset.event.storage[f].forEach(function(j){if(j.matches(e)){j.fire(d)}})}return!d.cancelBubble})}}}}:function(d){if(jAsset.util.isFunction(this["on"+c])){this["on"+c]()}});c.forEach(b,this)},{preProcess:function(a){if(!a[0]){return null}a[0]=jAsset.util.toArray(a[0]);return a}});jAsset.event.fix=function(a){a=a||window.event;if(!a.stopPropagation){a.stopPropagation=function(){this.cancelBubble=true}}if(!a.preventDefault){a.preventDefault=function(){this.returnValue=false}}if(!a.target){a.target=a.srcElement}if(!a.relatedTarget&&(a.fromElement||a.toElement)){a.relatedTarget=a[(a.fromElement==a.target?"to":"from")+"Element"]}if(!jAsset.util.isNumber(a.pageX)&&jAsset.util.isNumber(a.clientX)){a.pageX=jAsset.DOM.getScrollLeft()+a.clientX||0}if(!jAsset.util.isNumber(a.pageY)&&jAsset.util.isNumber(a.clientY)){a.pageY=jAsset.DOM.getScrollTop()+a.clientY||0}if(/key/i.test(a.type)){if(!("keyCode"in a)){a.keyCode=a.which||a.charCode}if(!("charCode"in a)){a.charCode=a.charCode||a.keyCode}if(a.keyCode>63200){a.keyCode=({63276:33,63277:34,63234:37,63232:38,63235:39,63233:40})[a.keyCode]||a.keyCode}}if(!("wheelDelta"in a)&&["mousewheel","DOMMouseScroll"].contains(a.type)){a.wheelDelta=-a.detail*30}return a};(function(){var a=jAsset.getFirst("script");if(a&&a.getAttribute("defer")===false){document.write("<script id=__ie_DOMLoaded defer src=//:><\/script>");var b=jAsset.getById("__ie_DOMLoaded");if(b){b.onreadystatechange=function(){if(!jAsset.DOMLoaded&&this.readyState=="complete"){(function(){if(!jAsset.DOMLoaded){try{document.documentElement.doScroll("left")}catch(c){setTimeout(arguments.callee,1);return}jAsset.DOMLoaded=true;jAsset.event.fire(document,"DOMContentLoaded")}})();jAsset.DOM.destroy(b)}}}}else{if("readyState"in document){document.onreadystatechange=document.onreadystatechange||function(){if(!jAsset.DOMLoaded&&/loaded|complete/.test(document.readyState)){jAsset.DOMLoaded=true;jAsset.event.fire(document,"DOMContentLoaded")}}}}if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){jAsset.DOMLoaded=true},false)}else{window._onload=window.onload;window.onload=function(){if(!jAsset.DOMLoaded){jAsset.DOMLoaded=true;jAsset.event.fire(document,"DOMContentLoaded")}if(window._onload){window._onload()}}}})();jAsset.event.ready=jAsset.event.bind.curry([document,"DOMContentLoaded"]);jAsset.event.Wrapper=function(d,c,b){this.original=b;this.element=d;this.event=c;var a=this;this.get=function(e){e=jAsset.event.fix(e);if(!e.target){e.target=a.element}return a.original.call(a.element,e)}};jAsset.event.Wrapper.prototype={matches:function(b,a,c){return((!b||b==this.element)&&(!a||a==this.original)&&(!c||c==this.event))},destroy:function(){this.original=this.element=this.event=this.get=null;return this},bind:function(){if(this.element.addEventListener){this.element.addEventListener(this.event,this.get,false);if(this.event=="mousewheel"){this.element.addEventListener("DOMMouseScroll",this.get,false)}}else{if(this.element.attachEvent){this.element.attachEvent("on"+this.event,this.get)}else{if(!element["on"+this.event]){this.element["on"+this.event]=this.get}else{var b=this;var a=this.element["_on"+this.event];this.element["_on"+this.event]=function(c){a.call(this,c);b.get()}}}}return this},unbind:function(){if(!jAsset.event.storage[this.event]){return this}jAsset.event.storage[this.event].remove(this);if(this.element.removeEventListener){if(this.event=="mousewheel"){this.element.removeEventListener("DOMMouseScroll",this.get,false)}this.element.removeEventListener(this.event,this.get,false)}else{if(this.element.detachEvent){this.element.detachEvent("on"+this.event,this.get)}else{var b;for(var a=0;a<jAsset.event.storage[this.event].length;a--){var c=jAsset.event.storage[this.event][a];if(c.matches(this.element)){b=new jAsset.event.Wrapper(this.element,this.event,b?b:c)}}this.element["on"+this.event]=b}}this.destroy();return this},fire:function(a){this.get(a)}};if(document.attachEvent&&!document.addEventListener){jAsset.event.bind(document,"unload",jAsset.event.unbind)}jAsset.forms=new jAsset.module();jAsset.forms.chainLink("getValue",function(){var a;switch(this.nodeName.toLowerCase()){case"input":switch(this.getAttribute("type")){case"radio":case"checkbox":if(this.checked){a=this.value}break;case"submit":case"button":a="";break;case"text":case"hidden":default:a=this.value}break;case"select":a=this.options[this.selectedIndex].value;break;case"textarea":a=this.value||this.innerHTML}return jAsset.util.exists(a)?a+"":null},{type:"end",tags:"input select textarea"});jAsset.forms.chainLink("getEmptyFields",function(){var a=[];for(var c=this.elements.length-1;c>=0;c--){var b=this.elements[c];if(!/button|submit|image/i.test(b.type)&&!jAsset.forms.getValue(b)){a.push(b)}}return a},{tags:"form",forceArray:true});jAsset.forms.chainLink("serialize",function(){var b=jAsset.getByTag("input,select,textarea",this),a="";b.forEach(function(c){var d=jAsset.forms.getValue(c);if(d&&!c.disabled&&c.name){a+=c.name+"="+d.urlencode()+"&"}});return a.substr(0,a.length-1)},{type:"end"});jAsset.forms.alias("getQueryString","serialize");jAsset.ajax=new jAsset.module(["DOM","forms"]);jAsset.ajax.stack=[];jAsset.ajax.options={progressImage:"",progressText:"Please wait...",timeout:5000};jAsset.ajax.connect=function(b,d,a){var c;jAsset.ajax.stack.iterate(function(e){if(!e.inProgress()){c=e;return false}return true});if(!c){c=new jAsset.ajax.XHR();jAsset.ajax.stack.push(c)}a=a||{};c.onerror=a.onerror||function(){};c.onsuccess=d||function(){};c.progressPlaceholder=jAsset.getFirst(a.progressPlaceholder)||null;c.allowCache=!!a.allowCache;c.connect(b,a.method,a.postData,a.sync)};jAsset.ajax.chainLink("load",function(d,e,a){if(!d){return}a=a||{};var c=a.transition||"";a.method="get";var b=this;jAsset.ajax.connect(d,function(f){b.setContent(f.responseText,c);if(e){e(f)}},a)});jAsset.ajax.XHR=function(){if(window.XMLHttpRequest){this.xhrObj=new XMLHttpRequest()}else{if(window.ActiveXObject){if(this.ActiveXObject){this.xhrObj=new ActiveXObject(this.ActiveXObject)}else{["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.3.0","Msxml2.XMLHTTP","Microsoft.XMLHTTP"].iterate(function(a){try{this.xhrObj=new ActiveXObject(a);this.prototype.ActiveXObject=ActiveXObject;return false}catch(b){}return true})}}}if(!this.xhrObj){this.xhrObj={open:function(){},send:function(){},readyState:0}}};jAsset.ajax.XHR.prototype={connect:function(d,g,a,c){if(!d){return false}this.startProgress();d=new jAsset.URI(d);if(!this.allowCache){d.addParameter("timestamp",jAsset.util.now())}g=("post".equalsIgnoreCase(g))?"POST":"GET";a=a||null;try{this.xhrObj.open(g,d+"",!c)}catch(f){this.onerror(10001,f.message);return false}this.xhrObj.setRequestHeader("X-Requested-With","XMLHttpRequest");this.xhrObj.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var b=this;this.xhrObj.onreadystatechange=function(){if(b.xhrObj.readyState==4){b.stopProgress();clearTimeout(b.timeout);if((b.xhrObj.responseText||b.xhrObj.responseXML)&&(!jAsset.util.exists(b.xhrObj.status)||(b.xhrObj.status>=200&&b.xhrObj.status<300)||b.xhrObj.status==304||b.xhrObj.status==1223)){b.onsuccess(b.xhrObj)}else{b.onerror(b.xhrObj.status,b.xhrObj.statusText)}}};this.xhrObj.send(a);this.timeout=setTimeout(function(){b.onerror(10000,"Request timed out");b.abort()},jAsset.ajax.options.timeout);return true},stopProgress:function(){if(this.progressPlaceholder){var a=jAsset.getByClass("jAsset-progress-indicator","*",this.progressPlaceholder);jAsset.DOM.dispose(a)}return this},startProgress:function(){if(this.progressPlaceholder){var a=jAsset.ajax.options.progressImage?jAsset.DOM.create("img",{src:jAsset.ajax.options.progressImage,alt:jAsset.ajax.options.progressText,className:"jAsset-progress-indicator"}):jAsset.DOM.create("span",{innerHTML:jAsset.ajax.options.progressText,className:"jAsset-progress-indicator"});jAsset.DOM.insert(a,this.progressPlaceholder)}return this},abort:function(){this.stopProgress().xhrObj.abort();return this},inProgress:function(){return[1,2,3].contains(this.xhrObj.readyState)},onerror:Function.dummy,onsuccess:Function.dummy,progressPlaceholder:null};jAsset.BOM=new jAsset.module();jAsset.BOM.getInnerDimension=function(c,b){b=jAsset.util.is("window",b)?b:window;c=(/width/i.test(c))?"Width":"Height";var a=b.document,d=a.documentElement||a.body;return b["inner"+c]||d["client"+c]||0};jAsset.BOM.getInnerWidth=jAsset.BOM.getInnerDimension.curry(["width"]);jAsset.BOM.getInnerHeight=jAsset.BOM.getInnerDimension.curry(["height"]);jAsset.BOM.stop=function(a){a=jAsset.util.is("window",a)?a:window;if(self.stop){a.stop()}else{if(document.execCommand){a.document.execCommand("Stop")}}};jAsset.cookie=new jAsset.module(["util"]);jAsset.cookie.get=function(b){var c=new RegExp("(?:^|;)\\s?"+b+"=(.*?)(?:;|$)","i");var a=document.cookie.match(c);return a&&a.length?unescape(a[1]):null};jAsset.cookie.set=function(c,e,a,g,d,f){var b=jAsset.util.getDate(a);document.cookie=c+"="+escape(e)+(a?";expires="+b.toGMTString():"")+(g?";path="+g:"")+(d?";domain="+d:"")+(f?";secure":"");return document.cookie};jAsset.cookie.remove=function(a){return jAsset.cookie.set(a,"",new Date(0))};jAsset.cookie.partial={defaultSeparator:"\n",defaultAssignment:"::"};jAsset.cookie.partial.get=function(c,b,f,g){var e=jAsset.cookie.get(c);if(!e){return null}if(!jAsset.util.exists(f)){f=jAsset.cookie.partial.defaultSeparator}if(!jAsset.util.exists(g)){g=jAsset.cookie.partial.defaultAssignment}var d=new RegExp("(?:^|"+f+")"+b+g+"(.*?)(?:"+f+"|$)","im");var a=e.match(d);return(a&&a.length)?a[1]:null};jAsset.cookie.partial.set=function(b,g,j,d,k,e,a,f,c){jAsset.cookie.partial.remove(b,g,f,c);if(!jAsset.util.exists(f)){f=jAsset.cookie.partial.defaultSeparator}if(!jAsset.util.exists(c)){c=jAsset.cookie.partial.defaultAssignment}var h=jAsset.cookie.get(b);h=h?h+f:"";h+=g+c+j;jAsset.cookie.set(b,h,d,k,e,a);return document.cookie};jAsset.cookie.partial.remove=function(b,g,d,k,e,a,f,c){var h=jAsset.cookie.get(b);if(h){if(!jAsset.util.exists(f)){f=jAsset.cookie.partial.defaultSeparator}if(!jAsset.util.exists(c)){c=jAsset.cookie.partial.defaultAssignment}var j=new RegExp("(?:^|"+f+")"+g+c+"(.*?)(?:"+f+"|$)","gim");h=h.replace(j,f);while(h.startsWith(f)){h=h.substr(f.length)}while(h.endsWith(f)){h=h.substr(0,h.length-f.length)}jAsset.cookie.set(b,h,d,k,e,a)}return document.cookie};jAsset.debug=function(a){if(window.console&&console.log&&((console.log+"").length>15)){console.log("jAsset msg: "+a)}else{arguments.callee.console=arguments.callee.console||[];arguments.callee.console.push(a)}return a};jAsset.debug.logObject=function(a){if(console.group){console.group("jAsset object logging")}jAsset.each(a,function(b,c){jAsset.debug(c+":\t\t\t"+b)});if(console.groupEnd){console.groupEnd()}return a};jAsset.debug.logProperties=function(a){return jAsset.each(a,function(b,c){jAsset.debug(c)})};jAsset.debug.getObjectProperties=function(b){var a="";jAsset.each(b,function(c,d){a+=d+":\t\t"+c+"\n"});return a};jAsset.debug.benchmark=function(c,k,b,a,d){if(!c){return NaN}b=b||window;a=a||4;var g=jAsset.util.now();for(var h=0;h<a;h++){try{var m=c.call(b,k)}catch(j){}}var f=(jAsset.util.now()-g)/a;if(!d){jAsset.debug("The function took "+f+"ms to execute and returned "+m)}return f};jAsset.debug.race=function(b,a,c,d,f){var g=jAsset.debug.benchmark(b,c,d,f,true);var e=jAsset.debug.benchmark(a,c,d,f,true);jAsset.debug("The first function took "+g+"ms and the second "+e+"ms. The difference is "+Math.abs(g-e)+"ms. The "+(g>e?"second":"first")+" function wins.")};jAsset.debug.element=function(b){if(!jAsset.util.isElement(b)){return""}var a=b.nodeName.toLowerCase();if(b.id){a+="#"+b.id}if(b.className){a+="."+b.className.replace(/\s+/g,".")}return a};if(!window.$){var $=jAsset.getFirst}if(!window.$$){var $$=jAsset.get}jAsset.DOM.nodeListToArray=jAsset.util.toArray;jAsset.CSS.setEvent=jAsset.event.bind;jAsset.CSS.setProperty=jAsset.DOM.setAttributes;jAsset.CSS.getElementsBySelector=jAsset.selector.get;jAsset.attach(jAsset.CSS,jAsset.selector);var CSS=jAsset.CSS;var DOM=jAsset.DOM;;
/*======================================================================*\
|| #################################################################### ||
|| # vBulletin 3.7.3
|| # ---------------------------------------------------------------- # ||
|| # Copyright ï¿½2000-2008 Jelsoft Enterprises Ltd. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| #################################################################### ||
\*======================================================================*/
var vB_TabCtrls=new Array();vBulletin.events.systemInit.subscribe(function()
{if(vBulletin.elements["vB_TabCtrl"])
{var i,element;for(i=0;i<vBulletin.elements["vB_TabCtrl"].length;i++)
{element=vBulletin.elements["vB_TabCtrl"][i];vB_TabCtrls[element[0]]=new vB_TabCtrl(element[0],element[1],element[2],element[3]);}
vBulletin.elements["vB_TabCtrl"]=null;}});function vB_TabCtrl(tab_container,initial_tab_id,overflow_tab_string,ajax_load_url)
{var i,content_blocks,li,tab_id,selected_index,collapseobj,tab_banner;console.log("Init vB_TabCtrl for %s with initial tab id = %s",tab_container,initial_tab_id);this.tab_container=YAHOO.util.Dom.get(tab_container).parentNode;this.tab_container_id=tab_container;this.initial_tab_id=initial_tab_id;this.selected_tab_id=jAsset.cookie.partial.get('selected_tabs',tab_container)||initial_tab_id;if(ajax_load_url){this.ajax_load_url=ajax_load_url.split("?");this.ajax_load_url[1]=this.ajax_load_url[1].replace(/\{(\d+)(:\w+)?\}/gi,'%$1$s');}
this.tab_count=0;try{content_blocks=$$('div#'+tab_container+' > .content_block');}
catch(e){content_blocks=YAHOO.util.Dom.getElementsByClassName("content_block","div",tab_container);content_blocks=PHP.array_diff(content_blocks,old_content_blocks);window.old_content_blocks=(window.old_content_blocks)?window.old_content_blocks.concat(content_blocks):content_blocks;}
if(content_blocks.length)
{console.log("vB_TabCtrl :: Found %d tab content blocks",content_blocks.length);this.tab_element=document.createElement("ul");YAHOO.util.Dom.addClass(this.tab_element,"tab_list");selected_index=-1;for(i=0;i<content_blocks.length;i++)
{this.tab_count++;tab_id=content_blocks[i].getAttribute("id");collapseobj=YAHOO.util.Dom.get("collapseobj_"+tab_id);if(collapseobj)
{YAHOO.util.Dom.setStyle(collapseobj,"display","block");}
li=this.tab_element.appendChild(document.createElement("li"));li.id=tab_id+"_tab";li.innerHTML=YAHOO.util.Dom.getElementsByClassName("block_name","span",content_blocks[i].getElementsByTagName("h4")[0])[0].innerHTML;YAHOO.util.Dom.addClass(YAHOO.util.Dom.getElementsByClassName("block_row","div",content_blocks[i])[0],"block_title");li.setAttribute("tab_id",tab_id);YAHOO.util.Dom.addClass(li,"seltab");if(tab_id==this.selected_tab_id)
{selected_index=i;}}
content_blocks[0].parentNode.insertBefore(this.tab_element,content_blocks[0]);tab_banner=content_blocks[0].parentNode.insertBefore(document.createElement("div"),content_blocks[0]);YAHOO.util.Dom.addClass(tab_banner,"seltab tab_header");}
this.tabs=this.tab_element.getElementsByTagName("li");YAHOO.util.Dom.setStyle(this.tab_element,"height",this.tabs[0].offsetHeight+"px");for(i=0;i<this.tab_count;i++){this.init_tab(this.tabs[i],false);this.tabs[i].setAttribute("fixed_width",this.tabs[i].offsetWidth);jAsset.CSS.setStyle(this.tabs[i],{width:this.tabs[i].getAttribute("fixed_width")+"px",display:"none"});}
this.overflow_tab=this.tab_element.appendChild(document.createElement("li"));this.overflow_tab.setAttribute("dir","ltr");YAHOO.util.Dom.addClass(this.overflow_tab,"deseltab overflow_tab");YAHOO.util.Event.on(this.overflow_tab,"click",this.show_menu,this,true);if(overflow_tab_string){this.overflow_tab.innerHTML=overflow_tab_string;}
else{this.overflow_tab.appendChild(document.createTextNode("ï¿½"));}
if(selected_index==-1){selected_index=0;this.selected_tab_id=content_blocks[0].getAttribute("id");}
this.switch_tab(this.selected_tab_id,true);var selected_tab_height=YAHOO.util.Dom.get(this.selected_tab_id+"_tab").offsetHeight;var normal_tab_height=0;for(i=0;i<this.tabs.length;i++){if(this.tabs[i].getAttribute("tab_id")!=this.selected_tab_id){normal_tab_height=this.tabs[i].offsetHeight;break;}}
YAHOO.util.Event.on(document,"click",this.hide_menu,this,true);};vB_TabCtrl.prototype.click_tab=function(e){var element=YAHOO.util.Event.getTarget(e);while(element.getAttribute("tab_id")==null&&element.tagName.toUpperCase()!="HTML"){element=element.parentNode;}
this.switch_tab(element.getAttribute("tab_id"));YAHOO.util.Event.stopEvent(e);};vB_TabCtrl.prototype.switch_tab=function(selected_tab_id,force)
{if(this.selected_tab_id!=selected_tab_id||force)
{var i,tab_id,content_element;this.hide_menu();this.selected_tab_id=selected_tab_id;this.selected_tab=YAHOO.util.Dom.get(this.selected_tab_id+"_tab");for(i=0;i<this.tab_count;i++)
{tab_id=this.tabs[i].getAttribute("tab_id");YAHOO.util.Dom[(tab_id==this.selected_tab_id?"addClass":"removeClass")](this.tabs[i],"seltab");YAHOO.util.Dom[(tab_id!=this.selected_tab_id?"addClass":"removeClass")](this.tabs[i],"deseltab");content_element=YAHOO.util.Dom.get(tab_id);YAHOO.util.Dom.setStyle(content_element,"display",(tab_id==this.selected_tab_id?"block":"none"));if(tab_id==this.selected_tab_id&&YAHOO.util.Dom.get("collapseobj_"+tab_id).innerHTML=="")
{this.load_tab_content(this.selected_tab_id);}}
if(this.initial_tab_id!=this.selected_tab_id)
{jAsset.cookie.partial.set('selected_tabs',this.tab_container_id,this.selected_tab_id,'1y');}
else jAsset.cookie.partial.remove('selected_tabs',this.tab_container_id,'1y');console.log("vB_TabCtrl :: Switched to '%s' tab",this.selected_tab_id);this.resize();}
return false;};vB_TabCtrl.prototype.resize=function(e)
{this.hide_menu();var total_width,i,j,display_tab_count,content_element_id,selected_tab,replace_tab,new_selected_tab,menu_element_names;YAHOO.util.Dom.setStyle(this.overflow_tab,"display","block");total_width=this.overflow_tab.offsetWidth+10;YAHOO.util.Dom.setStyle(this.overflow_tab,"display","none");display_tab_count=0;for(i=0;i<this.tab_count;i++)
{YAHOO.util.Dom.setStyle(this.tabs[i],"display","block");total_width+=Math.max(parseInt(this.tabs[i].getAttribute("fixed_width")),this.tabs[i].offsetWidth);if(this.tab_container.offsetWidth>total_width)
{display_tab_count++;}
else
{YAHOO.util.Dom.setStyle(this.tabs[i],"display","none");}
content_element_id=this.tabs[i].getAttribute("tab_id");if(content_element_id==this.selected_tab_id&&YAHOO.util.Dom.getStyle(this.tabs[i],"display")=="none")
{console.info("vB_TabCtrl :: Moving selected tab... Found the selected tab: %d, %s",i,content_element_id);selected_tab=this.tabs[i];for(j=i;j>=0;j--)
{if(YAHOO.util.Dom.getStyle(this.tabs[j],"display")!="none")
{console.log("vB_TabCtrl :: Replace tab %d (%s) with %d (%s)",j,this.tabs[j].getAttribute("tab_id"),i,content_element_id);replace_tab=this.tabs[j];new_selected_tab=this.tab_element.insertBefore(selected_tab.cloneNode(true),replace_tab);YAHOO.util.Event.removeListener(selected_tab,"click",this.click_tab,this,true);YAHOO.util.Event.removeListener(selected_tab.firstChild,"click",this.click_tab,this,true);selected_tab.parentNode.removeChild(selected_tab);YAHOO.util.Dom.setStyle(new_selected_tab,"display","block");this.init_tab(new_selected_tab,false);return this.resize();}}}}
this.display_tab_count=display_tab_count;menu_element_names=new Array();for(i=this.display_tab_count;i<this.tabs.length;i++)
{if(this.tabs[i]!=this.overflow_tab)
{menu_element_names.push(this.tabs[i].innerHTML);}}
this.overflow_tab.setAttribute("title",menu_element_names.join(",\n"));YAHOO.util.Dom.setStyle(this.overflow_tab,"display",(this.tab_count>display_tab_count?"block":"none"));for(i=0;i<this.tabs.length;i++)
{YAHOO.util.Dom.setStyle(this.tabs[i],"backgroundPosition",(this.tabs[i].getAttribute("tab_id")==this.selected_tab_id?(this.tabs[i].offsetLeft*-1)+"px 0px":"0px 0px"));}};vB_TabCtrl.prototype.show_menu=function(e)
{YAHOO.util.Event.stopEvent(e);if(this.menu_open)
{this.hide_menu();return;}
var i,counter,current_menu_element,menupos,menupos_x;this.menu=document.createElement("ul");this.menu.setAttribute("id",this.tab_element.id+"menu");YAHOO.util.Dom.addClass(this.menu,"menu_popup");YAHOO.util.Dom.addClass(this.menu,"tab_popup");menu_element_names=new Array();counter=0;for(i=this.display_tab_count;i<this.tab_count;i++)
{current_menu_element=this.menu.appendChild(this.tabs[i].cloneNode(true));YAHOO.util.Dom.setStyle(current_menu_element,"display","block");YAHOO.util.Dom.setStyle(current_menu_element,"width","auto");YAHOO.util.Dom.removeClass(current_menu_element,"seltab");YAHOO.util.Dom.removeClass(current_menu_element,"deseltab");if(counter++<1)
{YAHOO.util.Dom.addClass(current_menu_element,"first");}
this.init_tab(current_menu_element,true);}
this.tab_container.appendChild(this.menu);menupos=YAHOO.util.Dom.getXY(this.overflow_tab);menupos_x=menupos[0]-current_menu_element.offsetWidth+this.overflow_tab.offsetWidth;menupos_x=(menupos_x<fetch_viewport_info()["x"])?menupos[0]:menupos_x;YAHOO.util.Dom.setX(this.menu,menupos_x);YAHOO.util.Dom.setY(this.menu,menupos[1]+this.overflow_tab.offsetHeight-1);this.menu_open=true;};vB_TabCtrl.prototype.hide_menu=function()
{try{if(this.menu)
{this.menu.parentNode.removeChild(this.menu);}}catch(e){console.log(getExceptionDetails(e));}
this.menu_open=false;};vB_TabCtrl.prototype.init_tab=function(tab_element,full_title)
{YAHOO.util.Event.on(tab_element,"click",this.click_tab,this,true);content_element=YAHOO.util.Dom.get(tab_element.getAttribute("tab_id"));YAHOO.util.Dom.setStyle(YAHOO.util.Dom.getElementsByClassName("block_title","h4",content_element)[0],"display","none");};vB_TabCtrl.prototype.is_block_title=function(element)
{return(element.getAttribute("rel")=="Block");}
vB_TabCtrl.prototype.load_tab_content=function(tab_id)
{if(this.ajax_load_url||true)
{var tab_element,div;tab_element=YAHOO.util.Dom.get("collapseobj_"+tab_id);div=tab_element.appendChild(document.createElement("div"));jAsset.CSS.addClass(div,"block_row").setStyle({"textAlign":"center","padding":"30px"}).setContent(jAsset.ajax.options.progressText+" <img src=\""+IMGDIR_MISC+"/progress.gif\" />");YAHOO.util.Connect.asyncRequest("POST",this.ajax_load_url[0],{success:this.populate_tab,failure:this.handle_ajax_error,scope:this,argument:[tab_id]},construct_phrase(this.ajax_load_url[1],PHP.urlencode(tab_id))+"&securitytoken="+SECURITYTOKEN);}};var ready=false;vB_TabCtrl.prototype.populate_tab=function(ajax)
{if(ajax.responseText)
{var tab_element=YAHOO.util.Dom.get("collapseobj_"+ajax.argument[0]);try{tab_element.innerHTML=ajax.responseText;}catch(e){alert('Error in transaction. Response was: \n'+ajax.responseText);}
var scriptTagsStack=YAHOO.util.Dom.getElementsBy(function(){return true;},'script',tab_element);var currentScript=scriptTagsStack[0];var scriptElem;function processScripts()
{if(!scriptTagsStack.length||!scriptTagsStack[0]||currentScript==null)
{vBulletin_init();return;}
if(scriptElem&&scriptElem.readyState&&scriptElem.readyState!='complete'&&scriptElem.readyState!='loaded')return;currentScript=scriptTagsStack.shift();if(currentScript&&!currentScript.getAttribute("src")||currentScript.getAttribute("src")=='')
{var currentScriptCode=currentScript.innerHTML;evalScript(currentScriptCode);processScripts();}
else if(currentScript)
{scriptElem=document.createElement('script');scriptElem.setAttribute('type','text/javascript');scriptElem.setAttribute('src',currentScript.getAttribute("src"));scriptElem.onload=scriptElem.onreadystatechange=processScripts;var head=document.getElementsByTagName("head")[0];head.appendChild(scriptElem);currentScript.parentNode.removeChild(currentScript);}}
if(scriptTagsStack.length)processScripts();}};if(is_ie)
window.evalScript=function(scriptCode)
{try{scriptCode=scriptCode.replace("<!--",'').replace("//-->",'');scriptCode=scriptCode.trim();if(scriptCode)
{var head=document.getElementsByTagName("head")[0]||document.documentElement,script=document.createElement("script");script.type="text/javascript";if(is_ie)
script.text=scriptCode;else
script.appendChild(document.createTextNode(scriptCode));head.insertBefore(script,head.firstChild);head.removeChild(script);}}catch(e){alert("Error while evaluating the script."
+". The script was: "+scriptCode
+getExceptionDetails(e));}}
else
window.evalScript=function(scriptCode)
{scriptCode=scriptCode.replace("<!--",'').replace("//-->",'');window.eval(scriptCode);}
vB_TabCtrl.prototype.handle_ajax_error=function(ajax)
{vBulletin_AJAX_Error_Handler(ajax);};
/*======================================================================*\
|| #################################################################### ||
|| # vBulletin 3.8.4 Patch Level 2
|| # ---------------------------------------------------------------- # ||
|| # Copyright ©2000-2011 Jelsoft Enterprises Ltd. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| #################################################################### ||
\*======================================================================*/
vBulletin.add_event("vBmenuShow");vBulletin.add_event("vBmenuHide");function vB_Popup_Handler()
{this.open_steps=10;this.open_fade=false;this.active=false;this.menus=new Array();this.activemenu=null;};vB_Popup_Handler.prototype.activate=function(active)
{this.active=active;console.log("vBmenu :: System Activated");};vB_Popup_Handler.prototype.register=function(controlkey,noimage,noslide)
{this.menus[controlkey]=new vB_Popup_Menu(controlkey,noimage,noslide);var usercss=YAHOO.util.Dom.get("usercss");if(usercss&&YAHOO.util.Dom.isAncestor(usercss,controlkey))
{this.menus[controlkey].imgsrc=IMGDIR_MISC+"/menu_open_usercss.gif";}
this.menus[controlkey].startup();return this.menus[controlkey];};vB_Popup_Handler.prototype.hide=function()
{if(this.activemenu!=null)
{this.menus[this.activemenu].hide();}};var vBmenu=new vB_Popup_Handler();function vbmenu_hide(e)
{if(e&&e.button&&e.button!=1&&e.type=='click')
{return true;}
else
{vBmenu.hide();}};function vB_Popup_Menu(controlkey,noimage,noslide)
{this.controlkey=controlkey;this.noimage=noimage;this.noslide=noslide;this.menuname=this.controlkey.split('.')[0]+'_menu';this.imgsrc=IMGDIR_MISC+'/menu_open.gif';};vB_Popup_Menu.prototype.startup=function()
{this.init_control(this.noimage);if(fetch_object(this.menuname))
{this.init_menu();}
this.slide_open=(this.noslide?false:true);this.open_steps=vBmenu.open_steps;vBulletin.add_event("vBmenuShow_"+this.controlkey);vBulletin.add_event("vBmenuHide_"+this.controlkey);}
vB_Popup_Menu.prototype.init_control=function(noimage)
{this.controlobj=fetch_object(this.controlkey);this.controlobj.state=false;if(this.controlobj.firstChild&&(this.controlobj.firstChild.tagName=='TEXTAREA'||this.controlobj.firstChild.tagName=='INPUT'))
{}
else
{if(!noimage&&!(is_mac&&is_ie))
{var space=document.createTextNode(' ');this.controlobj.appendChild(space);var img=document.createElement('img');img.src=this.imgsrc;img.border=0;img.title='';img.alt='';this.img=this.controlobj.appendChild(img);}
this.controlobj.unselectable=true;if(!noimage)
{this.controlobj.style.cursor=pointer_cursor;}
this.controlobj.onclick=vB_Popup_Events.prototype.controlobj_onclick;this.controlobj.onmouseover=vB_Popup_Events.prototype.controlobj_onmouseover;}};vB_Popup_Menu.prototype.init_menu=function()
{this.menuobj=fetch_object(this.menuname);this.select_handler=new vB_Select_Overlay_Handler(this.menuobj);if(this.menuobj&&!this.menuobj.initialized)
{this.menuobj.initialized=true;this.menuobj.onclick=e_by_gum;this.menuobj.style.position='absolute';this.menuobj.style.zIndex=50;if(is_ie&&!is_mac)
{if(YAHOO.env.ua.ie<7)
{this.menuobj.style.filter+="alpha(enabled=1,opacity=100)";}
else
{this.menuobj.style.minHeight='1%';}}
this.init_menu_contents();}};vB_Popup_Menu.prototype.init_menu_contents=function()
{var tags=new Array("td","li");for(var j=0;j<tags.length;j++)
{var blocks=fetch_tags(this.menuobj,tags[j]);for(var i=0;i<blocks.length;i++)
{if(blocks[i].className=='vbmenu_option')
{if(blocks[i].title&&blocks[i].title=='nohilite')
{blocks[i].title='';}
else
{blocks[i].controlkey=this.controlkey;blocks[i].onmouseover=vB_Popup_Events.prototype.menuoption_onmouseover;blocks[i].onmouseout=vB_Popup_Events.prototype.menuoption_onmouseout;var links=fetch_tags(blocks[i],'a');if(links.length==1)
{blocks[i].className=blocks[i].className+' vbmenu_option_alink';blocks[i].islink=true;var linkobj=links[0];var remove_link=false;blocks[i].target=linkobj.getAttribute('target');if(typeof linkobj.onclick=='function')
{blocks[i].ofunc=linkobj.onclick;blocks[i].onclick=vB_Popup_Events.prototype.menuoption_onclick_function;remove_link=true;}
else if(typeof blocks[i].onclick=='function')
{blocks[i].ofunc=blocks[i].onclick;blocks[i].onclick=vB_Popup_Events.prototype.menuoption_onclick_function;remove_link=true;}
else
{blocks[i].href=linkobj.href;blocks[i].onclick=vB_Popup_Events.prototype.menuoption_onclick_link;}
if(remove_link)
{var newlink=document.createElement('a');newlink.innerHTML=linkobj.innerHTML;newlink.href='#';newlink.onclick=function(e){e=e?e:window.event;e.returnValue=false;return false;};blocks[i].insertBefore(newlink,linkobj);blocks[i].removeChild(linkobj);}}
else if(typeof blocks[i].onclick=='function')
{blocks[i].ofunc=blocks[i].onclick;blocks[i].onclick=vB_Popup_Events.prototype.menuoption_onclick_function;}}}
if(blocks[i].title=="nohilite")
{blocks[i].title='';}}}};vB_Popup_Menu.prototype.show=function(obj,instant)
{if(!vBmenu.active)
{return false;}
else if(!this.menuobj)
{this.init_menu();}
if(!this.menuobj||vBmenu.activemenu==this.controlkey)
{return false;}
console.log("vBmenu :: Show '%s'",this.controlkey);if(vBmenu.activemenu!=null&&vBmenu.activemenu!=this.controlkey)
{vBmenu.menus[vBmenu.activemenu].hide();}
vBmenu.activemenu=this.controlkey;this.menuobj.style.display='';if(this.slide_open)
{this.menuobj.style.clip='rect(auto, 0px, 0px, auto)';}
this.set_menu_position(obj);if(!instant&&this.slide_open)
{this.intervalX=Math.ceil(this.menuobj.offsetWidth/this.open_steps);this.intervalY=Math.ceil(this.menuobj.offsetHeight/this.open_steps);this.slide((this.direction=='left'?0:this.menuobj.offsetWidth),0,0);}
else if(this.menuobj.style.clip&&this.slide_open)
{this.menuobj.style.clip='rect(auto, auto, auto, auto)';}
this.select_handler.hide();if(this.controlobj.editorid)
{this.controlobj.state=true;vB_Editor[this.controlobj.editorid].menu_context(this.controlobj,'mousedown');}
vBulletin.events["vBmenuShow_"+this.controlkey].fire(this.controlkey);vBulletin.events.vBmenuShow.fire(this.controlkey);};vB_Popup_Menu.prototype.set_menu_position=function(obj)
{this.pos=this.fetch_offset(obj);this.leftpx=this.pos['left'];this.toppx=this.pos['top']+obj.offsetHeight;if((this.leftpx+this.menuobj.offsetWidth)>=document.body.clientWidth&&(this.leftpx+obj.offsetWidth-this.menuobj.offsetWidth)>0)
{this.leftpx=this.leftpx+obj.offsetWidth-this.menuobj.offsetWidth;this.direction='right';}
else
{this.direction='left'}
if(this.controlkey.match(/^pagenav\.\d+$/))
{obj.appendChild(this.menuobj);}
this.menuobj.style.left=this.leftpx+'px';this.menuobj.style.top=this.toppx+'px';};vB_Popup_Menu.prototype.hide=function(e)
{if(e&&e.button&&e.button!=1)
{return true;}
console.log("vBmenu :: Hide '%s'",this.controlkey);this.stop_slide();this.menuobj.style.display='none';this.select_handler.show();if(this.controlobj.editorid)
{this.controlobj.state=false;vB_Editor[this.controlobj.editorid].menu_context(this.controlobj,'mouseout');}
vBmenu.activemenu=null;vBulletin.events["vBmenuHide_"+this.controlkey].fire(this.controlkey);vBulletin.events.vBmenuHide.fire(this.controlkey);};vB_Popup_Menu.prototype.hover=function(obj)
{if(vBmenu.activemenu!=null)
{if(vBmenu.menus[vBmenu.activemenu].controlkey!=this.id)
{this.show(obj,true);}}};vB_Popup_Menu.prototype.slide=function(clipX,clipY,opacity)
{if(this.direction=='left'&&(clipX<this.menuobj.offsetWidth||clipY<this.menuobj.offsetHeight))
{clipX+=this.intervalX;clipY+=this.intervalY;this.menuobj.style.clip="rect(auto, "+clipX+"px, "+clipY+"px, auto)";this.slidetimer=setTimeout("vBmenu.menus[vBmenu.activemenu].slide("+clipX+", "+clipY+", "+opacity+");",0);}
else if(this.direction=='right'&&(clipX>0||clipY<this.menuobj.offsetHeight))
{clipX-=this.intervalX;clipY+=this.intervalY;this.menuobj.style.clip="rect(auto, "+this.menuobj.offsetWidth+"px, "+clipY+"px, "+clipX+"px)";this.slidetimer=setTimeout("vBmenu.menus[vBmenu.activemenu].slide("+clipX+", "+clipY+", "+opacity+");",0);}
else
{this.stop_slide();}};vB_Popup_Menu.prototype.stop_slide=function()
{clearTimeout(this.slidetimer);this.menuobj.style.clip='rect(auto, auto, auto, auto)';};vB_Popup_Menu.prototype.fetch_offset=function(obj)
{if(obj.getBoundingClientRect)
{var rect=obj.getBoundingClientRect();var scrollTop=Math.max(document.documentElement.scrollTop,document.body.scrollTop);var scrollLeft=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft);if(document.documentElement.dir=='rtl')
{scrollLeft=scrollLeft+document.documentElement.clientWidth-document.documentElement.scrollWidth;}
return{'left':rect.left+scrollLeft,'top':rect.top+scrollTop};}
var left_offset=obj.offsetLeft;var top_offset=obj.offsetTop;while((obj=obj.offsetParent)!=null)
{left_offset+=obj.offsetLeft;top_offset+=obj.offsetTop;}
return{'left':left_offset,'top':top_offset};};function vB_Popup_Events()
{};vB_Popup_Events.prototype.controlobj_onclick=function(e)
{if(typeof do_an_e=='function')
{do_an_e(e);if(vBmenu.activemenu==null||vBmenu.menus[vBmenu.activemenu].controlkey!=this.id)
{vBmenu.menus[this.id].show(this);}
else
{vBmenu.menus[this.id].hide();}}};vB_Popup_Events.prototype.controlobj_onmouseover=function(e)
{if(typeof do_an_e=='function')
{do_an_e(e);vBmenu.menus[this.id].hover(this);}};vB_Popup_Events.prototype.menuoption_onclick_function=function(e)
{this.ofunc(e);vBmenu.menus[this.controlkey].hide();};vB_Popup_Events.prototype.menuoption_onclick_link=function(e)
{e=e?e:window.event;e.cancelBubble=true;if(e.stopPropagation)e.stopPropagation();if(e.preventDefault)e.preventDefault();if(e.shiftKey||(this.target!=null&&this.target!=''&&this.target.toLowerCase()!='_self'))
{if(this.target!=null&&this.target.charAt(0)!='_')
{window.open(this.href,this.target);}
else
{window.open(this.href);}}
else
{window.location=this.href;}
vBmenu.menus[this.controlkey].hide();return false;};vB_Popup_Events.prototype.menuoption_onmouseover=function(e)
{this.className='vbmenu_hilite'+(this.islink?' vbmenu_hilite_alink':'');this.style.cursor=pointer_cursor;};vB_Popup_Events.prototype.menuoption_onmouseout=function(e)
{this.className='vbmenu_option'+(this.islink?' vbmenu_option_alink':'');this.style.cursor='default';};;jAsset.registerNamespace('jAsset.UI.starRater');jAsset.UI.starRater=function(rater)
{var data=rater.innerHTML.split(/\s*\/\s*/);rater.innerHTML='';this.myRating=rater.getAttribute('data-myrating')||0;this.othersRating=parseInt(data[0])||0;this.size=parseInt(data[1])||5;this.readOnly=rater.hasClass('readonly');rater.removeClass('jAsset-starRater-die').addClass('jAsset-starRater');if(!this.readOnly)rater.addClass('jAsset-starRater-allowRating');this.parent=rater;var me=this;for(var i=this.size;i>0;i--)
{var star=jAsset.DOM.create('a',{innerHTML:i,className:((i==this.othersRating)?'selected':'')+((i==this.myRating)?' selected-by-me':'')});if(!this.readOnly)star.href='#';if(!this.readOnly)star.bind('click',function(evt){evt.preventDefault();this.fire('jAsset:starRater:voted',{widget:me,rating:parseInt(this.innerHTML)});});star=star.insert(this.parent);}
this.parent.insert(rater,'after');var width=star.getCurrent('width',true);width+=star.getCurrent('margin-left',true)+star.getCurrent('margin-right',true)||0;this.parent.style.width=width*this.size+'px';this.setRating=function(rating)
{rating=jAsset.constrain(0,parseInt(rating),this.size);jAsset.CSS.removeClass(me.parent.getChildren(),'selected');me.parent.getChildren()[this.size-rating].addClass('selected');}
this.setMyRating=function(rating)
{rating=jAsset.constrain(0,parseInt(rating),this.size)
jAsset.CSS.removeClass(me.parent.getChildren(),'selected-by-me');me.parent.getChildren()[this.size-rating].addClass('selected-by-me');}
this.clearRating=this.setRating.curry([0]);this.clearMyRating=this.setMyRating.curry([0]);};jAsset.event.ready(function(){jAsset.getByClass('jAsset-starRater-die').forEach(function(rater){new jAsset.UI.starRater(rater);});});;var removeNode=jAsset.DOM.destroy;var getExceptionDetails=jAsset.debug.getObjectProperties;var getSelectedValue=getElementValue=jAsset.forms.getValue;var getFormQueryString=jAsset.forms.getQueryString;var getInnerHeight=jAsset.BOM.getInnerHeight;var getInnerWidth=jAsset.BOM.getInnerWidth;var Range=jAsset.util.range;var addLoadEvent=jAsset.event.bind.curry([window,'load']);jAsset.event.ready(function()
{jAsset.event.bind('.pagenav input[type="image"]','click',goToOtherPageByButton);jAsset.event.bind('.pagenav input[type="text"]','keydown',goToOtherPageByText);function goToOtherPage(whichPage,ulElem)
{var lis=jAsset.DOM.getChildren(ulElem);var pageURL,whereToGo;for(var i=0;i<lis.length;i++)
{if(!lis[i].hasClass('selected'))
{pageURL=DOM.getFirstChild(lis[i]);break;}}
if(pageURL&&pageURL.nodeName.equalsIgnoreCase('a')){pageURL=new jAsset.URI(pageURL.href);pageURL.addParameter('page',whichPage);location.href=pageURL.toString();}
return false;}
function goToOtherPageByButton(evt)
{evt.preventDefault();var whichPageInput=jAsset.DOM.getSibling(this,true).getElementsByTagName('input')[0];return goToOtherPage(whichPageInput.value,this.parentNode.parentNode.parentNode);}
function goToOtherPageByText(evt)
{if(evt.keyCode==13){evt.preventDefault();return goToOtherPage(this.value,this.parentNode.parentNode.parentNode.parentNode);}}});function getSelectedOption(selectObj)
{return selectObj.options[selectObj.selectedIndex].innerHTML;}
function showIf(condition,toggleObj)
{var func=(condition)?'hide':'show';$$(arguments)[func]();return condition;}
jAsset.event.ready(function(){$$('form[ajax], div[ajax]').forEach(function(form){new AjaxForm(form);});jAsset.util.preload('blank.gif');});var AjaxForm=function(formObj,callback){var me=this;this.submit=function(evt){var progressImg=jAsset.DOM.create('img',{src:'blank.gif',alt:jAsset.ajax.options.progressText,width:this.offsetWidth,height:this.offsetHeight,className:this.className,style:{background:'url(images/misc/progress.gif) center no-repeat'}}).insert(this,'before');this.hide();var method=me.post?'post':'get';var action=me.form.getAttribute('action')+(me.post?'':'ajax=1&'+jAsset.forms.serialize(me.form));var postData=me.post?'ajax=1&'+jAsset.forms.serialize(me.form):null;jAsset.ajax.connect(action,function(ajax){hideProgressImg();me.callback(ajax,me.form);},{onerror:function(){hideProgressImg();if(me.form.submit){me.form.submit();}},method:method,postData:postData});var buttonClicked=this;function hideProgressImg(){progressImg.dispose();buttonClicked.style.display='';}
evt.preventDefault();}
this.form=formObj;if(!this.form){throw Error('Attempt to create a new AjaxForm instance with a null object reference.');}
this.callback=callback||window[this.form.getAttribute('ajax')];if(!jAsset.util.isFunction(this.callback)){throw Error('Attempt to create a new AjaxForm instance without a valid callback');}
this.post=(this.form.getAttribute('method')||'get').toLowerCase()=='post';this.form.get('input[type=submit], button[type=submit]').bind('click',this.submit);};jAsset.ajax.options.progressImage='images/misc/progress.gif';jAsset.event.ready(function()
{if($('#header_top'))
{jAsset.event.bind('#header_quicksearch_form input, #quicksearch-where',['focus','click'],showSearchOptions);jAsset.event.bind('#chooser li','click',applyClass);jAsset.event.bind('#header_quicksearch_form',"submit",whereToSearch);personalText();var toggleStatusLink=$('#toggleStatus_link');if(toggleStatusLink){toggleStatusLink.bind('click',toggleStatus);}
$$('.reload-posts').bind('click',function(evt){var newPostsURI=new jAsset.URI(location);newPostsURI.addParameter('do',this.id);var me=this;this.addClass('active').parentNode.parentNode.getFirst('ul.latestthreads').load(newPostsURI+'',function(xhr){me.removeClass('active');},{transition:'opacity'});evt.preventDefault();});$$('#reload-active-users').bind('click',function(evt){evt.preventDefault();this.addClass('active');var me=this;jAsset.ajax.connect('ajax.php?do=onlineusers',function(xhr){me.removeClass('active');responseArray=xhr.responseText.split("|");$('#ou_totalonline').setContent(responseArray[0]);$('#ou_numberregistered').setContent(responseArray[1]);$('#ou_numberguest').setContent(responseArray[2]);$('#ou_activeusers').setContent(responseArray[3],'opacity');});});}});function showSearchOptions(e)
{e.stopPropagation();$('#quicksearch-where').show();$(document).bind('click',hideSearchOptions);}
function hideSearchOptions(e)
{if(e.target.isAncestor('#header_quicksearch_form'))return;$('#quicksearch-where').hide();}
function applyClass(evt)
{whichClass=(jAsset.util.isString(evt))?evt:evt.target.id.substr(3);document.body.parentNode.className=whichClass;$$('#chooser li').forEach(function(color){color.className=color.id!=('ch_'+whichClass)?'':'chooser_selected';});$$('img.changecolor, input.changecolor').forEach(function(img){img.src=img.src.replace(/_(blue|orange|green|purple|black)/,"_"+whichClass);});jAsset.cookie.set('themecolor',whichClass,new Date());jAsset.cookie.set('themecolor',whichClass,'1y',null,'.e-steki.gr');}
function personalText()
{personalText.textObj=$("#personal_text");if(!personalText.textObj)return;personalText.defaultValue=personalText.textObj.value||'';personalText.currentValue=personalText.defaultValue;personalText.textObj.bind("focus",personalText.edit).bind(['blur','change','keyup'],personalText.save);}
personalText.edit=function()
{if(personalText.textObj.value){personalText.textObj.select();}
personalText.textObj.className='focused';personalText.textObj.parentNode.addClass('filled');}
personalText.save=function(evt)
{if(!evt.keyCode||evt.keyCode==13)
{if(!personalText.textObj.value){personalText.textObj.parentNode.removeClass('filled');}
if(personalText.textObj.value!=personalText.currentValue)
{personalText.textObj.unbind(['blur','change','keyup'],personalText.save);YAHOO.util.Connect.asyncRequest('GET','//'+location.hostname+'/ajax.php?do=personaltext&text='+PHP.urlencode(personalText.textObj.value),{success:function(ajax){if(ajax.responseText)
{if(ajax.responseText.indexOf('0|')==0&&ajax.responseText.length>2)
{personalText.currentValue=personalText.textObj.value=PHP.unhtmlspecialchars(ajax.responseText.split('|')[1]);}
else if(ajax.responseText.indexOf('1|')==0)
{alert(ajax.responseText.split('|')[1]);}}
personalText.textObj.bind(['blur','change','keyup'],personalText.save);},failure:function(){personalText.textObj.bind(['blur','change','keyup'],personalText.save);}});}
if(!personalText.textObj.value)
{personalText.textObj.value='';}
personalText.textObj.className='unfocused';try{personalText.textObj.blur();}catch(e){}}}
function postToggleInfo(buttonimg)
{var whichPost=buttonimg;while(!whichPost.hasClass("postbit"))whichPost=whichPost.parentNode;var author=/\bauthor[0-9]+\b/.exec(whichPost.className).toString().trim();var allItsPosts=$$('div.'+author);var toHide=!whichPost.hasClass('hideinfo');allItsPosts.iterate(function(post){var newClass=(toHide)?'hideinfo':'showinfo';var newSrc=(toHide)?'showinfo.gif':'hideinfo.gif';post.className=whichPost.className.replace(/(showinfo|hideinfo)/,newClass);post.get('img[src$=info.gif]').forEach(function(child)
{child.src=child.src.replace(/(showinfo|hideinfo)\.gif/,newSrc);});});if(toHide)jAsset.cookie.partial.set('hidepostinfo',author.substr(6),'','1y',null,null,null,',','');else jAsset.cookie.partial.remove('hidepostinfo',author.substr(6),'1y',null,null,null,',','');}
function whereToSearch(evt)
{var formObj=$("#header_quicksearch_form"),searchActions={'googlesearch':{action:'/googlesearch.php',method:'get',create:{'cx':'partner-pub-9237140838110610:6vylf9-22vx','cof':'FORID:9','ie':'UTF-8','q':formObj.query.value}},'section':{action:'/googlesearch.php?scope=section',method:'get',create:{'cx':formObj['cx-section'].value,'cof':'FORID:9','ie':'UTF-8','q':formObj.query.value}},'thisthread':{action:'/search.php?do=process',method:'post',create:{'do':'process'}},'thisforum':{action:'/search.php?do=process',method:'post',create:{'titleonly':1,'childforums':1,'do':'process'}},'allforums':{action:'/search.php?do=process',method:'post',create:{'titleonly':1,'childforums':1,'do':'process'}},'faq':{action:'/faq.php',method:'get',create:{'q':formObj.query.value,'do':'search'}},'memberlist':{action:'/memberlist.php?do=getall',method:'post',create:{'exactname':1,'ausername':formObj.query.value,'do':'getall'}},'pms':{action:'/private.php?pmsearch=1',method:'post',create:{'folders':-2,'toby':2,'pmquery':formObj.query.value}}};for(var radios=formObj.header_quicksearch,i=radios.length-1;i>=0;i--){if(radios[i].checked){var action=radios[i].value;if(!(action in searchActions)){break;}
formObj.action=searchActions[action].action;formObj.method=searchActions[action].method;if(searchActions[action].create){for(var name in searchActions[action].create){jAsset.DOM.create('input',{type:'hidden',name:name,value:searchActions[action].create[name]}).insert(formObj);}}}}
if(formObj.method=='get'){jAsset.DOM.destroy(formObj.securitytoken);}
if(!action){evt.preventDefault();return false;}
switch(action){case'allforums':formObj['forumchoice[]'].value='';case'thisforum':formObj.searchthreadid.value='';}
formObj.submit();return true;}
function toggleStatus()
{vBmenu.hide();YAHOO.util.Connect.asyncRequest('GET','//'+location.hostname+'/ajax.php?do=togglestatus',{success:function(ajax){var response=ajax.responseText.split('|');if(response.length<2)return false;if(response[0]=="0")
{if(response[1]=="0")
{$('#header_avatar').className='';$('#toggleStatus_link').firstChild.nodeValue=vbphrase['invisible'];}
else
{$('#header_avatar').className='transparent50';$('#toggleStatus_link').firstChild.nodeValue=vbphrase['online'];}}
else
{alert(response[1]);return false;}},failure:function(){}});};tooltip={name:"qTip",offsetX:-30,offsetY:25,tip:null,init:function(){},timeout:0}
jAsset.event.ready(function(){if(!tooltip.tip){tooltip.tip=jAsset.DOM.create('div',{id:tooltip.name}).insert();}
$(document).bind('mousemove',function(evt)
{clearTimeout(tooltip.timeout);if(tooltip.tip.style.display=='block'){tooltip.tip.style.display='none';}
var target=evt.target;while(target&&!(target.title||target.tiptitle)){target=target.parentNode;}
if(target&&target!=document&&jAsset.util.isString(target.title||target.tiptitle)){if(target.title){target.tiptitle=target.title;target.title='';}
tooltip.timeout=setTimeout(function(){var x=evt.pageX||0,y=evt.pageY||0;tooltip.tip.style.left=(x+tooltip.offsetX)+"px";tooltip.tip.style.top=(y+tooltip.offsetY)+"px";tooltip.tip.innerHTML=target.tiptitle;tooltip.tip.style.display='block';},500);}})});;jAsset.UI=jAsset.registerNamespace('jAsset.UI');jAsset.UI.dialog={fixedWidth:590,nodes:{},init:function(reInit){var elements=jAsset.event.bind('*[href][rel=popup]','click',jAsset.UI.dialog.show);if(!elements.length){return;}
if(reInit!==false){jAsset.event.bind(window,"resize",function(evt){if(jAsset.UI.dialog.open&&!jAsset.UI.dialog.minimized){jAsset.UI.dialog.applyDimensions();}});jAsset.UI.dialog.maxHeight=Math.max(0,jAsset.BOM.getInnerHeight()-120);jAsset.UI.dialog.isExternal=true;jAsset.UI.dialog.open=false;}},reInit:function(){jAsset.UI.dialog.init(true);},create:function(){var nodes=jAsset.UI.dialog.nodes;nodes.waitingDiv=jAsset.DOM.create('div',{className:'waiting',style:{display:'none'},innerHTML:jAsset.ajax.options.progressText}).insert();nodes.container=jAsset.DOM.create('div',{className:'dialog_window',style:{display:'none',marginTop:'-28px',marginLeft:0},id:'fiDialog_dialog'}).insert();nodes.title=jAsset.DOM.create('h1').insert(nodes.container);nodes.closeButton=jAsset.DOM.create('a',{href:'#',className:"close_button",innerHTML:'&times;'}).insert(nodes.title).bind('click',jAsset.UI.dialog.hide);nodes.minButton=jAsset.DOM.create('a',{href:'#',className:"minimize_button",innerHTML:'&plusmn;'}).insert(nodes.title).bind('click',jAsset.UI.dialog.minimize);nodes.title.appendChild(jAsset.DOM.createText(' '));nodes.content=jAsset.DOM.create('div',{className:"dialog_content",id:"fiDialog_dialogcontent",style:{height:0,width:0}}).insert(nodes.container);nodes.iframe=jAsset.DOM.create('iframe',{name:"fiDialog_frame",id:"fiDialog_frame",src:'',frameBorder:0});nodes.overlay=jAsset.DOM.create('div',{id:'overlay'});},show:function(evt){evt.preventDefault();var nodes=jAsset.UI.dialog.nodes;if(!nodes.waitingDiv){jAsset.UI.dialog.create();}
nodes.waitingDiv.show();jAsset.UI.dialog.location=new jAsset.URI(this.getAttribute('href'));jAsset.attach(jAsset.UI.dialog,{sourceLink:this,desiredWidth:this.getAttribute('data-popupwidth')<<0||jAsset.UI.dialog.desiredWidth,isImage:/\.(png|jpe?g|gif)($|\?)/.test(jAsset.UI.dialog.location),hasOverlay:this.getAttribute('data-overlay')=='yes'},true);jAsset.UI.dialog.isExternal=!jAsset.UI.dialog.isImage&&!jAsset.UI.dialog.location.isHash();if(jAsset.UI.dialog.hasOverlay){if(!nodes.overlay.parentNode){nodes.overlay=document.body.appendChild(nodes.overlay);}
nodes.overlay.show();}
jAsset.UI.dialog.finalize(false);if(jAsset.UI.dialog.isImage){nodes.img=new Image();jAsset.attach(jAsset.UI.dialog.nodes.img,{onload:function(){jAsset.UI.dialog.animate();},onclick:function(){window.open(this.src);},src:jAsset.UI.dialog.location},true);}
else if(jAsset.UI.dialog.isExternal){nodes.iframe.id=nodes.iframe.name=this.getAttribute('target')||nodes.iframe.name;nodes.iframe.insert(nodes.content);nodes.iframe.src=jAsset.UI.dialog.location.addParameter('popup',true);nodes.iframe.onload=nodes.iframe.onreadystatechange=function(){if(!nodes.iframe.src||(nodes.iframe.readyState&&!/complete/i.test(nodes.iframe.readyState))){return;}
jAsset.UI.dialog.animate();};}
else{var frameElement=$('#'+jAsset.UI.dialog.location.hash);if(frameElement){frameElement.insert(nodes.content);jAsset.UI.dialog.animate();}}},getContentDimensions:function(){var nodes=jAsset.UI.dialog.nodes,desiredHeight,desiredWidth=jAsset.UI.dialog.desiredWidth||jAsset.UI.dialog.fixedWidth,body=jAsset.UI.dialog.getBody();jAsset.UI.dialog.maxHeight=Math.max(0,jAsset.BOM.getInnerHeight()-120);jAsset.UI.dialog.maxWidth=Math.max(0,jAsset.BOM.getInnerWidth()-120);if(jAsset.UI.dialog.isImage){var img=nodes.img,imgRatio=img.width/img.height,viewportRatio=jAsset.UI.dialog.maxWidth/jAsset.UI.dialog.maxHeight;if(viewportRatio>imgRatio){desiredHeight=jAsset.UI.dialog.maxHeight;desiredWidth=desiredHeight*imgRatio;}
else{desiredWidth=jAsset.UI.dialog.maxWidth;desiredHeight=desiredWidth/imgRatio;}
if(desiredWidth<img.width||desiredHeight<img.height){img.width=desiredWidth;img.height=desiredHeight;}}
else{jAsset.UI.dialog.desiredWidth=Math.min(jAsset.UI.dialog.fixedWidth,jAsset.UI.dialog.maxWidth);nodes.container.swapStyle({display:'block'},function(){nodes.content.swapStyle({width:jAsset.UI.dialog.desiredWidth},function(){if(jAsset.UI.dialog.isExternal){nodes.iframe.swapStyle({position:'absolute',width:jAsset.UI.dialog.desiredWidth-20+'px'},function(){desiredHeight=Math.max((body.parentNode||{}).offsetHeight,body.offsetHeight);});}
else{desiredHeight=jAsset.CSS.getStyle(nodes.content.firstChild,'height',true);}});});}
return{height:desiredHeight,width:desiredWidth};},calculateDimensions:function(){var contentDimensions=jAsset.UI.dialog.getContentDimensions();jAsset.UI.dialog.desiredHeight=Math.min(contentDimensions.height,jAsset.UI.dialog.maxHeight);jAsset.UI.dialog.desiredWidth=contentDimensions.width;},applyDimensions:function(){var nodes=jAsset.UI.dialog.nodes;jAsset.UI.dialog.calculateDimensions();nodes.container.show();nodes.content.setStyle({'width':jAsset.UI.dialog.desiredWidth,'height':jAsset.UI.dialog.desiredHeight});nodes.title.setStyle('width',jAsset.UI.dialog.desiredWidth+20);nodes.container.setStyle({'margin-left':-(jAsset.UI.dialog.desiredWidth+40)/2,'margin-top':-(jAsset.UI.dialog.desiredHeight+nodes.title.offsetHeight+40)/2});},getBody:function(){return jAsset.UI.dialog.isExternal?((jAsset.UI.dialog.nodes.iframe.contentWindow||{}).document||{}).body||null:null;},animate:function(evt){var nodes=jAsset.UI.dialog.nodes;nodes.waitingDiv.hide();if(jAsset.UI.dialog.isImage){nodes.img.insert(nodes.content);}
jAsset.UI.dialog.applyDimensions();if(jAsset.UI.dialog.isExternal){nodes.iframe.show();nodes.title.childNodes[2].nodeValue=nodes.iframe.contentWindow.document.title;jAsset.selector.get('a',nodes.iframe.contentWindow.document).forEach(function(frameLink)
{if(jAsset.selector.matches(frameLink,'a[href][rel=popup]')){frameLink.search+=(frameLink.search?'&':'?')+'popup=true';if(nodes.iframe.contentWindow.jAsset&&nodes.iframe.contentWindow.jAsset.UI&&nodes.iframe.contentWindow.jAsset.UI.dialog){jAsset.event.unbind(frameLink,'click',nodes.iframe.contentWindow.jAsset.UI.dialog.showDialog);}}
else{frameLink.setAttribute('target','_top');}});}
else{nodes.content.firstChild.style.display='';nodes.title.childNodes[2].nodeValue=jAsset.UI.dialog.sourceLink.title||jAsset.UI.dialog.sourceLink.getAttribute('popuptitle')||jAsset.UI.dialog.sourceLink.pathname.match(/\/([^\/]+?)\.[a-z]/i)[1];}
jAsset.UI.dialog.open=true;},hide:function(evt){evt&&evt.preventDefault();jAsset.UI.dialog.open=false;jAsset.UI.dialog.nodes.container.hide();jAsset.UI.dialog.finalize(true);if(jAsset.UI.dialog.hasOverlay){jAsset.UI.dialog.nodes.overlay.style.display='none';}},minimize:function(evt){evt.preventDefault();var nodes=jAsset.UI.dialog.nodes;if(!jAsset.UI.dialog.minimized){jAsset.UI.dialog.minimized=true;nodes.container.addClass('minimized');if(jAsset.UI.dialog.hasOverlay){nodes.overlay.style.display='none';}}
else{jAsset.UI.dialog.minimized=false;nodes.container.removeClass('minimized');jAsset.UI.dialog.applyDimensions();if(jAsset.UI.dialog.hasOverlay){nodes.overlay.style.display='block';}}},finalize:function(isClosed){var nodes=jAsset.UI.dialog.nodes;if(isClosed){nodes.container.clearStyle(['opacity','margin-top','margin-left']);nodes.content.clearStyle(['width','height']);nodes.title.clearStyle('width');}
if(nodes.content.firstChild&&/iframe/i.test(nodes.content.firstChild.nodeName)){nodes.iframe.dispose();}
else if(nodes.content.hasChildNodes()){nodes.content.firstChild.hide().insert();}
nodes.title.childNodes[2].nodeValue=' ';nodes.container.className="dialog_window";}}
var fiDialog=jAsset.UI.dialog;if(top.fiDialog==window.fiDialog){jAsset.event.ready(jAsset.UI.dialog.init);};jAsset.event.ready(function()
{if(is_ie)
{jAsset.event.bind('ul.bitlist li input[type="checkbox"], ul.threadslist li input[type="checkbox"][name^=deletebox]','click',function(){this.style.display=this.checked?'inline':'none';});if(!('XMLHttpRequest'in window))
{jAsset.event.hover('ul.bitlist li, ul.threadslist li',function(){this.getElementsByTagName('input')[0].style.display='inline';},function(){this.getElementsByTagName('input')[0].style.display='none';});}}
if(!is_opera&&!is_saf&&$$('ul.bitlist.horizontal').length>0)
{jAsset.CSS.setStyle('ul.bitlist.horizontal li:even','clear','right');jAsset.CSS.setStyle('ul.bitlist.horizontal li:odd, ul.avatarlist li:nth-child(6n+1)','clear','left');}
$$('.progressbar').forEach(function(elem){elem.style.minHeight=elem.offsetHeight+'px';});fixCapitalized();});function fixCapitalized()
{var trans={'\u03AC':'\u03B1','\u0386':'\u0391','\u03AE':'\u03B7','\u0389':'\u0397','\u03AF':'\u03B9','\u038A':'\u0399','\u03CD':'\u03C5','\u038E':'\u03A5','\u03AD':'\u03B5','\u0388':'\u0395','\u03CC':'\u03BF','\u038C':'\u039F','\u03CE':'\u03C9','\u038F':'\u03A9'},accentedVowels=/\u03AC|\u0386|\u03AE|\u0389|\u03AF|\u038A|\u03CD|\u038E|\u03AD|\u0388|\u03CC|\u038C|\u03CE|\u038F/g;$$("ul.list_inline").forEach(function(elem){elem.innerHTML=elem.innerHTML.replace(accentedVowels,function(v){return trans[v];});});};jAsset.registerNamespace('jAsset.UI');jAsset.UI.slideshow=function(widget)
{var me=this;this.navigate=function(slides,evt){me.buttons.hide();if(me.concurrentSlides<me.totalSlides){if(me.loop){if(slides>0){me.slides.slice(0,me.currentSlide).insert(me.slides[me.currentSlide].parentNode);me.widget[me.scrollLeft]=me.currentSlide=0;}
else{me.slides.slice(me.currentSlide+me.concurrentSlides+1).insert(me.slides[me.currentSlide].parentNode,'start');me.currentSlide=me.totalSlides-me.concurrentSlides-1;me.widget[me.scrollLeft]=me.slideWidth*me.currentSlide;}
me.slides=me.widget.get('ul > li');}
else{me.buttons.hide();if((me.currentSlide+me.concurrentSlides+slides>me.totalSlides)||(me.currentSlide+slides<0)){slides=0;}}
if(slides){me.widget.transition({type:me.scrollLeft,isAttribute:true,offset:me.slideWidth*slides,fps:50},me.update);me.currentSlide+=slides;}}
if(evt&&evt.preventDefault){evt.preventDefault();}}
this.next=this.navigate.curry([1]);this.previous=this.navigate.curry([-1]);this.play=function(evt){clearInterval(me.interval);me.interval=setInterval(me.next,me.delay);me.playing=true;}
this.pause=function(evt){clearInterval(me.interval);me.playing=false;me.interval=0;}
this.update=function(){me.widget[me.scrollLeft]=me.currentSlide*me.slideWidth;if(me.totalSlides>me.concurrentSlides){if(!me.loop){me.buttons[0][me.currentSlide?'show':'hide']();me.buttons[1][me.currentSlide+me.concurrentSlides<me.totalSlides?'show':'hide']();}
else{me.buttons.clearStyle('display');}
me.buttons[0].insert(me.slides[me.currentSlide]);me.buttons[1].insert(me.slides[me.currentSlide+me.concurrentSlides-1]);}}
this.widget=widget.setStyle('overflow','hidden');this.vertical=this.widget.hasClass('jAsset-slideshow-vertical');this.loop=this.widget.hasClass('slideshow-loop');this.delay=this.widget.className.match(/(?:^|\s+)slideshow-delay-([0-9]+)(?:$|\s+)/);this.delay=this.delay?parseInt(this.delay[1]):0;var i=this.vertical+0;this.scrollLeft=['scrollLeft','scrollTop'][i];this.left=['left','top'][i];this.right=['right','bottom'][i];this.width=['width','height'][i];this.rarr=['&#x25BA;','&#x25BC;'][i];this.larr=['&#x25C4;','&#x25B2;'][i];this.slides=this.widget.get('ul > li');this.slideWidth=this.slides[0].getStyle(this.width,true);this.totalSlides=this.slides.length;$(this.slides[0].parentNode).setStyle(this.width,this.totalSlides*this.slideWidth);this.concurrentSlides=Math.round(this.widget.getCurrent(this.width,true)/this.slideWidth);this.widget.setStyle(this.width,this.concurrentSlides*this.slideWidth);this.currentSlide=Math.round(this.widget[this.scrollLeft]/this.slideWidth);var maxHeight=0;var slideContents=this.widget.get('div.slide-content');slideContents.forEach(function(div){var height=div.getCurrent('height',true);if(div.offsetWidth!=this.slideWidth){var padding=div.getStyle(['padding-left','padding-right'],true);}
maxHeight=Math.max(height,maxHeight);},this);if(this.concurrentSlides>1&&!this.vertical){slideContents.setStyle('height',maxHeight);}
this.buttons=[];this.buttons[0]=jAsset.DOM.create('a',{innerHTML:this.larr,className:'prevButton',href:'#'}).bind('click',this.previous);this.buttons[1]=jAsset.DOM.create('a',{innerHTML:this.rarr,className:'nextButton',href:'#'}).bind('click',this.next);this.update();if(this.delay){this.play();this.widget.hover(this.pause,this.play);}
jAsset.event.bind(window,'load',this.update);}
jAsset.event.ready(function(){$$('.jAsset-slideshow, .jAsset-slideshow-vertical').forEach(function(widget){new jAsset.UI.slideshow(widget);});});;jAsset.registerNamespace('jAsset.UI');jAsset.UI.Stepper=function(input){var me=this;this.doIncrement=function(evt){if(evt.keyCode&&evt.keyCode!=38&&evt.keyCode!=40||me.input.disabled){return;}
var increase=this.className=='arrow-up'||evt.keyCode==38||evt.wheelDelta>0;var range=new jAsset.util.range(me.min,me.max);var newValue=parseFloat(me.input.value)||Math.max(0,me.min);newValue+=(increase?1:-1)*me.increment;if(range.isWithin(newValue)&&newValue!=me.input.value){me.input.value=newValue;me.input.fire('change');}
evt.preventDefault();}
this.input=input;this.min=parseFloat(this.input.getAttribute('data-minvalue'))||-Infinity;this.max=parseFloat(this.input.getAttribute('data-maxvalue'))||Infinity;this.increment=Math.abs(parseFloat(this.input.getAttribute('data-increment')))||1;this.wrapper=jAsset.DOM.create('span',{className:'jAsset-stepper-wrapper'}).insert(this.input,'wrap');this.input.bind(['keydown','mousewheel'],this.increment);this.upArrow=jAsset.DOM.create('button',{innerHTML:'&#x25B2;',className:'arrow-up',style:{height:this.input.offsetHeight/2+1+'px'}}).bind('click',this.doIncrement).insert(this.wrapper);this.downArrow=jAsset.DOM.create('button',{innerHTML:'&#x25BC;',className:'arrow-down',style:{height:this.input.offsetHeight/2+1+'px'}}).bind('click',this.doIncrement).insert(this.wrapper);}
jAsset.event.ready(function(){$$('input.jAsset-stepper[type=text]').forEach(function(input){new jAsset.UI.Stepper(input);});});
