JAVASCRIPT 45
Player-beta.js Guest on 14th July 2020 05:41:52 PM
  1. /* Yahoo! WebPlayer Loader, Build 0.9.10.  Copyright (c) 2011, Yahoo! Inc.  All rights reserved.
  2.  * Your use of this Yahoo! WebPlayer is subject to the Yahoo! Terms of Service
  3.  * located at http://info.yahoo.com/legal/us/yahoo/webplayer/details.html
  4.  */
  5. (function(){if(typeof e=="undefined"||!e){var e={};}e.namespace=function(){var h=arguments,i=null,k,l,j;for(k=0;k<h.length;k=k+1){j=(""+h[k]).split(".");i=e;for(l=(j[0]=="YAHOO")?1:0;l<j.length;l=l+1){i[j[l]]=i[j[l]]||{};i=i[j[l]];}}return i;};e.log=function(i,h,j){var k=e.widget.Logger;if(k&&k.log){return k.log(i,h,j);}else{return false;}};e.register=function(k,p,h){var l=e.env.modules,j,m,n,o,i;if(!l[k]){l[k]={versions:[],builds:[]};}j=l[k];m=h.version;n=h.build;o=e.env.listeners;j.name=k;j.version=m;j.build=n;j.versions.push(m);j.builds.push(n);j.mainClass=p;for(i=0;i<o.length;i=i+1){o[i](j);}if(p){p.VERSION=m;p.BUILD=n;}else{e.log("mainClass is undefined for module "+k,"warn");}};e.env=e.env||{modules:[],listeners:[]};e.env.getVersion=function(h){return e.env.modules[h]||null;};e.env.ua=function(){var l=function(p){var o=0;return parseFloat(p.replace(/\./g,function(){return(o++==1)?"":".";}));},i=navigator,j={ie:0,opera:0,gecko:0,webkit:0,mobile:null,air:0,caja:i.cajaVersion,secure:false,os:null},m=navigator&&navigator.userAgent,k=window&&window.location,n=k&&k.href,h;j.secure=n&&(n.toLowerCase().indexOf("https")===0);if(m){if((/windows|win32/i).test(m)){j.os="windows";}else{if((/macintosh/i).test(m)){j.os="macintosh";}}if((/KHTML/).test(m)){j.webkit=1;}h=m.match(/AppleWebKit\/([^\s]*)/);if(h&&h[1]){j.webkit=l(h[1]);if(/ Mobile\//.test(m)){j.mobile="Apple";}else{h=m.match(/NokiaN[^\/]*/);if(h){j.mobile=h[0];}}h=m.match(/AdobeAIR\/([^\s]*)/);if(h){j.air=h[0];}}if(!j.webkit){h=m.match(/Opera[\s\/]([^\s]*)/);if(h&&h[1]){j.opera=l(h[1]);h=m.match(/Opera Mini[^;]*/);if(h){j.mobile=h[0];}}else{h=m.match(/MSIE\s([^;]*)/);if(h&&h[1]){j.ie=l(h[1]);}else{h=m.match(/Gecko\/([^\s]*)/);if(h){j.gecko=1;h=m.match(/rv:([^\s\)]*)/);if(h&&h[1]){j.gecko=l(h[1]);}}}}}}return j;}();(function(){e.namespace("util","widget","example");if("undefined"!==typeof YAHOO_config){var k=YAHOO_config.listener,h=e.env.listeners,i=true,j;if(k){for(j=0;j<h.length;j++){if(h[j]==k){i=false;break;}}if(i){h.push(k);}}}})();e.lang=e.lang||{};(function(){var o=e.lang,h=Object.prototype,i="[object Array]",n="[object Function]",j="[object Object]",l=[],k=["toString","valueOf"],m={isArray:function(p){return h.toString.apply(p)===i;},isBoolean:function(p){return typeof p==="boolean";},isFunction:function(p){return(typeof p==="function")||h.toString.apply(p)===n;},isNull:function(p){return p===null;},isNumber:function(p){return typeof p==="number"&&isFinite(p);},isObject:function(p){return(p&&(typeof p==="object"||o.isFunction(p)))||false;},isString:function(p){return typeof p==="string";},isUndefined:function(p){return typeof p==="undefined";},_IEEnumFix:(e.env.ua.ie)?function(q,r){var s,t,p;for(s=0;s<k.length;s=s+1){t=k[s];p=r[t];if(o.isFunction(p)&&p!=h[t]){q[t]=p;}}}:function(){},extend:function(p,t,q){if(!t||!p){throw new Error("extend failed, please check that "+"all dependencies are included.");}var r=function(){},s;r.prototype=t.prototype;p.prototype=new r();p.prototype.constructor=p;p.superclass=t.prototype;if(t.prototype.constructor==h.constructor){t.prototype.constructor=t;}if(q){for(s in q){if(o.hasOwnProperty(q,s)){p.prototype[s]=q[s];}}o._IEEnumFix(p.prototype,q);}},augmentObject:function(u,p){if(!p||!u){throw new Error("Absorb failed, verify dependencies.");}var s=arguments,q,t,r=s[2];if(r&&r!==true){for(q=2;q<s.length;q=q+1){u[s[q]]=p[s[q]];}}else{for(t in p){if(r||!(t in u)){u[t]=p[t];}}o._IEEnumFix(u,p);}},augmentProto:function(p,q){if(!q||!p){throw new Error("Augment failed, verify dependencies.");}var s=[p.prototype,q.prototype],r;for(r=2;r<arguments.length;r=r+1){s.push(arguments[r]);}o.augmentObject.apply(this,s);},dump:function(x,s){var v,t,q=[],p="{...}",w="f(){...}",r=", ",u=" => ";if(!o.isObject(x)){return x+"";}else{if(x instanceof Date||("nodeType" in x&&"tagName" in x)){return x;}else{if(o.isFunction(x)){return w;}}}s=(o.isNumber(s))?s:3;if(o.isArray(x)){q.push("[");for(v=0,t=x.length;v<t;v=v+1){if(o.isObject(x[v])){q.push((s>0)?o.dump(x[v],s-1):p);}else{q.push(x[v]);}q.push(r);}if(q.length>1){q.pop();}q.push("]");}else{q.push("{");for(v in x){if(o.hasOwnProperty(x,v)){q.push(v+u);if(o.isObject(x[v])){q.push((s>0)?o.dump(x[v],s-1):p);}else{q.push(x[v]);}q.push(r);}}if(q.length>1){q.pop();}q.push("}");}return q.join("");},substitute:function(p,E,w){var A,B,C,t,s,q,u=[],D,z="dump",v=" ",F="{",r="}",x,y;for(;;){A=p.lastIndexOf(F);if(A<0){break;}B=p.indexOf(r,A);if(A+1>=B){break;}D=p.substring(A+1,B);t=D;q=null;C=t.indexOf(v);if(C>-1){q=t.substring(C+1);t=t.substring(0,C);}s=E[t];if(w){s=w(t,s,q);}if(o.isObject(s)){if(o.isArray(s)){s=o.dump(s,parseInt(q,10));}else{q=q||"";x=q.indexOf(z);if(x>-1){q=q.substring(4);}y=s.toString();if(y===j||x>-1){s=o.dump(s,parseInt(q,10));}else{s=y;}}}else{if(!o.isString(s)&&!o.isNumber(s)){s="~-"+u.length+"-~";u[u.length]=D;}}p=p.substring(0,A)+s+p.substring(B+1);}for(A=u.length-1;A>=0;A=A-1){p=p.replace(new RegExp("~-"+A+"-~"),"{"+u[A]+"}","g");}return p;},trim:function(q){try{return q.replace(/^\s+|\s+$/g,"");}catch(p){return q;}},merge:function(){var p={},r=arguments,s=r.length,q;for(q=0;q<s;q=q+1){o.augmentObject(p,r[q],true);}return p;},later:function(q,w,p,u,t){q=q||0;w=w||{};var v=p,r=u,s,x;if(o.isString(p)){v=w[p];}if(!v){throw new TypeError("method undefined");}if(r&&!o.isArray(r)){r=[u];}s=function(){v.apply(w,r||l);};x=(t)?setInterval(s,q):setTimeout(s,q);return{interval:t,cancel:function(){if(this.interval){clearInterval(x);}else{clearTimeout(x);}}};},isValue:function(p){return(o.isObject(p)||o.isString(p)||o.isNumber(p)||o.isBoolean(p));}};o.hasOwnProperty=(h.hasOwnProperty)?function(q,p){return q&&q.hasOwnProperty(p);}:function(q,p){return !o.isUndefined(q[p])&&q.constructor.prototype[p]!==q[p];};m.augmentObject(o,m,true);
  6. e.util.Lang=o;o.augment=o.augmentProto;e.augment=o.augmentProto;e.extend=o.extend;})();e.register("yahoo",e,{version:"2.8.0r4",build:"2449"});(function(){e.env._id_counter=e.env._id_counter||0;var ao=e.util,ai=e.lang,aE=e.env.ua,at=e.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(m){var j,h,l,n,k,i;if(m){if(m[aF]||m.item){return m;}if(typeof m==="string"){j=m;m=aj.getElementById(m);i=(m)?m.attributes:null;if(m&&i&&i.id&&i.id.value===j){return m;}else{if(m&&aj.all){m=null;h=aj.all[j];for(n=0,k=h.length;n<k;++n){if(h[n].id===j){return h[n];}}}}return m;}if(e.util.Element&&m instanceof e.util.Element){m=m.get("element");}if("length" in m){l=[];for(n=0,k=m.length;n<k;++n){l[l.length]=ao.Dom.get(m[n]);}return l;}return m;}return null;},getComputedStyle:function(h,i){if(window[au]){return h[aM][aD][au](h,null)[i];}else{if(h[aQ]){return ao.Dom.IE_ComputedStyle.get(h,i);}}},getStyle:function(h,i){return ao.Dom.batch(h,ao.Dom._getStyle,i);},_getStyle:function(){if(window[au]){return function(i,k){k=(k==="float")?k="cssFloat":ao.Dom._toCamel(k);var h=i.style[k],j;if(!h){j=i[aM][aD][au](i,null);if(j){h=j[k];}}return h;};}else{if(z[aQ]){return function(i,l){var h;switch(l){case"opacity":h=100;try{h=i.filters["DXImageTransform.Microsoft.Alpha"].opacity;}catch(k){try{h=i.filters("alpha").opacity;}catch(j){}}return h/100;case"float":l="styleFloat";default:l=ao.Dom._toCamel(l);h=i[aQ]?i[aQ][l]:null;return(i.style[l]||h);}};}}}(),setStyle:function(i,j,h){ao.Dom.batch(i,ao.Dom._setStyle,{prop:j,val:h});},_setStyle:function(){if(aa){return function(j,i){var h=ao.Dom._toCamel(i.prop),k=i.val;if(j){switch(h){case"opacity":if(ai.isString(j.style.filter)){j.style.filter="alpha(opacity="+k*100+")";if(!j[aQ]||!j[aQ].hasLayout){j.style.zoom=1;}}break;case"float":h="styleFloat";default:j.style[h]=k;}}else{}};}else{return function(j,i){var h=ao.Dom._toCamel(i.prop),k=i.val;if(j){if(h=="float"){h="cssFloat";}j.style[h]=k;}else{}};}}(),getXY:function(h){return ao.Dom.batch(h,ao.Dom._getXY);},_canPosition:function(h){return(ao.Dom._getStyle(h,"display")!=="none"&&ao.Dom._inDoc(h));},_getXY:function(){if(aj[av][ad]){return function(q){var p,h,o,j,k,l,m,s,r,n=Math.floor,i=false;if(ao.Dom._canPosition(q)){o=q[ad]();j=q[aM];p=ao.Dom.getDocumentScrollLeft(j);h=ao.Dom.getDocumentScrollTop(j);i=[n(o[aH]),n(o[aC])];if(aa&&aE.ie<8){k=2;l=2;m=j[ax];if(aE.ie===6){if(m!==aO){k=0;l=0;}}if((m===aO)){s=ab(j[av],aA);r=ab(j[av],ac);if(s!==az){k=parseInt(s,10);}if(r!==az){l=parseInt(r,10);}}i[0]-=k;i[1]-=l;}if((h||p)){i[0]+=p;i[1]+=h;}i[0]=n(i[0]);i[1]=n(i[1]);}else{}return i;};}else{return function(o){var h,n,m,k,j,l=false,i=o;if(ao.Dom._canPosition(o)){l=[o[aP],o[ae]];h=ao.Dom.getDocumentScrollLeft(o[aM]);n=ao.Dom.getDocumentScrollTop(o[aM]);j=((am||aE.webkit>519)?true:false);while((i=i[aw])){l[0]+=i[aP];l[1]+=i[ae];if(j){l=ao.Dom._calcBorders(i,l);}}if(ao.Dom._getStyle(o,aB)!==aL){i=o;while((i=i[x])&&i[aq]){m=i[aI];k=i[af];if(am&&(ao.Dom._getStyle(i,"overflow")!=="visible")){l=ao.Dom._calcBorders(i,l);}if(m||k){l[0]-=k;l[1]-=m;}}l[0]+=h;l[1]+=n;}else{if(ap){l[0]-=h;l[1]-=n;}else{if(al||am){l[0]+=h;l[1]+=n;}}}l[0]=Math.floor(l[0]);l[1]=Math.floor(l[1]);}else{}return l;};}}(),getX:function(h){var i=function(j){return ao.Dom.getXY(j)[0];};return ao.Dom.batch(h,i,ao.Dom,true);},getY:function(h){var i=function(j){return ao.Dom.getXY(j)[1];};return ao.Dom.batch(h,i,ao.Dom,true);},setXY:function(i,h,j){ao.Dom.batch(i,ao.Dom._setXY,{pos:h,noRetry:j});},_setXY:function(p,m){var l=ao.Dom._getStyle(p,aB),n=ao.Dom.setStyle,i=m.pos,h=m.noRetry,k=[parseInt(ao.Dom.getComputedStyle(p,aH),10),parseInt(ao.Dom.getComputedStyle(p,aC),10)],j,o;if(l=="static"){l=G;n(p,aB,l);}j=ao.Dom._getXY(p);if(!i||j===false){return false;}if(isNaN(k[0])){k[0]=(l==G)?0:p[aP];}if(isNaN(k[1])){k[1]=(l==G)?0:p[ae];}if(i[0]!==null){n(p,aH,i[0]-j[0]+k[0]+"px");}if(i[1]!==null){n(p,aC,i[1]-j[1]+k[1]+"px");}if(!h){o=ao.Dom._getXY(p);if((i[0]!==null&&o[0]!=i[0])||(i[1]!==null&&o[1]!=i[1])){ao.Dom._setXY(p,{pos:i,noRetry:true});}}},setX:function(i,h){ao.Dom.setXY(i,[h,null]);},setY:function(h,i){ao.Dom.setXY(h,[null,i]);},getRegion:function(h){var i=function(j){var k=false;if(ao.Dom._canPosition(j)){k=ao.Region.getRegion(j);}else{}return k;};return ao.Dom.batch(h,i,ao.Dom,true);},getClientWidth:function(){return ao.Dom.getViewportWidth();},getClientHeight:function(){return ao.Dom.getViewportHeight();},getElementsByClassName:function(m,i,l,j,q,k){i=i||"*";l=(l)?ao.Dom.get(l):null||aj;if(!l){return[];}var h=[],r=l.getElementsByTagName(i),o=ao.Dom.hasClass;for(var p=0,n=r.length;p<n;++p){if(o(r[p],m)){h[h.length]=r[p];}}if(j){ao.Dom.batch(h,j,q,k);}return h;},hasClass:function(i,h){return ao.Dom.batch(i,ao.Dom._hasClass,h);},_hasClass:function(h,j){var i=false,k;if(h&&j){k=ao.Dom._getAttribute(h,an)||ak;if(j.exec){i=j.test(k);}else{i=j&&(ar+k+ar).indexOf(ar+j+ar)>-1;}}else{}return i;},addClass:function(i,h){return ao.Dom.batch(i,ao.Dom._addClass,h);},_addClass:function(h,j){var i=false,k;if(h&&j){k=ao.Dom._getAttribute(h,an)||ak;if(!ao.Dom._hasClass(h,j)){ao.Dom.setAttribute(h,an,at(k+ar+j));i=true;}}else{}return i;},removeClass:function(i,h){return ao.Dom.batch(i,ao.Dom._removeClass,h);},_removeClass:function(m,h){var l=false,k,j,i;if(m&&h){k=ao.Dom._getAttribute(m,an)||ak;ao.Dom.setAttribute(m,an,k.replace(ao.Dom._getClassRegex(h),ak));
  7. j=ao.Dom._getAttribute(m,an);if(k!==j){ao.Dom.setAttribute(m,an,at(j));l=true;if(ao.Dom._getAttribute(m,an)===""){i=(m.hasAttribute&&m.hasAttribute(aK))?aK:an;m.removeAttribute(i);}}}else{}return l;},replaceClass:function(h,j,i){return ao.Dom.batch(h,ao.Dom._replaceClass,{from:j,to:i});},_replaceClass:function(n,h){var m,j,l,i=false,k;if(n&&h){j=h.from;l=h.to;if(!l){i=false;}else{if(!j){i=ao.Dom._addClass(n,h.to);}else{if(j!==l){k=ao.Dom._getAttribute(n,an)||ak;m=(ar+k.replace(ao.Dom._getClassRegex(j),ar+l)).split(ao.Dom._getClassRegex(l));m.splice(1,0,ar+l);ao.Dom.setAttribute(n,an,at(m.join(ak)));i=true;}}}}else{}return i;},generateId:function(i,h){h=h||"yui-gen";var j=function(l){if(l&&l.id){return l.id;}var k=h+e.env._id_counter++;if(l){if(l[aM]&&l[aM].getElementById(k)){return ao.Dom.generateId(l,k+h);}l.id=k;}return k;};return ao.Dom.batch(i,j,ao.Dom,true)||j.apply(ao.Dom,arguments);},isAncestor:function(j,h){j=ao.Dom.get(j);h=ao.Dom.get(h);var i=false;if((j&&h)&&(j[aF]&&h[aF])){if(j.contains&&j!==h){i=j.contains(h);}else{if(j.compareDocumentPosition){i=!!(j.compareDocumentPosition(h)&16);}}}else{}return i;},inDocument:function(h,i){return ao.Dom._inDoc(ao.Dom.get(h),i);},_inDoc:function(j,h){var i=false;if(j&&j[aq]){h=h||j[aM];i=ao.Dom.isAncestor(h[av],j);}else{}return i;},getElementsBy:function(h,i,m,k,p,l,j){i=i||"*";m=(m)?ao.Dom.get(m):null||aj;if(!m){return[];}var q=[],r=m.getElementsByTagName(i);for(var o=0,n=r.length;o<n;++o){if(h(r[o])){if(j){q=r[o];break;}else{q[q.length]=r[o];}}}if(k){ao.Dom.batch(q,k,p,l);}return q;},getElementBy:function(h,i,j){return ao.Dom.getElementsBy(h,i,j,null,null,null,true);},batch:function(h,j,m,l){var n=[],k=(l)?m:window;h=(h&&(h[aq]||h.item))?h:ao.Dom.get(h);if(h&&j){if(h[aq]||h.length===undefined){return j.call(k,h,m);}for(var i=0;i<h.length;++i){n[n.length]=j.call(k,h[i],m);}}else{return false;}return n;},getDocumentHeight:function(){var i=(aj[ax]!=ah||al)?aj.body.scrollHeight:z.scrollHeight,h=Math.max(i,ao.Dom.getViewportHeight());return h;},getDocumentWidth:function(){var i=(aj[ax]!=ah||al)?aj.body.scrollWidth:z.scrollWidth,h=Math.max(i,ao.Dom.getViewportWidth());return h;},getViewportHeight:function(){var h=self.innerHeight,i=aj[ax];if((i||aa)&&!ap){h=(i==ah)?z.clientHeight:aj.body.clientHeight;}return h;},getViewportWidth:function(){var h=self.innerWidth,i=aj[ax];if(i||aa){h=(i==ah)?z.clientWidth:aj.body.clientWidth;}return h;},getAncestorBy:function(h,i){while((h=h[x])){if(ao.Dom._testElement(h,i)){return h;}}return null;},getAncestorByClassName:function(j,i){j=ao.Dom.get(j);if(!j){return null;}var h=function(k){return ao.Dom.hasClass(k,i);};return ao.Dom.getAncestorBy(j,h);},getAncestorByTagName:function(j,i){j=ao.Dom.get(j);if(!j){return null;}var h=function(k){return k[aq]&&k[aq].toUpperCase()==i.toUpperCase();};return ao.Dom.getAncestorBy(j,h);},getPreviousSiblingBy:function(h,i){while(h){h=h.previousSibling;if(ao.Dom._testElement(h,i)){return h;}}return null;},getPreviousSibling:function(h){h=ao.Dom.get(h);if(!h){return null;}return ao.Dom.getPreviousSiblingBy(h);},getNextSiblingBy:function(h,i){while(h){h=h.nextSibling;if(ao.Dom._testElement(h,i)){return h;}}return null;},getNextSibling:function(h){h=ao.Dom.get(h);if(!h){return null;}return ao.Dom.getNextSiblingBy(h);},getFirstChildBy:function(i,h){var j=(ao.Dom._testElement(i.firstChild,h))?i.firstChild:null;return j||ao.Dom.getNextSiblingBy(i.firstChild,h);},getFirstChild:function(h,i){h=ao.Dom.get(h);if(!h){return null;}return ao.Dom.getFirstChildBy(h);},getLastChildBy:function(i,h){if(!i){return null;}var j=(ao.Dom._testElement(i.lastChild,h))?i.lastChild:null;return j||ao.Dom.getPreviousSiblingBy(i.lastChild,h);},getLastChild:function(h){h=ao.Dom.get(h);return ao.Dom.getLastChildBy(h);},getChildrenBy:function(j,k){var h=ao.Dom.getFirstChildBy(j,k),i=h?[h]:[];ao.Dom.getNextSiblingBy(h,function(l){if(!k||k(l)){i[i.length]=l;}return false;});return i;},getChildren:function(h){h=ao.Dom.get(h);if(!h){}return ao.Dom.getChildrenBy(h);},getDocumentScrollLeft:function(h){h=h||aj;return Math.max(h[av].scrollLeft,h.body.scrollLeft);},getDocumentScrollTop:function(h){h=h||aj;return Math.max(h[av].scrollTop,h.body.scrollTop);},insertBefore:function(i,h){i=ao.Dom.get(i);h=ao.Dom.get(h);if(!i||!h||!h[x]){return null;}return h[x].insertBefore(i,h);},insertAfter:function(i,h){i=ao.Dom.get(i);h=ao.Dom.get(h);if(!i||!h||!h[x]){return null;}if(h.nextSibling){return h[x].insertBefore(i,h.nextSibling);}else{return h[x].appendChild(i);}},getClientRegion:function(){var h=ao.Dom.getDocumentScrollTop(),j=ao.Dom.getDocumentScrollLeft(),k=ao.Dom.getViewportWidth()+j,i=ao.Dom.getViewportHeight()+h;return new ao.Region(h,k,i,j);},setAttribute:function(j,i,h){ao.Dom.batch(j,ao.Dom._setAttribute,{attr:i,val:h});},_setAttribute:function(h,j){var i=ao.Dom._toCamel(j.attr),k=j.val;if(h&&h.setAttribute){if(ao.Dom.DOT_ATTRIBUTES[i]){h[i]=k;}else{i=ao.Dom.CUSTOM_ATTRIBUTES[i]||i;h.setAttribute(i,k);}}else{}},getAttribute:function(i,h){return ao.Dom.batch(i,ao.Dom._getAttribute,h);},_getAttribute:function(j,i){var h;i=ao.Dom.CUSTOM_ATTRIBUTES[i]||i;if(j&&j.getAttribute){h=j.getAttribute(i,2);}else{}return h;},_toCamel:function(j){var h=aN;function i(l,k){return k.toUpperCase();}return h[j]||(h[j]=j.indexOf("-")===-1?j:j.replace(/-([a-z])/gi,i));},_getClassRegex:function(i){var h;if(i!==undefined){if(i.exec){h=i;}else{h=aJ[i];if(!h){i=i.replace(ao.Dom._patterns.CLASS_RE_TOKENS,"\\$1");h=aJ[i]=new RegExp(ay+i+aG,Y);}}}return h;},_patterns:{ROOT_TAG:/^body|html$/i,CLASS_RE_TOKENS:/([\.\(\)\^\$\*\+\?\|\[\]\{\}\\])/g},_testElement:function(h,i){return h&&h[aF]==1&&(!i||i(h));},_calcBorders:function(h,k){var j=parseInt(ao.Dom[au](h,ac),10)||0,i=parseInt(ao.Dom[au](h,aA),10)||0;if(am){if(ag.test(h[aq])){j=0;i=0;}}k[0]+=i;k[1]+=j;return k;}};var ab=ao.Dom[au];if(aE.opera){ao.Dom[au]=function(j,i){var h=ab(j,i);if(y.test(i)){h=ao.Dom.Color.toRGB(h);}return h;};}if(aE.webkit){ao.Dom[au]=function(j,i){var h=ab(j,i);if(h==="rgba(0, 0, 0, 0)"){h="transparent";
  8. }return h;};}if(aE.ie&&aE.ie>=8&&aj.documentElement.hasAttribute){ao.Dom.DOT_ATTRIBUTES.type=true;}})();e.util.Region=function(j,i,h,k){this.top=j;this.y=j;this[1]=j;this.right=i;this.bottom=h;this.left=k;this.x=k;this[0]=k;this.width=this.right-this.left;this.height=this.bottom-this.top;};e.util.Region.prototype.contains=function(h){return(h.left>=this.left&&h.right<=this.right&&h.top>=this.top&&h.bottom<=this.bottom);};e.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left));};e.util.Region.prototype.intersect=function(i){var k=Math.max(this.top,i.top),j=Math.min(this.right,i.right),h=Math.min(this.bottom,i.bottom),l=Math.max(this.left,i.left);if(h>=k&&j>=l){return new e.util.Region(k,j,h,l);}else{return null;}};e.util.Region.prototype.union=function(i){var k=Math.min(this.top,i.top),j=Math.max(this.right,i.right),h=Math.max(this.bottom,i.bottom),l=Math.min(this.left,i.left);return new e.util.Region(k,j,h,l);};e.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+"}");};e.util.Region.getRegion=function(k){var i=e.util.Dom.getXY(k),l=i[1],j=i[0]+k.offsetWidth,h=i[1]+k.offsetHeight,m=i[0];return new e.util.Region(l,j,h,m);};e.util.Point=function(h,i){if(e.lang.isArray(h)){i=h[1];h=h[0];}e.util.Point.superclass.constructor.call(this,i,h,i,h);};e.extend(e.util.Point,e.util.Region);(function(){var Z=e.util,aa="clientTop",y="clientLeft",u="parentNode",t="right",h="hasLayout",v="px",j="opacity",s="auto",X="borderLeftWidth",x="borderTopWidth",o="borderRightWidth",i="borderBottomWidth",l="visible",n="transparent",q="height",z="width",w="style",k="currentStyle",m=/^width|height$/,p=/^(\d[.\d]*)+(em|ex|px|gd|rem|vw|vh|vm|ch|mm|cm|in|pt|pc|deg|rad|ms|s|hz|khz|%){1}?/i,r={get:function(D,B){var C="",A=D[k][B];if(B===j){C=Z.Dom.getStyle(D,j);}else{if(!A||(A.indexOf&&A.indexOf(v)>-1)){C=A;}else{if(Z.Dom.IE_COMPUTED[B]){C=Z.Dom.IE_COMPUTED[B](D,B);}else{if(p.test(A)){C=Z.Dom.IE.ComputedStyle.getPixel(D,B);}else{C=A;}}}}return C;},getOffset:function(D,C){var A=D[k][C],H=C.charAt(0).toUpperCase()+C.substr(1),G="offset"+H,F="pixel"+H,B="",E;if(A==s){E=D[G];if(E===undefined){B=0;}B=E;if(m.test(C)){D[w][C]=E;if(D[G]>E){B=E-(D[G]-E);}D[w][C]=s;}}else{if(!D[w][F]&&!D[w][C]){D[w][C]=A;}B=D[w][F];}return B+v;},getBorderWidth:function(C,A){var B=null;if(!C[k][h]){C[w].zoom=1;}switch(A){case x:B=C[aa];break;case i:B=C.offsetHeight-C.clientHeight-C[aa];break;case X:B=C[y];break;case o:B=C.offsetWidth-C.clientWidth-C[y];break;}return B+v;},getPixel:function(D,E){var B=null,A=D[k][t],C=D[k][E];D[w][t]=C;B=D[w].pixelRight;D[w][t]=A;return B+v;},getMargin:function(B,C){var A;if(B[k][C]==s){A=0+v;}else{A=Z.Dom.IE.ComputedStyle.getPixel(B,C);}return A;},getVisibility:function(B,C){var A;while((A=B[k])&&A[C]=="inherit"){B=B[u];}return(A)?A[C]:l;},getColor:function(A,B){return Z.Dom.Color.toRGB(A[k][B])||n;},getBorderColor:function(C,D){var B=C[k],A=B[D]||B.color;return Z.Dom.Color.toRGB(Z.Dom.Color.toHex(A));}},Y={};Y.top=Y.right=Y.bottom=Y.left=Y[z]=Y[q]=r.getOffset;Y.color=r.getColor;Y[x]=Y[o]=Y[i]=Y[X]=r.getBorderWidth;Y.marginTop=Y.marginRight=Y.marginBottom=Y.marginLeft=r.getMargin;Y.visibility=r.getVisibility;Y.borderColor=Y.borderTopColor=Y.borderRightColor=Y.borderBottomColor=Y.borderLeftColor=r.getBorderColor;Z.Dom.IE_COMPUTED=Y;Z.Dom.IE_ComputedStyle=r;})();(function(){var j="toString",h=parseInt,k=RegExp,i=e.util;i.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(l){if(!i.Dom.Color.re_RGB.test(l)){l=i.Dom.Color.toHex(l);}if(i.Dom.Color.re_hex.exec(l)){l="rgb("+[h(k.$1,16),h(k.$2,16),h(k.$3,16)].join(", ")+")";}return l;},toHex:function(l){l=i.Dom.Color.KEYWORDS[l]||l;if(i.Dom.Color.re_RGB.exec(l)){var m=(k.$1.length===1)?"0"+k.$1:Number(k.$1),n=(k.$2.length===1)?"0"+k.$2:Number(k.$2),o=(k.$3.length===1)?"0"+k.$3:Number(k.$3);l=[m[j](16),n[j](16),o[j](16)].join("");}if(l.length<6){l=l.replace(i.Dom.Color.re_hex3,"$1$1");}if(l!=="transparent"&&l.indexOf("#")<0){l="#"+l;}return l.toLowerCase();}};}());e.register("dom",e.util.Dom,{version:"2.8.0r4",build:"2449"});e.util.CustomEvent=function(k,l,m,h,j){this.type=k;this.scope=l||window;this.silent=m;this.fireOnce=j;this.fired=false;this.firedWith=null;this.signature=h||e.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var i="_YUICEOnSubscribe";if(k!==i){this.subscribeEvent=new e.util.CustomEvent(i,this,true);}this.lastError=null;};e.util.CustomEvent.LIST=0;e.util.CustomEvent.FLAT=1;e.util.CustomEvent.prototype={subscribe:function(k,j,i){if(!k){throw new Error("Invalid callback for subscriber to '"+this.type+"'");}if(this.subscribeEvent){this.subscribeEvent.fire(k,j,i);}var h=new e.util.Subscriber(k,j,i);if(this.fireOnce&&this.fired){this.notify(h,this.firedWith);}else{this.subscribers.push(h);}},unsubscribe:function(k,i){if(!k){return this.unsubscribeAll();}var j=false;for(var m=0,h=this.subscribers.length;m<h;++m){var l=this.subscribers[m];if(l&&l.contains(k,i)){this._delete(m);j=true;}}return j;},fire:function(){this.lastError=null;var i=[],h=this.subscribers.length;var m=[].slice.call(arguments,0),n=true,k,o=false;if(this.fireOnce){if(this.fired){return true;}else{this.firedWith=m;}}this.fired=true;if(!h&&this.silent){return true;}if(!this.silent){}var l=this.subscribers.slice();for(k=0;k<h;++k){var j=l[k];if(!j){o=true;}else{n=this.notify(j,m);if(false===n){if(!this.silent){}break;}}}return(n!==false);},notify:function(k,n){var o,i=null,l=k.getScope(this.scope),h=e.util.Event.throwErrors;if(!this.silent){}if(this.signature==e.util.CustomEvent.FLAT){if(n.length>0){i=n[0];
  9. }try{o=k.fn.call(l,i,k.obj);}catch(j){this.lastError=j;if(h){throw j;}}}else{try{o=k.fn.call(l,this.type,n,k.obj);}catch(m){this.lastError=m;if(h){throw m;}}}return o;},unsubscribeAll:function(){var h=this.subscribers.length,i;for(i=h-1;i>-1;i--){this._delete(i);}this.subscribers=[];return h;},_delete:function(h){var i=this.subscribers[h];if(i){delete i.fn;delete i.obj;}this.subscribers.splice(h,1);},toString:function(){return"CustomEvent: "+"'"+this.type+"', "+"context: "+this.scope;}};e.util.Subscriber=function(h,j,i){this.fn=h;this.obj=e.lang.isUndefined(j)?null:j;this.overrideContext=i;};e.util.Subscriber.prototype.getScope=function(h){if(this.overrideContext){if(this.overrideContext===true){return this.obj;}else{return this.overrideContext;}}return h;};e.util.Subscriber.prototype.contains=function(h,i){if(i){return(this.fn==h&&this.obj==i);}else{return(this.fn==h);}};e.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+this.obj+", overrideContext: "+(this.overrideContext||"no")+" }";};if(!e.util.Event){e.util.Event=function(){var o=false,n=[],l=[],k=0,q=[],j=0,i={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9},h=e.env.ua.ie,p="focusin",m="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:e.env.ua.webkit,webkit:e.env.ua.webkit,isIE:h,_interval:null,_dri:null,_specialTypes:{focusin:(h?"focusin":"focus"),focusout:(h?"focusout":"blur")},DOMReady:false,throwErrors:false,startInterval:function(){if(!this._interval){this._interval=e.lang.later(this.POLL_INTERVAL,this,this._tryPreloadAttach,null,true);}},onAvailable:function(t,x,v,u,w){var s=(e.lang.isString(t))?[t]:t;for(var r=0;r<s.length;r=r+1){q.push({id:s[r],fn:x,obj:v,overrideContext:u,checkReady:w});}k=this.POLL_RETRYS;this.startInterval();},onContentReady:function(t,s,r,u){this.onAvailable(t,s,r,u,true);},onDOMReady:function(){this.DOMReadyEvent.subscribe.apply(this.DOMReadyEvent,arguments);},_addListener:function(D,F,u,A,w,r){if(!u||!u.call){return false;}if(this._isValidCollection(D)){var t=true;for(var z=0,x=D.length;z<x;++z){t=this.on(D[z],F,u,A,w)&&t;}return t;}else{if(e.lang.isString(D)){var B=this.getEl(D);if(B){D=B;}else{this.onAvailable(D,function(){e.util.Event._addListener(D,F,u,A,w,r);});return true;}}}if(!D){return false;}if("unload"==F&&A!==this){l[l.length]=[D,F,u,A,w];return true;}var E=D;if(w){if(w===true){E=A;}else{E=w;}}var C=function(G){return u.call(E,e.util.Event.getEvent(G,D),A);};var s=[D,F,u,C,E,A,w,r];var y=n.length;n[y]=s;try{this._simpleAdd(D,F,C,r);}catch(v){this.lastError=v;this.removeListener(D,F,u);return false;}return true;},_getType:function(r){return this._specialTypes[r]||r;},addListener:function(w,t,r,v,u){var s=((t==p||t==m)&&!e.env.ua.ie)?true:false;return this._addListener(w,this._getType(t),r,v,u,s);},addFocusListener:function(r,s,u,t){return this.on(r,p,s,u,t);},removeFocusListener:function(r,s){return this.removeListener(r,p,s);},addBlurListener:function(r,s,u,t){return this.on(r,m,s,u,t);},removeBlurListener:function(r,s){return this.removeListener(r,m,s);},removeListener:function(A,B,u){var z,w,r;B=this._getType(B);if(typeof A=="string"){A=this.getEl(A);}else{if(this._isValidCollection(A)){var t=true;for(z=A.length-1;z>-1;z--){t=(this.removeListener(A[z],B,u)&&t);}return t;}}if(!u||!u.call){return this.purgeElement(A,false,B);}if("unload"==B){for(z=l.length-1;z>-1;z--){r=l[z];if(r&&r[0]==A&&r[1]==B&&r[2]==u){l.splice(z,1);return true;}}return false;}var y=null;var x=arguments[3];if("undefined"===typeof x){x=this._getCacheIndex(n,A,B,u);}if(x>=0){y=n[x];}if(!A||!y){return false;}var s=y[this.CAPTURE]===true?true:false;try{this._simpleRemove(A,B,y[this.WFN],s);}catch(v){this.lastError=v;return false;}delete n[x][this.WFN];delete n[x][this.FN];n.splice(x,1);return true;},getTarget:function(t,r){var s=t.target||t.srcElement;return this.resolveTextNode(s);},resolveTextNode:function(r){try{if(r&&3==r.nodeType){return r.parentNode;}}catch(s){}return r;},getPageX:function(r){var s=r.pageX;if(!s&&0!==s){s=r.clientX||0;if(this.isIE){s+=this._getScrollLeft();}}return s;},getPageY:function(s){var r=s.pageY;if(!r&&0!==r){r=s.clientY||0;if(this.isIE){r+=this._getScrollTop();}}return r;},getXY:function(r){return[this.getPageX(r),this.getPageY(r)];},getRelatedTarget:function(r){var s=r.relatedTarget;if(!s){if(r.type=="mouseout"){s=r.toElement;}else{if(r.type=="mouseover"){s=r.fromElement;}}}return this.resolveTextNode(s);},getTime:function(t){if(!t.time){var r=new Date().getTime();try{t.time=r;}catch(s){this.lastError=s;return r;}}return t.time;},stopEvent:function(r){this.stopPropagation(r);this.preventDefault(r);},stopPropagation:function(r){if(r.stopPropagation){r.stopPropagation();}else{r.cancelBubble=true;}},preventDefault:function(r){if(r.preventDefault){r.preventDefault();}else{r.returnValue=false;}},getEvent:function(u,s){var r=u||window.event;if(!r){var t=this.getEvent.caller;while(t){r=t.arguments[0];if(r&&Event==r.constructor){break;}t=t.caller;}}return r;},getCharCode:function(r){var s=r.keyCode||r.charCode||0;if(e.env.ua.webkit&&(s in i)){s=i[s];}return s;},_getCacheIndex:function(x,u,t,v){for(var w=0,r=x.length;w<r;w=w+1){var s=x[w];if(s&&s[this.FN]==v&&s[this.EL]==u&&s[this.TYPE]==t){return w;}}return -1;},generateId:function(s){var r=s.id;if(!r){r="yuievtautoid-"+j;++j;s.id=r;}return r;},_isValidCollection:function(r){try{return(r&&typeof r!=="string"&&r.length&&!r.tagName&&!r.alert&&typeof r[0]!=="undefined");}catch(s){return false;}},elCache:{},getEl:function(r){return(typeof r==="string")?document.getElementById(r):r;},clearCache:function(){},DOMReadyEvent:new e.util.CustomEvent("DOMReady",e,0,0,1),_load:function(r){if(!o){o=true;var s=e.util.Event;s._ready();s._tryPreloadAttach();}},_ready:function(r){var s=e.util.Event;if(!s.DOMReady){s.DOMReady=true;s.DOMReadyEvent.fire();s._simpleRemove(document,"DOMContentLoaded",s._ready);}},_tryPreloadAttach:function(){if(q.length===0){k=0;
  10. 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 u=!o;if(!u){u=(k>0&&q.length>0);}var v=[];var t=function(A,z){var B=A;if(z.overrideContext){if(z.overrideContext===true){B=z.obj;}else{B=z.overrideContext;}}z.fn.call(B,z.obj);};var r,s,w,x,y=[];for(r=0,s=q.length;r<s;r=r+1){w=q[r];if(w){x=this.getEl(w.id);if(x){if(w.checkReady){if(o||x.nextSibling||!u){y.push(w);q[r]=null;}}else{t(x,w);q[r]=null;}}else{v.push(w);}}}for(r=0,s=y.length;r<s;r=r+1){w=y[r];t(this.getEl(w.id),w);}k--;if(u){for(r=q.length-1;r>-1;r--){w=q[r];if(!w||!w.id){q.splice(r,1);}}this.startInterval();}else{if(this._interval){this._interval.cancel();this._interval=null;}}this.locked=false;},purgeElement:function(w,v,t){var y=(e.lang.isString(w))?this.getEl(w):w;var u=this.getListeners(y,t),x,s;if(u){for(x=u.length-1;x>-1;x--){var r=u[x];this.removeListener(y,r.type,r.fn);}}if(v&&y&&y.childNodes){for(x=0,s=y.childNodes.length;x<s;++x){this.purgeElement(y.childNodes[x],v,t);}}},getListeners:function(y,A){var v=[],z;if(!A){z=[n,l];}else{if(A==="unload"){z=[l];}else{A=this._getType(A);z=[n];}}var t=(e.lang.isString(y))?this.getEl(y):y;for(var w=0;w<z.length;w=w+1){var r=z[w];if(r){for(var u=0,s=r.length;u<s;++u){var x=r[u];if(x&&x[this.EL]===t&&(!A||A===x[this.TYPE])){v.push({type:x[this.TYPE],fn:x[this.FN],obj:x[this.OBJ],adjust:x[this.OVERRIDE],scope:x[this.ADJ_SCOPE],index:u});}}}}return(v.length)?v:null;},_unload:function(s){var y=e.util.Event,v,w,x,t,u,r=l.slice(),z;for(v=0,t=l.length;v<t;++v){x=r[v];if(x){z=window;if(x[y.ADJ_SCOPE]){if(x[y.ADJ_SCOPE]===true){z=x[y.UNLOAD_OBJ];}else{z=x[y.ADJ_SCOPE];}}x[y.FN].call(z,y.getEvent(s,x[y.EL]),x[y.UNLOAD_OBJ]);r[v]=null;}}x=null;z=null;l=null;if(n){for(w=n.length-1;w>-1;w--){x=n[w];if(x){y.removeListener(x[y.EL],x[y.TYPE],x[y.FN],w);}}x=null;}y._simpleRemove(window,"unload",y._unload);},_getScrollLeft:function(){return this._getScroll()[1];},_getScrollTop:function(){return this._getScroll()[0];},_getScroll:function(){var s=document.documentElement,r=document.body;if(s&&(s.scrollTop||s.scrollLeft)){return[s.scrollTop,s.scrollLeft];}else{if(r){return[r.scrollTop,r.scrollLeft];}else{return[0,0];}}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(u,t,r,s){u.addEventListener(t,r,(s));};}else{if(window.attachEvent){return function(u,t,r,s){u.attachEvent("on"+t,r);};}else{return function(){};}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(u,t,r,s){u.removeEventListener(t,r,(s));};}else{if(window.detachEvent){return function(r,t,s){r.detachEvent("on"+t,s);};}else{return function(){};}}}()};}();(function(){var h=e.util.Event;h.on=h.addListener;h.onFocus=h.addFocusListener;h.onBlur=h.addBlurListener;if(h.isIE){if(self!==self.top){document.onreadystatechange=function(){if(document.readyState=="complete"){document.onreadystatechange=null;h._ready();}};}else{e.util.Event.onDOMReady(e.util.Event._tryPreloadAttach,e.util.Event,true);var i=document.createElement("p");h._dri=setInterval(function(){try{i.doScroll("left");clearInterval(h._dri);h._dri=null;h._ready();i=null;}catch(j){}},h.POLL_INTERVAL);}}else{if(h.webkit&&h.webkit<525){h._dri=setInterval(function(){var j=document.readyState;if("loaded"==j||"complete"==j){clearInterval(h._dri);h._dri=null;h._ready();}},h.POLL_INTERVAL);}else{h._simpleAdd(document,"DOMContentLoaded",h._ready);}}h._simpleAdd(window,"load",h._load);h._simpleAdd(window,"unload",h._unload);h._tryPreloadAttach();})();}e.util.EventProvider=function(){};e.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(h,l,i,j){this.__yui_events=this.__yui_events||{};var k=this.__yui_events[h];if(k){k.subscribe(l,i,j);}else{this.__yui_subscribers=this.__yui_subscribers||{};var m=this.__yui_subscribers;if(!m[h]){m[h]=[];}m[h].push({fn:l,obj:i,overrideContext:j});}},unsubscribe:function(m,k,i){this.__yui_events=this.__yui_events||{};var h=this.__yui_events;if(m){var j=h[m];if(j){return j.unsubscribe(k,i);}}else{var n=true;for(var l in h){if(e.lang.hasOwnProperty(h,l)){n=n&&h[l].unsubscribe(k,i);}}return n;}return false;},unsubscribeAll:function(h){return this.unsubscribe(h);},createEvent:function(n,i){this.__yui_events=this.__yui_events||{};var k=i||{},l=this.__yui_events,j;if(l[n]){}else{j=new e.util.CustomEvent(n,k.scope||this,k.silent,e.util.CustomEvent.FLAT,k.fireOnce);l[n]=j;if(k.onSubscribeCallback){j.subscribeEvent.subscribe(k.onSubscribeCallback);}this.__yui_subscribers=this.__yui_subscribers||{};var h=this.__yui_subscribers[n];if(h){for(var m=0;m<h.length;++m){j.subscribe(h[m].fn,h[m].obj,h[m].overrideContext);}}}return l[n];},fireEvent:function(k){this.__yui_events=this.__yui_events||{};var i=this.__yui_events[k];if(!i){return null;}var h=[];for(var j=1;j<arguments.length;++j){h.push(arguments[j]);}return i.fire.apply(i,h);},hasEvent:function(h){if(this.__yui_events){if(this.__yui_events[h]){return true;}}return false;}};(function(){var h=e.util.Event,i=e.lang;e.util.KeyListener=function(p,k,o,n){if(!p){}else{if(!k){}else{if(!o){}}}if(!n){n=e.util.KeyListener.KEYDOWN;}var m=new e.util.CustomEvent("keyPressed");this.enabledEvent=new e.util.CustomEvent("enabled");this.disabledEvent=new e.util.CustomEvent("disabled");if(i.isString(p)){p=document.getElementById(p);}if(i.isFunction(o)){m.subscribe(o);}else{m.subscribe(o.fn,o.scope,o.correctScope);}function l(t,u){if(!k.shift){k.shift=false;}if(!k.alt){k.alt=false;}if(!k.ctrl){k.ctrl=false;}if(t.shiftKey==k.shift&&t.altKey==k.alt&&t.ctrlKey==k.ctrl){var s,v=k.keys,q;if(e.lang.isArray(v)){for(var r=0;r<v.length;r++){s=v[r];q=h.getCharCode(t);if(s==q){m.fire(q,t);break;}}}else{q=h.getCharCode(t);if(v==q){m.fire(q,t);}}}}this.enable=function(){if(!this.enabled){h.on(p,n,l);this.enabledEvent.fire(k);}this.enabled=true;};this.disable=function(){if(this.enabled){h.removeListener(p,n,l);this.disabledEvent.fire(k);
  11. }this.enabled=false;};this.toString=function(){return"KeyListener ["+k.keys+"] "+p.tagName+(p.id?"["+p.id+"]":"");};};var j=e.util.KeyListener;j.KEYDOWN="keydown";j.KEYUP="keyup";j.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};})();e.register("event",e.util.Event,{version:"2.8.0r4",build:"2449"});e.register("yahoo-dom-event",e,{version:"2.8.0r4",build:"2449"});if(typeof e=="undefined"){e={};}if(typeof e.MediaPlayer=="undefined"){e.MediaPlayer=function(){this.controller=null;};}e.MediaPlayer.isAPIReady=false;e.MediaPlayer.onAPIReady={subscribers:[],fire:function(){for(var h=0;h<this.subscribers.length;h++){if(e.MediaPlayer.isAPIReady===true){try{this.subscribers[h]();}catch(j){}}}},subscribe:function(h){this.subscribers.push(h);}};e.WebPlayer=e.MediaPlayer;var b=true;var f=["NETSCAPE6","NETSCAPE/7","(IPAD;","(IPHONE;","(IPOD;"];if(navigator){var a=f.length;for(var c=0;c<a;c++){if(navigator.userAgent.toUpperCase().indexOf(f[c])!==-1){b=false;}}}if(b===true){if(typeof e.mediaplayer=="undefined"){e.namespace("YAHOO.mediaplayer");}e.mediaplayer.playerAlreadyLoaded=function(){if(e.mediaplayer.bLoaded===true){return true;}e.mediaplayer.bLoaded=true;return false;};var d=false;if(e.mediaplayer.playerAlreadyLoaded()!==true){d=true;e.mediaplayer.partnerId="42858483";if(typeof YMPParams=="undefined"){window.YMPParams={};}YMPParams["assetsroot"]=YMPParams["assetsroot"]||"http://l.yimg.com/pb/webplayer"+"/"+"0.9.10";YMPParams["wsroot"]=YMPParams["wsroot"]||"http://ws.webplayer.yahoo.com";YMPParams["wwwroot"]=YMPParams["wwwroot"]||"http://webplayer.yahoo.com";YMPParams["build_number"]="0.9.10";if(typeof YMPParams==="object"&&YMPParams.logging===true){if(typeof(e)==="undefined"||typeof(e.ULT)==="undefined"){var g=document.createElement("script");g.type="text/javascript";g.src="http://us.js2.yimg.com/us.js.yimg.com/ult/ylc_1.9.js";document.getElementsByTagName("head")[0].appendChild(g);}}e.mediaplayer.loadPlayerScript=function(){if(d!==true){return;}d=false;if(Boolean(arguments.callee.bCalled)){window.status="asyncLoadPlayer Already Called! (webplayerloader)";return;}arguments.callee.bCalled=true;function h(){return YMPParams["assetsroot"]+"/js/player-min.js";}var i=h();if(typeof(i)=="string"&&i.length>0){e.mediaplayer.elPlayerSource=document.createElement("script");e.mediaplayer.elPlayerSource.type="text/javascript";e.mediaplayer.elPlayerSource.src=i;document.getElementsByTagName("head")[0].appendChild(e.mediaplayer.elPlayerSource);}};}}e.util.Event.addListener(window,"load",e.mediaplayer.loadPlayerScript);if(typeof window.YAHOO=="undefined"){window.YAHOO={};}if(typeof window.YAHOO.mediaplayer=="undefined"){window.YAHOO.mediaplayer=e.mediaplayer;}if(typeof window.YAHOO.MediaPlayer=="undefined"){window.YAHOO.MediaPlayer=e.MediaPlayer;}if(typeof window.YAHOO.WebPlayer=="undefined"){window.YAHOO.WebPlayer=e.WebPlayer;}if(typeof window.YAHOO.namespace=="undefined"){window.YAHOO.namespace=e.namespace;}})();

Paste is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.