if(typeof YAHOO=="undefined"||!YAHOO)var YAHOO={};YAHOO.namespace=function(){var a=arguments,b=null,c,d,f;for(c=0;c<a.length;c+=1){f=(""+a[c]).split(".");b=YAHOO;for(d=f[0]=="YAHOO"?1:0;d<f.length;d+=1){b[f[d]]=b[f[d]]||{};b=b[f[d]]}}return b};YAHOO.log=function(a,b,c){var d=YAHOO.widget.Logger;return d&&d.log?d.log(a,b,c):false};
YAHOO.register=function(a,b,c){var d=YAHOO.env.modules,f,g,j;d[a]||(d[a]={versions:[],builds:[]});d=d[a];f=c.version;c=c.build;g=YAHOO.env.listeners;d.name=a;d.version=f;d.build=c;d.versions.push(f);d.builds.push(c);d.mainClass=b;for(j=0;j<g.length;j+=1)g[j](d);if(b){b.VERSION=f;b.BUILD=c}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 a={ie:0,opera:0,gecko:0,webkit:0,mobile:null,air:0,caja:0},b=navigator.userAgent,c;if(/KHTML/.test(b))a.webkit=1;if((c=b.match(/AppleWebKit\/([^\s]*)/))&&c[1]){a.webkit=parseFloat(c[1]);if(/ Mobile\//.test(b))a.mobile="Apple";else if(c=b.match(/NokiaN[^\/]*/))a.mobile=c[0];if(c=b.match(/AdobeAIR\/([^\s]*)/))a.air=c[0]}if(!a.webkit)if((c=b.match(/Opera[\s\/]([^\s]*)/))&&c[1]){a.opera=parseFloat(c[1]);if(c=b.match(/Opera Mini[^;]*/))a.mobile=c[0]}else if((c=b.match(/MSIE\s([^;]*)/))&&
c[1])a.ie=parseFloat(c[1]);else if(c=b.match(/Gecko\/([^\s]*)/)){a.gecko=1;if((c=b.match(/rv:([^\s\)]*)/))&&c[1])a.gecko=parseFloat(c[1])}if((c=b.match(/Caja\/([^\s]*)/))&&c[1])a.caja=parseFloat(c[1]);return a}();(function(){YAHOO.namespace("util","widget","example");if("undefined"!==typeof YAHOO_config){var a=YAHOO_config.listener,b=YAHOO.env.listeners,c=true,d;if(a){for(d=0;d<b.length;d+=1)if(b[d]==a){c=false;break}c&&b.push(a)}}})();YAHOO.lang=YAHOO.lang||{};
(function(){var a=YAHOO.lang,b=Object.prototype,c=["toString","valueOf"],d={isArray:function(f){return b.toString.apply(f)==="[object Array]"},isBoolean:function(f){return typeof f==="boolean"},isFunction:function(f){return b.toString.apply(f)==="[object Function]"},isNull:function(f){return f===null},isNumber:function(f){return typeof f==="number"&&isFinite(f)},isObject:function(f){return f&&(typeof f==="object"||a.isFunction(f))||false},isString:function(f){return typeof f==="string"},isUndefined:function(f){return typeof f===
"undefined"},_IEEnumFix:YAHOO.env.ua.ie?function(f,g){var j,o,q;for(j=0;j<c.length;j+=1){o=c[j];q=g[o];if(a.isFunction(q)&&q!=b[o])f[o]=q}}:function(){},extend:function(f,g,j){if(!g||!f)throw Error("extend failed, please check that all dependencies are included.");var o=function(){},q;o.prototype=g.prototype;f.prototype=new o;f.prototype.constructor=f;f.superclass=g.prototype;if(g.prototype.constructor==b.constructor)g.prototype.constructor=g;if(j){for(q in j)if(a.hasOwnProperty(j,q))f.prototype[q]=
j[q];a._IEEnumFix(f.prototype,j)}},augmentObject:function(f,g){if(!g||!f)throw Error("Absorb failed, verify dependencies.");var j=arguments,o,q=j[2];if(q&&q!==true)for(o=2;o<j.length;o+=1)f[j[o]]=g[j[o]];else{for(o in g)if(q||!(o in f))f[o]=g[o];a._IEEnumFix(f,g)}},augmentProto:function(f,g){if(!g||!f)throw Error("Augment failed, verify dependencies.");var j=[f.prototype,g.prototype],o;for(o=2;o<arguments.length;o+=1)j.push(arguments[o]);a.augmentObject.apply(this,j)},dump:function(f,g){var j,o,q=
[];if(a.isObject(f))if(f instanceof Date||"nodeType"in f&&"tagName"in f)return f;else{if(a.isFunction(f))return"f(){...}"}else return f+"";g=a.isNumber(g)?g:3;if(a.isArray(f)){q.push("[");j=0;for(o=f.length;j<o;j+=1){a.isObject(f[j])?q.push(g>0?a.dump(f[j],g-1):"{...}"):q.push(f[j]);q.push(", ")}q.length>1&&q.pop();q.push("]")}else{q.push("{");for(j in f)if(a.hasOwnProperty(f,j)){q.push(j+" => ");a.isObject(f[j])?q.push(g>0?a.dump(f[j],g-1):"{...}"):q.push(f[j]);q.push(", ")}q.length>1&&q.pop();q.push("}")}return q.join("")},
substitute:function(f,g,j){for(var o,q,s,t,w,k=[],m;;){o=f.lastIndexOf("{");if(o<0)break;q=f.indexOf("}",o);if(o+1>=q)break;t=m=f.substring(o+1,q);w=null;s=t.indexOf(" ");if(s>-1){w=t.substring(s+1);t=t.substring(0,s)}s=g[t];if(j)s=j(t,s,w);if(a.isObject(s))if(a.isArray(s))s=a.dump(s,parseInt(w,10));else{w=w||"";t=w.indexOf("dump");if(t>-1)w=w.substring(4);s=s.toString===b.toString||t>-1?a.dump(s,parseInt(w,10)):s.toString()}else if(!a.isString(s)&&!a.isNumber(s)){s="~-"+k.length+"-~";k[k.length]=
m}f=f.substring(0,o)+s+f.substring(q+1)}for(o=k.length-1;o>=0;o-=1)f=f.replace(RegExp("~-"+o+"-~"),"{"+k[o]+"}","g");return f},trim:function(f){try{return f.replace(/^\s+|\s+$/g,"")}catch(g){return f}},merge:function(){var f={},g=arguments,j=g.length,o;for(o=0;o<j;o+=1)a.augmentObject(f,g[o],true);return f},later:function(f,g,j,o,q){f=f||0;g=g||{};var s=j,t=o,w;if(a.isString(j))s=g[j];if(!s)throw new TypeError("method undefined");a.isArray(t)||(t=[o]);j=function(){s.apply(g,t)};w=q?setInterval(j,
f):setTimeout(j,f);return{interval:q,cancel:function(){this.interval?clearInterval(w):clearTimeout(w)}}},isValue:function(f){return a.isObject(f)||a.isString(f)||a.isNumber(f)||a.isBoolean(f)}};a.hasOwnProperty=b.hasOwnProperty?function(f,g){return f&&f.hasOwnProperty(g)}:function(f,g){return!a.isUndefined(f[g])&&f.constructor.prototype[g]!==f[g]};d.augmentObject(a,d,true);YAHOO.util.Lang=a;a.augment=a.augmentProto;YAHOO.augment=a.augmentProto;YAHOO.extend=a.extend})();
YAHOO.register("yahoo",YAHOO,{version:"2.7.0",build:"1796"});
(function(){YAHOO.env._id_counter=YAHOO.env._id_counter||0;var a=YAHOO.util,b=YAHOO.lang,c=YAHOO.env.ua,d=YAHOO.lang.trim,f={},g={},j=/^t(?:able|d|h)$/i,o=/color$/i,q=window.document,s=q.documentElement,t=c.opera,w=c.webkit,k=c.gecko,m=c.ie;a.Dom={CUSTOM_ATTRIBUTES:!s.hasAttribute?{"for":"htmlFor","class":"className"}:{htmlFor:"for",className:"class"},get:function(e){var h,l,n,p;if(e){if(e.nodeType||e.item)return e;if(typeof e==="string"){h=e;if((e=q.getElementById(e))&&e.id===h)return e;else if(e&&
q.all){e=null;l=q.all[h];n=0;for(p=l.length;n<p;++n)if(l[n].id===h)return l[n]}return e}if(e.DOM_EVENTS)e=e.get("element");if("length"in e){h=[];n=0;for(p=e.length;n<p;++n)h[h.length]=a.Dom.get(e[n]);return h}return e}return null},getComputedStyle:function(e,h){if(window.getComputedStyle)return e.ownerDocument.defaultView.getComputedStyle(e,null)[h];else if(e.currentStyle)return a.Dom.IE_ComputedStyle.get(e,h)},getStyle:function(e,h){return a.Dom.batch(e,a.Dom._getStyle,h)},_getStyle:function(){if(window.getComputedStyle)return function(e,
h){h=h==="float"?h="cssFloat":a.Dom._toCamel(h);var l=e.style[h],n;if(!l)if(n=e.ownerDocument.defaultView.getComputedStyle(e,null))l=n[h];return l};else if(s.currentStyle)return function(e,h){var l;switch(h){case "opacity":l=100;try{l=e.filters["DXImageTransform.Microsoft.Alpha"].opacity}catch(n){try{l=e.filters("alpha").opacity}catch(p){}}return l/100;case "float":h="styleFloat";default:h=a.Dom._toCamel(h);l=e.currentStyle?e.currentStyle[h]:null;return e.style[h]||l}}}(),setStyle:function(e,h,l){a.Dom.batch(e,
a.Dom._setStyle,{prop:h,val:l})},_setStyle:function(){return m?function(e,h){var l=a.Dom._toCamel(h.prop),n=h.val;if(e)switch(l){case "opacity":if(b.isString(e.style.filter)){e.style.filter="alpha(opacity="+n*100+")";if(!e.currentStyle||!e.currentStyle.hasLayout)e.style.zoom=1}break;case "float":l="styleFloat";default:e.style[l]=n}}:function(e,h){var l=a.Dom._toCamel(h.prop),n=h.val;if(e){if(l=="float")l="cssFloat";e.style[l]=n}}}(),getXY:function(e){return a.Dom.batch(e,a.Dom._getXY)},_canPosition:function(e){return a.Dom._getStyle(e,
"display")!=="none"&&a.Dom._inDoc(e)},_getXY:function(){return q.documentElement.getBoundingClientRect?function(e){var h,l,n,p,v,u,x,y=Math.floor;l=false;if(a.Dom._canPosition(e)){l=e.getBoundingClientRect();n=e.ownerDocument;e=a.Dom.getDocumentScrollLeft(n);h=a.Dom.getDocumentScrollTop(n);l=[y(l.left),y(l.top)];if(m&&c.ie<8){v=p=2;u=n.compatMode;x=r(n.documentElement,"borderLeftWidth");n=r(n.documentElement,"borderTopWidth");if(c.ie===6)if(u!=="BackCompat")v=p=0;if(u=="BackCompat"){if(x!=="medium")p=
parseInt(x,10);if(n!=="medium")v=parseInt(n,10)}l[0]-=p;l[1]-=v}if(h||e){l[0]+=e;l[1]+=h}l[0]=y(l[0]);l[1]=y(l[1])}return l}:function(e){var h,l,n,p=false,v=e;if(a.Dom._canPosition(e)){p=[e.offsetLeft,e.offsetTop];h=a.Dom.getDocumentScrollLeft(e.ownerDocument);l=a.Dom.getDocumentScrollTop(e.ownerDocument);for(n=k||c.webkit>519?true:false;v=v.offsetParent;){p[0]+=v.offsetLeft;p[1]+=v.offsetTop;if(n)p=a.Dom._calcBorders(v,p)}if(a.Dom._getStyle(e,"position")!=="fixed"){for(v=e;(v=v.parentNode)&&v.tagName;){e=
v.scrollTop;n=v.scrollLeft;if(k&&a.Dom._getStyle(v,"overflow")!=="visible")p=a.Dom._calcBorders(v,p);if(e||n){p[0]-=n;p[1]-=e}}p[0]+=h;p[1]+=l}else if(t){p[0]-=h;p[1]-=l}else if(w||k){p[0]+=h;p[1]+=l}p[0]=Math.floor(p[0]);p[1]=Math.floor(p[1])}return p}}(),getX:function(e){return a.Dom.batch(e,function(h){return a.Dom.getXY(h)[0]},a.Dom,true)},getY:function(e){return a.Dom.batch(e,function(h){return a.Dom.getXY(h)[1]},a.Dom,true)},setXY:function(e,h,l){a.Dom.batch(e,a.Dom._setXY,{pos:h,noRetry:l})},
_setXY:function(e,h){var l=a.Dom._getStyle(e,"position"),n=a.Dom.setStyle,p=h.pos,v=h.noRetry,u=[parseInt(a.Dom.getComputedStyle(e,"left"),10),parseInt(a.Dom.getComputedStyle(e,"top"),10)],x;if(l=="static"){l="relative";n(e,"position",l)}x=a.Dom._getXY(e);if(!p||x===false)return false;if(isNaN(u[0]))u[0]=l=="relative"?0:e.offsetLeft;if(isNaN(u[1]))u[1]=l=="relative"?0:e.offsetTop;p[0]!==null&&n(e,"left",p[0]-x[0]+u[0]+"px");p[1]!==null&&n(e,"top",p[1]-x[1]+u[1]+"px");if(!v){l=a.Dom._getXY(e);if(p[0]!==
null&&l[0]!=p[0]||p[1]!==null&&l[1]!=p[1])a.Dom._setXY(e,{pos:p,noRetry:true})}},setX:function(e,h){a.Dom.setXY(e,[h,null])},setY:function(e,h){a.Dom.setXY(e,[null,h])},getRegion:function(e){return a.Dom.batch(e,function(h){var l=false;if(a.Dom._canPosition(h))l=a.Region.getRegion(h);return l},a.Dom,true)},getClientWidth:function(){return a.Dom.getViewportWidth()},getClientHeight:function(){return a.Dom.getViewportHeight()},getElementsByClassName:function(e,h,l,n,p,v){e=b.trim(e);h=h||"*";l=l?a.Dom.get(l):
q;if(!l)return[];var u=[];h=l.getElementsByTagName(h);l=a.Dom.hasClass;for(var x=0,y=h.length;x<y;++x)if(l(h[x],e))u[u.length]=h[x];n&&a.Dom.batch(u,n,p,v);return u},hasClass:function(e,h){return a.Dom.batch(e,a.Dom._hasClass,h)},_hasClass:function(e,h){var l=false;if(e&&h){l=a.Dom.getAttribute(e,"className")||"";l=h.exec?h.test(l):h&&(" "+l+" ").indexOf(" "+h+" ")>-1}return l},addClass:function(e,h){return a.Dom.batch(e,a.Dom._addClass,h)},_addClass:function(e,h){var l=false,n;if(e&&h){n=a.Dom.getAttribute(e,
"className")||"";if(!a.Dom._hasClass(e,h)){a.Dom.setAttribute(e,"className",d(n+" "+h));l=true}}return l},removeClass:function(e,h){return a.Dom.batch(e,a.Dom._removeClass,h)},_removeClass:function(e,h){var l=false,n,p;if(e&&h){n=a.Dom.getAttribute(e,"className")||"";a.Dom.setAttribute(e,"className",n.replace(a.Dom._getClassRegex(h),""));p=a.Dom.getAttribute(e,"className");if(n!==p){a.Dom.setAttribute(e,"className",d(p));l=true;if(a.Dom.getAttribute(e,"className")===""){n=e.hasAttribute&&e.hasAttribute("class")?
"class":"className";e.removeAttribute(n)}}}return l},replaceClass:function(e,h,l){return a.Dom.batch(e,a.Dom._replaceClass,{from:h,to:l})},_replaceClass:function(e,h){var l,n,p=false;if(e&&h){l=h.from;if(n=h.to)if(l){if(l!==n){p=a.Dom.getAttribute(e,"className")||"";l=(" "+p.replace(a.Dom._getClassRegex(l)," "+n)).split(a.Dom._getClassRegex(n));l.splice(1,0," "+n);a.Dom.setAttribute(e,"className",d(l.join("")));p=true}}else p=a.Dom._addClass(e,h.to);else p=false}return p},generateId:function(e,h){h=
h||"yui-gen";var l=function(n){if(n&&n.id)return n.id;var p=h+YAHOO.env._id_counter++;if(n){if(n.ownerDocument.getElementById(p))return a.Dom.generateId(n,p+h);n.id=p}return p};return a.Dom.batch(e,l,a.Dom,true)||l.apply(a.Dom,arguments)},isAncestor:function(e,h){e=a.Dom.get(e);h=a.Dom.get(h);var l=false;if(e&&h&&e.nodeType&&h.nodeType)if(e.contains&&e!==h)l=e.contains(h);else if(e.compareDocumentPosition)l=!!(e.compareDocumentPosition(h)&16);return l},inDocument:function(e,h){return a.Dom._inDoc(a.Dom.get(e),
h)},_inDoc:function(e,h){var l=false;if(e&&e.tagName){h=h||e.ownerDocument;l=a.Dom.isAncestor(h.documentElement,e)}return l},getElementsBy:function(e,h,l,n,p,v,u){h=h||"*";l=l?a.Dom.get(l):q;if(!l)return[];var x=[];h=l.getElementsByTagName(h);l=0;for(var y=h.length;l<y;++l)if(e(h[l]))if(u){x=h[l];break}else x[x.length]=h[l];n&&a.Dom.batch(x,n,p,v);return x},getElementBy:function(e,h,l){return a.Dom.getElementsBy(e,h,l,null,null,null,true)},batch:function(e,h,l,n){var p=[];n=n?l:window;if((e=e&&(e.tagName||
e.item)?e:a.Dom.get(e))&&h){if(e.tagName||e.length===undefined)return h.call(n,e,l);for(var v=0;v<e.length;++v)p[p.length]=h.call(n,e[v],l)}else return false;return p},getDocumentHeight:function(){return Math.max(q.compatMode!="CSS1Compat"||w?q.body.scrollHeight:s.scrollHeight,a.Dom.getViewportHeight())},getDocumentWidth:function(){return Math.max(q.compatMode!="CSS1Compat"||w?q.body.scrollWidth:s.scrollWidth,a.Dom.getViewportWidth())},getViewportHeight:function(){var e=self.innerHeight,h=q.compatMode;
if((h||m)&&!t)e=h=="CSS1Compat"?s.clientHeight:q.body.clientHeight;return e},getViewportWidth:function(){var e=self.innerWidth,h=q.compatMode;if(h||m)e=h=="CSS1Compat"?s.clientWidth:q.body.clientWidth;return e},getAncestorBy:function(e,h){for(;e=e.parentNode;)if(a.Dom._testElement(e,h))return e;return null},getAncestorByClassName:function(e,h){e=a.Dom.get(e);if(!e)return null;return a.Dom.getAncestorBy(e,function(l){return a.Dom.hasClass(l,h)})},getAncestorByTagName:function(e,h){e=a.Dom.get(e);if(!e)return null;
return a.Dom.getAncestorBy(e,function(l){return l.tagName&&l.tagName.toUpperCase()==h.toUpperCase()})},getPreviousSiblingBy:function(e,h){for(;e;){e=e.previousSibling;if(a.Dom._testElement(e,h))return e}return null},getPreviousSibling:function(e){e=a.Dom.get(e);if(!e)return null;return a.Dom.getPreviousSiblingBy(e)},getNextSiblingBy:function(e,h){for(;e;){e=e.nextSibling;if(a.Dom._testElement(e,h))return e}return null},getNextSibling:function(e){e=a.Dom.get(e);if(!e)return null;return a.Dom.getNextSiblingBy(e)},
getFirstChildBy:function(e,h){return(a.Dom._testElement(e.firstChild,h)?e.firstChild:null)||a.Dom.getNextSiblingBy(e.firstChild,h)},getFirstChild:function(e){e=a.Dom.get(e);if(!e)return null;return a.Dom.getFirstChildBy(e)},getLastChildBy:function(e,h){if(!e)return null;return(a.Dom._testElement(e.lastChild,h)?e.lastChild:null)||a.Dom.getPreviousSiblingBy(e.lastChild,h)},getLastChild:function(e){e=a.Dom.get(e);return a.Dom.getLastChildBy(e)},getChildrenBy:function(e,h){var l=a.Dom.getFirstChildBy(e,
h),n=l?[l]:[];a.Dom.getNextSiblingBy(l,function(p){if(!h||h(p))n[n.length]=p;return false});return n},getChildren:function(e){e=a.Dom.get(e);return a.Dom.getChildrenBy(e)},getDocumentScrollLeft:function(e){e=e||q;return Math.max(e.documentElement.scrollLeft,e.body.scrollLeft)},getDocumentScrollTop:function(e){e=e||q;return Math.max(e.documentElement.scrollTop,e.body.scrollTop)},insertBefore:function(e,h){e=a.Dom.get(e);h=a.Dom.get(h);if(!e||!h||!h.parentNode)return null;return h.parentNode.insertBefore(e,
h)},insertAfter:function(e,h){e=a.Dom.get(e);h=a.Dom.get(h);if(!e||!h||!h.parentNode)return null;return h.nextSibling?h.parentNode.insertBefore(e,h.nextSibling):h.parentNode.appendChild(e)},getClientRegion:function(){var e=a.Dom.getDocumentScrollTop(),h=a.Dom.getDocumentScrollLeft(),l=a.Dom.getViewportWidth()+h,n=a.Dom.getViewportHeight()+e;return new a.Region(e,l,n,h)},setAttribute:function(e,h,l){h=a.Dom.CUSTOM_ATTRIBUTES[h]||h;e.setAttribute(h,l)},getAttribute:function(e,h){h=a.Dom.CUSTOM_ATTRIBUTES[h]||
h;return e.getAttribute(h)},_toCamel:function(e){function h(l,n){return n.toUpperCase()}return f[e]||(f[e]=e.indexOf("-")===-1?e:e.replace(/-([a-z])/gi,h))},_getClassRegex:function(e){var h;if(e!==undefined)if(e.exec)h=e;else{h=g[e];if(!h){e=e.replace(a.Dom._patterns.CLASS_RE_TOKENS,"\\$1");h=g[e]=RegExp("(?:^|\\s)"+e+"(?= |$)","g")}}return h},_patterns:{ROOT_TAG:/^body|html$/i,CLASS_RE_TOKENS:/([\.\(\)\^\$\*\+\?\|\[\]\{\}])/g},_testElement:function(e,h){return e&&e.nodeType==1&&(!h||h(e))},_calcBorders:function(e,
h){var l=parseInt(a.Dom.getComputedStyle(e,"borderTopWidth"),10)||0,n=parseInt(a.Dom.getComputedStyle(e,"borderLeftWidth"),10)||0;if(k)if(j.test(e.tagName))n=l=0;h[0]+=n;h[1]+=l;return h}};var r=a.Dom.getComputedStyle;if(c.opera)a.Dom.getComputedStyle=function(e,h){var l=r(e,h);if(o.test(h))l=a.Dom.Color.toRGB(l);return l};if(c.webkit)a.Dom.getComputedStyle=function(e,h){var l=r(e,h);if(l==="rgba(0, 0, 0, 0)")l="transparent";return l}})();
YAHOO.util.Region=function(a,b,c,d){this.y=this.top=a;this[1]=a;this.right=b;this.bottom=c;this.x=this.left=d;this[0]=d;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(a){var b=Math.max(this.top,a.top),c=Math.min(this.right,a.right),d=Math.min(this.bottom,a.bottom);a=Math.max(this.left,a.left);return d>=b&&c>=a?new YAHOO.util.Region(b,c,d,a):null};YAHOO.util.Region.prototype.union=function(a){return new YAHOO.util.Region(Math.min(this.top,a.top),Math.max(this.right,a.right),Math.max(this.bottom,a.bottom),Math.min(this.left,a.left))};
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(a){var b=YAHOO.util.Dom.getXY(a);return new YAHOO.util.Region(b[1],b[0]+a.offsetWidth,b[1]+a.offsetHeight,b[0])};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 a=YAHOO.util,b=/^width|height$/,c=/^(\d[.\d]*)+(em|ex|px|gd|rem|vw|vh|vm|ch|mm|cm|in|pt|pc|deg|rad|ms|s|hz|khz|%){1}?/i,d={get:function(g,j){var o="";o=g.currentStyle[j];return o=j==="opacity"?a.Dom.getStyle(g,"opacity"):!o||o.indexOf&&o.indexOf("px")>-1?o:a.Dom.IE_COMPUTED[j]?a.Dom.IE_COMPUTED[j](g,j):c.test(o)?a.Dom.IE.ComputedStyle.getPixel(g,j):o},getOffset:function(g,j){var o=g.currentStyle[j],q=j.charAt(0).toUpperCase()+j.substr(1),s="offset"+q,t="pixel"+q;q="";if(o=="auto"){q=
o=g[s];if(b.test(j)){g.style[j]=o;if(g[s]>o)q=o-(g[s]-o);g.style[j]="auto"}}else{if(!g.style[t]&&!g.style[j])g.style[j]=o;q=g.style[t]}return q+"px"},getBorderWidth:function(g,j){var o=null;if(!g.currentStyle.hasLayout)g.style.zoom=1;switch(j){case "borderTopWidth":o=g.clientTop;break;case "borderBottomWidth":o=g.offsetHeight-g.clientHeight-g.clientTop;break;case "borderLeftWidth":o=g.clientLeft;break;case "borderRightWidth":o=g.offsetWidth-g.clientWidth-g.clientLeft;break}return o+"px"},getPixel:function(g,
j){var o=null,q=g.currentStyle.right;g.style.right=g.currentStyle[j];o=g.style.pixelRight;g.style.right=q;return o+"px"},getMargin:function(g,j){return g.currentStyle[j]=="auto"?"0px":a.Dom.IE.ComputedStyle.getPixel(g,j)},getVisibility:function(g,j){for(var o;(o=g.currentStyle)&&o[j]=="inherit";)g=g.parentNode;return o?o[j]:"visible"},getColor:function(g,j){return a.Dom.Color.toRGB(g.currentStyle[j])||"transparent"},getBorderColor:function(g,j){var o=g.currentStyle;return a.Dom.Color.toRGB(a.Dom.Color.toHex(o[j]||
o.color))}},f={};f.top=f.right=f.bottom=f.left=f.width=f.height=d.getOffset;f.color=d.getColor;f.borderTopWidth=f.borderRightWidth=f.borderBottomWidth=f.borderLeftWidth=d.getBorderWidth;f.marginTop=f.marginRight=f.marginBottom=f.marginLeft=d.getMargin;f.visibility=d.getVisibility;f.borderColor=f.borderTopColor=f.borderRightColor=f.borderBottomColor=f.borderLeftColor=d.getBorderColor;a.Dom.IE_COMPUTED=f;a.Dom.IE_ComputedStyle=d})();
(function(){var a=parseInt,b=RegExp,c=YAHOO.util;c.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(d){c.Dom.Color.re_RGB.test(d)||(d=c.Dom.Color.toHex(d));if(c.Dom.Color.re_hex.exec(d))d=
"rgb("+[a(b.$1,16),a(b.$2,16),a(b.$3,16)].join(", ")+")";return d},toHex:function(d){d=c.Dom.Color.KEYWORDS[d]||d;if(c.Dom.Color.re_RGB.exec(d)){d=b.$1.length===1?"0"+b.$1:Number(b.$1);var f=b.$2.length===1?"0"+b.$2:Number(b.$2),g=b.$3.length===1?"0"+b.$3:Number(b.$3);d=[d.toString(16),f.toString(16),g.toString(16)].join("")}if(d.length<6)d=d.replace(c.Dom.Color.re_hex3,"$1$1");if(d!=="transparent"&&d.indexOf("#")<0)d="#"+d;return d.toLowerCase()}}})();
YAHOO.register("dom",YAHOO.util.Dom,{version:"2.7.0",build:"1796"});YAHOO.util.CustomEvent=function(a,b,c,d){this.type=a;this.scope=b||window;this.silent=c;this.signature=d||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(a!=="_YUICEOnSubscribe")this.subscribeEvent=new YAHOO.util.CustomEvent("_YUICEOnSubscribe",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 Error("Invalid callback for subscriber to '"+this.type+"'");this.subscribeEvent&&this.subscribeEvent.fire(a,b,c);this.subscribers.push(new YAHOO.util.Subscriber(a,b,c))},unsubscribe:function(a,b){if(!a)return this.unsubscribeAll();for(var c=false,d=0,f=this.subscribers.length;d<f;++d){var g=this.subscribers[d];if(g&&g.contains(a,b)){this._delete(d);c=true}}return c},fire:function(){this.lastError=null;var a=this.subscribers.length;
if(!a&&this.silent)return true;var b=[].slice.call(arguments,0),c=true,d,f=this.subscribers.slice(),g=YAHOO.util.Event.throwErrors;for(d=0;d<a;++d){var j=f[d];if(j){var o=j.getScope(this.scope);if(this.signature==YAHOO.util.CustomEvent.FLAT){var q=null;if(b.length>0)q=b[0];try{c=j.fn.call(o,q,j.obj)}catch(s){this.lastError=s;if(g)throw s;}}else try{c=j.fn.call(o,this.type,b,j.obj)}catch(t){this.lastError=t;if(g)throw t;}if(false===c)break}}return c!==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)return this.overrideContext===true?this.obj:this.overrideContext;return a};YAHOO.util.Subscriber.prototype.contains=function(a,b){return b?this.fn==a&&this.obj==b: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 a=false,b=[],c=[],d=[],f=[],g=0,j=[],o=[],q=0,s={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9},t=YAHOO.env.ua.ie?"focusin":"focus",w=YAHOO.env.ua.ie?"focusout":"blur";return{POLL_RETRYS:2E3,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 k=
this;this._interval=setInterval(function(){k._tryPreloadAttach()},this.POLL_INTERVAL)}},onAvailable:function(k,m,r,e,h){k=YAHOO.lang.isString(k)?[k]:k;for(var l=0;l<k.length;l+=1)j.push({id:k[l],fn:m,obj:r,overrideContext:e,checkReady:h});g=this.POLL_RETRYS;this.startInterval()},onContentReady:function(k,m,r,e){this.onAvailable(k,m,r,e,true)},onDOMReady:function(k,m,r){this.DOMReady?setTimeout(function(){var e=window;if(r)e=r===true?m:r;k.call(e,"DOMReady",[],m)},0):this.DOMReadyEvent.subscribe(k,
m,r)},_addListener:function(k,m,r,e,h,l){if(!r||!r.call)return false;if(this._isValidCollection(k)){l=true;for(var n=0,p=k.length;n<p;++n)l=this.on(k[n],m,r,e,h)&&l;return l}else if(YAHOO.lang.isString(k))if(n=this.getEl(k))k=n;else{this.onAvailable(k,function(){YAHOO.util.Event.on(k,m,r,e,h)});return true}if(!k)return false;if("unload"==m&&e!==this){c[c.length]=[k,m,r,e,h];return true}var v=k;if(h)v=h===true?e:h;n=function(y){return r.call(v,YAHOO.util.Event.getEvent(y,k),e)};p=[k,m,r,n,v,e,h];b[b.length]=
p;if(this.useLegacyEvent(k,m)){var u=this.getLegacyIndex(k,m);if(u==-1||k!=d[u][0]){u=d.length;o[k.id+m]=u;d[u]=[k,m,k["on"+m]];f[u]=[];k["on"+m]=function(y){YAHOO.util.Event.fireLegacyEvent(YAHOO.util.Event.getEvent(y),u)}}f[u].push(p)}else try{this._simpleAdd(k,m,n,l)}catch(x){this.lastError=x;this.removeListener(k,m,r);return false}return true},addListener:function(k,m,r,e,h){return this._addListener(k,m,r,e,h,false)},addFocusListener:function(k,m,r,e){return this._addListener(k,t,m,r,e,true)},
removeFocusListener:function(k,m){return this.removeListener(k,t,m)},addBlurListener:function(k,m,r,e){return this._addListener(k,w,m,r,e,true)},removeBlurListener:function(k,m){return this.removeListener(k,w,m)},fireLegacyEvent:function(k,m){var r=true,e,h,l;e=f[m].slice();for(var n=0,p=e.length;n<p;++n)if((h=e[n])&&h[this.WFN]){l=h[this.ADJ_SCOPE];h=h[this.WFN].call(l,k);r=r&&h}(e=d[m])&&e[2]&&e[2](k);return r},getLegacyIndex:function(k,m){var r=this.generateId(k)+m;return typeof o[r]=="undefined"?
-1:o[r]},useLegacyEvent:function(k,m){return this.webkit&&this.webkit<419&&("click"==m||"dblclick"==m)},removeListener:function(k,m,r,e){var h,l,n;if(typeof k=="string")k=this.getEl(k);else if(this._isValidCollection(k)){e=true;for(h=k.length-1;h>-1;h--)e=this.removeListener(k[h],m,r)&&e;return e}if(!r||!r.call)return this.purgeElement(k,false,m);if("unload"==m){for(h=c.length-1;h>-1;h--)if((n=c[h])&&n[0]==k&&n[1]==m&&n[2]==r){c.splice(h,1);return true}return false}h=null;e=e;if("undefined"===typeof e)e=
this._getCacheIndex(k,m,r);if(e>=0)h=b[e];if(!k||!h)return false;if(this.useLegacyEvent(k,m)){h=this.getLegacyIndex(k,m);var p=f[h];if(p){h=0;for(l=p.length;h<l;++h)if((n=p[h])&&n[this.EL]==k&&n[this.TYPE]==m&&n[this.FN]==r){p.splice(h,1);break}}}else try{this._simpleRemove(k,m,h[this.WFN],false)}catch(v){this.lastError=v;return false}delete b[e][this.WFN];delete b[e][this.FN];b.splice(e,1);return true},getTarget:function(k){return this.resolveTextNode(k.target||k.srcElement)},resolveTextNode:function(k){try{if(k&&
3==k.nodeType)return k.parentNode}catch(m){}return k},getPageX:function(k){var m=k.pageX;if(!m&&0!==m){m=k.clientX||0;if(this.isIE)m+=this._getScrollLeft()}return m},getPageY:function(k){var m=k.pageY;if(!m&&0!==m){m=k.clientY||0;if(this.isIE)m+=this._getScrollTop()}return m},getXY:function(k){return[this.getPageX(k),this.getPageY(k)]},getRelatedTarget:function(k){var m=k.relatedTarget;if(!m)if(k.type=="mouseout")m=k.toElement;else if(k.type=="mouseover")m=k.fromElement;return this.resolveTextNode(m)},
getTime:function(k){if(!k.time){var m=(new Date).getTime();try{k.time=m}catch(r){this.lastError=r;return m}}return k.time},stopEvent:function(k){this.stopPropagation(k);this.preventDefault(k)},stopPropagation:function(k){if(k.stopPropagation)k.stopPropagation();else k.cancelBubble=true},preventDefault:function(k){if(k.preventDefault)k.preventDefault();else k.returnValue=false},getEvent:function(k){k=k||window.event;if(!k)for(var m=this.getEvent.caller;m;){if((k=m.arguments[0])&&Event==k.constructor)break;
m=m.caller}return k},getCharCode:function(k){k=k.keyCode||k.charCode||0;if(YAHOO.env.ua.webkit&&k in s)k=s[k];return k},_getCacheIndex:function(k,m,r){for(var e=0,h=b.length;e<h;e+=1){var l=b[e];if(l&&l[this.FN]==r&&l[this.EL]==k&&l[this.TYPE]==m)return e}return-1},generateId:function(k){var m=k.id;if(!m){m="yuievtautoid-"+q;++q;k.id=m}return m},_isValidCollection:function(k){try{return k&&typeof k!=="string"&&k.length&&!k.tagName&&!k.alert&&typeof k[0]!=="undefined"}catch(m){return false}},elCache:{},
getEl:function(k){return typeof k==="string"?document.getElementById(k):k},clearCache:function(){},DOMReadyEvent:new YAHOO.util.CustomEvent("DOMReady",this),_load:function(){if(!a){a=true;var k=YAHOO.util.Event;k._ready();k._tryPreloadAttach()}},_ready:function(){var k=YAHOO.util.Event;if(!k.DOMReady){k.DOMReady=true;k.DOMReadyEvent.fire();k._simpleRemove(document,"DOMContentLoaded",k._ready)}},_tryPreloadAttach:function(){if(j.length===0){g=0;if(this._interval){clearInterval(this._interval);this._interval=
null}}else if(!this.locked){if(this.isIE)if(!this.DOMReady){this.startInterval();return}this.locked=true;var k=!a;k||(k=g>0&&j.length>0);var m=[],r=function(v,u){var x=v;if(u.overrideContext)x=u.overrideContext===true?u.obj:u.overrideContext;u.fn.call(x,u.obj)},e,h,l,n,p=[];e=0;for(h=j.length;e<h;e+=1)if(l=j[e])if(n=this.getEl(l.id))if(l.checkReady){if(a||n.nextSibling||!k){p.push(l);j[e]=null}}else{r(n,l);j[e]=null}else m.push(l);e=0;for(h=p.length;e<h;e+=1){l=p[e];r(this.getEl(l.id),l)}g--;if(k){for(e=
j.length-1;e>-1;e--){l=j[e];if(!l||!l.id)j.splice(e,1)}this.startInterval()}else if(this._interval){clearInterval(this._interval);this._interval=null}this.locked=false}},purgeElement:function(k,m,r){k=YAHOO.lang.isString(k)?this.getEl(k):k;var e=this.getListeners(k,r),h;if(e)for(h=e.length-1;h>-1;h--){var l=e[h];this.removeListener(k,l.type,l.fn)}if(m&&k&&k.childNodes){h=0;for(e=k.childNodes.length;h<e;++h)this.purgeElement(k.childNodes[h],m,r)}},getListeners:function(k,m){var r=[],e;e=m?m==="unload"?
[c]:[b]:[b,c];for(var h=YAHOO.lang.isString(k)?this.getEl(k):k,l=0;l<e.length;l+=1){var n=e[l];if(n)for(var p=0,v=n.length;p<v;++p){var u=n[p];if(u&&u[this.EL]===h&&(!m||m===u[this.TYPE]))r.push({type:u[this.TYPE],fn:u[this.FN],obj:u[this.OBJ],adjust:u[this.OVERRIDE],scope:u[this.ADJ_SCOPE],index:p})}}return r.length?r:null},_unload:function(k){var m=YAHOO.util.Event,r,e,h,l=c.slice(),n;r=0;for(h=c.length;r<h;++r)if(e=l[r]){n=window;if(e[m.ADJ_SCOPE])n=e[m.ADJ_SCOPE]===true?e[m.UNLOAD_OBJ]:e[m.ADJ_SCOPE];
e[m.FN].call(n,m.getEvent(k,e[m.EL]),e[m.UNLOAD_OBJ]);l[r]=null}c=null;if(b)for(k=b.length-1;k>-1;k--)(e=b[k])&&m.removeListener(e[m.EL],e[m.TYPE],e[m.FN],k);d=null;m._simpleRemove(window,"unload",m._unload)},_getScrollLeft:function(){return this._getScroll()[1]},_getScrollTop:function(){return this._getScroll()[0]},_getScroll:function(){var k=document.documentElement,m=document.body;return k&&(k.scrollTop||k.scrollLeft)?[k.scrollTop,k.scrollLeft]:m?[m.scrollTop,m.scrollLeft]:[0,0]},regCE:function(){},
_simpleAdd:function(){return window.addEventListener?function(k,m,r,e){k.addEventListener(m,r,e)}:window.attachEvent?function(k,m,r){k.attachEvent("on"+m,r)}:function(){}}(),_simpleRemove:function(){return window.removeEventListener?function(k,m,r,e){k.removeEventListener(m,r,e)}:window.detachEvent?function(k,m,r){k.detachEvent("on"+m,r)}:function(){}}()}}();(function(){var a=YAHOO.util.Event;a.on=a.addListener;a.onFocus=a.addFocusListener;a.onBlur=a.addBlurListener;if(a.isIE){YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,
YAHOO.util.Event,true);var b=document.createElement("p");a._dri=setInterval(function(){try{b.doScroll("left");clearInterval(a._dri);a._dri=null;a._ready();b=null}catch(c){}},a.POLL_INTERVAL)}else if(a.webkit&&a.webkit<525)a._dri=setInterval(function(){var c=document.readyState;if("loaded"==c||"complete"==c){clearInterval(a._dri);a._dri=null;a._ready()}},a.POLL_INTERVAL);else a._simpleAdd(document,"DOMContentLoaded",a._ready);a._simpleAdd(window,"load",a._load);a._simpleAdd(window,"unload",a._unload);
a._tryPreloadAttach()})()}YAHOO.util.EventProvider=function(){};
YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(a,b,c,d){this.__yui_events=this.__yui_events||{};var f=this.__yui_events[a];if(f)f.subscribe(b,c,d);else{f=this.__yui_subscribers=this.__yui_subscribers||{};f[a]||(f[a]=[]);f[a].push({fn:b,obj:c,overrideContext:d})}},unsubscribe:function(a,b,c){var d=this.__yui_events=this.__yui_events||{};if(a){if(d=d[a])return d.unsubscribe(b,c)}else{a=true;for(var f in d)if(YAHOO.lang.hasOwnProperty(d,f))a=a&&d[f].unsubscribe(b,
c);return a}return false},unsubscribeAll:function(a){return this.unsubscribe(a)},createEvent:function(a,b){this.__yui_events=this.__yui_events||{};var c=b||{},d=this.__yui_events;if(!d[a]){var f=new YAHOO.util.CustomEvent(a,c.scope||this,c.silent,YAHOO.util.CustomEvent.FLAT);d[a]=f;c.onSubscribeCallback&&f.subscribeEvent.subscribe(c.onSubscribeCallback);this.__yui_subscribers=this.__yui_subscribers||{};if(c=this.__yui_subscribers[a])for(var g=0;g<c.length;++g)f.subscribe(c[g].fn,c[g].obj,c[g].overrideContext)}return d[a]},
fireEvent:function(a){this.__yui_events=this.__yui_events||{};var b=this.__yui_events[a];if(!b)return null;for(var c=[],d=1;d<arguments.length;++d)c.push(arguments[d]);return b.fire.apply(b,c)},hasEvent:function(a){if(this.__yui_events)if(this.__yui_events[a])return true;return false}};
(function(){var a=YAHOO.util.Event,b=YAHOO.lang;YAHOO.util.KeyListener=function(d,f,g,j){function o(s){if(!f.shift)f.shift=false;if(!f.alt)f.alt=false;if(!f.ctrl)f.ctrl=false;if(s.shiftKey==f.shift&&s.altKey==f.alt&&s.ctrlKey==f.ctrl){var t,w=f.keys,k;if(YAHOO.lang.isArray(w))for(var m=0;m<w.length;m++){t=w[m];k=a.getCharCode(s);if(t==k){q.fire(k,s);break}}else{k=a.getCharCode(s);w==k&&q.fire(k,s)}}}if(!j)j=YAHOO.util.KeyListener.KEYDOWN;var q=new YAHOO.util.CustomEvent("keyPressed");this.enabledEvent=
new YAHOO.util.CustomEvent("enabled");this.disabledEvent=new YAHOO.util.CustomEvent("disabled");if(b.isString(d))d=document.getElementById(d);b.isFunction(g)?q.subscribe(g):q.subscribe(g.fn,g.scope,g.correctScope);this.enable=function(){if(!this.enabled){a.on(d,j,o);this.enabledEvent.fire(f)}this.enabled=true};this.disable=function(){if(this.enabled){a.removeListener(d,j,o);this.disabledEvent.fire(f)}this.enabled=false};this.toString=function(){return"KeyListener ["+f.keys+"] "+d.tagName+(d.id?"["+
d.id+"]":"")}};var c=YAHOO.util.KeyListener;c.KEYDOWN="keydown";c.KEYUP="keyup";c.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(a){a=YAHOO.util.Event.getTarget(a);var b=a.nodeName.toLowerCase();if((b==="input"||b==="button")&&a.type&&a.type.toLowerCase()=="submit")YAHOO.util.Connect._submitElementValue=encodeURIComponent(a.name)+"="+encodeURIComponent(a.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(a){var b,c;try{c=new XMLHttpRequest;b={conn:c,tId:a}}catch(d){for(var f=0;f<this._msxml_progid.length;++f)try{c=new ActiveXObject(this._msxml_progid[f]);b={conn:c,tId:a};
break}catch(g){}}finally{return b}},getConnectionObject:function(a){var b,c=this._transaction_id;try{if(a){b={};b.tId=c;b.isUpload=true}else b=this.createXhrObject(c);b&&this._transaction_id++}catch(d){}finally{return b}},asyncRequest:function(a,b,c,d){var f=this._isFileUpload?this.getConnectionObject(true):this.getConnectionObject(),g=c&&c.argument?c.argument:null;if(f){c&&c.customevents&&this.initCustomEvents(f,c);if(this._isFormSubmit){if(this._isFileUpload){this.uploadFile(f,c,b,d);return f}if(a.toUpperCase()==
"GET"){if(this._sFormData.length!==0)b+=(b.indexOf("?")==-1?"?":"&")+this._sFormData}else if(a.toUpperCase()=="POST")d=d?this._sFormData+"&"+d:this._sFormData}if(a.toUpperCase()=="GET"&&c&&c.cache===false)b+=(b.indexOf("?")==-1?"?":"&")+"rnd="+(new Date).valueOf().toString();f.conn.open(a,b,true);if(this._use_default_xhr_header)this._default_headers["X-Requested-With"]||this.initHeader("X-Requested-With",this._default_xhr_header,true);a.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(f);this.handleReadyState(f,c);f.conn.send(d||"");this._isFormSubmit===true&&this.resetFormState();this.startEvent.fire(f,g);f.startEvent&&f.startEvent.fire(f,g);return f}else return null},initCustomEvents:function(a,b){var c;for(c in b.customevents)if(this._customEvents[c][0]){a[this._customEvents[c][0]]=new YAHOO.util.CustomEvent(this._customEvents[c][1],b.scope?b.scope:
null);a[this._customEvents[c][0]].subscribe(b.customevents[c])}},handleReadyState:function(a,b){var c=this,d=b&&b.argument?b.argument:null;if(b&&b.timeout)this._timeOut[a.tId]=window.setTimeout(function(){c.abort(a,b,true)},b.timeout);this._poll[a.tId]=window.setInterval(function(){if(a.conn&&a.conn.readyState===4){window.clearInterval(c._poll[a.tId]);delete c._poll[a.tId];if(b&&b.timeout){window.clearTimeout(c._timeOut[a.tId]);delete c._timeOut[a.tId]}c.completeEvent.fire(a,d);a.completeEvent&&a.completeEvent.fire(a,
d);c.handleTransactionResponse(a,b)}},this._polling_interval)},handleTransactionResponse:function(a,b,c){var d,f=b&&b.argument?b.argument:null;try{d=a.conn.status!==undefined&&a.conn.status!==0?a.conn.status:13030}catch(g){d=13030}if(d>=200&&d<300||d===1223){c=this.createResponseObject(a,f);if(b&&b.success)b.scope?b.success.apply(b.scope,[c]):b.success(c);this.successEvent.fire(c);a.successEvent&&a.successEvent.fire(c)}else{switch(d){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:c=
this.createExceptionObject(a.tId,f,c?c:false);if(b&&b.failure)b.scope?b.failure.apply(b.scope,[c]):b.failure(c);break;default:c=this.createResponseObject(a,f);if(b&&b.failure)b.scope?b.failure.apply(b.scope,[c]):b.failure(c)}this.failureEvent.fire(c);a.failureEvent&&a.failureEvent.fire(c)}this.releaseObject(a)},createResponseObject:function(a,b){var c={},d={};try{for(var f=a.conn.getAllResponseHeaders(),g=f.split("\n"),j=0;j<g.length;j++){var o=g[j].indexOf(":");if(o!=-1)d[g[j].substring(0,o)]=g[j].substring(o+
2)}}catch(q){}c.tId=a.tId;c.status=a.conn.status==1223?204:a.conn.status;c.statusText=a.conn.status==1223?"No Content":a.conn.statusText;c.getResponseHeader=d;c.getAllResponseHeaders=f;c.responseText=a.conn.responseText;c.responseXML=a.conn.responseXML;if(b)c.argument=b;return c},createExceptionObject:function(a,b,c){var d={};d.tId=a;if(c){d.status=-1;d.statusText="transaction aborted"}else{d.status=0;d.statusText="communication failure"}if(b)d.argument=b;return d},initHeader:function(a,b,c){(c?this._default_headers:
this._http_headers)[a]=b;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)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)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(a,b,c){var d,f=false,g=[],j=0,o,q,s,t;this.resetFormState();if(typeof a=="string")a=document.getElementById(a)||document.forms[a];else if(typeof a=="object")a=a;else return;if(b){this.createFrame(c?c:null);this._isFileUpload=this._isFormSubmit=true;this._formNode=a}else{o=0;for(q=a.elements.length;o<q;++o){b=a.elements[o];d=b.disabled;c=b.name;if(!d&&c){c=
encodeURIComponent(c)+"=";d=encodeURIComponent(b.value);switch(b.type){case "select-one":if(b.selectedIndex>-1){t=b.options[b.selectedIndex];g[j++]=c+encodeURIComponent(t.attributes.value&&t.attributes.value.specified?t.value:t.text)}break;case "select-multiple":if(b.selectedIndex>-1){d=b.selectedIndex;for(s=b.options.length;d<s;++d){t=b.options[d];if(t.selected)g[j++]=c+encodeURIComponent(t.attributes.value&&t.attributes.value.specified?t.value:t.text)}}break;case "radio":case "checkbox":if(b.checked)g[j++]=
c+d;break;case "file":case undefined:case "reset":case "button":break;case "submit":if(f===false){if(this._hasSubmitListener&&this._submitElementValue)g[j++]=this._submitElementValue;f=true}break;default:g[j++]=c+d}}}this._isFormSubmit=true;this._sFormData=g.join("&");this.initHeader("Content-Type",this._default_form_header);return this._sFormData}},resetFormState:function(){this._isFileUpload=this._isFormSubmit=false;this._formNode=null;this._sFormData=""},createFrame:function(a){var b="yuiIO"+this._transaction_id,
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 b=[];a=a.split("&");var c,d;for(c=0;c<a.length;c++){d=a[c].indexOf("=");if(d!=-1){b[c]=document.createElement("input");b[c].type="hidden";b[c].name=decodeURIComponent(a[c].substring(0,
d));b[c].value=decodeURIComponent(a[c].substring(d+1));this._formNode.appendChild(b[c])}}return b},uploadFile:function(a,b,c,d){var f="yuiIO"+a.tId,g=document.getElementById(f),j=this,o=b&&b.argument?b.argument:null,q,s,t,w={action:this._formNode.getAttribute("action"),method:this._formNode.getAttribute("method"),target:this._formNode.getAttribute("target")};this._formNode.setAttribute("action",c);this._formNode.setAttribute("method","POST");this._formNode.setAttribute("target",f);YAHOO.env.ua.ie?
this._formNode.setAttribute("encoding","multipart/form-data"):this._formNode.setAttribute("enctype","multipart/form-data");if(d)q=this.appendPostData(d);this._formNode.submit();this.startEvent.fire(a,o);a.startEvent&&a.startEvent.fire(a,o);if(b&&b.timeout)this._timeOut[a.tId]=window.setTimeout(function(){j.abort(a,b,true)},b.timeout);if(q&&q.length>0)for(c=0;c<q.length;c++)this._formNode.removeChild(q[c]);for(s in w)if(YAHOO.lang.hasOwnProperty(w,s))w[s]?this._formNode.setAttribute(s,w[s]):this._formNode.removeAttribute(s);
this.resetFormState();var k=function(){if(b&&b.timeout){window.clearTimeout(j._timeOut[a.tId]);delete j._timeOut[a.tId]}j.completeEvent.fire(a,o);a.completeEvent&&a.completeEvent.fire(a,o);t={tId:a.tId,argument:b.argument};try{t.responseText=g.contentWindow.document.body?g.contentWindow.document.body.innerHTML:g.contentWindow.document.documentElement.textContent;t.responseXML=g.contentWindow.document.XMLDocument?g.contentWindow.document.XMLDocument:g.contentWindow.document}catch(m){}if(b&&b.upload)b.scope?
b.upload.apply(b.scope,[t]):b.upload(t);j.uploadEvent.fire(t);a.uploadEvent&&a.uploadEvent.fire(t);YAHOO.util.Event.removeListener(g,"load",k);setTimeout(function(){document.body.removeChild(g);j.releaseObject(a)},100)};YAHOO.util.Event.addListener(g,"load",k)},abort:function(a,b,c){var d,f=b&&b.argument?b.argument:null;if(a&&a.conn){if(this.isCallInProgress(a)){a.conn.abort();window.clearInterval(this._poll[a.tId]);delete this._poll[a.tId];if(c){window.clearTimeout(this._timeOut[a.tId]);delete this._timeOut[a.tId]}d=
true}}else if(a&&a.isUpload===true){var g=document.getElementById("yuiIO"+a.tId);if(g){YAHOO.util.Event.removeListener(g,"load");document.body.removeChild(g);if(c){window.clearTimeout(this._timeOut[a.tId]);delete this._timeOut[a.tId]}d=true}}else d=false;if(d===true){this.abortEvent.fire(a,f);a.abortEvent&&a.abortEvent.fire(a,f);this.handleTransactionResponse(a,b,true)}return d},isCallInProgress:function(a){return a&&a.conn?a.conn.readyState!==4&&a.conn.readyState!==0:a&&a.isUpload===true?document.getElementById("yuiIO"+
a.tId)?true:false:false},releaseObject:function(a){if(a&&a.conn)a.conn=null}};YAHOO.register("connection",YAHOO.util.Connect,{version:"2.7.0",build:"1796"});if(!window.console||!console.firebug){window.console={};for(var names=["log","debug","info","warn","error","assert","dir","dirxml","group","groupEnd","time","timeEnd","count","trace","profile","profileEnd"],i=0;i<names.length;++i)window.console[names[i]]=function(){}}
var SESSIONURL=typeof SESSIONURL=="undefined"?"":SESSIONURL,SECURITYTOKEN=typeof SECURITYTOKEN=="undefined"?"":SECURITYTOKEN,vbphrase=typeof vbphrase=="undefined"?[]:vbphrase,vB_Editor=[],ignorequotechars=false,pagenavcounter=0,is_regexp=window.RegExp?true:false,AJAX_Compatible=false,viewport_info=null,vB_Default_Timeout=15E3,userAgent=navigator.userAgent.toLowerCase(),is_opera=YAHOO.env.ua.opera>0,is_saf=YAHOO.env.ua.webkit>0,is_webtv=userAgent.indexOf("webtv")!=-1,is_ie=YAHOO.env.ua.ie>0&&!is_opera&&
!is_saf&&!is_webtv,is_ie4=YAHOO.env.ua.ie==4,is_ie7=YAHOO.env.ua.ie>=7,is_ps3=userAgent.indexOf("playstation 3")!=-1,is_moz=YAHOO.env.ua.gecko>0,is_kon=userAgent.indexOf("konqueror")!=-1,is_ns=userAgent.indexOf("compatible")==-1&&userAgent.indexOf("mozilla")!=-1&&!is_opera&&!is_webtv&&!is_saf,is_ns4=is_ns&&parseInt(navigator.appVersion)==4,is_mac=userAgent.indexOf("mac")!=-1,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(a,b){return typeof b=="undefined"?this.substr_orig(a<0?this.length+a:a):this.substr_orig(a<0?this.length+a:a,b)}}
if(typeof Array.prototype.shift==="undefined")Array.prototype.shift=function(){for(var a=0,b=this[0],c=this.length-1;a<c;a++)this[a]=this[a+1];this.length--;return b};function fetch_object(a){return document.getElementById?document.getElementById(a):document.all?document.all[a]:document.layers?document.layers[a]:null}function fetch_tags(a,b){return a==null?[]:typeof a.getElementsByTagName!="undefined"?a.getElementsByTagName(b):a.all&&a.all.tags?a.all.tags(b):[]}
function fetch_tag_count(a,b){return fetch_tags(a,b).length}function do_an_e(a){if(!a||is_ie){window.event.returnValue=false;window.event.cancelBubble=true;return window.event}else{a.stopPropagation();a.preventDefault();return a}}function e_by_gum(a){if(!a||is_ie){window.event.cancelBubble=true;return window.event}else{a.target.type=="submit"&&a.target.form.submit();a.stopPropagation();return a}}
function validatemessage(a,b,c){if(is_kon||is_saf||is_webtv)return true;else if(b.length<1){alert(vbphrase.must_enter_subject);return false}else if(PHP.trim(stripcode(a,false,ignorequotechars)).length<c){alert(construct_phrase(vbphrase.message_too_short,c));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(a,b,c){if(!is_regexp)return a;if(c)for(c=(new Date).getTime();(startindex=PHP.stripos(a,"[quote"))!==false;){if((new Date).getTime()-c>2E3)break;if((stopindex=PHP.stripos(a,"[/quote]"))!==false){fragment=a.substr(startindex,stopindex-startindex+8);a=a.replace(fragment,"")}else break;a=PHP.trim(a)}if(b){a=a.replace(/<img[^>]+src="([^"]+)"[^>]*>/gi,"$1");b=RegExp("<(\\w+)[^>]*>","gi");c=RegExp("<\\/\\w+>","gi");a=a.replace(b,"");a=a.replace(c,"");b=RegExp("(&nbsp;)","gi");a=a.replace(b,
" ")}else{b=RegExp("\\[(\\w+)(=[^\\]]*)?\\]","gi");c=RegExp("\\[\\/(\\w+)\\]","gi");a=a.replace(b,"");a=a.replace(c,"")}return a}function vB_PHP_Emulator(){}vB_PHP_Emulator.prototype.stripos=function(a,b,c){if(typeof c=="undefined")c=0;index=a.toLowerCase().indexOf(b.toLowerCase(),c);return index==-1?false:index};vB_PHP_Emulator.prototype.ltrim=function(a){return a.replace(/^\s+/g,"")};vB_PHP_Emulator.prototype.rtrim=function(a){return a.replace(/(\s+)$/g,"")};vB_PHP_Emulator.prototype.trim=function(a){return this.ltrim(this.rtrim(a))};
vB_PHP_Emulator.prototype.preg_quote=function(a){return a.replace(/(\+|\{|\}|\(|\)|\[|\]|\||\/|\?|\^|\$|\\|\.|\=|\!|\<|\>|\:|\*)/g,"\\$1")};vB_PHP_Emulator.prototype.match_all=function(a,b){var c=a.match(RegExp(b,"gim"));if(c){for(var d=[],f=RegExp(b,"im"),g=0;g<c.length;g++)d[d.length]=c[g].match(f);return d}else return false};
vB_PHP_Emulator.prototype.unhtmlspecialchars=function(a){var b=Array(/&lt;/g,/&gt;/g,/&quot;/g,/&amp;/g),c=Array("<",">",'"',"&");for(var d in b)if(YAHOO.lang.hasOwnProperty(b,d))a=a.replace(b[d],c[d]);return a};vB_PHP_Emulator.prototype.unescape_cdata=function(a){return a.replace(/<\=\!\=\[\=C\=D\=A\=T\=A\=\[/g,"<![CDATA[").replace(/\]\=\]\=>/g,"]]\>")};
vB_PHP_Emulator.prototype.htmlspecialchars=function(a){for(var b=Array(is_mac&&is_ie?RegExp("&","g"):RegExp("&(?!#[0-9]+;)","g"),RegExp("<","g"),RegExp(">","g"),RegExp('"',"g")),c=Array("&amp;","&lt;","&gt;","&quot;"),d=0;d<b.length;d++)a=a.replace(b[d],c[d]);return a};
vB_PHP_Emulator.prototype.in_array=function(a,b,c){a=new String(a);var d;if(c){a=a.toLowerCase();for(d in b)if(YAHOO.lang.hasOwnProperty(b,d))if(b[d].toLowerCase()==a)return d}else for(d in b)if(YAHOO.lang.hasOwnProperty(b,d))if(b[d]==a)return d;return-1};vB_PHP_Emulator.prototype.str_pad=function(a,b,c){a=new String(a);c=new String(c);if(a.length<b){for(padtext=new String(c);padtext.length<b-a.length;)padtext+=c;a=padtext.substr(0,b-a.length)+a}return a};
vB_PHP_Emulator.prototype.urlencode=function(a){a=escape(a.toString()).replace(/\+/g,"%2B");var b=a.match(/(%([0-9A-F]{2}))/gi);if(b)for(var c=0;c<b.length;c++){var d=b[c].substring(1,3);if(parseInt(d,16)>=128)a=a.replace(b[c],"%u00"+d)}return a=a.replace("%25","%u0025")};vB_PHP_Emulator.prototype.ucfirst=function(a,b){if(typeof b!="undefined"){var c=a.indexOf(b);if(c>0)a=a.substr(0,c)}a=a.split(" ");for(c=0;c<a.length;c++)a[c]=a[c].substr(0,1).toUpperCase()+a[c].substr(1);return a.join(" ")};
function vB_AJAX_Handler(a){this.async=a?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(a){this.callback=a};
vB_AJAX_Handler.prototype.fetch_data=function(a){console.warn('vB_AJAX_Handler.prototype.fetch_data() is deprecated.\nUse responseXML.getElementsByTagName("x")[i].firstChild.nodeValue instead.');return a&&a.firstChild&&a.firstChild.nodeValue?PHP.unescape_cdata(a.firstChild.nodeValue):""};vB_AJAX_Handler.prototype.send=function(a,b){this.conn=YAHOO.util.Connect.asyncRequest("POST",a,{success:this.callback},b+"&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{return(new XMLHttpRequest).setRequestHeader?true:false}catch(a){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(a){console.warn("AJAX Error: Status = %s: %s",a.status,a.statusText)}
function vB_Hidden_Form(a){this.action=a;this.variables=[]}vB_Hidden_Form.prototype.add_variable=function(a,b){this.variables[this.variables.length]=Array(a,b);console.log("vB_Hidden_Form :: add_variable(%s)",a)};
vB_Hidden_Form.prototype.add_variables_from_object=function(a){if(a){console.info("vB_Hidden_Form :: add_variables_from_object(%s)",a.id);var b=fetch_tags(a,"input"),c;for(c=0;c<b.length;c++)switch(b[c].type){case "checkbox":case "radio":b[c].checked&&this.add_variable(b[c].name,b[c].value);break;case "text":case "hidden":case "password":this.add_variable(b[c].name,b[c].value);break;default:continue}b=fetch_tags(a,"textarea");for(c=0;c<b.length;c++)this.add_variable(b[c].name,b[c].value);a=fetch_tags(a,
"select");for(c=0;c<a.length;c++)if(a[c].multiple)for(b=0;b<a[c].options.length;b++)a[c].options[b].selected&&this.add_variable(a[c].name,a[c].options[b].value);else this.add_variable(a[c].name,a[c].options[a[c].selectedIndex].value)}};vB_Hidden_Form.prototype.fetch_variable=function(a){for(var b=0;b<this.variables.length;b++)if(this.variables[b][0]==a)return this.variables[b][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 a=0;a<this.variables.length;a++){var b=document.createElement("input");b.type="hidden";b.name=this.variables[a][0];b.value=this.variables[a][1];this.form.appendChild(b)}console.info("vB_Hidden_Form :: submit_form() -> %s",this.action);document.body.appendChild(this.form).submit()};
vB_Hidden_Form.prototype.build_query_string=function(){for(var a="",b=0;b<this.variables.length;b++)a+=this.variables[b][0]+"="+PHP.urlencode(this.variables[b][1])+"&";console.info("vB_Hidden_Form :: Query String = %s",a);return a};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(a){if(this.browser_affected=is_ie&&YAHOO.env.ua.ie<7){this.overlay=YAHOO.util.Dom.get(a);this.hidden_selects=[];console.log("Initializing <select> overlay handler for '%s'.",this.overlay.id)}}
vB_Select_Overlay_Handler.prototype.hide=function(){if(this.browser_affected)for(var a=YAHOO.util.Dom.getRegion(this.overlay),b=document.getElementsByTagName("select"),c=0;c<b.length;c++)if(region_intersects(b[c],a))if(!YAHOO.util.Dom.isAncestor(this.overlay,b[c])){YAHOO.util.Dom.setStyle(b[c],"visibility","hidden");this.hidden_selects.push(YAHOO.util.Dom.generateId(b[c]))}};
vB_Select_Overlay_Handler.prototype.show=function(){if(this.browser_affected)for(var a;a=this.hidden_selects.pop();)YAHOO.util.Dom.setStyle(a,"visibility","visible")};function openWindow(a,b,c,d){return window.open(a,typeof d=="undefined"?"vBPopup":d,"statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes"+(typeof b!="undefined"?",width="+b:"")+(typeof c!="undefined"?",height="+c:""))}
function js_open_help(a,b,c){return openWindow("help.php?s="+SESSIONHASH+"&do=answer&page="+a+"&pageaction="+b+"&option="+c,600,450,"helpwindow")}function attachments(a){return openWindow("misc.php?"+SESSIONURL+"do=showattachments&t="+a,480,300)}function who(a){return openWindow("misc.php?"+SESSIONURL+"do=whoposted&t="+a,230,300)}function imwindow(a,b,c,d){return openWindow("sendmessage.php?"+SESSIONURL+"do=im&type="+a+"&u="+b,c,d)}
function SendMSNMessage(a){if(is_ie)try{MsgrObj.InstantMessage(a)}catch(b){alert(vbphrase.msn_functions_only_work_in_ie)}else alert(vbphrase.msn_functions_only_work_in_ie);return false}function AddMSNContact(a){if(is_ie)try{MsgrObj.AddContact(0,a)}catch(b){alert(vbphrase.msn_functions_only_work_in_ie)}else alert(vbphrase.msn_functions_only_work_in_ie);return false}
function detect_caps_lock(a){a=a?a:window.event;var b=a.which?a.which:a.keyCode?a.keyCode:a.charCode?a.charCode:0,c=a.shiftKey||a.modifiers&&a.modifiers&4;a=a.ctrlKey||a.modifiers&&a.modifiers&2;return b>=65&&b<=90&&!c&&!a||b>=97&&b<=122&&c}function log_out(a){var b=document.getElementsByTagName("html")[0];b.style.filter="progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";if(confirm(a))return true;else{b.style.filter="";return false}}
function set_cookie(a,b,c){console.log("Set Cookie :: %s = '%s'",a,b);document.cookie=a+"="+escape(b)+"; path=/"+(typeof c!="undefined"?"; expires="+c.toGMTString():"")}function delete_cookie(a){console.log("Delete Cookie :: %s",a);document.cookie=a+"=; expires=Thu, 01-Jan-70 00:00:01 GMT; path=/"}
function fetch_cookie(a){cookie_name=a+"=";cookie_length=document.cookie.length;for(cookie_begin=0;cookie_begin<cookie_length;){value_begin=cookie_begin+cookie_name.length;if(document.cookie.substring(cookie_begin,value_begin)==cookie_name){var b=document.cookie.indexOf(";",value_begin);if(b==-1)b=cookie_length;b=unescape(document.cookie.substring(value_begin,b));console.log("Fetch Cookie :: %s = '%s'",a,b);return b}cookie_begin=document.cookie.indexOf(" ",cookie_begin)+1;if(cookie_begin==0)break}console.log("Fetch Cookie :: %s (null)",
a);return null}function js_toggle_all(a,b,c,d,f){for(var g=0;g<a.elements.length;g++){var j=a.elements[g];if(j.type==b&&PHP.in_array(j.name,d,false)==-1)switch(b){case "radio":if(j.value==c)j.checked=f;break;case "select-one":j.selectedIndex=f;break;default:j.checked=f;break}}}function js_select_all(a){exclude=[];exclude[0]="selectall";js_toggle_all(a,"select-one","",exclude,a.selectall.selectedIndex)}
function js_check_all(a){exclude=[];exclude[0]="keepattachments";exclude[1]="allbox";exclude[2]="removeall";js_toggle_all(a,"checkbox","",exclude,a.allbox.checked)}function js_check_all_option(a,b){exclude=[];exclude[0]="useusergroup";js_toggle_all(a,"radio",b,exclude,true)}function checkall(a){js_check_all(a)}function checkall_option(a,b){js_check_all_option(a,b)}
function resize_textarea(a,b){var c=fetch_object(b);c.style.width=parseInt(c.offsetWidth)+(a<0?-100:100)+"px";c.style.height=parseInt(c.offsetHeight)+(a<0?-100:100)+"px";return false}function region_intersects(a,b){a=typeof a.left=="undefined"?YAHOO.util.Dom.getRegion(a):a;b=typeof b.left=="undefined"?YAHOO.util.Dom.getRegion(b):b;return a.left>b.right||a.right<b.left||a.top>b.bottom||a.bottom<b.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(a){viewport_info=fetch_viewport_info();YAHOO.util.Dom.setXY(a,[viewport_info.w/2+viewport_info.x-a.clientWidth/2,viewport_info.h/2+viewport_info.y-a.clientHeight/2])}
function fetch_all_stylesheets(){var a=[],b=0,c=null,d=0,f=0;for(b=0;b<document.styleSheets.length;b++){c=document.styleSheets[b];a.push(c);try{if(c.cssRules)for(d=0;d<c.cssRules.length;d++)c.cssRules[d].styleSheet&&a.push(c.cssRules[d].styleSheet);else if(c.imports)for(f=0;f<c.imports.length;f++)a.push(c.imports[f])}catch(g){a.pop()}}return a}
function highlight_login_box(){var a=fetch_object("navbar_username"),b;if(a){a.focus();a.select();for(b=0;b<1600;b+=400){window.setTimeout(function(){YAHOO.util.Dom.addClass(a,"inlinemod")},b);window.setTimeout(function(){YAHOO.util.Dom.removeClass(a,"inlinemod")},b+200)}}return false}
function toggle_collapse(a,b){if(!is_regexp)return false;var c=fetch_object("collapseobj_"+a),d=fetch_object("collapseimg_"+a),f=fetch_object("collapsecel_"+a);if(!c){if(d)d.style.display="none";return false}if(c.style.display=="none"||"open"==b){c.style.display="";b||save_collapsed(a,false);if(d){img_re=/_collapsed\.gif$/;d.src=d.src.replace(img_re,".gif")}if(f){cel_re=/^(thead|tcat)(_collapsed)$/;f.className=f.className.replace(cel_re,"$1")}}else if(c.style.display!="none"||"closed"==b){c.style.display=
"none";b||save_collapsed(a,true);if(d){img_re=/\.gif$/;d.src=d.src.replace(img_re,"_collapsed.gif")}if(f){cel_re=/^(thead|tcat)$/;f.className=f.className.replace(cel_re,"$1_collapsed")}}return false}
function save_collapsed(a,b){var c=fetch_cookie("vbulletin_collapse"),d=[];if(c!=null){c=c.split("\n");for(var f in c)if(YAHOO.lang.hasOwnProperty(c,f)&&c[f]!=a&&c[f]!="")d[d.length]=c[f]}if(b)d[d.length]=a;expires=new Date;expires.setTime(expires.getTime()+31536E6);set_cookie("vbulletin_collapse",d.join("\n"),expires)}function vBpagenav(){}
vBpagenav.prototype.controlobj_onclick=function(a){this._onclick(a);a=fetch_tags(this.menu.menuobj,"input");for(var b=0;b<a.length;b++)if(a[b].type=="text"){a[b].focus();break}};vBpagenav.prototype.form_gotopage=function(){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(){return this.form.gotopage()};
vBpagenav.prototype.itxt_onkeypress=function(a){return(a?a:window.event).keyCode==13?this.form.gotopage():true};function vbmenu_register(a,b){return typeof vBmenu=="object"?vBmenu.register(a,b):false}function string_to_node(a){var b=document.createElement("div");b.innerHTML=a;for(a=b.firstChild;a&&a.nodeType!=1;)a=a.nextSibling;return a?a.cloneNode(true):b.firstChild.cloneNode(true)}
function set_unselectable(a){a=YAHOO.util.Dom.get(a);if(!is_ie4&&typeof a.tagName!="undefined"){if(a.hasChildNodes())for(var b=0;b<a.childNodes.length;b++)set_unselectable(a.childNodes[b]);a.unselectable="on"}}function fetch_sessionhash(){return SESSIONURL==""?"":SESSIONURL.substr(2,32)}function construct_phrase(){if(!arguments||arguments.length<1||!is_regexp)return false;for(var a=arguments,b=a[0],c,d=1;d<a.length;d++){c=RegExp("%"+d+"\\$s","gi");b=b.replace(c,a[d])}return b}
function switch_id(a,b){var c=a.options[a.selectedIndex].value;if(c!=""){var d=new String(window.location),f=new String("");d=d.split("#");if(d[1])f="#"+d[1];d=d[0];if(d.indexOf(b+"id=")!=-1&&is_regexp){var g=RegExp(b+"id=\\d+&?");d=d.replace(g,"")}if(d.indexOf("?")==-1)d+="?";else{lastchar=d.substr(d.length-1);if(lastchar!="&"&&lastchar!="?")d+="&"}window.location=d+b+"id="+c+f}}function child_img_alt_2_title(a){a=a.getElementsByTagName("img");for(var b=0;b<a.length;b++)img_alt_2_title(a[b])}
function img_alt_2_title(a){if(!a.title&&a.alt!="")a.title=a.alt}function do_securitytoken_replacement(a){if(a!=""){for(var b=0;b<document.forms.length;b++)if(document.forms[b].elements.securitytoken&&document.forms[b].elements.securitytoken.value==SECURITYTOKEN)document.forms[b].elements.securitytoken.value=a;SECURITYTOKEN=a;console.log("Securitytoken updated")}}
function handle_securitytoken_response(a){console.log("Processing securitytoken update");if(a.responseXML&&a.responseXML.getElementsByTagName("securitytoken").length){a=a.responseXML.getElementsByTagName("securitytoken")[0].firstChild.nodeValue;do_securitytoken_replacement(a);securitytoken_errors=0}else handle_securitytoken_error(a)}function handle_securitytoken_error(){console.log("Securitytoken Error");++securitytoken_errors==3&&do_securitytoken_replacement("guest")}
var securitytoken_timeout=window.setTimeout("replace_securitytoken()",36E5),securitytoken_errors=0;
function replace_securitytoken(){window.clearTimeout(securitytoken_timeout);if(AJAX_Compatible&&SECURITYTOKEN!=""&&SECURITYTOKEN!="guest"){securitytoken_timeout=window.setTimeout("replace_securitytoken()",36E5);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(a){if(typeof a.id!="undefined"){var b=a.id;if(isNaN(b)){var c=null;if(c=b.match(/(\d+)/))b=c[0]}typeof inlineMod_comment!="undefined"&&im_init(a,inlineMod_comment);if(typeof vB_QuickEditor_Factory!="undefined")if(typeof vB_QuickEditor_Factory.controls[b]=="undefined")vB_QuickEditor_Factory.controls[b]=new vB_QuickEditor(b,vB_QuickEditor_Factory);else vB_QuickEditor_Factory.controls[b].init();if(typeof vB_QuickLoader_Factory!="undefined")vB_QuickLoader_Factory.controls[b]=new vB_QuickLoader(b,
vB_QuickLoader_Factory);child_img_alt_2_title(a)}}
function PostBit_Init(a,b){console.log("PostBit Init: %d",b);if(typeof vBmenu!="undefined")for(var c=fetch_tags(a,"div"),d=0;d<c.length;d++)c[d].id&&c[d].id.substr(0,9)=="postmenu_"&&vBmenu.register(c[d].id,true);typeof vB_QuickEditor!="undefined"&&vB_AJAX_QuickEdit_Init(a);typeof vB_QuickReply!="undefined"&&qr_init_buttons(a);typeof mq_init!="undefined"&&mq_init(a);typeof vBrep!="undefined"&&typeof b!="undefined"&&typeof b!="null"&&vbrep_register(b);typeof inlineMod!="undefined"&&im_init(a);typeof vB_Lightbox!=
"undefined"&&init_postbit_lightbox(a,false,true);child_img_alt_2_title(a)}
function vBulletin_init(){if(is_webtv)return false;child_img_alt_2_title(document);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}for(var a=fetch_tags(document,"td"),b=0;b<a.length;b++)if(a[b].hasChildNodes()&&a[b].firstChild.name&&a[b].firstChild.name.indexOf("PageNav")!=-1){var c=a[b].title;a[b].title="";a[b].innerHTML="";a[b].id="pagenav."+b;var d=vBmenu.register(a[b].id);d.addr=c;if(is_saf){d.controlobj._onclick=d.controlobj.onclick;d.controlobj.onclick=vBpagenav.prototype.controlobj_onclick}}if(typeof c!="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=[];this.ajaxurls=[];this.events=[];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(a,b){function c(){}c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.baseConstructor=b;a.superClass=b.prototype};vBulletin_Framework.prototype.register_control=function(a){for(var b=[],c=1;c<arguments.length;c++)b.push(arguments[c]);if(!this.elements[a]){console.info('Creating array vBulletin.elements["%s"]',a);this.elements[a]=[]}c=this.elements[a].push(b);console.log('vBulletin.elements["%s"][%d] = %s',a,c-1,b.join(", "))};
vBulletin_Framework.prototype.register_ajax_urls=function(a,b,c){a=a.split("?");a[1]=SESSIONURL+"securitytoken="+SECURITYTOKEN+"&ajax=1&"+a[1].replace(/\{(\d+)(:\w+)?\}/gi,"%$1$s");b=b.split("?");b[1]=SESSIONURL+"securitytoken="+SECURITYTOKEN+"&ajax=1&"+b[1].replace(/\{(\d+)(:\w+)?\}/gi,"%$1$s");console.log("Register AJAX URLs for %s",c);for(var d=0;d<c.length;d++)this.ajaxurls[c[d]]=Array(a,b)};vBulletin_Framework.prototype.add_event=function(a){this.events[a]=new YAHOO.util.CustomEvent(a)};
vBulletin_Framework.prototype.console=function(){if(window.console||console.firebug){for(var a=[],b=0;b<arguments.length;b++)a[a.length]=arguments[b];try{eval("console.log('"+a.join("','")+"');")}catch(c){}}};var PHP=new vB_PHP_Emulator,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(a){if(a.argument){YAHOO.util.Dom.get("dismiss_notice_hidden").value=a.argument;YAHOO.util.Dom.get("notices").submit()}}
function handle_dismiss_notice_ajax(a){if(a.responseXML&&a.responseXML.getElementsByTagName("dismissed").length){a=a.responseXML.getElementsByTagName("dismissed")[0].firstChild.nodeValue;a=YAHOO.util.Dom.get("navbar_notice_"+a);if(a!=null){a.style.display="none";a=YAHOO.util.Dom.getElementsByClassName("navbar_notice","",YAHOO.util.Dom.get("notices"));var b=0;for(i=0;i<a.length;i++)a[i].style.display!="none"&&b++;if(b==0){a=YAHOO.util.Dom.get("notices");if(a!=null)a.style.display="none"}}}else handle_dismiss_notice_error(a)}
function dismiss_notice(a){if(AJAX_Compatible){YAHOO.util.Connect.asyncRequest("POST","ajax.php?do=dismissnotice",{success:handle_dismiss_notice_ajax,failure:handle_dismiss_notice_error,timeout:vB_Default_Timeout,argument:a},SESSIONURL+"securitytoken="+SECURITYTOKEN+"&do=dismissnotice&noticeid="+PHP.urlencode(a));return false}return true}vBulletin.add_event("vBmenuShow");vBulletin.add_event("vBmenuHide");
function vB_Popup_Handler(){this.open_steps=10;this.active=this.open_fade=false;this.menus=[];this.activemenu=null}vB_Popup_Handler.prototype.activate=function(a){this.active=a;console.log("vBmenu :: System Activated")};vB_Popup_Handler.prototype.register=function(a,b,c){this.menus[a]=new vB_Popup_Menu(a,b,c);if((b=YAHOO.util.Dom.get("usercss"))&&YAHOO.util.Dom.isAncestor(b,a))this.menus[a].imgsrc=IMGDIR_MISC+"/menu_open_usercss.gif";this.menus[a].startup();return this.menus[a]};
vB_Popup_Handler.prototype.hide=function(){this.activemenu!=null&&this.menus[this.activemenu].hide()};var vBmenu=new vB_Popup_Handler;function vbmenu_hide(a){if(a&&a.button&&a.button!=1&&a.type=="click")return true;else vBmenu.hide()}function vB_Popup_Menu(a,b,c){this.controlkey=a;this.noimage=b;this.noslide=c;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);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(a){this.controlobj=fetch_object(this.controlkey);this.controlobj.state=false;if(!(this.controlobj.firstChild&&(this.controlobj.firstChild.tagName=="TEXTAREA"||this.controlobj.firstChild.tagName=="INPUT"))){if(!a&&!(is_mac&&is_ie)){this.controlobj.appendChild(document.createTextNode(" "));var b=document.createElement("img");b.src=this.imgsrc;b.border=0;b.title="";b.alt="";this.img=this.controlobj.appendChild(b)}this.controlobj.unselectable=true;if(!a)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(){for(var a=Array("td","li"),b=0;b<a.length;b++)for(var c=fetch_tags(this.menuobj,a[b]),d=0;d<c.length;d++){if(c[d].className=="vbmenu_option")if(c[d].title&&c[d].title=="nohilite")c[d].title="";else{c[d].controlkey=this.controlkey;c[d].onmouseover=vB_Popup_Events.prototype.menuoption_onmouseover;c[d].onmouseout=vB_Popup_Events.prototype.menuoption_onmouseout;var f=fetch_tags(c[d],"a");if(f.length==1){c[d].className+=" vbmenu_option_alink";c[d].islink=
true;f=f[0];var g=false;c[d].target=f.getAttribute("target");if(typeof f.onclick=="function"){c[d].ofunc=f.onclick;c[d].onclick=vB_Popup_Events.prototype.menuoption_onclick_function;g=true}else if(typeof c[d].onclick=="function"){c[d].ofunc=c[d].onclick;c[d].onclick=vB_Popup_Events.prototype.menuoption_onclick_function;g=true}else{c[d].href=f.href;c[d].onclick=vB_Popup_Events.prototype.menuoption_onclick_link}if(g){g=document.createElement("a");g.innerHTML=f.innerHTML;g.href="#";g.onclick=function(j){j=
j?j:window.event;return j.returnValue=false};c[d].insertBefore(g,f);c[d].removeChild(f)}}else if(typeof c[d].onclick=="function"){c[d].ofunc=c[d].onclick;c[d].onclick=vB_Popup_Events.prototype.menuoption_onclick_function}}if(c[d].title=="nohilite")c[d].title=""}};
vB_Popup_Menu.prototype.show=function(a,b){if(vBmenu.active)this.menuobj||this.init_menu();else return false;if(!this.menuobj||vBmenu.activemenu==this.controlkey)return false;console.log("vBmenu :: Show '%s'",this.controlkey);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(a);if(!b&&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(a){this.pos=this.fetch_offset(a);this.leftpx=this.pos.left;this.toppx=this.pos.top+a.offsetHeight;if(this.leftpx+this.menuobj.offsetWidth>=document.body.clientWidth&&this.leftpx+a.offsetWidth-this.menuobj.offsetWidth>0){this.leftpx=this.leftpx+a.offsetWidth-this.menuobj.offsetWidth;this.direction="right"}else this.direction="left";this.controlkey.match(/^pagenav\.\d+$/)&&a.appendChild(this.menuobj);this.menuobj.style.left=this.leftpx+"px";this.menuobj.style.top=
this.toppx+"px"};vB_Popup_Menu.prototype.hide=function(a){if(a&&a.button&&a.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(a){vBmenu.activemenu!=null&&vBmenu.menus[vBmenu.activemenu].controlkey!=this.id&&this.show(a,true)};
vB_Popup_Menu.prototype.slide=function(a,b,c){if(this.direction=="left"&&(a<this.menuobj.offsetWidth||b<this.menuobj.offsetHeight)){a+=this.intervalX;b+=this.intervalY;this.menuobj.style.clip="rect(auto, "+a+"px, "+b+"px, auto)";this.slidetimer=setTimeout("vBmenu.menus[vBmenu.activemenu].slide("+a+", "+b+", "+c+");",0)}else if(this.direction=="right"&&(a>0||b<this.menuobj.offsetHeight)){a-=this.intervalX;b+=this.intervalY;this.menuobj.style.clip="rect(auto, "+this.menuobj.offsetWidth+"px, "+b+"px, "+
a+"px)";this.slidetimer=setTimeout("vBmenu.menus[vBmenu.activemenu].slide("+a+", "+b+", "+c+");",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(a){if(a.getBoundingClientRect){a=a.getBoundingClientRect();var b=Math.max(document.documentElement.scrollTop,document.body.scrollTop),c=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft);if(document.documentElement.dir=="rtl")c=c+document.documentElement.clientWidth-document.documentElement.scrollWidth;return{left:a.left+c,top:a.top+b}}b=a.offsetLeft;for(c=a.offsetTop;(a=a.offsetParent)!=null;){b+=a.offsetLeft;c+=a.offsetTop}return{left:b,
top:c}};function vB_Popup_Events(){}vB_Popup_Events.prototype.controlobj_onclick=function(a){if(typeof do_an_e=="function"){do_an_e(a);vBmenu.activemenu==null||vBmenu.menus[vBmenu.activemenu].controlkey!=this.id?vBmenu.menus[this.id].show(this):vBmenu.menus[this.id].hide()}};vB_Popup_Events.prototype.controlobj_onmouseover=function(a){if(typeof do_an_e=="function"){do_an_e(a);vBmenu.menus[this.id].hover(this)}};vB_Popup_Events.prototype.menuoption_onclick_function=function(a){this.ofunc(a);vBmenu.menus[this.controlkey].hide()};
vB_Popup_Events.prototype.menuoption_onclick_link=function(a){a=a?a:window.event;a.cancelBubble=true;a.stopPropagation&&a.stopPropagation();a.preventDefault&&a.preventDefault();if(a.shiftKey||this.target!=null&&this.target!=""&&this.target.toLowerCase()!="_self")this.target!=null&&this.target.charAt(0)!="_"?window.open(this.href,this.target):window.open(this.href);else window.location=this.href;vBmenu.menus[this.controlkey].hide();return false};
vB_Popup_Events.prototype.menuoption_onmouseover=function(){this.className="vbmenu_hilite"+(this.islink?" vbmenu_hilite_alink":"");this.style.cursor=pointer_cursor};vB_Popup_Events.prototype.menuoption_onmouseout=function(){this.className="vbmenu_option"+(this.islink?" vbmenu_option_alink":"");this.style.cursor="default"};var hexcase=0,b64pad="",chrsz=8;function hex_md5(a){return binl2hex(core_md5(str2binl(a),a.length*chrsz))}
function b64_md5(a){return binl2b64(core_md5(str2binl(a),a.length*chrsz))}function str_md5(a){return binl2str(core_md5(str2binl(a),a.length*chrsz))}function hex_hmac_md5(a,b){return binl2hex(core_hmac_md5(a,b))}function b64_hmac_md5(a,b){return binl2b64(core_hmac_md5(a,b))}function str_hmac_md5(a,b){return binl2str(core_hmac_md5(a,b))}
function core_md5(a,b){a[b>>5]|=128<<b%32;a[(b+64>>>9<<4)+14]=b;for(var c=1732584193,d=-271733879,f=-1732584194,g=271733878,j=0;j<a.length;j+=16){var o=c,q=d,s=f,t=g;c=md5_ff(c,d,f,g,a[j+0],7,-680876936);g=md5_ff(g,c,d,f,a[j+1],12,-389564586);f=md5_ff(f,g,c,d,a[j+2],17,606105819);d=md5_ff(d,f,g,c,a[j+3],22,-1044525330);c=md5_ff(c,d,f,g,a[j+4],7,-176418897);g=md5_ff(g,c,d,f,a[j+5],12,1200080426);f=md5_ff(f,g,c,d,a[j+6],17,-1473231341);d=md5_ff(d,f,g,c,a[j+7],22,-45705983);c=md5_ff(c,d,f,g,a[j+8],7,
1770035416);g=md5_ff(g,c,d,f,a[j+9],12,-1958414417);f=md5_ff(f,g,c,d,a[j+10],17,-42063);d=md5_ff(d,f,g,c,a[j+11],22,-1990404162);c=md5_ff(c,d,f,g,a[j+12],7,1804603682);g=md5_ff(g,c,d,f,a[j+13],12,-40341101);f=md5_ff(f,g,c,d,a[j+14],17,-1502002290);d=md5_ff(d,f,g,c,a[j+15],22,1236535329);c=md5_gg(c,d,f,g,a[j+1],5,-165796510);g=md5_gg(g,c,d,f,a[j+6],9,-1069501632);f=md5_gg(f,g,c,d,a[j+11],14,643717713);d=md5_gg(d,f,g,c,a[j+0],20,-373897302);c=md5_gg(c,d,f,g,a[j+5],5,-701558691);g=md5_gg(g,c,d,f,a[j+
10],9,38016083);f=md5_gg(f,g,c,d,a[j+15],14,-660478335);d=md5_gg(d,f,g,c,a[j+4],20,-405537848);c=md5_gg(c,d,f,g,a[j+9],5,568446438);g=md5_gg(g,c,d,f,a[j+14],9,-1019803690);f=md5_gg(f,g,c,d,a[j+3],14,-187363961);d=md5_gg(d,f,g,c,a[j+8],20,1163531501);c=md5_gg(c,d,f,g,a[j+13],5,-1444681467);g=md5_gg(g,c,d,f,a[j+2],9,-51403784);f=md5_gg(f,g,c,d,a[j+7],14,1735328473);d=md5_gg(d,f,g,c,a[j+12],20,-1926607734);c=md5_hh(c,d,f,g,a[j+5],4,-378558);g=md5_hh(g,c,d,f,a[j+8],11,-2022574463);f=md5_hh(f,g,c,d,a[j+
11],16,1839030562);d=md5_hh(d,f,g,c,a[j+14],23,-35309556);c=md5_hh(c,d,f,g,a[j+1],4,-1530992060);g=md5_hh(g,c,d,f,a[j+4],11,1272893353);f=md5_hh(f,g,c,d,a[j+7],16,-155497632);d=md5_hh(d,f,g,c,a[j+10],23,-1094730640);c=md5_hh(c,d,f,g,a[j+13],4,681279174);g=md5_hh(g,c,d,f,a[j+0],11,-358537222);f=md5_hh(f,g,c,d,a[j+3],16,-722521979);d=md5_hh(d,f,g,c,a[j+6],23,76029189);c=md5_hh(c,d,f,g,a[j+9],4,-640364487);g=md5_hh(g,c,d,f,a[j+12],11,-421815835);f=md5_hh(f,g,c,d,a[j+15],16,530742520);d=md5_hh(d,f,g,
c,a[j+2],23,-995338651);c=md5_ii(c,d,f,g,a[j+0],6,-198630844);g=md5_ii(g,c,d,f,a[j+7],10,1126891415);f=md5_ii(f,g,c,d,a[j+14],15,-1416354905);d=md5_ii(d,f,g,c,a[j+5],21,-57434055);c=md5_ii(c,d,f,g,a[j+12],6,1700485571);g=md5_ii(g,c,d,f,a[j+3],10,-1894986606);f=md5_ii(f,g,c,d,a[j+10],15,-1051523);d=md5_ii(d,f,g,c,a[j+1],21,-2054922799);c=md5_ii(c,d,f,g,a[j+8],6,1873313359);g=md5_ii(g,c,d,f,a[j+15],10,-30611744);f=md5_ii(f,g,c,d,a[j+6],15,-1560198380);d=md5_ii(d,f,g,c,a[j+13],21,1309151649);c=md5_ii(c,
d,f,g,a[j+4],6,-145523070);g=md5_ii(g,c,d,f,a[j+11],10,-1120210379);f=md5_ii(f,g,c,d,a[j+2],15,718787259);d=md5_ii(d,f,g,c,a[j+9],21,-343485551);c=safe_add(c,o);d=safe_add(d,q);f=safe_add(f,s);g=safe_add(g,t)}return Array(c,d,f,g)}function md5_cmn(a,b,c,d,f,g){return safe_add(bit_rol(safe_add(safe_add(b,a),safe_add(d,g)),f),c)}function md5_ff(a,b,c,d,f,g,j){return md5_cmn(b&c|~b&d,a,b,f,g,j)}function md5_gg(a,b,c,d,f,g,j){return md5_cmn(b&d|c&~d,a,b,f,g,j)}
function md5_hh(a,b,c,d,f,g,j){return md5_cmn(b^c^d,a,b,f,g,j)}function md5_ii(a,b,c,d,f,g,j){return md5_cmn(c^(b|~d),a,b,f,g,j)}function core_hmac_md5(a,b){var c=str2binl(a);if(c.length>16)c=core_md5(c,a.length*chrsz);for(var d=Array(16),f=Array(16),g=0;g<16;g++){d[g]=c[g]^909522486;f[g]=c[g]^1549556828}c=core_md5(d.concat(str2binl(b)),512+b.length*chrsz);return core_md5(f.concat(c),640)}function safe_add(a,b){var c=(a&65535)+(b&65535);return(a>>16)+(b>>16)+(c>>16)<<16|c&65535}
function bit_rol(a,b){return a<<b|a>>>32-b}function str2binl(a){for(var b=[],c=(1<<chrsz)-1,d=0;d<a.length*chrsz;d+=chrsz)b[d>>5]|=(a.charCodeAt(d/chrsz)&c)<<d%32;return b}function binl2str(a){for(var b="",c=(1<<chrsz)-1,d=0;d<a.length*32;d+=chrsz)b+=String.fromCharCode(a[d>>5]>>>d%32&c);return b}function binl2hex(a){for(var b=hexcase?"0123456789ABCDEF":"0123456789abcdef",c="",d=0;d<a.length*4;d++)c+=b.charAt(a[d>>2]>>d%4*8+4&15)+b.charAt(a[d>>2]>>d%4*8&15);return c}
function binl2b64(a){for(var b="",c=0;c<a.length*4;c+=3)for(var d=(a[c>>2]>>8*(c%4)&255)<<16|(a[c+1>>2]>>8*((c+1)%4)&255)<<8|a[c+2>>2]>>8*((c+2)%4)&255,f=0;f<4;f++)b+=c*8+f*6>a.length*32?b64pad:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(d>>6*(3-f)&63);return b}
function str_to_ent(a){var b="",c;for(c=0;c<a.length;c++){var d=a.charCodeAt(c),f="";if(d>255){for(;d>=1;){f="0123456789".charAt(d%10)+f;d/=10}if(f=="")f="0";f="#"+f;f="&"+f;f+=";";b+=f}else b+=a.charAt(c)}return b}function trim(a){for(;a.substring(0,1)==" ";)a=a.substring(1,a.length);for(;a.substring(a.length-1,a.length)==" ";)a=a.substring(0,a.length-1);return a}
function md5hash(a,b,c,d){if(navigator.userAgent.indexOf("Mozilla/")==0&&parseInt(navigator.appVersion)>=4){var f=hex_md5(str_to_ent(trim(a.value)));b.value=f;if(c){f=hex_md5(trim(a.value));c.value=f}if(!d)a.value=""}return true}var vB_ReadMarker={forum_statusicon_prefix:"forum_statusicon_",thread_statusicon_prefix:"thread_statusicon_",thread_gotonew_prefix:"thread_gotonew_",thread_title_prefix:"thread_title_"};function vB_AJAX_ReadMarker(a){this.forumid=a}
vB_AJAX_ReadMarker.prototype.mark_read=function(){YAHOO.util.Connect.asyncRequest("POST","ajax.php?do=markread&f="+this.forumid,{success:this.handle_ajax_request,failure:this.handle_ajax_error,timeout:vB_Default_Timeout,scope:this},SESSIONURL+"securitytoken="+SECURITYTOKEN+"&do=markread&forumid="+this.forumid)};vB_AJAX_ReadMarker.prototype.handle_ajax_error=function(a){vBulletin_AJAX_Error_Handler(a)};
vB_AJAX_ReadMarker.prototype.handle_ajax_request=function(a){a=fetch_tags(a.responseXML,"forum");for(var b=0;b<a.length;b++){var c=a[b].firstChild.nodeValue;this.update_forum_status(c);(c=fetch_object("threadbits_forum_"+c))&&this.handle_threadbits(c)}};vB_AJAX_ReadMarker.prototype.update_forum_status=function(a){if(a=fetch_object(vB_ReadMarker.forum_statusicon_prefix+a)){a.style.cursor="default";a.title=a.otitle;a.src=this.fetch_old_src(a.src,"forum")}};
vB_AJAX_ReadMarker.prototype.handle_threadbits=function(a){a=fetch_tags(a,"a");for(var b=0;b<a.length;b++)a[b].id&&a[b].id.substr(0,vB_ReadMarker.thread_gotonew_prefix.length)==vB_ReadMarker.thread_gotonew_prefix&&this.update_thread_status(a[b].id.substr(vB_ReadMarker.thread_gotonew_prefix.length))};
vB_AJAX_ReadMarker.prototype.update_thread_status=function(a){var b=fetch_object(vB_ReadMarker.thread_statusicon_prefix+a);if(b)b.src=this.fetch_old_src(b.src,"thread");(b=fetch_object(vB_ReadMarker.thread_gotonew_prefix+a))&&b.parentNode.removeChild(b);if(a=fetch_object(vB_ReadMarker.thread_title_prefix+a))a.style.fontWeight="normal"};vB_AJAX_ReadMarker.prototype.fetch_old_src=function(a,b){return a.replace(/_(new)([\._])(.+)$/i,b=="thread"?"$2$3":"_old$2$3")};
function mark_forum_read(a){if(AJAX_Compatible){vB_ReadMarker[a]=new vB_AJAX_ReadMarker(a);vB_ReadMarker[a].mark_read()}else window.location="forumdisplay.php?"+SESSIONURL+"do=markread&forumid="+a+"&markreadhash="+SECURITYTOKEN;return false}function init_forum_readmarker_icon(){mark_forum_read(this.id.substr(vB_ReadMarker.forum_statusicon_prefix.length))}
function init_forum_readmarker_system(){for(var a=fetch_tags(document,"img"),b=0;b<a.length;b++)if(a[b].id&&a[b].id.substr(0,vB_ReadMarker.forum_statusicon_prefix.length)==vB_ReadMarker.forum_statusicon_prefix)if(a[b].src.search(/\/([^\/]+)(new)(_lock)?\.([a-z0-9]+)$/i)!=-1){img_alt_2_title(a[b]);a[b].otitle=a[b].title;a[b].title=vbphrase.doubleclick_forum_markread;a[b].style.cursor=pointer_cursor;a[b].ondblclick=init_forum_readmarker_icon}};