/* Copyright (c) 2010, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html version: 3.3.0 build: 3167 */ YUI.add("compat",function(d){var u="~yui|2|compat~",n,g;if(window.YAHOO!=YUI){n=(window.YAHOO)?YUI.merge(window.YAHOO):null;window.YAHOO=YUI;if(n){d.mix(d,n);}}d.namespace("util","widget","example");d.env=(d.env)?d.mix(d.env,d.Env):d.Env;d.lang=(d.lang)?d.mix(d.lang,d.Lang):d.Lang;d.env.ua=d.UA;d.mix(d.env,{modules:[],listeners:[],getVersion:function(i){return this.Env.modules[i]||null;}});g=d.lang;d.mix(g,{augmentObject:function(x,w){var i=arguments,y=(i.length>2)?d.Array(i,2,true):null,o=(y),l=[x,w,o];if(y&&y[0]!==true){l.push(y);}return d.mix.apply(d,l);},augmentProto:function(x,w){var i=arguments,y=(i.length>2)?d.Array(i,2,true):null,o=(y),l=[x,w,o];return d.augment.apply(d,l);},extend:d.extend,merge:d.merge},true);g.augment=g.augmentProto;g.hasOwnProperty=function(l,i){return(l.hasOwnProperty(i));};d.augmentProto=g.augmentProto;d.mix(d,{register:function(l,y,x){var C=d.Env.modules;if(!C[l]){C[l]={versions:[],builds:[]};}var o=C[l],B=x.version,A=x.build,z=d.Env.listeners;o.name=l;o.version=B;o.build=A;o.versions.push(B);o.builds.push(A);o.mainClass=y;for(var w=0;w *",i,true);},get:function(w){if(w){if(w.nodeType||w.item){return w;}if(typeof w==="string"){return document.getElementById(w);}if("length" in w){var x=[];for(var o=0,l=w.length;o=this.left&&i.right<=this.right&&i.top>=this.top&&i.bottom<=this.bottom);};YAHOO.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left));};YAHOO.util.Region.prototype.intersect=function(y){var w=Math.max(this.top,y.top);var x=Math.min(this.right,y.right);var i=Math.min(this.bottom,y.bottom);var o=Math.max(this.left,y.left);if(i>=w&&x>=o){return new YAHOO.util.Region(w,x,i,o);}else{return null;}};YAHOO.util.Region.prototype.union=function(y){var w=Math.min(this.top,y.top);var x=Math.max(this.right,y.right);var i=Math.max(this.bottom,y.bottom);var o=Math.min(this.left,y.left);return new YAHOO.util.Region(w,x,i,o);};YAHOO.util.Region.prototype.toString=function(){return("Region {"+"top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+"}");};YAHOO.util.Region.getRegion=function(i){return YUI.DOM.region(i);};YAHOO.util.Point=function(i,l){if(YAHOO.lang.isArray(i)){l=i[1];i=i[0];}this.x=this.right=this.left=this[0]=i;this.y=this.top=this.bottom=this[1]=l;};YAHOO.util.Point.prototype=new YAHOO.util.Region();YAHOO.register("dom",YAHOO.util.Dom,{version:"3.3.0",build:"3167"});},"3.3.0",{requires:["dom","dom-style-ie","event-base","dump","substitute"]});YUI._setup();YUI.use("compat");