/* 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(Y){var COMPAT_ARG='~yui|2|compat~',o,L;if(window.YAHOO!=YUI){o=(window.YAHOO)?YUI.merge(window.YAHOO):null;window.YAHOO=YUI;if(o){Y.mix(Y,o);}} Y.namespace("util","widget","example");Y.env=(Y.env)?Y.mix(Y.env,Y.Env):Y.Env;Y.lang=(Y.lang)?Y.mix(Y.lang,Y.Lang):Y.Lang;Y.env.ua=Y.UA;Y.mix(Y.env,{modules:[],listeners:[],getVersion:function(name){return this.Env.modules[name]||null;}});L=Y.lang;Y.mix(L,{augmentObject:function(r,s){var a=arguments,wl=(a.length>2)?Y.Array(a,2,true):null,ov=(wl),args=[r,s,ov];if(wl&&wl[0]!==true){args.push(wl);} return Y.mix.apply(Y,args);},augmentProto:function(r,s){var a=arguments,wl=(a.length>2)?Y.Array(a,2,true):null,ov=(wl),args=[r,s,ov];return Y.augment.apply(Y,args);},extend:Y.extend,merge:Y.merge},true);L.augment=L.augmentProto;L.hasOwnProperty=function(o,k){return(o.hasOwnProperty(k));};Y.augmentProto=L.augmentProto;Y.mix(Y,{register:function(name,mainClass,data){var mods=Y.Env.modules;if(!mods[name]){mods[name]={versions:[],builds:[]};} var m=mods[name],v=data.version,b=data.build,ls=Y.Env.listeners;m.name=name;m.version=v;m.build=b;m.versions.push(v);m.builds.push(b);m.mainClass=mainClass;for(var i=0;i *',node,true);},get:function(el){if(el){if(el.nodeType||el.item){return el;} if(typeof el==='string'){return document.getElementById(el);} if('length'in el){var c=[];for(var i=0,len=el.length;i=this.left&®ion.right<=this.right&®ion.top>=this.top&®ion.bottom<=this.bottom);};YAHOO.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left));};YAHOO.util.Region.prototype.intersect=function(region){var t=Math.max(this.top,region.top);var r=Math.min(this.right,region.right);var b=Math.min(this.bottom,region.bottom);var l=Math.max(this.left,region.left);if(b>=t&&r>=l){return new YAHOO.util.Region(t,r,b,l);}else{return null;}};YAHOO.util.Region.prototype.union=function(region){var t=Math.min(this.top,region.top);var r=Math.max(this.right,region.right);var b=Math.max(this.bottom,region.bottom);var l=Math.min(this.left,region.left);return new YAHOO.util.Region(t,r,b,l);};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(el){return YUI.DOM.region(el);};YAHOO.util.Point=function(x,y){if(YAHOO.lang.isArray(x)){y=x[1];x=x[0];} this.x=this.right=this.left=this[0]=x;this.y=this.top=this.bottom=this[1]=y;};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');