-
Notifications
You must be signed in to change notification settings - Fork 21
/
d296.js
1 lines (1 loc) · 95.1 KB
/
d296.js
1
if(typeof YAHOO=="undefined"||!YAHOO){var YAHOO={}}YAHOO.namespace=function(){var a=arguments,b=null,e,f,c;for(e=0;e<a.length;e=e+1){c=(""+a[e]).split(".");b=YAHOO;for(f=(c[0]=="YAHOO")?1:0;f<c.length;f=f+1){b[c[f]]=b[c[f]]||{};b=b[c[f]]}}return b};YAHOO.log=function(b,a,c){var e=YAHOO.widget.Logger;if(e&&e.log){return e.log(b,a,c)}else{return false}};YAHOO.register=function(e,k,a){var f=YAHOO.env.modules,c,g,h,j,b;if(!f[e]){f[e]={versions:[],builds:[]}}c=f[e];g=a.version;h=a.build;j=YAHOO.env.listeners;c.name=e;c.version=g;c.build=h;c.versions.push(g);c.builds.push(h);c.mainClass=k;for(b=0;b<j.length;b=b+1){j[b](c)}if(k){k.VERSION=g;k.BUILD=h}else{YAHOO.log("mainClass is undefined for module "+e,"warn")}};YAHOO.env=YAHOO.env||{modules:[],listeners:[]};YAHOO.env.getVersion=function(a){return YAHOO.env.modules[a]||null};YAHOO.env.ua=function(){var f=function(k){var j=0;return parseFloat(k.replace(/\./g,function(){return(j++==1)?"":"."}))},b=navigator,c={ie:0,opera:0,gecko:0,webkit:0,mobile:null,air:0,caja:b.cajaVersion,secure:false,os:null},g=navigator&&navigator.userAgent,e=window&&window.location,h=e&&e.href,a;c.secure=h&&(h.toLowerCase().indexOf("https")===0);if(g){if((/windows|win32/i).test(g)){c.os="windows"}else{if((/macintosh/i).test(g)){c.os="macintosh"}}if((/KHTML/).test(g)){c.webkit=1}a=g.match(/AppleWebKit\/([^\s]*)/);if(a&&a[1]){c.webkit=f(a[1]);if(/ Mobile\//.test(g)){c.mobile="Apple"}else{a=g.match(/NokiaN[^\/]*/);if(a){c.mobile=a[0]}}a=g.match(/AdobeAIR\/([^\s]*)/);if(a){c.air=a[0]}}if(!c.webkit){a=g.match(/Opera[\s\/]([^\s]*)/);if(a&&a[1]){c.opera=f(a[1]);a=g.match(/Opera Mini[^;]*/);if(a){c.mobile=a[0]}}else{a=g.match(/MSIE\s([^;]*)/);if(a&&a[1]){c.ie=f(a[1])}else{a=g.match(/Gecko\/([^\s]*)/);if(a){c.gecko=1;a=g.match(/rv:([^\s\)]*)/);if(a&&a[1]){c.gecko=f(a[1])}}}}}}return c}();(function(){YAHOO.namespace("util","widget","example");if("undefined"!==typeof YAHOO_config){var e=YAHOO_config.listener,a=YAHOO.env.listeners,b=true,c;if(e){for(c=0;c<a.length;c++){if(a[c]==e){b=false;break}}if(b){a.push(e)}}}})();YAHOO.lang=YAHOO.lang||{};(function(){var j=YAHOO.lang,a=Object.prototype,b="[object Array]",h="[object Function]",c="[object Object]",f=[],e=["toString","valueOf"],g={isArray:function(k){return a.toString.apply(k)===b},isBoolean:function(k){return typeof k==="boolean"},isFunction:function(k){return(typeof k==="function")||a.toString.apply(k)===h},isNull:function(k){return k===null},isNumber:function(k){return typeof k==="number"&&isFinite(k)},isObject:function(k){return(k&&(typeof k==="object"||j.isFunction(k)))||false},isString:function(k){return typeof k==="string"},isUndefined:function(k){return typeof k==="undefined"},_IEEnumFix:(YAHOO.env.ua.ie)?function(l,m){var n,o,k;for(n=0;n<e.length;n=n+1){o=e[n];k=m[o];if(j.isFunction(k)&&k!=a[o]){l[o]=k}}}:function(){},extend:function(k,o,l){if(!o||!k){throw new Error("extend failed, please check that all dependencies are included.")}var m=function(){},n;m.prototype=o.prototype;k.prototype=new m();k.prototype.constructor=k;k.superclass=o.prototype;if(o.prototype.constructor==a.constructor){o.prototype.constructor=o}if(l){for(n in l){if(j.hasOwnProperty(l,n)){k.prototype[n]=l[n]}}j._IEEnumFix(k.prototype,l)}},augmentObject:function(p,k){if(!k||!p){throw new Error("Absorb failed, verify dependencies.")}var n=arguments,l,o,m=n[2];if(m&&m!==true){for(l=2;l<n.length;l=l+1){p[n[l]]=k[n[l]]}}else{for(o in k){if(m||!(o in p)){p[o]=k[o]}}j._IEEnumFix(p,k)}},augmentProto:function(k,l){if(!l||!k){throw new Error("Augment failed, verify dependencies.")}var n=[k.prototype,l.prototype],m;for(m=2;m<arguments.length;m=m+1){n.push(arguments[m])}j.augmentObject.apply(this,n)},dump:function(s,n){var q,o,l=[],k="{...}",r="f(){...}",m=", ",p=" => ";if(!j.isObject(s)){return s+""}else{if(s instanceof Date||("nodeType" in s&&"tagName" in s)){return s}else{if(j.isFunction(s)){return r}}}n=(j.isNumber(n))?n:3;if(j.isArray(s)){l.push("[");for(q=0,o=s.length;q<o;q=q+1){if(j.isObject(s[q])){l.push((n>0)?j.dump(s[q],n-1):k)}else{l.push(s[q])}l.push(m)}if(l.length>1){l.pop()}l.push("]")}else{l.push("{");for(q in s){if(j.hasOwnProperty(s,q)){l.push(q+p);if(j.isObject(s[q])){l.push((n>0)?j.dump(s[q],n-1):k)}else{l.push(s[q])}l.push(m)}}if(l.length>1){l.pop()}l.push("}")}return l.join("")},substitute:function(k,A,r){var v,x,y,o,n,l,p=[],z,u="dump",q=" ",B="{",m="}",s,t;for(;;){v=k.lastIndexOf(B);if(v<0){break}x=k.indexOf(m,v);if(v+1>=x){break}z=k.substring(v+1,x);o=z;l=null;y=o.indexOf(q);if(y>-1){l=o.substring(y+1);o=o.substring(0,y)}n=A[o];if(r){n=r(o,n,l)}if(j.isObject(n)){if(j.isArray(n)){n=j.dump(n,parseInt(l,10))}else{l=l||"";s=l.indexOf(u);if(s>-1){l=l.substring(4)}t=n.toString();if(t===c||s>-1){n=j.dump(n,parseInt(l,10))}else{n=t}}}else{if(!j.isString(n)&&!j.isNumber(n)){n="~-"+p.length+"-~";p[p.length]=z}}k=k.substring(0,v)+n+k.substring(x+1)}for(v=p.length-1;v>=0;v=v-1){k=k.replace(new RegExp("~-"+v+"-~"),"{"+p[v]+"}","g")}return k},trim:function(l){try{return l.replace(/^\s+|\s+$/g,"")}catch(k){return l}},merge:function(){var k={},m=arguments,n=m.length,l;for(l=0;l<n;l=l+1){j.augmentObject(k,m[l],true)}return k},later:function(l,r,k,p,o){l=l||0;r=r||{};var q=k,m=p,n,s;if(j.isString(k)){q=r[k]}if(!q){throw new TypeError("method undefined")}if(m&&!j.isArray(m)){m=[p]}n=function(){q.apply(r,m||f)};s=(o)?setInterval(n,l):setTimeout(n,l);return{interval:o,cancel:function(){if(this.interval){clearInterval(s)}else{clearTimeout(s)}}}},isValue:function(k){return(j.isObject(k)||j.isString(k)||j.isNumber(k)||j.isBoolean(k))}};j.hasOwnProperty=(a.hasOwnProperty)?function(l,k){return l&&l.hasOwnProperty(k)}:function(l,k){return !j.isUndefined(l[k])&&l.constructor.prototype[k]!==l[k]};g.augmentObject(j,g,true);YAHOO.util.Lang=j;j.augment=j.augmentProto;YAHOO.augment=j.augmentProto;YAHOO.extend=j.extend})();YAHOO.register("yahoo",YAHOO,{version:"2.8.0r4",build:"2446"});(function(){YAHOO.env._id_counter=YAHOO.env._id_counter||0;var ao=YAHOO.util,ai=YAHOO.lang,aE=YAHOO.env.ua,at=YAHOO.lang.trim,aN={},aJ={},ag=/^t(?:able|d|h)$/i,y=/color$/i,aj=window.document,z=aj.documentElement,aM="ownerDocument",aD="defaultView",av="documentElement",ax="compatMode",aP="offsetLeft",ae="offsetTop",aw="offsetParent",x="parentNode",aF="nodeType",aq="tagName",af="scrollLeft",aI="scrollTop",ad="getBoundingClientRect",au="getComputedStyle",aQ="currentStyle",ah="CSS1Compat",aO="BackCompat",aK="class",an="className",ak="",ar=" ",ay="(?:^|\\s)",aG="(?= |$)",Y="g",aB="position",aL="fixed",G="relative",aH="left",aC="top",az="medium",aA="borderLeftWidth",ac="borderTopWidth",ap=aE.opera,al=aE.webkit,am=aE.gecko,aa=aE.ie;ao.Dom={CUSTOM_ATTRIBUTES:(!z.hasAttribute)?{"for":"htmlFor","class":an}:{htmlFor:"for",className:aK},DOT_ATTRIBUTES:{},get:function(g){var c,a,f,h,e,b;if(g){if(g[aF]||g.item){return g}if(typeof g==="string"){c=g;g=aj.getElementById(g);b=(g)?g.attributes:null;if(g&&b&&b.id&&b.id.value===c){return g}else{if(g&&aj.all){g=null;a=aj.all[c];for(h=0,e=a.length;h<e;++h){if(a[h].id===c){return a[h]}}}}return g}if(YAHOO.util.Element&&g instanceof YAHOO.util.Element){g=g.get("element")}if("length" in g){f=[];for(h=0,e=g.length;h<e;++h){f[f.length]=ao.Dom.get(g[h])}return f}return g}return null},getComputedStyle:function(a,b){if(window[au]){return a[aM][aD][au](a,null)[b]}else{if(a[aQ]){return ao.Dom.IE_ComputedStyle.get(a,b)}}},getStyle:function(a,b){return ao.Dom.batch(a,ao.Dom._getStyle,b)},_getStyle:function(){if(window[au]){return function(b,e){e=(e==="float")?e="cssFloat":ao.Dom._toCamel(e);var a=b.style[e],c;if(!a){c=b[aM][aD][au](b,null);if(c){a=c[e]}}return a}}else{if(z[aQ]){return function(b,f){var a;switch(f){case"opacity":a=100;try{a=b.filters["DXImageTransform.Microsoft.Alpha"].opacity}catch(e){try{a=b.filters("alpha").opacity}catch(c){}}return a/100;case"float":f="styleFloat";default:f=ao.Dom._toCamel(f);a=b[aQ]?b[aQ][f]:null;return(b.style[f]||a)}}}}}(),setStyle:function(b,c,a){ao.Dom.batch(b,ao.Dom._setStyle,{prop:c,val:a})},_setStyle:function(){if(aa){return function(c,b){var a=ao.Dom._toCamel(b.prop),e=b.val;if(c){switch(a){case"opacity":if(ai.isString(c.style.filter)){c.style.filter="alpha(opacity="+e*100+")";if(!c[aQ]||!c[aQ].hasLayout){c.style.zoom=1}}break;case"float":a="styleFloat";default:c.style[a]=e}}else{}}}else{return function(c,b){var a=ao.Dom._toCamel(b.prop),e=b.val;if(c){if(a=="float"){a="cssFloat"}c.style[a]=e}else{}}}}(),getXY:function(a){return ao.Dom.batch(a,ao.Dom._getXY)},_canPosition:function(a){return(ao.Dom._getStyle(a,"display")!=="none"&&ao.Dom._inDoc(a))},_getXY:function(){if(aj[av][ad]){return function(l){var k,a,j,c,e,f,g,n,m,h=Math.floor,b=false;if(ao.Dom._canPosition(l)){j=l[ad]();c=l[aM];k=ao.Dom.getDocumentScrollLeft(c);a=ao.Dom.getDocumentScrollTop(c);b=[h(j[aH]),h(j[aC])];if(aa&&aE.ie<8){e=2;f=2;g=c[ax];if(aE.ie===6){if(g!==aO){e=0;f=0}}if((g===aO)){n=ab(c[av],aA);m=ab(c[av],ac);if(n!==az){e=parseInt(n,10)}if(m!==az){f=parseInt(m,10)}}b[0]-=e;b[1]-=f}if((a||k)){b[0]+=k;b[1]+=a}b[0]=h(b[0]);b[1]=h(b[1])}else{}return b}}else{return function(j){var a,h,g,e,c,f=false,b=j;if(ao.Dom._canPosition(j)){f=[j[aP],j[ae]];a=ao.Dom.getDocumentScrollLeft(j[aM]);h=ao.Dom.getDocumentScrollTop(j[aM]);c=((am||aE.webkit>519)?true:false);while((b=b[aw])){f[0]+=b[aP];f[1]+=b[ae];if(c){f=ao.Dom._calcBorders(b,f)}}if(ao.Dom._getStyle(j,aB)!==aL){b=j;while((b=b[x])&&b[aq]){g=b[aI];e=b[af];if(am&&(ao.Dom._getStyle(b,"overflow")!=="visible")){f=ao.Dom._calcBorders(b,f)}if(g||e){f[0]-=e;f[1]-=g}}f[0]+=a;f[1]+=h}else{if(ap){f[0]-=a;f[1]-=h}else{if(al||am){f[0]+=a;f[1]+=h}}}f[0]=Math.floor(f[0]);f[1]=Math.floor(f[1])}else{}return f}}}(),getX:function(a){var b=function(c){return ao.Dom.getXY(c)[0]};return ao.Dom.batch(a,b,ao.Dom,true)},getY:function(a){var b=function(c){return ao.Dom.getXY(c)[1]};return ao.Dom.batch(a,b,ao.Dom,true)},setXY:function(b,a,c){ao.Dom.batch(b,ao.Dom._setXY,{pos:a,noRetry:c})},_setXY:function(k,g){var f=ao.Dom._getStyle(k,aB),h=ao.Dom.setStyle,b=g.pos,a=g.noRetry,e=[parseInt(ao.Dom.getComputedStyle(k,aH),10),parseInt(ao.Dom.getComputedStyle(k,aC),10)],c,j;if(f=="static"){f=G;h(k,aB,f)}c=ao.Dom._getXY(k);if(!b||c===false){return false}if(isNaN(e[0])){e[0]=(f==G)?0:k[aP]}if(isNaN(e[1])){e[1]=(f==G)?0:k[ae]}if(b[0]!==null){h(k,aH,b[0]-c[0]+e[0]+"px")}if(b[1]!==null){h(k,aC,b[1]-c[1]+e[1]+"px")}if(!a){j=ao.Dom._getXY(k);if((b[0]!==null&&j[0]!=b[0])||(b[1]!==null&&j[1]!=b[1])){ao.Dom._setXY(k,{pos:b,noRetry:true})}}},setX:function(b,a){ao.Dom.setXY(b,[a,null])},setY:function(a,b){ao.Dom.setXY(a,[null,b])},getRegion:function(a){var b=function(c){var e=false;if(ao.Dom._canPosition(c)){e=ao.Region.getRegion(c)}else{}return e};return ao.Dom.batch(a,b,ao.Dom,true)},getClientWidth:function(){return ao.Dom.getViewportWidth()},getClientHeight:function(){return ao.Dom.getViewportHeight()},getElementsByClassName:function(g,b,f,c,l,e){b=b||"*";f=(f)?ao.Dom.get(f):null||aj;if(!f){return[]}var a=[],m=f.getElementsByTagName(b),j=ao.Dom.hasClass;for(var k=0,h=m.length;k<h;++k){if(j(m[k],g)){a[a.length]=m[k]}}if(c){ao.Dom.batch(a,c,l,e)}return a},hasClass:function(b,a){return ao.Dom.batch(b,ao.Dom._hasClass,a)},_hasClass:function(a,c){var b=false,e;if(a&&c){e=ao.Dom._getAttribute(a,an)||ak;if(c.exec){b=c.test(e)}else{b=c&&(ar+e+ar).indexOf(ar+c+ar)>-1}}else{}return b},addClass:function(b,a){return ao.Dom.batch(b,ao.Dom._addClass,a)},_addClass:function(a,c){var b=false,e;if(a&&c){e=ao.Dom._getAttribute(a,an)||ak;if(!ao.Dom._hasClass(a,c)){ao.Dom.setAttribute(a,an,at(e+ar+c));b=true}}else{}return b},removeClass:function(b,a){return ao.Dom.batch(b,ao.Dom._removeClass,a)},_removeClass:function(g,a){var f=false,e,c,b;if(g&&a){e=ao.Dom._getAttribute(g,an)||ak;ao.Dom.setAttribute(g,an,e.replace(ao.Dom._getClassRegex(a),ak));c=ao.Dom._getAttribute(g,an);if(e!==c){ao.Dom.setAttribute(g,an,at(c));f=true;if(ao.Dom._getAttribute(g,an)===""){b=(g.hasAttribute&&g.hasAttribute(aK))?aK:an;g.removeAttribute(b)}}}else{}return f},replaceClass:function(a,c,b){return ao.Dom.batch(a,ao.Dom._replaceClass,{from:c,to:b})},_replaceClass:function(h,a){var g,c,f,b=false,e;if(h&&a){c=a.from;f=a.to;if(!f){b=false}else{if(!c){b=ao.Dom._addClass(h,a.to)}else{if(c!==f){e=ao.Dom._getAttribute(h,an)||ak;g=(ar+e.replace(ao.Dom._getClassRegex(c),ar+f)).split(ao.Dom._getClassRegex(f));g.splice(1,0,ar+f);ao.Dom.setAttribute(h,an,at(g.join(ak)));b=true}}}}else{}return b},generateId:function(b,a){a=a||"yui-gen";var c=function(f){if(f&&f.id){return f.id}var e=a+YAHOO.env._id_counter++;if(f){if(f[aM]&&f[aM].getElementById(e)){return ao.Dom.generateId(f,e+a)}f.id=e}return e};return ao.Dom.batch(b,c,ao.Dom,true)||c.apply(ao.Dom,arguments)},isAncestor:function(c,a){c=ao.Dom.get(c);a=ao.Dom.get(a);var b=false;if((c&&a)&&(c[aF]&&a[aF])){if(c.contains&&c!==a){b=c.contains(a)}else{if(c.compareDocumentPosition){b=!!(c.compareDocumentPosition(a)&16)}}}else{}return b},inDocument:function(a,b){return ao.Dom._inDoc(ao.Dom.get(a),b)},_inDoc:function(c,a){var b=false;if(c&&c[aq]){a=a||c[aM];b=ao.Dom.isAncestor(a[av],c)}else{}return b},getElementsBy:function(a,b,g,e,k,f,c){b=b||"*";g=(g)?ao.Dom.get(g):null||aj;if(!g){return[]}var l=[],m=g.getElementsByTagName(b);for(var j=0,h=m.length;j<h;++j){if(a(m[j])){if(c){l=m[j];break}else{l[l.length]=m[j]}}}if(e){ao.Dom.batch(l,e,k,f)}return l},getElementBy:function(a,b,c){return ao.Dom.getElementsBy(a,b,c,null,null,null,true)},batch:function(a,c,g,f){var h=[],e=(f)?g:window;a=(a&&(a[aq]||a.item))?a:ao.Dom.get(a);if(a&&c){if(a[aq]||a.length===undefined){return c.call(e,a,g)}for(var b=0;b<a.length;++b){h[h.length]=c.call(e,a[b],g)}}else{return false}return h},getDocumentHeight:function(){var b=(aj[ax]!=ah||al)?aj.body.scrollHeight:z.scrollHeight,a=Math.max(b,ao.Dom.getViewportHeight());return a},getDocumentWidth:function(){var b=(aj[ax]!=ah||al)?aj.body.scrollWidth:z.scrollWidth,a=Math.max(b,ao.Dom.getViewportWidth());return a},getViewportHeight:function(){var a=self.innerHeight,b=aj[ax];if((b||aa)&&!ap){a=(b==ah)?z.clientHeight:aj.body.clientHeight}return a},getViewportWidth:function(){var a=self.innerWidth,b=aj[ax];if(b||aa){a=(b==ah)?z.clientWidth:aj.body.clientWidth}return a},getAncestorBy:function(a,b){while((a=a[x])){if(ao.Dom._testElement(a,b)){return a}}return null},getAncestorByClassName:function(c,b){c=ao.Dom.get(c);if(!c){return null}var a=function(e){return ao.Dom.hasClass(e,b)};return ao.Dom.getAncestorBy(c,a)},getAncestorByTagName:function(c,b){c=ao.Dom.get(c);if(!c){return null}var a=function(e){return e[aq]&&e[aq].toUpperCase()==b.toUpperCase()};return ao.Dom.getAncestorBy(c,a)},getPreviousSiblingBy:function(a,b){while(a){a=a.previousSibling;if(ao.Dom._testElement(a,b)){return a}}return null},getPreviousSibling:function(a){a=ao.Dom.get(a);if(!a){return null}return ao.Dom.getPreviousSiblingBy(a)},getNextSiblingBy:function(a,b){while(a){a=a.nextSibling;if(ao.Dom._testElement(a,b)){return a}}return null},getNextSibling:function(a){a=ao.Dom.get(a);if(!a){return null}return ao.Dom.getNextSiblingBy(a)},getFirstChildBy:function(b,a){var c=(ao.Dom._testElement(b.firstChild,a))?b.firstChild:null;return c||ao.Dom.getNextSiblingBy(b.firstChild,a)},getFirstChild:function(a,b){a=ao.Dom.get(a);if(!a){return null}return ao.Dom.getFirstChildBy(a)},getLastChildBy:function(b,a){if(!b){return null}var c=(ao.Dom._testElement(b.lastChild,a))?b.lastChild:null;return c||ao.Dom.getPreviousSiblingBy(b.lastChild,a)},getLastChild:function(a){a=ao.Dom.get(a);return ao.Dom.getLastChildBy(a)},getChildrenBy:function(c,e){var a=ao.Dom.getFirstChildBy(c,e),b=a?[a]:[];ao.Dom.getNextSiblingBy(a,function(f){if(!e||e(f)){b[b.length]=f}return false});return b},getChildren:function(a){a=ao.Dom.get(a);if(!a){}return ao.Dom.getChildrenBy(a)},getDocumentScrollLeft:function(a){a=a||aj;return Math.max(a[av].scrollLeft,a.body.scrollLeft)},getDocumentScrollTop:function(a){a=a||aj;return Math.max(a[av].scrollTop,a.body.scrollTop)},insertBefore:function(b,a){b=ao.Dom.get(b);a=ao.Dom.get(a);if(!b||!a||!a[x]){return null}return a[x].insertBefore(b,a)},insertAfter:function(b,a){b=ao.Dom.get(b);a=ao.Dom.get(a);if(!b||!a||!a[x]){return null}if(a.nextSibling){return a[x].insertBefore(b,a.nextSibling)}else{return a[x].appendChild(b)}},getClientRegion:function(){var a=ao.Dom.getDocumentScrollTop(),c=ao.Dom.getDocumentScrollLeft(),e=ao.Dom.getViewportWidth()+c,b=ao.Dom.getViewportHeight()+a;return new ao.Region(a,e,b,c)},setAttribute:function(c,b,a){ao.Dom.batch(c,ao.Dom._setAttribute,{attr:b,val:a})},_setAttribute:function(a,c){var b=ao.Dom._toCamel(c.attr),e=c.val;if(a&&a.setAttribute){if(ao.Dom.DOT_ATTRIBUTES[b]){a[b]=e}else{b=ao.Dom.CUSTOM_ATTRIBUTES[b]||b;a.setAttribute(b,e)}}else{}},getAttribute:function(b,a){return ao.Dom.batch(b,ao.Dom._getAttribute,a)},_getAttribute:function(c,b){var a;b=ao.Dom.CUSTOM_ATTRIBUTES[b]||b;if(c&&c.getAttribute){a=c.getAttribute(b,2)}else{}return a},_toCamel:function(c){var a=aN;function b(f,e){return e.toUpperCase()}return a[c]||(a[c]=c.indexOf("-")===-1?c:c.replace(/-([a-z])/gi,b))},_getClassRegex:function(b){var a;if(b!==undefined){if(b.exec){a=b}else{a=aJ[b];if(!a){b=b.replace(ao.Dom._patterns.CLASS_RE_TOKENS,"\\$1");a=aJ[b]=new RegExp(ay+b+aG,Y)}}}return a},_patterns:{ROOT_TAG:/^body|html$/i,CLASS_RE_TOKENS:/([\.\(\)\^\$\*\+\?\|\[\]\{\}\\])/g},_testElement:function(a,b){return a&&a[aF]==1&&(!b||b(a))},_calcBorders:function(a,e){var c=parseInt(ao.Dom[au](a,ac),10)||0,b=parseInt(ao.Dom[au](a,aA),10)||0;if(am){if(ag.test(a[aq])){c=0;b=0}}e[0]+=b;e[1]+=c;return e}};var ab=ao.Dom[au];if(aE.opera){ao.Dom[au]=function(c,b){var a=ab(c,b);if(y.test(b)){a=ao.Dom.Color.toRGB(a)}return a}}if(aE.webkit){ao.Dom[au]=function(c,b){var a=ab(c,b);if(a==="rgba(0, 0, 0, 0)"){a="transparent"}return a}}if(aE.ie&&aE.ie>=8&&aj.documentElement.hasAttribute){ao.Dom.DOT_ATTRIBUTES.type=true}})();YAHOO.util.Region=function(c,b,a,e){this.top=c;this.y=c;this[1]=c;this.right=b;this.bottom=a;this.left=e;this.x=e;this[0]=e;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(b){var e=Math.max(this.top,b.top),c=Math.min(this.right,b.right),a=Math.min(this.bottom,b.bottom),f=Math.max(this.left,b.left);if(a>=e&&c>=f){return new YAHOO.util.Region(e,c,a,f)}else{return null}};YAHOO.util.Region.prototype.union=function(b){var e=Math.min(this.top,b.top),c=Math.max(this.right,b.right),a=Math.max(this.bottom,b.bottom),f=Math.min(this.left,b.left);return new YAHOO.util.Region(e,c,a,f)};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(e){var b=YAHOO.util.Dom.getXY(e),f=b[1],c=b[0]+e.offsetWidth,a=b[1]+e.offsetHeight,g=b[0];return new YAHOO.util.Region(f,c,a,g)};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 y=YAHOO.util,z="clientTop",t="clientLeft",p="parentNode",o="right",a="hasLayout",q="px",c="opacity",n="auto",v="borderLeftWidth",s="borderTopWidth",j="borderRightWidth",b="borderBottomWidth",f="visible",h="transparent",l="height",u="width",r="style",e="currentStyle",g=/^width|height$/,k=/^(\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(D,B){var C="",A=D[e][B];if(B===c){C=y.Dom.getStyle(D,c)}else{if(!A||(A.indexOf&&A.indexOf(q)>-1)){C=A}else{if(y.Dom.IE_COMPUTED[B]){C=y.Dom.IE_COMPUTED[B](D,B)}else{if(k.test(A)){C=y.Dom.IE.ComputedStyle.getPixel(D,B)}else{C=A}}}}return C},getOffset:function(D,C){var A=D[e][C],H=C.charAt(0).toUpperCase()+C.substr(1),G="offset"+H,F="pixel"+H,B="",E;if(A==n){E=D[G];if(E===undefined){B=0}B=E;if(g.test(C)){D[r][C]=E;if(D[G]>E){B=E-(D[G]-E)}D[r][C]=n}}else{if(!D[r][F]&&!D[r][C]){D[r][C]=A}B=D[r][F]}return B+q},getBorderWidth:function(C,A){var B=null;if(!C[e][a]){C[r].zoom=1}switch(A){case s:B=C[z];break;case b:B=C.offsetHeight-C.clientHeight-C[z];break;case v:B=C[t];break;case j:B=C.offsetWidth-C.clientWidth-C[t];break}return B+q},getPixel:function(D,E){var B=null,A=D[e][o],C=D[e][E];D[r][o]=C;B=D[r].pixelRight;D[r][o]=A;return B+q},getMargin:function(B,C){var A;if(B[e][C]==n){A=0+q}else{A=y.Dom.IE.ComputedStyle.getPixel(B,C)}return A},getVisibility:function(B,C){var A;while((A=B[e])&&A[C]=="inherit"){B=B[p]}return(A)?A[C]:f},getColor:function(A,B){return y.Dom.Color.toRGB(A[e][B])||h},getBorderColor:function(C,D){var B=C[e],A=B[D]||B.color;return y.Dom.Color.toRGB(y.Dom.Color.toHex(A))}},x={};x.top=x.right=x.bottom=x.left=x[u]=x[l]=m.getOffset;x.color=m.getColor;x[s]=x[j]=x[b]=x[v]=m.getBorderWidth;x.marginTop=x.marginRight=x.marginBottom=x.marginLeft=m.getMargin;x.visibility=m.getVisibility;x.borderColor=x.borderTopColor=x.borderRightColor=x.borderBottomColor=x.borderLeftColor=m.getBorderColor;y.Dom.IE_COMPUTED=x;y.Dom.IE_ComputedStyle=m})();(function(){var c="toString",a=parseInt,e=RegExp,b=YAHOO.util;b.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(f){if(!b.Dom.Color.re_RGB.test(f)){f=b.Dom.Color.toHex(f)}if(b.Dom.Color.re_hex.exec(f)){f="rgb("+[a(e.$1,16),a(e.$2,16),a(e.$3,16)].join(", ")+")"}return f},toHex:function(f){f=b.Dom.Color.KEYWORDS[f]||f;if(b.Dom.Color.re_RGB.exec(f)){var g=(e.$1.length===1)?"0"+e.$1:Number(e.$1),h=(e.$2.length===1)?"0"+e.$2:Number(e.$2),j=(e.$3.length===1)?"0"+e.$3:Number(e.$3);f=[g[c](16),h[c](16),j[c](16)].join("")}if(f.length<6){f=f.replace(b.Dom.Color.re_hex3,"$1$1")}if(f!=="transparent"&&f.indexOf("#")<0){f="#"+f}return f.toLowerCase()}}}());YAHOO.register("dom",YAHOO.util.Dom,{version:"2.8.0r4",build:"2446"});YAHOO.util.CustomEvent=function(e,f,g,a,c){this.type=e;this.scope=f||window;this.silent=g;this.fireOnce=c;this.fired=false;this.firedWith=null;this.signature=a||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var b="_YUICEOnSubscribe";if(e!==b){this.subscribeEvent=new YAHOO.util.CustomEvent(b,this,true)}this.lastError=null};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(e,c,b){if(!e){throw new Error("Invalid callback for subscriber to '"+this.type+"'")}if(this.subscribeEvent){this.subscribeEvent.fire(e,c,b)}var a=new YAHOO.util.Subscriber(e,c,b);if(this.fireOnce&&this.fired){this.notify(a,this.firedWith)}else{this.subscribers.push(a)}},unsubscribe:function(e,b){if(!e){return this.unsubscribeAll()}var c=false;for(var g=0,a=this.subscribers.length;g<a;++g){var f=this.subscribers[g];if(f&&f.contains(e,b)){this._delete(g);c=true}}return c},fire:function(){this.lastError=null;var b=[],a=this.subscribers.length;var g=[].slice.call(arguments,0),h=true,e,j=false;if(this.fireOnce){if(this.fired){return true}else{this.firedWith=g}}this.fired=true;if(!a&&this.silent){return true}if(!this.silent){}var f=this.subscribers.slice();for(e=0;e<a;++e){var c=f[e];if(!c){j=true}else{h=this.notify(c,g);if(false===h){if(!this.silent){}break}}}return(h!==false)},notify:function(e,h){var j,b=null,f=e.getScope(this.scope),a=YAHOO.util.Event.throwErrors;if(!this.silent){}if(this.signature==YAHOO.util.CustomEvent.FLAT){if(h.length>0){b=h[0]}try{j=e.fn.call(f,b,e.obj)}catch(c){this.lastError=c;if(a){throw c}}}else{try{j=e.fn.call(f,this.type,h,e.obj)}catch(g){this.lastError=g;if(a){throw g}}}return j},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,c,b){this.fn=a;this.obj=YAHOO.lang.isUndefined(c)?null:c;this.overrideContext=b};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 j=false,h=[],f=[],e=0,l=[],c=0,b={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9},a=YAHOO.env.ua.ie,k="focusin",g="focusout";return{POLL_RETRYS:500,POLL_INTERVAL:40,EL:0,TYPE:1,FN:2,WFN:3,UNLOAD_OBJ:3,ADJ_SCOPE:4,OBJ:5,OVERRIDE:6,CAPTURE:7,lastError:null,isSafari:YAHOO.env.ua.webkit,webkit:YAHOO.env.ua.webkit,isIE:a,_interval:null,_dri:null,_specialTypes:{focusin:(a?"focusin":"focus"),focusout:(a?"focusout":"blur")},DOMReady:false,throwErrors:false,startInterval:function(){if(!this._interval){this._interval=YAHOO.lang.later(this.POLL_INTERVAL,this,this._tryPreloadAttach,null,true)}},onAvailable:function(o,s,q,p,r){var n=(YAHOO.lang.isString(o))?[o]:o;for(var m=0;m<n.length;m=m+1){l.push({id:n[m],fn:s,obj:q,overrideContext:p,checkReady:r})}e=this.POLL_RETRYS;this.startInterval()},onContentReady:function(o,n,m,p){this.onAvailable(o,n,m,p,true)},onDOMReady:function(){this.DOMReadyEvent.subscribe.apply(this.DOMReadyEvent,arguments)},_addListener:function(z,B,p,v,r,m){if(!p||!p.call){return false}if(this._isValidCollection(z)){var o=true;for(var u=0,s=z.length;u<s;++u){o=this.on(z[u],B,p,v,r)&&o}return o}else{if(YAHOO.lang.isString(z)){var x=this.getEl(z);if(x){z=x}else{this.onAvailable(z,function(){YAHOO.util.Event._addListener(z,B,p,v,r,m)});return true}}}if(!z){return false}if("unload"==B&&v!==this){f[f.length]=[z,B,p,v,r];return true}var A=z;if(r){if(r===true){A=v}else{A=r}}var y=function(C){return p.call(A,YAHOO.util.Event.getEvent(C,z),v)};var n=[z,B,p,y,A,v,r,m];var t=h.length;h[t]=n;try{this._simpleAdd(z,B,y,m)}catch(q){this.lastError=q;this.removeListener(z,B,p);return false}return true},_getType:function(m){return this._specialTypes[m]||m},addListener:function(r,o,m,q,p){var n=((o==k||o==g)&&!YAHOO.env.ua.ie)?true:false;return this._addListener(r,this._getType(o),m,q,p,n)},addFocusListener:function(m,n,p,o){return this.on(m,k,n,p,o)},removeFocusListener:function(m,n){return this.removeListener(m,k,n)},addBlurListener:function(m,n,p,o){return this.on(m,g,n,p,o)},removeBlurListener:function(m,n){return this.removeListener(m,g,n)},removeListener:function(v,x,p){var u,r,m;x=this._getType(x);if(typeof v=="string"){v=this.getEl(v)}else{if(this._isValidCollection(v)){var o=true;for(u=v.length-1;u>-1;u--){o=(this.removeListener(v[u],x,p)&&o)}return o}}if(!p||!p.call){return this.purgeElement(v,false,x)}if("unload"==x){for(u=f.length-1;u>-1;u--){m=f[u];if(m&&m[0]==v&&m[1]==x&&m[2]==p){f.splice(u,1);return true}}return false}var t=null;var s=arguments[3];if("undefined"===typeof s){s=this._getCacheIndex(h,v,x,p)}if(s>=0){t=h[s]}if(!v||!t){return false}var n=t[this.CAPTURE]===true?true:false;try{this._simpleRemove(v,x,t[this.WFN],n)}catch(q){this.lastError=q;return false}delete h[s][this.WFN];delete h[s][this.FN];h.splice(s,1);return true},getTarget:function(o,m){var n=o.target||o.srcElement;return this.resolveTextNode(n)},resolveTextNode:function(m){try{if(m&&3==m.nodeType){return m.parentNode}}catch(n){}return m},getPageX:function(m){var n=m.pageX;if(!n&&0!==n){n=m.clientX||0;if(this.isIE){n+=this._getScrollLeft()}}return n},getPageY:function(n){var m=n.pageY;if(!m&&0!==m){m=n.clientY||0;if(this.isIE){m+=this._getScrollTop()}}return m},getXY:function(m){return[this.getPageX(m),this.getPageY(m)]},getRelatedTarget:function(m){var n=m.relatedTarget;if(!n){if(m.type=="mouseout"){n=m.toElement}else{if(m.type=="mouseover"){n=m.fromElement}}}return this.resolveTextNode(n)},getTime:function(o){if(!o.time){var m=new Date().getTime();try{o.time=m}catch(n){this.lastError=n;return m}}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(p,n){var m=p||window.event;if(!m){var o=this.getEvent.caller;while(o){m=o.arguments[0];if(m&&Event==m.constructor){break}o=o.caller}}return m},getCharCode:function(m){var n=m.keyCode||m.charCode||0;if(YAHOO.env.ua.webkit&&(n in b)){n=b[n]}return n},_getCacheIndex:function(s,p,o,q){for(var r=0,m=s.length;r<m;r=r+1){var n=s[r];if(n&&n[this.FN]==q&&n[this.EL]==p&&n[this.TYPE]==o){return r}}return -1},generateId:function(n){var m=n.id;if(!m){m="yuievtautoid-"+c;++c;n.id=m}return m},_isValidCollection:function(m){try{return(m&&typeof m!=="string"&&m.length&&!m.tagName&&!m.alert&&typeof m[0]!=="undefined")}catch(n){return false}},elCache:{},getEl:function(m){return(typeof m==="string")?document.getElementById(m):m},clearCache:function(){},DOMReadyEvent:new YAHOO.util.CustomEvent("DOMReady",YAHOO,0,0,1),_load:function(m){if(!j){j=true;var n=YAHOO.util.Event;n._ready();n._tryPreloadAttach()}},_ready:function(m){var n=YAHOO.util.Event;if(!n.DOMReady){n.DOMReady=true;n.DOMReadyEvent.fire();n._simpleRemove(document,"DOMContentLoaded",n._ready)}},_tryPreloadAttach:function(){if(l.length===0){e=0;if(this._interval){this._interval.cancel();this._interval=null}return}if(this.locked){return}if(this.isIE){if(!this.DOMReady){this.startInterval();return}}this.locked=true;var p=!j;if(!p){p=(e>0&&l.length>0)}var q=[];var o=function(v,u){var x=v;if(u.overrideContext){if(u.overrideContext===true){x=u.obj}else{x=u.overrideContext}}u.fn.call(x,u.obj)};var m,n,r,s,t=[];for(m=0,n=l.length;m<n;m=m+1){r=l[m];if(r){s=this.getEl(r.id);if(s){if(r.checkReady){if(j||s.nextSibling||!p){t.push(r);l[m]=null}}else{o(s,r);l[m]=null}}else{q.push(r)}}}for(m=0,n=t.length;m<n;m=m+1){r=t[m];o(this.getEl(r.id),r)}e--;if(p){for(m=l.length-1;m>-1;m--){r=l[m];if(!r||!r.id){l.splice(m,1)}}this.startInterval()}else{if(this._interval){this._interval.cancel();this._interval=null}}this.locked=false},purgeElement:function(r,q,o){var t=(YAHOO.lang.isString(r))?this.getEl(r):r;var p=this.getListeners(t,o),s,n;if(p){for(s=p.length-1;s>-1;s--){var m=p[s];this.removeListener(t,m.type,m.fn)}}if(q&&t&&t.childNodes){for(s=0,n=t.childNodes.length;s<n;++s){this.purgeElement(t.childNodes[s],q,o)}}},getListeners:function(t,v){var q=[],u;if(!v){u=[h,f]}else{if(v==="unload"){u=[f]}else{v=this._getType(v);u=[h]}}var o=(YAHOO.lang.isString(t))?this.getEl(t):t;for(var r=0;r<u.length;r=r+1){var m=u[r];if(m){for(var p=0,n=m.length;p<n;++p){var s=m[p];if(s&&s[this.EL]===o&&(!v||v===s[this.TYPE])){q.push({type:s[this.TYPE],fn:s[this.FN],obj:s[this.OBJ],adjust:s[this.OVERRIDE],scope:s[this.ADJ_SCOPE],index:p})}}}}return(q.length)?q:null},_unload:function(n){var t=YAHOO.util.Event,q,r,s,o,p,m=f.slice(),u;for(q=0,o=f.length;q<o;++q){s=m[q];if(s){u=window;if(s[t.ADJ_SCOPE]){if(s[t.ADJ_SCOPE]===true){u=s[t.UNLOAD_OBJ]}else{u=s[t.ADJ_SCOPE]}}s[t.FN].call(u,t.getEvent(n,s[t.EL]),s[t.UNLOAD_OBJ]);m[q]=null}}s=null;u=null;f=null;if(h){for(r=h.length-1;r>-1;r--){s=h[r];if(s){t.removeListener(s[t.EL],s[t.TYPE],s[t.FN],r)}}s=null}t._simpleRemove(window,"unload",t._unload)},_getScrollLeft:function(){return this._getScroll()[1]},_getScrollTop:function(){return this._getScroll()[0]},_getScroll:function(){var n=document.documentElement,m=document.body;if(n&&(n.scrollTop||n.scrollLeft)){return[n.scrollTop,n.scrollLeft]}else{if(m){return[m.scrollTop,m.scrollLeft]}else{return[0,0]}}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(p,o,m,n){p.addEventListener(o,m,(n))}}else{if(window.attachEvent){return function(p,o,m,n){p.attachEvent("on"+o,m)}}else{return function(){}}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(p,o,m,n){p.removeEventListener(o,m,(n))}}else{if(window.detachEvent){return function(m,o,n){m.detachEvent("on"+o,n)}}else{return function(){}}}}()}}();(function(){var a=YAHOO.util.Event;a.on=a.addListener;a.onFocus=a.addFocusListener;a.onBlur=a.addBlurListener;if(a.isIE){if(self!==self.top){document.onreadystatechange=function(){if(document.readyState=="complete"){document.onreadystatechange=null;a._ready()}}}else{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,f,b,c){this.__yui_events=this.__yui_events||{};var e=this.__yui_events[a];if(e){e.subscribe(f,b,c)}else{this.__yui_subscribers=this.__yui_subscribers||{};var g=this.__yui_subscribers;if(!g[a]){g[a]=[]}g[a].push({fn:f,obj:b,overrideContext:c})}},unsubscribe:function(g,e,b){this.__yui_events=this.__yui_events||{};var a=this.__yui_events;if(g){var c=a[g];if(c){return c.unsubscribe(e,b)}}else{var h=true;for(var f in a){if(YAHOO.lang.hasOwnProperty(a,f)){h=h&&a[f].unsubscribe(e,b)}}return h}return false},unsubscribeAll:function(a){return this.unsubscribe(a)},createEvent:function(h,b){this.__yui_events=this.__yui_events||{};var e=b||{},f=this.__yui_events,c;if(f[h]){}else{c=new YAHOO.util.CustomEvent(h,e.scope||this,e.silent,YAHOO.util.CustomEvent.FLAT,e.fireOnce);f[h]=c;if(e.onSubscribeCallback){c.subscribeEvent.subscribe(e.onSubscribeCallback)}this.__yui_subscribers=this.__yui_subscribers||{};var a=this.__yui_subscribers[h];if(a){for(var g=0;g<a.length;++g){c.subscribe(a[g].fn,a[g].obj,a[g].overrideContext)}}}return f[h]},fireEvent:function(e){this.__yui_events=this.__yui_events||{};var b=this.__yui_events[e];if(!b){return null}var a=[];for(var c=1;c<arguments.length;++c){a.push(arguments[c])}return b.fire.apply(b,a)},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(k,e,j,h){if(!k){}else{if(!e){}else{if(!j){}}}if(!h){h=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(b.isString(k)){k=document.getElementById(k)}if(b.isFunction(j)){g.subscribe(j)}else{g.subscribe(j.fn,j.scope,j.correctScope)}function f(o,p){if(!e.shift){e.shift=false}if(!e.alt){e.alt=false}if(!e.ctrl){e.ctrl=false}if(o.shiftKey==e.shift&&o.altKey==e.alt&&o.ctrlKey==e.ctrl){var n,q=e.keys,l;if(YAHOO.lang.isArray(q)){for(var m=0;m<q.length;m++){n=q[m];l=a.getCharCode(o);if(n==l){g.fire(l,o);break}}}else{l=a.getCharCode(o);if(q==l){g.fire(l,o)}}}}this.enable=function(){if(!this.enabled){a.on(k,h,f);this.enabledEvent.fire(e)}this.enabled=true};this.disable=function(){if(this.enabled){a.removeListener(k,h,f);this.disabledEvent.fire(e)}this.enabled=false};this.toString=function(){return"KeyListener ["+e.keys+"] "+k.tagName+(k.id?"["+k.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.8.0r4",build:"2446"});YAHOO.register("yahoo-dom-event",YAHOO,{version:"2.8.0r4",build:"2446"});(function(){var j=document,c=j.createElement("p"),a=c.style,b=YAHOO.lang,f={},k={},n=0,h=("cssFloat" in a)?"cssFloat":"styleFloat",m,e,g;e=("opacity" in a)?function(o){o.opacity=""}:function(o){o.filter=""};a.border="1px solid red";a.border="";g=a.borderLeft?function(q,o){var p;if(o!==h&&o.toLowerCase().indexOf("float")!=-1){o=h}if(typeof q[o]==="string"){switch(o){case"opacity":case"filter":e(q);break;case"font":q.font=q.fontStyle=q.fontVariant=q.fontWeight=q.fontSize=q.lineHeight=q.fontFamily="";break;default:for(p in q){if(p.indexOf(o)===0){q[p]=""}}}}}:function(p,o){if(o!==h&&o.toLowerCase().indexOf("float")!=-1){o=h}if(b.isString(p[o])){if(o==="opacity"){e(p)}else{p[o]=""}}};function l(s,y){var p,u,q,r={},z,o,v,t,A,x;if(!(this instanceof l)){return new l(s,y)}u=s&&(s.nodeName?s:j.getElementById(s));if(s&&k[s]){return k[s]}else{if(u&&u.yuiSSID&&k[u.yuiSSID]){return k[u.yuiSSID]}}if(!u||!/^(?:style|link)$/i.test(u.nodeName)){u=j.createElement("style");u.type="text/css"}if(b.isString(s)){if(s.indexOf("{")!=-1){if(u.styleSheet){u.styleSheet.cssText=s}else{u.appendChild(j.createTextNode(s))}}else{if(!y){y=s}}}if(!u.parentNode||u.parentNode.nodeName.toLowerCase()!=="head"){p=(u.ownerDocument||j).getElementsByTagName("head")[0];p.appendChild(u)}q=u.sheet||u.styleSheet;z=q&&("cssRules" in q)?"cssRules":"rules";v=("deleteRule" in q)?function(B){q.deleteRule(B)}:function(B){q.removeRule(B)};o=("insertRule" in q)?function(B,C,D){q.insertRule(B+" {"+C+"}",D)}:function(B,C,D){q.addRule(B,C,D)};for(t=q[z].length-1;t>=0;--t){A=q[z][t];x=A.selectorText;if(r[x]){r[x].style.cssText+=";"+A.style.cssText;v(t)}else{r[x]=A}}u.yuiSSID="yui-stylesheet-"+(n++);l.register(u.yuiSSID,this);if(y){l.register(y,this)}b.augmentObject(this,{getId:function(){return u.yuiSSID},node:u,enable:function(){q.disabled=false;return this},disable:function(){q.disabled=true;return this},isEnabled:function(){return !q.disabled},set:function(B,C){var F=r[B],G=B.split(/\s*,\s*/),D,E;if(G.length>1){for(D=G.length-1;D>=0;--D){this.set(G[D],C)}return this}if(!l.isValidSelector(B)){return this}if(F){F.style.cssText=l.toCssText(C,F.style.cssText)}else{E=q[z].length;C=l.toCssText(C);if(C){o(B,C,E);r[B]=q[z][E]}}return this},unset:function(B,C){var G=r[B],H=B.split(/\s*,\s*/),F=!C,E,D;if(H.length>1){for(D=H.length-1;D>=0;--D){this.unset(H[D],C)}return this}if(G){if(!F){if(!b.isArray(C)){C=[C]}a.cssText=G.style.cssText;for(D=C.length-1;D>=0;--D){g(a,C[D])}if(a.cssText){G.style.cssText=a.cssText}else{F=true}}if(F){E=q[z];for(D=E.length-1;D>=0;--D){if(E[D]===G){delete r[B];v(D);break}}}}return this},getCssText:function(C){var B,D;if(b.isString(C)){B=r[C.split(/\s*,\s*/)[0]];return B?B.style.cssText:null}else{D=[];for(C in r){if(r.hasOwnProperty(C)){B=r[C];D.push(B.selectorText+" {"+B.style.cssText+"}")}}return D.join("\n")}}},true)}m=function(s,q){var r=s.styleFloat||s.cssFloat||s["float"],o;a.cssText=q||"";if(b.isString(s)){a.cssText+=";"+s}else{if(r&&!s[h]){s=b.merge(s);delete s.styleFloat;delete s.cssFloat;delete s["float"];s[h]=r}for(o in s){if(s.hasOwnProperty(o)){try{a[o]=b.trim(s[o])}catch(p){}}}}return a.cssText};b.augmentObject(l,{toCssText:(("opacity" in a)?m:function(p,o){if(b.isObject(p)&&"opacity" in p){p=b.merge(p,{filter:"alpha(opacity="+(p.opacity*100)+")"});delete p.opacity}return m(p,o)}),register:function(p,o){return !!(p&&o instanceof l&&!k[p]&&(k[p]=o))},isValidSelector:function(o){var p=false;if(o&&b.isString(o)){if(!f.hasOwnProperty(o)){f[o]=!/\S/.test(o.replace(/\s+|\s*[+~>]\s*/g," ").replace(/([^ ])\[.*?\]/g,"$1").replace(/([^ ])::?[a-z][a-z\-]+[a-z](?:\(.*?\))?/ig,"$1").replace(/(?:^| )[a-z0-6]+/ig," ").replace(/\\./g,"").replace(/[.#]\w[\w\-]*/g,""))}p=f[o]}return p}},true);YAHOO.util.StyleSheet=l})();YAHOO.register("stylesheet",YAHOO.util.StyleSheet,{version:"2.8.0r4",build:"2446"});if(typeof(YAHOO.util.ImageLoader)=="undefined"){YAHOO.util.ImageLoader={}}YAHOO.util.ImageLoader.group=function(a,c,b){this.name="unnamed";this._imgObjs={};this.timeoutLen=b;this._timeout=null;this._triggers=[];this._customTriggers=[];this.foldConditional=false;this.className=null;this._classImageEls=null;YAHOO.util.Event.addListener(window,"load",this._onloadTasks,this,true);this.addTrigger(a,c)};YAHOO.util.ImageLoader.group.prototype.addTrigger=function(c,b){if(!c||!b){return}var a=function(){this.fetch()};this._triggers.push([c,b,a]);YAHOO.util.Event.addListener(c,b,a,this,true)};YAHOO.util.ImageLoader.group.prototype.addCustomTrigger=function(b){if(!b||!b instanceof YAHOO.util.CustomEvent){return}var a=function(){this.fetch()};this._customTriggers.push([b,a]);b.subscribe(a,this,true)};YAHOO.util.ImageLoader.group.prototype._onloadTasks=function(){if(this.timeoutLen&&typeof(this.timeoutLen)=="number"&&this.timeoutLen>0){this._timeout=setTimeout(this._getFetchTimeout(),this.timeoutLen*1000)}if(this.foldConditional){this._foldCheck()}};YAHOO.util.ImageLoader.group.prototype._getFetchTimeout=function(){var a=this;return function(){a.fetch()}};YAHOO.util.ImageLoader.group.prototype.registerBgImage=function(b,a){this._imgObjs[b]=new YAHOO.util.ImageLoader.bgImgObj(b,a);return this._imgObjs[b]};YAHOO.util.ImageLoader.group.prototype.registerSrcImage=function(b,e,c,a){this._imgObjs[b]=new YAHOO.util.ImageLoader.srcImgObj(b,e,c,a);return this._imgObjs[b]};YAHOO.util.ImageLoader.group.prototype.registerPngBgImage=function(b,c,a){this._imgObjs[b]=new YAHOO.util.ImageLoader.pngBgImgObj(b,c,a);return this._imgObjs[b]};YAHOO.util.ImageLoader.group.prototype.fetch=function(){clearTimeout(this._timeout);for(var c=0,a=this._triggers.length;c<a;c++){YAHOO.util.Event.removeListener(this._triggers[c][0],this._triggers[c][1],this._triggers[c][2])}for(var c=0,a=this._customTriggers.length;c<a;c++){this._customTriggers[c][0].unsubscribe(this._customTriggers[c][1],this)}this._fetchByClass();for(var b in this._imgObjs){if(YAHOO.lang.hasOwnProperty(this._imgObjs,b)){this._imgObjs[b].fetch()}}};YAHOO.util.ImageLoader.group.prototype._foldCheck=function(){var b=(document.compatMode!="CSS1Compat")?document.body.scrollTop:document.documentElement.scrollTop;var a=YAHOO.util.Dom.getViewportHeight();var e=b+a;var l=(document.compatMode!="CSS1Compat")?document.body.scrollLeft:document.documentElement.scrollLeft;var j=YAHOO.util.Dom.getViewportWidth();var g=l+j;for(var c in this._imgObjs){if(YAHOO.lang.hasOwnProperty(this._imgObjs,c)){var f=YAHOO.util.Dom.getXY(this._imgObjs[c].domId);if(f[1]<e&&f[0]<g){this._imgObjs[c].fetch()}}}if(this.className){this._classImageEls=YAHOO.util.Dom.getElementsByClassName(this.className);for(var k=0,h=this._classImageEls.length;k<h;k++){var f=YAHOO.util.Dom.getXY(this._classImageEls[k]);if(f[1]<e&&f[0]<g){YAHOO.util.Dom.removeClass(this._classImageEls[k],this.className)}}}};YAHOO.util.ImageLoader.group.prototype._fetchByClass=function(){if(!this.className){return}if(this._classImageEls===null){this._classImageEls=YAHOO.util.Dom.getElementsByClassName(this.className)}YAHOO.util.Dom.removeClass(this._classImageEls,this.className)};YAHOO.util.ImageLoader.imgObj=function(b,a){this.domId=b;this.url=a;this.width=null;this.height=null;this.setVisible=false;this._fetched=false};YAHOO.util.ImageLoader.imgObj.prototype.fetch=function(){if(this._fetched){return}var a=document.getElementById(this.domId);if(!a){return}this._applyUrl(a);if(this.setVisible){a.style.visibility="visible"}if(this.width){a.width=this.width}if(this.height){a.height=this.height}this._fetched=true};YAHOO.util.ImageLoader.imgObj.prototype._applyUrl=function(a){};YAHOO.util.ImageLoader.bgImgObj=function(b,a){YAHOO.util.ImageLoader.bgImgObj.superclass.constructor.call(this,b,a)};YAHOO.lang.extend(YAHOO.util.ImageLoader.bgImgObj,YAHOO.util.ImageLoader.imgObj);YAHOO.util.ImageLoader.bgImgObj.prototype._applyUrl=function(a){a.style.backgroundImage="url('"+this.url+"')"};YAHOO.util.ImageLoader.srcImgObj=function(b,e,c,a){YAHOO.util.ImageLoader.srcImgObj.superclass.constructor.call(this,b,e);this.width=c;this.height=a};YAHOO.lang.extend(YAHOO.util.ImageLoader.srcImgObj,YAHOO.util.ImageLoader.imgObj);YAHOO.util.ImageLoader.srcImgObj.prototype._applyUrl=function(a){a.src=this.url};YAHOO.util.ImageLoader.pngBgImgObj=function(b,c,a){YAHOO.util.ImageLoader.pngBgImgObj.superclass.constructor.call(this,b,c);this.props=a||{}};YAHOO.lang.extend(YAHOO.util.ImageLoader.pngBgImgObj,YAHOO.util.ImageLoader.imgObj);YAHOO.util.ImageLoader.pngBgImgObj.prototype._applyUrl=function(c){if(YAHOO.env.ua.ie&&YAHOO.env.ua.ie<=6){var b=(YAHOO.lang.isUndefined(this.props.sizingMethod))?"scale":this.props.sizingMethod;var a=(YAHOO.lang.isUndefined(this.props.enabled))?"true":this.props.enabled;c.style.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+this.url+'", sizingMethod="'+b+'", enabled="'+a+'")'}else{c.style.backgroundImage="url('"+this.url+"')"}};YAHOO.register("imageloader",YAHOO.util.ImageLoader,{version:"2.8.0r4",build:"2446"});YAHOO.namespace("util");YAHOO.util.Cookie={_createCookieString:function(g,e,f,a){var b=YAHOO.lang,c=encodeURIComponent(g)+"="+(f?encodeURIComponent(e):e);if(b.isObject(a)){if(a.expires instanceof Date){c+="; expires="+a.expires.toUTCString()}if(b.isString(a.path)&&a.path!==""){c+="; path="+a.path}if(b.isString(a.domain)&&a.domain!==""){c+="; domain="+a.domain}if(a.secure===true){c+="; secure"}}return c},_createCookieHashString:function(e){var b=YAHOO.lang;if(!b.isObject(e)){throw new TypeError("Cookie._createCookieHashString(): Argument must be an object.")}var c=[];for(var a in e){if(b.hasOwnProperty(e,a)&&!b.isFunction(e[a])&&!b.isUndefined(e[a])){c.push(encodeURIComponent(a)+"="+encodeURIComponent(String(e[a])))}}return c.join("&")},_parseCookieHash:function(c){var e=c.split("&"),b=null,f={};if(c.length>0){for(var g=0,a=e.length;g<a;g++){b=e[g].split("=");f[decodeURIComponent(b[0])]=decodeURIComponent(b[1])}}return f},_parseCookieString:function(g,e){var f={};if(YAHOO.lang.isString(g)&&g.length>0){var c=(e===false?function(n){return n}:decodeURIComponent);var j=g.split(/;\s/g),h=null,b=null,m=null;for(var a=0,l=j.length;a<l;a++){m=j[a].match(/([^=]+)=/i);if(m instanceof Array){try{h=decodeURIComponent(m[1]);b=c(j[a].substring(m[1].length+1))}catch(k){}}else{h=decodeURIComponent(j[a]);b=""}f[h]=b}}return f},exists:function(a){if(!YAHOO.lang.isString(a)||a===""){throw new TypeError("Cookie.exists(): Cookie name must be a non-empty string.")}var b=this._parseCookieString(document.cookie,true);return b.hasOwnProperty(a)},get:function(f,a){var b=YAHOO.lang,e;if(b.isFunction(a)){e=a;a={}}else{if(b.isObject(a)){e=a.converter}else{a={}}}var c=this._parseCookieString(document.cookie,!a.raw);if(!b.isString(f)||f===""){throw new TypeError("Cookie.get(): Cookie name must be a non-empty string.")}if(b.isUndefined(c[f])){return null}if(!b.isFunction(e)){return c[f]}else{return e(c[f])}},getSub:function(a,e,f){var b=YAHOO.lang,c=this.getSubs(a);if(c!==null){if(!b.isString(e)||e===""){throw new TypeError("Cookie.getSub(): Subcookie name must be a non-empty string.")}if(b.isUndefined(c[e])){return null}if(!b.isFunction(f)){return c[e]}else{return f(c[e])}}else{return null}},getSubs:function(c){var a=YAHOO.lang.isString;if(!a(c)||c===""){throw new TypeError("Cookie.getSubs(): Cookie name must be a non-empty string.")}var b=this._parseCookieString(document.cookie,false);if(a(b[c])){return this._parseCookieHash(b[c])}return null},remove:function(b,a){if(!YAHOO.lang.isString(b)||b===""){throw new TypeError("Cookie.remove(): Cookie name must be a non-empty string.")}a=YAHOO.lang.merge(a||{},{expires:new Date(0)});return this.set(b,"",a)},removeSub:function(g,c,a){var b=YAHOO.lang;a=a||{};if(!b.isString(g)||g===""){throw new TypeError("Cookie.removeSub(): Cookie name must be a non-empty string.")}if(!b.isString(c)||c===""){throw new TypeError("Cookie.removeSub(): Subcookie name must be a non-empty string.")}var e=this.getSubs(g);if(b.isObject(e)&&b.hasOwnProperty(e,c)){delete e[c];if(!a.removeIfEmpty){return this.setSubs(g,e,a)}else{for(var f in e){if(b.hasOwnProperty(e,f)&&!b.isFunction(e[f])&&!b.isUndefined(e[f])){return this.setSubs(g,e,a)}}return this.remove(g,a)}}else{return""}},set:function(f,e,a){var b=YAHOO.lang;a=a||{};if(!b.isString(f)){throw new TypeError("Cookie.set(): Cookie name must be a string.")}if(b.isUndefined(e)){throw new TypeError("Cookie.set(): Value cannot be undefined.")}var c=this._createCookieString(f,e,!a.raw,a);document.cookie=c;return c},setSub:function(g,e,f,a){var b=YAHOO.lang;if(!b.isString(g)||g===""){throw new TypeError("Cookie.setSub(): Cookie name must be a non-empty string.")}if(!b.isString(e)||e===""){throw new TypeError("Cookie.setSub(): Subcookie name must be a non-empty string.")}if(b.isUndefined(f)){throw new TypeError("Cookie.setSub(): Subcookie value cannot be undefined.")}var c=this.getSubs(g);if(!b.isObject(c)){c={}}c[e]=f;return this.setSubs(g,c,a)},setSubs:function(f,e,a){var b=YAHOO.lang;if(!b.isString(f)){throw new TypeError("Cookie.setSubs(): Cookie name must be a string.")}if(!b.isObject(e)){throw new TypeError("Cookie.setSubs(): Cookie value must be an object.")}var c=this._createCookieString(f,this._createCookieHashString(e),false,a);document.cookie=c;return c}};YAHOO.register("cookie",YAHOO.util.Cookie,{version:"2.8.0r4",build:"2446"});YAHOO.util.FlashDetect=new function(){var a=this;a.installed=false;a.raw="";a.major=-1;a.minor=-1;a.revision=-1;a.revisionStr="";var b=[{name:"ShockwaveFlash.ShockwaveFlash.7",version:function(j){return e(j)}},{name:"ShockwaveFlash.ShockwaveFlash.6",version:function(l){var j="6,0,21";try{l.AllowScriptAccess="always";j=e(l)}catch(k){}return j}},{name:"ShockwaveFlash.ShockwaveFlash",version:function(j){return e(j)}}];var e=function(l){var j=-1;try{j=l.GetVariable("$version")}catch(k){}return j};var h=function(j){var l=-1;try{l=new ActiveXObject(j)}catch(k){l={activeXError:true}}return l};var c=function(k){var j=k.split(",");return{raw:k,major:parseInt(j[0].split(" ")[1],10),minor:parseInt(j[1],10),revision:parseInt(j[2],10),revisionStr:j[2]}};var g=function(m){var k=m.split(/ +/);var l=k[2].split(/\./);var j=k[3];return{raw:m,major:parseInt(l[0],10),minor:parseInt(l[1],10),revisionStr:j,revision:f(j)}};var f=function(j){return parseInt(j.replace(/[a-zA-Z]/g,""),10)||a.revision};a.majorAtLeast=function(j){return a.major>=j};a.minorAtLeast=function(j){return a.minor>=j};a.revisionAtLeast=function(j){return a.revision>=j};a.versionAtLeast=function(k){var l=[a.major,a.minor,a.revision];var j=Math.min(l.length,arguments.length);for(i=0;i<j;i++){if(l[i]>=arguments[i]){if(i+1<j&&l[i]==arguments[i]){continue}else{return true}}else{return false}}};a.FlashDetect=function(){if(navigator.plugins&&navigator.plugins.length>0){var m="application/x-shockwave-flash";var l=navigator.mimeTypes;if(l&&l[m]&&l[m].enabledPlugin&&l[m].enabledPlugin.description){var j=l[m].enabledPlugin.description;var n=g(j);a.raw=n.raw;a.major=n.major;a.minor=n.minor;a.revisionStr=n.revisionStr;a.revision=n.revision;a.installed=true}}else{if(navigator.appVersion.indexOf("Mac")==-1&&window.execScript){var j=-1;for(var k=0;k<b.length&&j==-1;k++){var o=h(b[k].name);if(!o.activeXError){a.installed=true;j=b[k].version(o);if(j!=-1){var n=c(j);a.raw=n.raw;a.major=n.major;a.minor=n.minor;a.revision=n.revision;a.revisionStr=n.revisionStr}}}}}}()};YAHOO.util.FlashDetect.JS_RELEASE="1.0.4";var cd,dz,fk,fs,fm,fe,fl,fa,fn,fz,ie,ih5,idom,io,il,ir,is,is5,ga,gd,rc,rd,rs,rdc,rsc,rtc,rii,rin,rir,rl,rp,reb,rebc,sx,sy,tl,tlz,tac,tr,ts,tn,tsl,tz,d,w,nir,kurl;d=document;w=window;ie=d.all?true:false;ie6=/msie 6/.test(navigator.userAgent.toLowerCase())?true:false;ie7=/msie 7/.test(navigator.userAgent.toLowerCase())?true:false;is=/safari/.test(navigator.userAgent.toLowerCase())?true:false;is5=(is&&/version\/[56]/.test(navigator.userAgent.toLowerCase()))?true:false;ir=(navigator.vendor&&navigator.vendor.indexOf("Google")!=-1)?true:false;im=(navigator.userAgent.indexOf("Firefox")!=-1)?true:false;io=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;ip=(navigator.userAgent.indexOf("iPad")!=-1||navigator.userAgent.indexOf("iPhone")!=-1)?true:false;ih5=w.postMessage?true:false;tr=new Array();ts=new Array();rd=new Array();rsd=new Array();reb=new Array();ga="/i/";gd="http://duckduckgo.com/";if(document.location.protocol=="https:"){gd="https://duckduckgo.com/"}idom=il=dz=fz=tl=tlz=sx=sy=fl=fa=fn=rdc=rtc=rsc=rii=rin=rebc=tsl=tac=tn=tz=fe=fmx=fmy=0;kurl="";fk=fs=1;rl=YAHOO.util.Cookie.get("l")||"us-en";if(w.kl){rl=kl}rp=YAHOO.util.Cookie.get("p")||1;if(w.kp){rp=kp}if(!w.kd){kd=YAHOO.util.Cookie.get("d")||""}if(!w.kg){kg=YAHOO.util.Cookie.get("g")||""}if(!w.kn){kn=YAHOO.util.Cookie.get("n")||""}if(!w.kk){kk=YAHOO.util.Cookie.get("k")||""}if(window.r1c){rir="r2-0"}function nua(j,k,h,g,b,e,c,a){if(!b){b=tr.length;tr[b]=k}if(!h){h=10}if(!g){setTimeout(j+"(tr["+b+"],"+e+","+c+","+a+");",h)}else{if(!tsl){tsl=ts.length;setTimeout(j+"(tr["+b+"],"+e+","+c+","+a+");tsl=0",10)}else{setTimeout("nua("+j+",0,1,"+b+","+e+","+c+","+a+")",100)}}}function nkdc(a){var b;if(a){b=a.ctrlKey}return b}function nkdm(a){var b;if(!ie&&a){b=a.metaKey}return b}function nkdt(a){var b;if(a){b=a.altKey}return b}function nkds(a){var b;if(a){b=a.shiftKey}return b}function nrl(b,a){var c,e;b=b||window.event;fl=1;if(kg!="p"&&(!kd||kd==1)){c=nkdc(b)||nkdm(b)||"";if(!c&&kn&&kn=="1"){c=1}if(!c&&fm||(b.button&&((!ie&&b.button==1)||(ie&&b.button==4)))){c=1}if(c){if(a.href.indexOf("/l/?")==-1&&a.href.indexOf("/k/?")==-1){a.href="/l/?u="+encodeURIComponent(a.href);nua("nul",a,500)}return true}else{e=a.href;if(!ih5&&!ie7&&a.href.indexOf("/k/?")==-1&&a.href.indexOf("/l/?")==-1){if(ie){e="/l/?u="+encodeURIComponent(a.href)}else{e="/k/?u="+encodeURIComponent(a.href)}}nua("nug",e);return false}}else{return true}}function nul(b){var a,c;var a=b.href.indexOf("/k/?u=");if(a==-1){a=b.href.indexOf("/l/?u=")}if(a!=-1){c=decodeURIComponent(b.href.substring(a+6))}b.href=c}function nrg(h,b,f,g){var e,a,c;if(!b){b=0}f=f||window.event;c=new RegExp("cm[a-z]?(\\d+)");if(g&&c.test(YAHOO.util.Dom.get(h).className)){b=parseInt(RegExp.$1)-1}if(b=="-1"){e=h.getElementsByTagName("a")[h.getElementsByTagName("a").length-1]}else{e=h.getElementsByTagName("a")[b]||h.getElementsByTagName("a")[0]}if(!g){g=nkdc(f)||nkdm(f)||fn}if(!g&&kn&&kn=="1"){g=1}if(e.href&&e.href!="javascript:;"){nhr(h.id);if(fl){fl=0}else{fl=1;if(e.clickurl&&e.clickurl!=e.href){e.href=e.clickurl}a=e.href;if(g&&kg!="p"&&(!kd||kd==1)&&a.indexOf("/l/?")==-1&&a.indexOf("/k/?")==-1){a="/l/?u="+encodeURIComponent(a)}if(g){nug(a,g)}else{nua("nug",a,"","","",g)}}}else{if(fl){fl=0}else{if(e.href&&e.href=="javascript:;"){e.onclick()}}}}function nug(c,f){var a,b,e;fl=0;fn=0;if(f){window.open(c)}else{if(ih5&&kg!="p"&&(!kd||kd==1)){a=document.getElementById("k");a.contentWindow.postMessage(c,location.protocol+"//"+location.hostname)}else{if((ie||ip||ir||is||im)&&c.indexOf("http")!=-1&&kg!="p"&&(!kd||kd==1)){if(d.getElementById("k")){d.body.removeChild(d.getElementById("k"))}b="<html><head><body><script language='JavaScript'>top.window.location=\""+c+'";<\/script></body></html>';a=d.createElement("iframe");a.id="k";d.body.appendChild(a);e=a.document;if(a.contentDocument){e=a.contentDocument}else{if(a.contentWindow){e=a.contentWindow.document}}e.open();e.writeln(b);e.close()}else{w.location=c}}}}function nrt(a){var b=d.getElementById("sxd");if(b){b.innerHTML='<input type="hidden" name="v">';document.x.v.value=a;setTimeout("document.x.submit()",100)}}function nrv(e,a,c){if(!e){return false}var b;b=e;e=e.parentNode;if(e&&e.style){while(YAHOO.util.Dom.getStyle(e,"display")=="none"){nsr(e.previousSibling.firstChild,e!=b.parentNode?1:0,c);e=e.parentNode}}if(b.id=="r1-"+(parseInt(r1c)-1)){if(!il&&nrb){nrb("",1)}}if(!a){YAHOO.util.Dom.addClass(b,"cmf")}if(b.childNodes[1]&&b.childNodes[1].childNodes[1]&&b.childNodes[1].childNodes[1].className=="cmh"){b.childNodes[1].childNodes[1].style.display="inline"}}function nro(a){if(!a){return false}a.className=a.className.replace(new RegExp(" cmf\\b"),"")}function nrm(n,k){if(fq){return false}var m,f,e,b,c,a,r,l,q,h,o,j,g,p,t,s;s=YAHOO.util.Dom.getViewportHeight();m=new RegExp("r(\\d+)-(\\d+)");f=new RegExp("rl([ei])(\\d+)-(\\d+)");e=new RegExp("rld-(\\d+)");if(k){if(m.test(k)){b=RegExp.$1||0;c=RegExp.$2||0}else{if(k=="a"){b=1;c=-1}else{return false}}}else{if(rc&&rc.id=="a"){b=1;c=-1}else{if(rc&&m.test(rc.id)){b=RegExp.$1||0;c=RegExp.$2||0}else{if(rc&&f.test(rc.id)){b=rs?1:2;o=1}else{if(rc&&e.test(rc.id)){b=1;o=1}else{rc=d.getElementById("r1-0");if(!rc){return false}else{c=0;b=1}}}}}}switch(n){case 1:c++;break;case 2:c--;break;case 3:b++;c=0;break;case 4:b--;c=0;break;case 5:break;case 6:break;case 7:c++;break;default:c++}l="r"+b+"-"+c;if(c<=-1){l="a"}q=d.getElementById(l);h=0;if(k){h=d.getElementById(k)}if(n==1){t=YAHOO.util.Dom.getDocumentScrollTop();p=YAHOO.util.Dom.getY(l);if(p<t||p>t+s){a=c;while(a){r=d.getElementById("r1-"+a);p=YAHOO.util.Dom.getY(r.id);if(!r){break}if(p-90<t){a++}else{q=r;break}}}}if(n==2&&l!="a"){t=YAHOO.util.Dom.getDocumentScrollTop();p=YAHOO.util.Dom.getY(l);if(p<t||p>t+s){a=r1c-2;while(a>0){r=d.getElementById("r1-"+a);p=YAHOO.util.Dom.getY(r.id);if(!r){break}if(p+90>t+s){a--}else{q=r;break}}}}if(h&&!q&&n==7&&h.nextSibling&&h.nextSibling.firstChild){if(h.nextSibling.firstChild.onclick){h.nextSibling.firstChild.onclick()}return}else{if(!h&&!q&&n==7&&rc&&rc.nextSibling&&rc.nextSibling.firstChild){if(rc.nextSibling.firstChild.onclick){rc.nextSibling.firstChild.onclick()}return}}if(l=="a"&&YAHOO.util.Dom.getStyle(q,"display")=="none"){return}if(o){switch(n){case 1:if(rc.nextSibling.nextSibling){q=rc.nextSibling.nextSibling.nextSibling}else{q=rc.nextSibling.firstChild}break;case 2:q=rc.previousSibling;break;case 4:break;case 7:if(rc.nextSibling.nextSibling){q=rc.nextSibling.nextSibling.nextSibling}else{q=rc.nextSibling.firstChild}break;default:return false}}if(q){if(f.test(q.id)){q=q.nextSibling.firstChild}if(n!=7){if(rc){nua("nro",rc)}}if(n!=5&&(b==2||rs)&&YAHOO.util.Dom.getStyle(q.parentNode,"display")=="none"){j=q;while(j.parentNode.id!="r2"&&j.parentNode.id!="r12"&&j.parentNode.id!="r1"){j=j.parentNode;if(!g&&YAHOO.util.Dom.getStyle(j,"display")=="block"){g=j}}if(g&&o){q=j.nextSibling.nextSibling}else{if(j.nextSibling&&YAHOO.util.Dom.getStyle(j.nextSibling,"display")=="block"){if(g){q=g.lastChild.previousSibling}else{q=j.previousSibling}}}if(f.test(q.id)&&rs&&RegExp.$1=="e"){q=q.nextSibling.firstChild}}nua("nrv",q,0,1,0,n==7?1:0,(n==5||n==7)?1:0);if(n!=7){rc=q}if(n!=7&&rc&&rc.id&&rc.id!="r1-0"){if(fk&&(c>6||n==2)){if(!io){nua("nrs",rc,0,1,0,1,n==5?0:(n==1?1:-1))}else{nrs(rc,1,n==5?0:(n==1?1:-1))}}else{if(!io){nua("nrs",rc,0,1)}else{nrs(rc,0,0)}}}}else{if(b==1&&l!="a"){nrv(d.getElementById("r1-"+parseInt(r1c-1)),1);setTimeout("nrm("+n+",'"+k+"')",100)}}if(io&&n==1&&nrb){nrb()}}function nrs(g,b,f){var k,h,a,c,e,j;k=YAHOO.util.Dom.getY(g);c=g.scrollHeight;h=YAHOO.util.Dom.getDocumentScrollTop();a=YAHOO.util.Dom.getViewportHeight();j=a/2;if(!c||k==h){return}if(b||((k+c+10)>(a+h))||((k-10)<h)){e=k-j;if(!f||(f==1&&(k-h)>j)||(f==-1&&(k-h)<j)){w.scroll(0,e)}}}function nki(a){if(fq){return false}if(a&&(nkdc(a)||nkdm(a)||nkds(a)||nkdt(a)||fa)){return false}fk=1;if(rii){nrm(5,rii)}}function nkr(a){if(fq){return false}if(a&&(nkdc(a)||nkdm(a)||nkds(a)||nkdt(a)||fa)){return false}fk=1;if(rir){nrm(5,rir)}}function nkda(a){if(fq){return false}if(a&&(nkdc(a)||nkdm(a)||nkds(a)||nkdt(a)||fa)){return false}fk=1;nrm(1)}function nkua(a){if(fq){return false}if(a&&(nkdc(a)||nkdm(a)||nkds(a)||nkdt(a)||fa)){return false}fk=1;nrm(2)}function nkra(a){if(fq){return false}if(a&&(nkdc(a)||nkdm(a)||nkds(a)||nkdt(a)||fa)){return false}fk=1;if(!rv){nrt("d")}else{if(rv=="d"){nrt("s")}else{if(rv=="s"){nrt("")}}}}function nkla(a){if(fq){return false}if(a&&(nkdc(a)||nkdm(a)||nkds(a)||nkdt(a)||fa)){return false}fk=1;if(!rv){nrt("s")}else{if(rv=="s"){nrt("d")}else{if(rv=="d"){nrt("")}}}}function nke(a){if(fq){return false}if(a&&(nkdc(a)||nkdm(a)||nkds(a)||nkdt(a)||fa)){return false}fk=1;if(rc){rc.onclick()}}function nkn(a){if(fq){return false}if(a&&(nkdc(a)||nkdm(a)||nkds(a)||nkdt(a)||fa)){return false}fk=1;fn=1;if(rc){rc.onclick()}}function nkm(a){if(fq){return false}if(a&&(nkdc(a)||nkdm(a)||nkds(a)||nkdt(a)||fa)){return false}fk=1;nua("nug","/goodies.html","","","")}function nksb(a){if(fq){return false}if(a&&(nkdc(a)||nkdm(a)||nkds(a)||nkdt(a)||fa)){return false}fk=1;if(!il&&nrb){nrb()}}function nks(a){if(fq){return false}if(a&&(nkdc(a)||nkdm(a)||nkds(a)||nkdt(a)||fa)){return false}fk=1;setTimeout("d.x.q.focus()",10);setTimeout("d.x.q.select()",15);setTimeout("w.scrollTo(0,0)",10)}function nhs(a){nrm(5,a)}function nhr(a){d.getElementById("hs").value=a}function nrp(b,c){var a,e;if(!b){return false}e=d.getElementById("rh");if(!e){e=d.createElement("div");e.id="rh3";e.innerHTML="<b>Did you mean </b>";link=d.createElement("a");link.innerHTML=decodeURIComponent(c);link.href="/?q="+b+(rv?"&v="+rv:"");if(kurl){link.href+=kurl}e.appendChild(link);e.appendChild(d.createTextNode("?"));a=d.getElementById("r1a")||d.getElementById("r12");a.insertBefore(e,a.firstChild)}}function nra2(b,e){var c,a;c=d.getElementById(e);if(c){if(b){a=d.getElementById("rh2");if(a){a.innerHTML=b;YAHOO.util.Dom.setStyle(a,"display","block")}}a=d.getElementById("a");a.appendChild(c);if(a){YAHOO.util.Dom.setStyle(a,"display","block")}a=d.getElementById("rprw");if(a){YAHOO.util.Dom.setStyle(a,"display","block")}if(a){YAHOO.util.Dom.setStyle(a,"visibility","visible")}}}function nra(j){var a,g,f,k,l,m,n,c,b,h,p,o,e;h=j.length;o=new RegExp("^.*?//(?:ww[\\dw]+.|)([^/?:#]+)");b=0;for(p in j){if(!j[p]){continue}obj=j[p];if(o.test(obj.u)){e=RegExp.$1}if(obj.s=="WolframAlpha"){a=d.getElementById("rh2");if(a&&obj.h){a.innerHTML=obj.h;YAHOO.util.Dom.setStyle(a,"display","block")}a=d.getElementById("i");if(a&&obj.i){a.innerHTML=obj.i;YAHOO.util.Dom.setStyle(a,"display","block")}if(a&&obj.w){YAHOO.util.Dom.setStyle(a,"width",obj.w+"px");if(obj.w>100){YAHOO.util.Dom.setStyle(a,"max-width",obj.w+"px")}}}if(obj.a){b++;if(b==1){a=d.getElementById("a");if(!obj.i&&e&&e!="en.wikipedia.org"){if(nur){img=nur("","",ga+e+".ico",16,16)}if(img){YAHOO.util.Dom.addClass(img,"cn");YAHOO.util.Dom.setStyle(img,"float","left");YAHOO.util.Dom.setStyle(img,"padding-right","5px");YAHOO.util.Dom.setStyle(img,"padding-top","2px");a.parentNode.insertBefore(img,a)}}if(obj.h&&obj.s!="WolframAlpha"){a.innerHTML=obj.h+'<div style="margin-top:5px"></div>'}a.innerHTML+=obj.a+" ";k=d.createElement("a");k.href=obj.u;if(k.href.indexOf("?")!=-1){k.href=obj.u+rq}k.innerHTML="More at <q>"+obj.s+"</q>";k.onclick=function(){fl=1};if(kn&&kn=="1"){k.target="_blank"}YAHOO.util.Dom.addClass(k,"le");a.appendChild(k);YAHOO.util.Dom.addClass(a,"cma3 ca2");YAHOO.util.Dom.setStyle(a,"display","block")}else{if(b==2){a=d.getElementById("rpr");g=d.createElement("div");g.id="r2";YAHOO.util.Dom.addClass(a,"ct2b");n=d.createElement("hr");YAHOO.util.Dom.addClass(n,"chr");g.appendChild(n);a.appendChild(g)}a=d.getElementById("r2");g=d.createElement("div");g.id="r2-"+(r2c++);YAHOO.util.Dom.addClass(g,"cr2");f=d.createElement("div");YAHOO.util.Dom.addClass(f,"ci");g.appendChild(f);f=d.createElement("div");YAHOO.util.Dom.addClass(f,"cl2");k=d.createElement("a");YAHOO.util.Dom.addClass(k,"li");k.url=gd+"?q="+obj.t;k.href="javascript:;";k.innerHTML=obj.t;k.id=g.id;k.onclick=function(){fl=1;nrv(d.getElementById(this.id),1);YAHOO.util.Dom.addClass(this.parentNode,"cma3");if(nir){nir("a")}setTimeout("fl=0",100)};f.appendChild(k);m=d.createElement("span");m.innerHTML=" - "+obj.a+" ";YAHOO.util.Dom.addClass(m,"cmh");YAHOO.util.Dom.setStyle(m,"display","none");k=d.createElement("a");k.href=obj.u;if(k.href.indexOf("?")!=-1){k.href=obj.u+rq}k.innerHTML="More at <q>"+obj.s+"</q>";k.onclick=function(){fl=1};if(kn&&kn=="1"){k.target="_blank"}YAHOO.util.Dom.addClass(k,"le");m.appendChild(k);f.appendChild(m);g.appendChild(f);a.appendChild(g)}if(b==3){break}}}if(b){if(nir){nir("a")}a=d.getElementById("rprw");if(a){YAHOO.util.Dom.setStyle(a,"display","block")}if(a){YAHOO.util.Dom.setStyle(a,"visibility","visible")}a=d.getElementById("a");if(a.scrollHeight>150&&h==1){YAHOO.util.Dom.setStyle("rprw2","height","125px");YAHOO.util.Dom.setStyle("rprw2","overflow","auto");YAHOO.util.Dom.setStyle("rprw2","margin","auto");YAHOO.util.Dom.setStyle("rpr","padding-right","0px");YAHOO.util.Dom.setStyle("rpr","padding-bottom","5px");YAHOO.util.Dom.setStyle("rprz","padding-right","5px")}else{if(a.scrollHeight>125&&h>1){YAHOO.util.Dom.setStyle("rprw2","height","100px");YAHOO.util.Dom.setStyle("rprw2","overflow","auto");YAHOO.util.Dom.setStyle("rprw2","margin","auto");YAHOO.util.Dom.setStyle("rpr","padding-right","0px");YAHOO.util.Dom.setStyle("rpr","padding-bottom","5px");YAHOO.util.Dom.setStyle("rprz","padding-right","5px")}}g=d.getElementById("r12");if(g){YAHOO.util.Dom.setStyle(g,"padding-top","15px")}}}function nra3(){var c,b;c=d.getElementById("a");if(c){YAHOO.util.Dom.setStyle(c,"display","block")}c=d.getElementById("r2");if(c){YAHOO.util.Dom.setStyle(c,"display","block")}c=d.getElementById("rprw2");if(c){YAHOO.util.Dom.setStyle(c,"height","100%")}if(c){YAHOO.util.Dom.setStyle(c,"max-height","800px")}b=d.getElementById("rprze");if(b){b.onclick=nra4;b.innerHTML='<span style="font-size:150%">-</span>'}}function nra4(){var c,b;c=d.getElementById("a");if(c){YAHOO.util.Dom.setStyle(c,"display","none")}c=d.getElementById("r2");if(c){YAHOO.util.Dom.setStyle(c,"display","none")}c=d.getElementById("rprw2");if(c){YAHOO.util.Dom.setStyle(c,"max-height","50px")}b=d.getElementById("rprze");if(b){b.onclick=nra3;b.innerHTML='<span style="font-size:150%">+</span>'}}function nrn(U,r){var t,S,O,N,M,s,b,n,e,A,J,c,I,R,L,l,h,g,T,Q,P,C,a,m,F,E,D,o,f,v,u,q,K,H,k,p,B,G;l=new RegExp("^.*?//(?:ww[\\dw]+.|)([^/?:#]+)");g=new RegExp("^http://(.*youtube\\.com\\/watch.*|.*\\.youtube\\.com\\/v\\/.*|youtu\\.be\\/.*|.*\\.youtube\\.com\\/user\\/.*\\#.*|.*\\.youtube\\.com\\/.*\\#.*\\/.*|.*justin\\.tv\\/.*|.*justin\\.tv\\/.*\\/b\\/.*|www\\.ustream\\.tv\\/recorded\\/.*|www\\.ustream\\.tv\\/channel\\/.*|qik\\.com\\/video\\/.*|qik\\.com\\/.*|.*revision3\\.com\\/.*|.*\\.dailymotion\\.com\\/video\\/.*|.*\\.dailymotion\\.com\\/.*\\/video\\/.*|www\\.collegehumor\\.com\\/video:.*|.*twitvid\\.com\\/.*|www\\.break\\.com\\/.*\\/.*|vids\\.myspace\\.com\\/index\\.cfm\\?fuseaction=vids\\.individual&videoid.*|www\\.myspace\\.com\\/index\\.cfm\\?fuseaction=.*&videoid.*|www\\.metacafe\\.com\\/watch\\/.*|blip\\.tv\\/file\\/.*|.*\\.blip\\.tv\\/file\\/.*|video\\.google\\.com\\/videoplay\\?.*|.*revver\\.com\\/video\\/.*|video\\.yahoo\\.com\\/watch\\/.*\\/.*|video\\.yahoo\\.com\\/network\\/.*|.*viddler\\.com\\/explore\\/.*\\/videos\\/.*|liveleak\\.com\\/view\\?.*|www\\.liveleak\\.com\\/view\\?.*|animoto\\.com\\/play\\/.*|dotsub\\.com\\/view\\/.*|www\\.overstream\\.net\\/view\\.php\\?oid=.*|www\\.livestream\\.com\\/.*|www\\.worldstarhiphop\\.com\\/videos\\/video.*\\.php\\?v=.*|worldstarhiphop\\.com\\/videos\\/video.*\\.php\\?v=.*|teachertube\\.com\\/viewVideo\\.php.*|teachertube\\.com\\/viewVideo\\.php.*|bambuser\\.com\\/v\\/.*|bambuser\\.com\\/channel\\/.*|bambuser\\.com\\/channel\\/.*\\/broadcast\\/.*|www\\.schooltube\\.com\\/video\\/.*\\/.*|www\\.whitehouse\\.gov\\/photos-and-video\\/video\\/.*|www\\.whitehouse\\.gov\\/video\\/.*|wh\\.gov\\/photos-and-video\\/video\\/.*|wh\\.gov\\/video\\/.*|www\\.hulu\\.com\\/watch.*|www\\.hulu\\.com\\/w\\/.*|hulu\\.com\\/watch.*|hulu\\.com\\/w\\/.*|movieclips\\.com\\/watch\\/.*\\/.*\\/|movieclips\\.com\\/watch\\/.*\\/.*\\/.*\\/.*|.*crackle\\.com\\/c\\/.*|www\\.fancast\\.com\\/.*\\/videos|www\\.funnyordie\\.com\\/videos\\/.*|www\\.vimeo\\.com\\/groups\\/.*\\/videos\\/.*|www\\.vimeo\\.com\\/.*|vimeo\\.com\\/groups\\/.*\\/videos\\/.*|vimeo\\.com\\/.*|www\\.ted\\.com\\/talks\\/.*\\.html.*|www\\.ted\\.com\\/talks\\/lang\\/.*\\/.*\\.html.*|www\\.ted\\.com\\/index\\.php\\/talks\\/.*\\.html.*|www\\.ted\\.com\\/index\\.php\\/talks\\/lang\\/.*\\/.*\\.html.*|.*omnisio\\.com\\/.*|.*nfb\\.ca\\/film\\/.*|www\\.thedailyshow\\.com\\/watch\\/.*|www\\.thedailyshow\\.com\\/full-episodes\\/.*|www\\.thedailyshow\\.com\\/collection\\/.*\\/.*\\/.*|movies\\.yahoo\\.com\\/movie\\/.*\\/video\\/.*|movies\\.yahoo\\.com\\/movie\\/.*\\/info|movies\\.yahoo\\.com\\/movie\\/.*\\/trailer|www\\.colbertnation\\.com\\/the-colbert-report-collections\\/.*|www\\.colbertnation\\.com\\/full-episodes\\/.*|www\\.colbertnation\\.com\\/the-colbert-report-videos\\/.*|www\\.comedycentral\\.com\\/videos\\/index\\.jhtml\\?.*|www\\.theonion\\.com\\/video\\/.*|theonion\\.com\\/video\\/.*|wordpress\\.tv\\/.*\\/.*\\/.*\\/.*\\/|www\\.traileraddict\\.com\\/trailer\\/.*|www\\.traileraddict\\.com\\/clip\\/.*|www\\.traileraddict\\.com\\/poster\\/.*|www\\.escapistmagazine\\.com\\/videos\\/.*|www\\.trailerspy\\.com\\/trailer\\/.*\\/.*|www\\.trailerspy\\.com\\/trailer\\/.*|www\\.trailerspy\\.com\\/view_video\\.php.*|www\\.atom\\.com\\/.*\\/.*\\/|fora\\.tv\\/.*\\/.*\\/.*\\/.*|www\\.spike\\.com\\/video\\/.*|www\\.gametrailers\\.com\\/video\\/.*|gametrailers\\.com\\/video\\/.*|www\\.koldcast\\.tv\\/video\\/.*|www\\.koldcast\\.tv\\/\\#video:.*|techcrunch\\.tv\\/watch.*|techcrunch\\.tv\\/.*\\/watch.*|www\\.godtube\\.com\\/featured\\/video\\/.*|www\\.tangle\\.com\\/view_video.*|gist\\.github\\.com\\/.*|twitter\\.com\\/.*\\/status\\/.*|twitter\\.com\\/.*\\/statuses\\/.*|www\\.crunchbase\\.com\\/.*\\/.*|crunchbase\\.com\\/.*\\/.*|www\\.slideshare\\.net\\/.*\\/.*|.*\\.scribd\\.com\\/doc\\/.*|screenr\\.com\\/.*|polldaddy\\.com\\/community\\/poll\\/.*|polldaddy\\.com\\/poll\\/.*|answers\\.polldaddy\\.com\\/poll\\/.*|www\\.5min\\.com\\/Video\\/.*|www\\.howcast\\.com\\/videos\\/.*|www\\.screencast\\.com\\/.*\\/media\\/.*|screencast\\.com\\/.*\\/media\\/.*|www\\.screencast\\.com\\/t\\/.*|screencast\\.com\\/t\\/.*|issuu\\.com\\/.*\\/docs\\/.*|www\\.kickstarter\\.com\\/projects\\/.*\\/.*|www\\.scrapblog\\.com\\/viewer\\/viewer\\.aspx.*|my\\.opera\\.com\\/.*\\/albums\\/show\\.dml\\?id=.*|my\\.opera\\.com\\/.*\\/albums\\/showpic\\.dml\\?album=.*&picture=.*|tumblr\\.com\\/.*|.*\\.tumblr\\.com\\/post\\/.*|www\\.polleverywhere\\.com\\/polls\\/.*|www\\.polleverywhere\\.com\\/multiple_choice_polls\\/.*|www\\.polleverywhere\\.com\\/free_text_polls\\/.*|www\\.quantcast\\.com\\/wd:.*|www\\.quantcast\\.com\\/.*|siteanalytics\\.compete\\.com\\/.*|.*\\.status\\.net\\/notice\\/.*|identi\\.ca\\/notice\\/.*|shitmydadsays\\.com\\/notice\\/.*|wrttn\\.me\\/.*|.*yfrog\\..*\\/.*|tweetphoto\\.com\\/.*|www\\.flickr\\.com\\/photos\\/.*|.*twitpic\\.com\\/.*|.*imgur\\.com\\/.*|.*\\.posterous\\.com\\/.*|post\\.ly\\/.*|twitgoo\\.com\\/.*|i.*\\.photobucket\\.com\\/albums\\/.*|gi.*\\.photobucket\\.com\\/groups\\/.*|phodroid\\.com\\/.*\\/.*\\/.*|www\\.mobypicture\\.com\\/user\\/.*\\/view\\/.*|moby\\.to\\/.*|xkcd\\.com\\/.*|www\\.xkcd\\.com\\/.*|www\\.asofterworld\\.com\\/index\\.php\\?id=.*|www\\.qwantz\\.com\\/index\\.php\\?comic=.*|23hq\\.com\\/.*\\/photo\\/.*|www\\.23hq\\.com\\/.*\\/photo\\/.*|.*dribbble\\.com\\/shots\\/.*|drbl\\.in\\/.*|.*\\.smugmug\\.com\\/.*|.*\\.smugmug\\.com\\/.*\\#.*|emberapp\\.com\\/.*\\/images\\/.*|emberapp\\.com\\/.*\\/images\\/.*\\/sizes\\/.*|emberapp\\.com\\/.*\\/collections\\/.*\\/.*|emberapp\\.com\\/.*\\/categories\\/.*\\/.*\\/.*|embr\\.it\\/.*|picasaweb\\.google\\.com.*\\/.*\\/.*\\#.*|picasaweb\\.google\\.com.*\\/lh\\/photo\\/.*|picasaweb\\.google\\.com.*\\/.*\\/.*|dailybooth\\.com\\/.*\\/.*|brizzly\\.com\\/pic\\/.*|pics\\.brizzly\\.com\\/.*\\.jpg|img\\.ly\\/.*|www\\.facebook\\.com\\/photo\\.php.*|www\\.tinypic\\.com\\/view\\.php.*|tinypic\\.com\\/view\\.php.*|www\\.tinypic\\.com\\/player\\.php.*|tinypic\\.com\\/player\\.php.*|www\\.tinypic\\.com\\/r\\/.*\\/.*|tinypic\\.com\\/r\\/.*\\/.*|.*\\.tinypic\\.com\\/.*\\.jpg|.*\\.tinypic\\.com\\/.*\\.png|meadd\\.com\\/.*\\/.*|meadd\\.com\\/.*|.*\\.deviantart\\.com\\/art\\/.*|.*\\.deviantart\\.com\\/gallery\\/.*|.*\\.deviantart\\.com\\/\\#\\/.*|fav\\.me\\/.*|.*\\.deviantart\\.com|.*\\.deviantart\\.com\\/gallery|.*\\.deviantart\\.com\\/.*\\/.*\\.jpg|.*\\.deviantart\\.com\\/.*\\/.*\\.gif|.*\\.deviantart\\.net\\/.*\\/.*\\.jpg|.*\\.deviantart\\.net\\/.*\\/.*\\.gif|.*amazon\\..*\\/gp\\/product\\/.*|.*amazon\\..*\\/.*\\/dp\\/.*|.*amazon\\..*\\/dp\\/.*|.*amazon\\..*\\/o\\/ASIN\\/.*|.*amazon\\..*\\/gp\\/offer-listing\\/.*|.*amazon\\..*\\/.*\\/ASIN\\/.*|.*amazon\\..*\\/gp\\/product\\/images\\/.*|www\\.amzn\\.com\\/.*|amzn\\.com\\/.*|www\\.shopstyle\\.com\\/browse.*|www\\.shopstyle\\.com\\/action\\/apiVisitRetailer.*|www\\.shopstyle\\.com\\/action\\/viewLook.*|soundcloud\\.com\\/.*|soundcloud\\.com\\/.*\\/.*|soundcloud\\.com\\/.*\\/sets\\/.*|soundcloud\\.com\\/groups\\/.*|www\\\\.last\\\\.fm\\/music\\/.*|www\\\\.last\\\\.fm\\/music\\/+videos\\/.*|www\\\\.last\\\\.fm\\/music\\/+images\\/.*|www\\\\.last\\\\.fm\\/music\\/.*\\/_\\/.*|www\\\\.last\\\\.fm\\/music\\/.*\\/.*|www\\.mixcloud\\.com\\/.*\\/.*\\/|espn\\.go\\.com\\/video\\/clip.*|espn\\.go\\.com\\/.*\\/story.*|cnbc\\.com\\/id\\/.*|cbsnews\\.com\\/video\\/watch\\/.*|www\\.cnn\\.com\\/video\\/.*|edition\\.cnn\\.com\\/video\\/.*|money\\.cnn\\.com\\/video\\/.*|today\\.msnbc\\.msn\\.com\\/id\\/.*\\/vp\\/.*|www\\.msnbc\\.msn\\.com\\/id\\/.*\\/vp\\/.*|www\\.msnbc\\.msn\\.com\\/id\\/.*\\/ns\\/.*|today\\.msnbc\\.msn\\.com\\/id\\/.*\\/ns\\/.*|multimedia\\.foxsports\\.com\\/m\\/video\\/.*\\/.*|msn\\.foxsports\\.com\\/video.*)");G="";switch(U){case"t":R="e";L=r2c;break;case"d":R="1";L=r1c;break;case"r":R="1";L=r1c;break}if(!U||!r){return false}o=r.length;if(rq.indexOf("site%3A")!=-1){k=1}if(R=="e"){c=d.getElementById("rtes")}else{if((rds==10||rds==21)&&d.getElementById("rre0-1")){c=d.getElementById("rre0-1");c.removeChild(c.lastChild);L--}else{if(L){c=d.getElementById("r1-"+parseInt(L-1)).parentNode}else{c=d.getElementById("r1a")||d.getElementById("r12")}}}I=c;if(U=="r"||(rv=="d"&&U=="d"&&!o)){rsc--;if(rsc<=0){nsl();if(!rsd[0]&&!o){S=d.createElement("div");YAHOO.util.Dom.addClass(S,"cr1b clu");S.appendChild(d.createTextNode("No summaries available."));c.appendChild(S)}}}if(U=="d"&&(r1c||rad)&&rd.length==0){rd[0]=1;if(rad){rd[rad]=1}nut(c);for(Q=0;Q<L;Q++){links=d.getElementById("r1-"+Q).getElementsByTagName("a");for(P=0;P<links.length;P++){if(links[P].textContent=="Official site"){K=1}if(links[P].textContent=="Official blog"){H=1}if(l.test(links[P].href)){rd[RegExp.$1]=1}}}for(Q=0;Q<r1hc;Q++){links=d.getElementById("r1h-"+Q);if(!links){continue}links=links.getElementsByTagName("a");if(!links){continue}for(P=0;P<links.length;P++){if(links[P].textContent=="Official site"){K=1}if(links[P].textContent=="Official blog"){H=1}if(l.test(links[P].href)){rd[RegExp.$1]=1}}}}if(!o&&((U=="r"&&rsc<=0)||(U=="d"&&rv=="d"))){if(U=="d"&&!r1c){S=d.getElementById("rfd");YAHOO.util.Dom.setStyle(S,"display","none")}U="r";r.x=new Array();r.x["t"]="EOH"}q=0;if(U=="d"&&(r[o-1]["t"]=="EOP"||r[o-1]["t"]=="EOF")){q=1;il=1}C=a=f=v=u=0;for(t in r){C++;p=0;if(!r[t]){continue}if(U=="d"&&rv!="d"&&C==1){nsl()}if(C==1&&rv=="i"){setTimeout('top.location.replace("'+r[t]["u"]+'")',100);return}m="";if(l.test(r[t]["c"])){m=RegExp.$1}is_eof=0;if(U=="d"&&r[t]["t"]=="EOP"){r[t]["t"]="Safe search is on. No "+(rad||L||o>1?"more ":"")+"safe search results.";is_eof=1}else{if(U=="d"&&r[t]["t"]=="EOF"){r[t]["t"]="No "+(rad||L||o>1||YAHOO.util.Dom.getStyle("rprw","display")=="block"?"more ":"")+"results. Try Google.";is_eof=1}}if(U=="d"&&!is_eof&&(rv!="d"||(rv=="d"&&L==0))){if(!m||(rd[m]&&!k)||rd[r[t]["c"]]){if(a==0&&C==o){nrj("/506.js?q="+rq);q=1}if(C==o){p=1}else{continue}}else{rd[m]=1;rd[r[t]["c"]]=1}}if(U=="r"&&r[t]["t"]=="EOH"){p=1}if(U=="r"){if(rsd[r[t]["a"]]){p=1}else{rsd[r[t]["a"]]=1}if(m&&!k){rd[m]=1}rd[r[t]["c"]]=1;rsd[0]=1}if(rv=="d"&&U=="d"){rsc++;nrj("/r.js?u="+encodeURIComponent(r[t]["c"])+"&q="+rq+(rp&&rp!="-1"?"&p=1":""));if(L!=0){continue}}if(!p){a++;S=d.createElement("div");S.id="r"+R+"-"+L++;YAHOO.util.Dom.addClass(S,"cr"+R+(U=="d"&&!r[t]["h"]?"d":"")+" cm"+U+((U=="r"||r[t]["i"])?"2":""));if(!k&&g.test(r[t]["u"])){G+=(G?",":"")+r[t]["u"];reb[reb.length]=S.id}if(U=="i"&&!rii){rii=S.id}else{if(U=="n"&&!rin){rin=S.id}else{if(U=="t"&&!rir){rir=S.id}}}}if((U=="d"&&!q&&C==o&&!f)||(U=="r"&&rsc<=0)){if(U=="r"){N=d.createElement("div");N.id="rgs";M=d.createElement("div");YAHOO.util.Dom.addClass(M,"ch6");M.appendChild(d.createTextNode("No good summaries? Try web links:"));N.appendChild(M);if(r1hc){for(Q=0;Q<r1hc;Q++){M=d.getElementById("r1h-"+Q);if(M){M.id="r"+R+"-"+L++;N.appendChild(M);YAHOO.util.Dom.setStyle(M,"display","block")}}}}O=d.createElement("div");YAHOO.util.Dom.addClass(O,"cr"+R+"b cm"+U);b=d.createElement("a");b.href="javascript:;";b.onclick=function(){nsr(this)};if(U=="d"||U=="r"){if(U=="d"){O.id="rld-"+(++rdc)}else{if(U=="r"){O.id="rle0-1"}}if(U=="r"&&!r1hc){b.appendChild(d.createTextNode("Get Web links..."))}else{b.appendChild(d.createTextNode("More Links..."))}YAHOO.util.Dom.addClass(b,"l");YAHOO.util.Dom.addClass(O,"cld")}else{if(U=="t"){O.id="rli1-"+(++rtc);b.appendChild(d.createTextNode("More Related Topics..."));YAHOO.util.Dom.addClass(b,"li")}}O.appendChild(b);if(U=="r"&&!p){f=O;u=N}else{if(U=="r"){c.appendChild(N)}c.appendChild(O)}O=d.createElement("div");if(U=="d"){O.id="rrd-"+rdc}else{if(U=="r"){O.id="rre0-1"}else{if(U=="t"){O.id="rri1-"+rtc}}}YAHOO.util.Dom.setStyle(O,"display","none");if(U=="r"){N=d.createElement("div");N.id="r"+R+"-"+L++;O.appendChild(N)}if(U=="r"&&!p){v=O}else{c.appendChild(O);c=O;f=1;nut(c);if(U=="r"&&L<=6){nua("nsr",c.previousSibling.firstChild,0,0,0,1)}}}if(p){continue}O=d.createElement("div");YAHOO.util.Dom.addClass(O,"ci"+(U=="d"&&!r[t]["h"]?"d":""));if((U=="d"||U=="r")&&r[t]["i"]!=""){if(nur){e=nur(YAHOO.util.Dom.getStyle(c,"display")=="block"&&c.event&&c.event.is_fired?"":c.ig,"",ga+r[t]["i"]+".ico",16,16)}if(e){b=d.createElement("a");b.href=k?"/?q="+rq:"/?q="+rq+"+site:"+r[t]["i"];b.appendChild(e);b.onclick=function(){fl=1};O.appendChild(b)}}else{if(U=="r"){O.innerHTML+="•"}}S.appendChild(O);O=d.createElement("div");YAHOO.util.Dom.addClass(O,"cl"+R);if(U=="d"&&!r[t]["h"]){YAHOO.util.Dom.addClass(O,"cld")}if(U!="r"){b=d.createElement("a");if(U=="d"){YAHOO.util.Dom.addClass(b,"l")}if(U!="t"){YAHOO.util.Dom.addClass(b,"le")}if(U!="d"){YAHOO.util.Dom.addClass(b,"li")}b.href=r[t]["c"];if(kn&&kn=="1"){b.target="_blank"}if(r[t]["t"]=="<b>Official <q>site</q></b>"){if(K||L>1){r[t]["t"]=r[t]["h"];r[t]["h"]=0}else{r[t]["a"]=" - "+decodeURIComponent(rq)}}else{if(H&&r[t]["t"]=="Official <q>blog</q>"){L--;continue}}b.innerHTML=r[t]["t"];if(r[t]["u"]&&r[t]["u"]!=r[t]["c"]){b.clickurl=r[t]["u"]}n=b;O.appendChild(b)}if(U=="d"){if(r[t]["h"]&&r[t]["a"]){s=d.createElement("span");s.innerHTML=" "+r[t]["a"];O.appendChild(s)}else{if(r[t]["a"]){N=d.createElement("div");YAHOO.util.Dom.addClass(N,"cra");N.innerHTML=r[t]["a"];O.appendChild(N)}}N=d.createElement("div");N.appendChild(d.createTextNode(" "+r[t]["d"]));if(!is_eof){b=d.createElement("a");b.href="javascript:;";b.domain=r[t]["d"];b.onclick=function(){fl=1;nrss(this)};b.appendChild(d.createTextNode("Similar Sites"));YAHOO.util.Dom.addClass(b,"clu");N.appendChild(d.createTextNode(" - "));N.appendChild(b)}YAHOO.util.Dom.addClass(N,"clud");O.appendChild(N)}else{if(U=="t"&&r[t]["a"]!=""){s=d.createElement("span");s.innerHTML=" - "+r[t]["a"];YAHOO.util.Dom.addClass(s,"cmh");YAHOO.util.Dom.setStyle(s,"display","none");O.appendChild(s)}else{if(U=="r"){YAHOO.util.Dom.addClass(O,"cra");O.innerHTML+=r[t]["a"]+"<br>";b=d.createElement("a");b.href=r[t]["c"];if(kn&&kn=="1"){b.target="_blank"}b.innerHTML+=""+r[t]["d"];YAHOO.util.Dom.addClass(b,"le les2");O.appendChild(b);if(r[t]["t"]){s=d.createElement("span");YAHOO.util.Dom.addClass(s,"clud");s.innerHTML+=" ["+r[t]["t"]+"]";O.appendChild(s)}else{s=d.createElement("span");s.innerHTML+=" ";O.appendChild(s)}}}}S.appendChild(O);if(U=="t"){c.options[c.options.length]=new Option(r[t]["t"],r[t]["u"]+(rv?"?v="+rv:""))}else{if(rv=="d"&&U=="d"){O=d.getElementById("ran")||d.getElementById("rfd")||"";if(O){if(O.id=="ran"){YAHOO.util.Dom.setStyle(O,"padding-bottom","5px")}O.parentNode.insertBefore(S,O.nextSibling)}}else{c.appendChild(S)}}if(U=="r"&&f&&v){c.appendChild(u);c.appendChild(f);c.appendChild(v);c=f;nut(c);if(L<=6){nua("nsr",f.firstChild,0,0,0,1)}}if(U=="d"&&a==1&&(rds!=21||r1hc)){B=0;h=new RegExp("^r1-(\\d+)$");if(rc&&h.test(rc.id)){T=RegExp.$1}B=(T==L)?1:0;if(fk&&B&&(!S.previousSibling||S.previousSibling.id.indexOf("r1-")==-1)){nrm(6,S.id)}}if(n){n.onclick=function(j){return nrl(j,this)}}}if(U=="t"){YAHOO.util.Dom.setStyle(d.getElementById("rte"),"display","block")}if(R!="e"){r1c=L}if(!ip){window.scrollBy(0,1)}r=null;if(nir){nir(U)}if(U=="d"&&YAHOO.util.Dom.getStyle(I,"display")=="block"&&I.event){nua("nse",I,200)}if(G&&(YAHOO.util.FlashDetect.installed||ip)){nrj("/ie/v1/api/oembed?urls="+G+"&maxwidth=250&maxheight=250&format=json&callback=nreb&wmode=window")}}function nre(){fe=1;if(!idom){return false}var a=d.getElementById("rtes");nua("nug",a.options[a.selectedIndex].value)}function nrj(b){var a=d.createElement("script");a.src=b;a.type="text/javascript";d.getElementsByTagName("head")[0].appendChild(a)}function nue(a){if(a.preventDefault){a.preventDefault();a.stopPropagation()}else{a.cancelBubble=true;a.returnValue=false}}function nut(b){if(b.event){if(YAHOO.util.Dom.getStyle(b,"display")=="block"){nua("nse",b,200)}else{return false}}b.event=new YAHOO.util.CustomEvent("it");var a=new YAHOO.util.ImageLoader.group(b,"click");a.addCustomTrigger(b.event);b.ig=a}function nur(b,g,f,a,e){var c=d.createElement("img");if(g){c.title=g}c.alt="";c.id="i"+(++ric);nus(b,ric,f,a,e);return c}function nus(b,c,g,a,f){if(!b){b=new YAHOO.util.ImageLoader.group(window,"scroll",0.1)}var e=b.registerSrcImage("i"+c,g,f,a);e.setVisible=true}function nsd(){cd++;if(cd<50){d.getElementById("o").innerHTML+="."}}function nsr(q,r,o){var g,e,p,k,n,a,f,c,b,m,l,j,h;l=0;p=new RegExp("^r[lr](.*)-(\\d+)$");q=q.parentNode;if(q.id&&p.test(q.id)){n=RegExp.$1||0;a=RegExp.$2||0}if(n&&a){if(tn==q.id){return false}tn=q.id;h=g=e=0;k=new RegExp("^r1-(\\d+)$");if(rc&&k.test(rc.id)){g=RegExp.$1}if(q.previousSibling&&k.test(q.previousSibling.id)){e=RegExp.$1}h=g&&e&&parseInt(g)==parseInt(e)+1?1:0;if(!fk){h=2}f=d.getElementById("rl"+n+"-"+a);c=d.getElementById("rr"+n+"-"+a);b=d.getElementById("rl"+n+"-"+(parseInt(a)+1));if(rds!=0&&(rds!=1||r1hc)){f.innerHTML='<hr class="chr">';f.onmouseover=function(){};f.onmouseout=function(){};f.onclick=function(){};YAHOO.util.Dom.removeClass(f,"cmd")}else{YAHOO.util.Dom.setStyle(f,"display","none")}if(c.event){nua("nse",c,200)}c.style.display="block";if(b&&!r){YAHOO.util.Dom.setStyle(b,"display","block")}else{if(!b&&(n=="d"||n=="e0")){j=d.createElement("img");j.src="/l.gif";j.id="l";c.parentNode.appendChild(j);tl=j;if(rv=="d"){rv=""}m=d.createElement("script");m.src="/d.js?q="+rq+(rt?"&t="+rt:"")+(rv?"&v="+rv:"")+"&l="+rl+(rp&&rp!="-1"?"&p=1":"")+"&s="+rds;m.type="text/javascript";if(rds==1){rds+=20}else{if(rds){rds+=40}else{rds+=10}}d.getElementsByTagName("head")[0].appendChild(m);l=1}}if(!r&&!o&&h==1){if(q.nextSibling.firstChild){nrm(6,q.nextSibling.firstChild.id)}}}}function nui(){var a=navigator.userAgent.toLowerCase();if(/chrome/.test(a)&&/macintosh/.test(a)){alert("If nothing happens after this, go to 'Chrome' in the upper-left, then go to Preferences->Default Search->Manage, select DuckDuckGo and click 'Make default'.")}else{if(/chrome/.test(a)){alert("If nothing happens after this, click the wrench in the upper-right, then go to Options->Basics->Default Search->Manage, select DuckDuckGo and click 'Make default'.")}}if(w.external&&("AddSearchProvider" in w.external)){if(document.location.protocol=="https:"){w.external.AddSearchProvider(gd+"opensearch_ssl.xml")}else{w.external.AddSearchProvider(gd+"opensearch.xml")}setTimeout("top.location.replace(gd)",10)}}nir=function(k){var b,h,a,g,f,c,e;if(!k){k=""}f="cm"+k;b=d.getElementsByTagName("div");h=new RegExp("(?:^|\\s+)"+f+"(\\d?)(?:\\s+|$)");for(g=0;g<b.length;g++){if(h.test(b[g].className)){if(b[g].onmouseover){continue}a=RegExp.$1||0;b[g].onmouseover=function(){if(fk||fe){return false}if(rc&&rc!=this&&dz){dz.hide()}if(rc){nua("nro",rc)}nua("nrv",this);rc=this};b[g].onmouseout=function(){if(fk||fe){return false}if(rc&&rc!=this&&dz){dz.hide()}nua("nro",this)};if(a=="3"){b[g].onclick=function(j){if(fe){return false}nrg(this,-1,j,0)}}else{if(a){b[g].onclick=function(j){if(fe){return false}nrg(this,1,j,0)}}else{b[g].onclick=function(j){if(fe){return false}nrg(this,0,j,0)}}}if(!k){c=b[g].getElementsByTagName("a");for(e=0;e<c.length;e++){if(!c[e].onclick&&!rs){c[e].onclick=function(j){this.blur();return nrl(j||window.event,this)}}else{if(!c[e].onclick){c[e].onclick=function(){this.blur();fl=1}}}if(kn&&kn=="1"&&c[e].href&&c[e].href!="javascript:;"){c[e].target="_blank"}}}}}};function nib(f,e,c){var b,a;b=navigator.userAgent.toLowerCase();a="";if(/chrome/.test(b)){a="Chrome"}else{if(/firefox/.test(b)){a="Firefox"}else{if(/seamonkey/.test(b)){a="SeaMonkey"}else{if(/epiphany/.test(b)){a="Epiphany"}else{if(/uzbl/.test(b)){a="Uzbl"}else{if(/msie [78]/.test(b)){a="IE"}else{if(/msie 6/.test(b)){a="IE6"}else{if(/opera/.test(b)){a="Opera"}else{if(/iphone/.test(b)){a="iPhone"}else{if(/ipad/.test(b)){a="iPad"}else{if(/safari/.test(b)){a="Safari"}else{a="Browser"}}}}}}}}}}}if(a&&w.external&&(("IsSearchProviderInstalled" in w.external&&w.external.IsSearchProviderInstalled(gd)==false)||(!("IsSearchProviderInstalled" in w.external)&&"AddSearchProvider" in w.external))){if(a=="Firefox"){document.write(c+'<a class="'+e+'" onClick="alert(\'This will add Duck Duck Go to the search bar, but not the address bar. See our FAQ to do that.\');nui();" href="javascript:;">Add to '+a+"</a>")}else{document.write(c+'<a class="'+e+'" href="javascript:;" onclick="nui()">Add to '+a+"</a>")}}else{if(document.all){document.write(c+'<a class="'+e+'" style="cursor:hand;" onclick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://duckduckgo.com/?q=&t=h\');" >Try Start Page</a>')}else{if(a=="iPhone"||a=="iPad"){document.write(c+'<a class="'+e+'" href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=301375111&mt=8">Add to '+a+"</a>")}else{if(a=="SeaMonkey"){document.write(c+'<a class="'+e+'" href="http://www.snork.ca/?p=744">Add to '+a+"</a>")}else{if(a=="Safari"&&is5){document.write(c+'<a class="'+e+'" href="http://vaporstun.com/files/duckduckgo-safari-extension/DuckDuckGoBar.safariextz">Add To Safari</a>')}else{if(a=="Safari"){document.write(c+'<a class="'+e+'" onClick="alert(\'To add Duck Duck Go to Safari, you have to install the Glims plugin first. Then you can add us as a custom search engine within Glims. For help screen shots, see our FAQ.\')" href="http://www.machangout.com/">Add To Safari</a>')}else{if(a=="Opera"){document.write(c+'<a class="'+e+'" href="/?q=&t=i" onClick="alert(\'Right-click the search box and then select Create Search\')">Add to Opera</a>')}else{if(f){document.write(c+"Sorry, your browser doesn't appear to support this functionality.")}}}}}}}}}function nsl(){var a=d.getElementById("l");if(a&&a.id){a.parentNode.removeChild(a)}else{if(tl&&tl.id){if(tl.parentNode){tl.parentNode.removeChild(tl)}tl=""}}}function nse(a){if(!a||!a.event){return}a.event.fire();a.event.is_fired=1}function not(){document.y.action="http://www.gabrielweinberg.com/";setTimeout("document.y.submit()")}function nik(){var p,o,n,m,k,h,f,c,a,l,j,g,e,b;p=new YAHOO.util.KeyListener(document,{keys:[40,74]},{fn:nkda});p.enable();o=new YAHOO.util.KeyListener(document,{keys:[38,75]},{fn:nkua});o.enable();n=new YAHOO.util.KeyListener(document,{keys:[39]},{fn:nkra});n.enable();m=new YAHOO.util.KeyListener(document,{keys:[37]},{fn:nkla});m.enable();k=new YAHOO.util.KeyListener(document,{keys:[13,79]},{fn:nke});k.enable();h=new YAHOO.util.KeyListener(document,{keys:[76]},{fn:nke});h.enable();f=new YAHOO.util.KeyListener(document,{keys:[191,111,72]},{fn:nks});f.enable();c=new YAHOO.util.KeyListener(document,{keys:[222]},{fn:nkn});c.enable();a=new YAHOO.util.KeyListener(document,{keys:[73]},{fn:nki});a.enable();l=new YAHOO.util.KeyListener(document,{keys:[82]},{fn:nkr});l.enable();j=new YAHOO.util.KeyListener(document,{keys:[86]},{fn:nkn});j.enable();g=new YAHOO.util.KeyListener(document,{keys:[32]},{fn:nksb});g.enable();e=new YAHOO.util.KeyListener(document,{keys:[77]},{fn:nkm});e.enable();b=new YAHOO.util.KeyListener(document,{keys:[70]},{fn:not});b.enable()}function ncku(a){if(!ie&&!a.metaKey){fa=0}}function nckd(a){if(!ie&&a.metaKey){fa=1}if(!fq&&(!kk||kk=="1")&&a.keyCode&&(a.keyCode==40||a.keyCode==74||a.keyCode==38||a.keyCode==75)){if(a&&(nkdc(a)||nkdm(a)||nkds(a)||nkdt(a)||fa)){}else{nue(a)}}}function nckp(a){if(!fq&&(!kk||kk=="1")&&a.keyCode&&(a.keyCode==40||a.keyCode==74||a.keyCode==38||a.keyCode==75)){if(a&&(nkdc(a)||nkdm(a)||nkds(a)||nkdt(a)||fa)){}else{nue(a)}}}function ncf(b){var a,c;fmx=b.clientX;fmy=b.clientY;viewport_height=YAHOO.util.Dom.getViewportHeight();viewport_width=YAHOO.util.Dom.getViewportWidth();if(fmx>(viewport_width-100)&&fmy>(parseInt(viewport_height)-17)){if(!il&&nrb){nrb()}}if(b.button&&((!ie&&b.button==1)||(ie&&b.button==4))&&rc&&rc.id){fm=1;a="";if(ie){a=b.srcElement}else{a=b.target}while(a!=window){if(a.nodeName&&a.nodeName=="A"){if((!ih5||im)&&kg!="p"&&(!kd||kd==1)&&a.href.indexOf("/k/?")==-1&&a.href.indexOf("/l/?")==-1){a.href="/k/?u="+encodeURIComponent(a.href)}break}c=a.id;if(c){if(c=="r12"){break}if(c==rc.id){nrg(rc,0,b,1)}}if(a.parentNode){a=a.parentNode}else{break}}}else{fm=0}}function ncg(b){var a;fmx=0;fmy=0;a=YAHOO.util.Dom.getViewportWidth();if(b.clientX>(a-25)){if(!il&&nrb){nrb()}}}function nkf(c){var b,a;if(ie){b=c.clientX+d.body.scrollLeft;a=c.clientY+d.body.scrollTop}else{b=c.pageX;a=c.pageY}if(fk&&sx&&sy&&(sx!=b||sy!=a)){fk=0}sx=b;sy=a}var mousewheelevt=(/Firefox/i.test(navigator.userAgent))?"DOMMouseScroll":"mousewheel";if(document.attachEvent){document.attachEvent("on"+mousewheelevt,nkw)}else{if(document.addEventListener){document.addEventListener(mousewheelevt,nkw,false)}}function nkw(a){if(io&&!il&&nrb){nrb()}fk=0}function nis(){setTimeout("idom=1;",250);if(fq){return false}var a=d.getElementById("hs").value;if(a){nhs(a)}else{rc=d.getElementById("r1-0")}fs=0;if(r1c<7&&!il&&nrb){nrb()}}function nreb(f){var j,e,h,c,a,g,b;for(e=0;e<f.length;e++){h=d.getElementById(reb[rebc++]);g=new RegExp(f[e]["provider_name"].replace(/^the/i,""),"i");b=g.test(decodeURIComponent(rq))?true:false;if(h&&b&&f[e]["html"]){c=d.createElement("div");YAHOO.util.Dom.setStyle(c,"margin-left","29px");YAHOO.util.Dom.setStyle(c,"margin-top","5px");c.innerHTML=f[e]["html"];h.appendChild(c)}else{if(h&&f[e]["thumbnail_url"]){c=d.createElement("div");YAHOO.util.Dom.addClass(c,"cn");YAHOO.util.Dom.setStyle(c,"clear","right");YAHOO.util.Dom.setStyle(c,"float","right");YAHOO.util.Dom.setStyle(c,"margin-left","10px");if(nur){a=nur("","",f[e]["thumbnail_url"])}if(a){YAHOO.util.Dom.addClass(a,"cn");YAHOO.util.Dom.setStyle(a,"max-height","65px");c.appendChild(a);h.insertBefore(c,h.firstChild)}}}}}function nrtd(a){var b,c;if(a.defs&&a.defs["def"]){c=new Array();c.u=a.defs["def"]["uri"];c.a=a.defs["def"]["text"];c.h='<font color="#EE4444"><b>#'+a.defs["def"]["hashtag"]+" hashtag (definition)</b></font>";c.s="Tagdef";b=new Array();b[0]=c;nra(b)}}function nrss(e,f){var g,b,a,c;if(!f){f=e.domain}if(!f){return}g=e.parentNode;b=d.getElementById(f);if(b){g.removeChild(b);return}if(g){a=d.createElement("div");a.id=f;YAHOO.util.Dom.addClass(a,"cssd");c=d.createElement("iframe");c.src="http://api2.similarsites.com/related?s=607&md=14&rl=1&q="+f;YAHOO.util.Dom.addClass(c,"cssf");c.allowTransparency=true;c.frameBorder=false;c.scrolling="no";a.appendChild(c);g.appendChild(a)}}function nrb(b,e){var f,o,h,k,m,l,c,n,g,a,j;if(fs||(it&&rt=="C")){return false}fs=1;m=YAHOO.util.Dom.getDocumentHeight();l=YAHOO.util.Dom.getDocumentScrollTop();c=YAHOO.util.Dom.getViewportHeight();viewport_width=YAHOO.util.Dom.getViewportWidth();h=((l+c)>=(m-1))?1:0;f=d.getElementById("r1-"+(parseInt(r1c)-2));k=0;if(f){o=YAHOO.util.Dom.getY(f);if(o<(l+c+20)){k=1}}if(!e&&fmx&&fmy&&fmx>(viewport_width-100)&&fmy<(parseInt(c)-17)){fs=0;return}if(h||k||e){for(g=parseInt(r1c)-1;g>=0;g--){a=d.getElementById("r1-"+g);j=a.parentNode;if(YAHOO.util.Dom.getStyle(j,"display")=="block"){nrm(7,"r1-"+g);break}}}fs=0}function nic(){var a,e,b,c;b=YAHOO.util.Dom.getViewportWidth();c=YAHOO.util.Dom.getViewportHeight();a=ki||YAHOO.util.Cookie.get("i");if(a){kurl+="&ki="+a}if(a&&a=="-1"&&!rv){nrt("n")}else{if((!a||a=="1")&&rv=="n"){nrt("")}}if(ip){YAHOO.util.Dom.setStyle("sx","width","372px")}a=ks||YAHOO.util.Cookie.get("s");if(a){kurl+="&ks="+a}if(a=="s"){YAHOO.util.Dom.setStyle("c","font-size","85%");YAHOO.util.Dom.setStyle("rtes","font-size","85%");YAHOO.util.StyleSheet("DDG").set(".cr1, .cr1b, .cr3b, .cr1d",{paddingTop:"6px",paddingBottom:"6px"}).set(".cr1, .cr1b, .cr3b",{paddingTop:"6px",paddingBottom:"6px"}).set(".cr2, .cr2b",{paddingTop:"2px",paddingBottom:"2px"}).enable()}else{if(a=="m"){YAHOO.util.Dom.setStyle("c","font-size","91%");YAHOO.util.Dom.setStyle("rtes","font-size","91%");YAHOO.util.StyleSheet("DDG").set(".cr1, .cr1b, .cr3b, .cr1d",{paddingTop:"9px",paddingBottom:"9px"}).set(".cr1, .cr1b, .cr3b",{paddingTop:"9px",paddingBottom:"9px"}).set(".cr2, .cr2b",{paddingTop:"2px",paddingBottom:"2px"}).enable()}}a=ka||YAHOO.util.Cookie.get("a");if(a){kurl+="&ka="+a}if(a){if(a=="a"){e="Arial"}else{if(a=="c"){e="Century Gothic"}else{if(a=="g"){e="Georgia"}else{if(a=="t"){e="Times"}else{if(a=="h"){e="Helvetica"}else{if(a=="v"){e="Verdana"}else{if(a=="b"){e="Trebuchet MS"}else{if(a=="s"){e="Serif"}else{if(a=="n"){e="Sans-Serif"}else{if(a=="o"){e="Tahoma"}else{e=a}}}}}}}}}}YAHOO.util.Dom.setStyle("g","font-family",e);YAHOO.util.Dom.setStyle("h","font-family",e);YAHOO.util.Dom.setStyle("rh","font-family",e);YAHOO.util.Dom.setStyle("rh2","font-family",e);YAHOO.util.Dom.setStyle("rtes","font-family",e);YAHOO.util.Dom.setStyle("sx","font-family",e);YAHOO.util.StyleSheet("DDG").set("a",{fontFamily:e}).enable()}a=kt||YAHOO.util.Cookie.get("t");if(a){kurl+="&kt="+a}if(a){if(a=="a"){e="Arial"}else{if(a=="c"){e="Century Gothic"}else{if(a=="g"){e="Georgia"}else{if(a=="t"){e="Trebuchet MS"}else{if(a=="i"){e="Times"}else{if(a=="h"){e="Helvetica"}else{if(a=="v"){e="Verdana"}else{if(a=="s"){e="Serif"}else{if(a=="n"){e="Sans-Serif"}else{if(a=="o"){e="Tahoma"}else{e=a}}}}}}}}}}YAHOO.util.StyleSheet("DDG").set("body",{fontFamily:e}).enable()}a=ky||YAHOO.util.Cookie.get("y");if(a){kurl+="&ky="+a}if(a=="-1"){YAHOO.util.StyleSheet("DDG").set(".cmf",{background:"#FFFFFF",cursor:"default"}).enable();nir=null}a=kk||YAHOO.util.Cookie.get("k");if(a){kurl+="&kk="+a}if(a!="-1"&&!ip){YAHOO.util.Event.onDOMReady(setTimeout("nik()",250));if(d.getElementById("f1")&&b>600&&c>600){setTimeout("YAHOO.util.Dom.setStyle('f1','display','block');",2500)}}a=kf||YAHOO.util.Cookie.get("f");if(a){kurl+="&kf="+a}if(!a||a=="1"){YAHOO.util.StyleSheet("DDG").set(".ci",{display:"block"}).set(".cid",{display:"block"}).set(".ci2",{display:"block"}).enable()}else{if(a=="1"){nur=null}}a=kc||YAHOO.util.Cookie.get("c");if(a){kurl+="&kc="+a}if(a!="-1"&&!io){YAHOO.util.Event.addListener(window,"scroll",nrb)}else{if(a&&a=="-1"){nrb=null}}a=kw||YAHOO.util.Cookie.get("w");if(a){kurl+="&kw="+a}if(a=="w"){YAHOO.util.Dom.setStyle("c","max-width","1500px");YAHOO.util.Dom.setStyle("r12","max-width","1000px");YAHOO.util.Dom.setStyle("r12b","max-width","1000px");YAHOO.util.Dom.setStyle("rpr","max-width","900px")}a=ke||YAHOO.util.Cookie.get("e");if(a){kurl+="&ke="+a}if((!a||a=="1")&&b>650&&c>500){YAHOO.util.Dom.setStyle("fb","display","block")}a=kr||YAHOO.util.Cookie.get("r");if(a){kurl+="&kr="+a}if((!a||a=="1")&&b>720){YAHOO.util.Dom.setStyle("ri","display","block")}a=ko||YAHOO.util.Cookie.get("o");if(a){kurl+="&ko="+a}if(!a||a=="1"){YAHOO.util.Dom.setStyle("b2","display","block")}a=kz||YAHOO.util.Cookie.get("z");if(a){kurl+="&kz="+a}if((!a||a=="1")&&rad){YAHOO.util.Dom.setStyle("rprw","display","block");YAHOO.util.Dom.setStyle("rprw","visibility","visible")}else{if(a=="-1"){YAHOO.util.Dom.setStyle("rprw","display","none");YAHOO.util.Dom.setStyle("rprw","visibility","hidden");nra=null;nra2=null}}a=kg||YAHOO.util.Cookie.get("g");if(a){kurl+="&kg="+a}if(a=="p"){d.x.method="POST"}a=kl||YAHOO.util.Cookie.get("l");if(a){kurl+="&kl="+a}a=kp||YAHOO.util.Cookie.get("p");if(a){kurl+="&kp="+a}a=kd||YAHOO.util.Cookie.get("d");if(a){kurl+="&kd="+a}a=kn||YAHOO.util.Cookie.get("n");if(a){kurl+="&kn="+a}}function nip(){var a;if(ih5){a=d.createElement("iframe");a.id="k";a.src="/post.html";d.body.appendChild(a)}nic();if(nir){nir()}YAHOO.util.Event.onDOMReady(setTimeout("nis()",250));setTimeout("nsl()",10000);YAHOO.util.Event.addListener(d,"mousemove",nkf);YAHOO.util.Event.addListener(d,"mousedown",ncf);YAHOO.util.Event.addListener(d,"mouseup",ncg);YAHOO.util.Event.addListener(d,"keydown",nckd);YAHOO.util.Event.addListener(d,"keypress",nckp);YAHOO.util.Event.addListener(d,"keyup",ncku)};