BalloonConfig=function(A){A.parentID=null;A.fontColor="black";A.fontFamily="Arial, sans-serif";A.fontSize="9pt";A.minWidth=5;A.maxWidth=600;A.delayTime=500;A.allowFade=false;A.fadeIn=300;A.fadeOut=300;A.vOffset=10;A.padding=10;A.displayTime=5000;A.shadow=20;A.images="../../Static/img/balloons";A.balloonImage="balloon.png";A.ieImage="balloon_ie.png";A.stem=true;A.stemHeight=32;A.stemOverlap=3;A.upLeftStem="up_left.png";A.downLeftStem="down_left.png";A.upRightStem="up_right.png";A.downRightStem="down_right.png";A.closeButton="close.png";A.closeButtonWidth=16;A.helpUrl=false;A.allowAJAX=true;A.allowIframes=true;A.allowEventHandlers=false;A.allowScripts=false;A.escapeHTML=false};BoxConfig=function(A){A.isBox=true;A.parentID=null;A.fontColor="black";A.fontFamily="Arial, sans-serif";A.fontSize="9pt";A.bgColor="whitesmoke";A.borderStyle="1px solid black";A.minWidth=150;A.maxWidth=600;A.delayTime=500;A.allowFade=false;A.fadeIn=300;A.fadeOut=300;A.vOffset=5;A.padding=10;A.displayTime=10000;A.shadow=0;A.stem=false;A.images="../../Static/img/balloons";A.closeButton="close.png";A.closeButtonWidth=16;A.helpUrl=false;A.allowAJAX=true;A.allowIframes=true;A.allowEventHandlers=false;A.allowScripts=false;A.escapeHTML=false};var currentBalloonClass;var balloonIsVisible;var balloonIsSticky;var balloonInvisibleSelects;var balloonIsSuppressed;var tooltipIsSuppressed;var Balloon=function(){BalloonConfig(this);document.onmousemove=this.setActiveCoordinates;document.onscroll=Balloon.prototype.hideTooltip;window.onbeforeunload=function(){Balloon.prototype.hideTooltip(1);balloonIsSuppressed=true};if(this.isIE()){this.suppress=true}return this};Balloon.prototype.showTooltip=function(J,K,I,A){if(this.isIE()&&document.readyState.match(/complete/i)){this.suppress=false}if(this.suppress||balloonIsSuppressed){return false}if(tooltipIsSuppressed&&!I){return false}if(this.isKonqueror()){this.allowFade=false}var C=J.type.match("mouseover","i");if(!C){I=true;this.fadeOK=false}else{this.fadeOK=this.allowFade}if(balloonIsVisible&&!balloonIsSticky&&C){return false}if(balloonIsVisible&&balloonIsSticky&&!I){return false}var B=this.getEventTarget(J);if(I&&C&&this.isSameElement(B,this.currentElement)){return false}this.firingElement=B;if(I){this.hideTooltip(1)}var D=function(){var L=balloonIsSticky&&!balloonIsVisible;Balloon.prototype.hideTooltip(L)};if(!C){B.onmouseup=function(){return false}}B.onmouseout=D;balloonIsSticky=I;this.width=A;this.hideTooltip();this.currentHelpText=this.getAndCheckContents(K);if(!this.currentHelpText){return false}if(!this.container){this.container=document.createElement("div");document.body.appendChild(this.container);this.setStyle(this.container,"position","absolute");this.setStyle(this.container,"top",-8888);this.setStyle(this.container,"display","inline");this.setStyle(this.container,"z-index",2);this.setStyle(this.container,"color",this.fontColor);this.setStyle(this.container,"font-family",this.fontFamily);this.setStyle(this.container,"font-size",this.fontSize)}else{this.setStyle(this.container,"display","inline")}this.container.innerHTML=unescape(this.currentHelpText);if(this.images){this.balloonImage=this.balloonImage?this.images+"/"+this.balloonImage:false;this.ieImage=this.ieImage?this.images+"/"+this.ieImage:false;this.upLeftStem=this.upLeftStem?this.images+"/"+this.upLeftStem:false;this.upRightStem=this.upRightStem?this.images+"/"+this.upRightStem:false;this.downLeftStem=this.downLeftStem?this.images+"/"+this.downLeftStem:false;this.downRightStem=this.downRightStem?this.images+"/"+this.downRightStem:false;this.closeButton=this.closeButton?this.images+"/"+this.closeButton:false;this.images=false}if(this.isOldIE()&&this.ieImage){this.balloonImage=this.ieImage}if(!this.preloadedImages){var H=new Array(this.balloonImage,this.closeButton);if(this.ieImage){H.push(this.ieImage)}if(this.stem){H.push(this.upLeftStem,this.upRightStem,this.downLeftStem,this.downRightStem)}var G=H.length;for(var F=0;F<G;F++){if(H[F]){this.preload(H[F])}}this.preloadedImages=true}currentBalloonClass=this;if(!C){this.setActiveCoordinates(J)}this.currentEvent=J;var E=C?this.delayTime:1;this.timeoutTooltip=window.setTimeout(this.doShowTooltip,E)};Balloon.prototype.preload=function(B){var A=new Image;A.src=B;this.setStyle(A,"position","absolute");this.setStyle(A,"top",-8000);document.body.appendChild(A);document.body.removeChild(A)};Balloon.prototype.doShowTooltip=function(){var I=currentBalloonClass;if(balloonIsVisible){return false}if(!I.parent){if(I.parentID){I.parent=document.getElementById(I.parentID)}else{I.parent=document.body}I.xOffset=I.getLoc(I.parent,"x1");I.yOffset=I.getLoc(I.parent,"y1")}window.clearTimeout(I.timeoutFade);I.setStyle("balloon","display","none");I.parseIntAll();var K=I.makeBalloon();var G=BalloonTip.util.Dom.getViewportWidth();var F=Math.round(G/2);var C=BalloonTip.util.Dom.getViewportHeight();var H=BalloonTip.util.Dom.getDocumentScrollLeft();var J=BalloonTip.util.Dom.getDocumentScrollTop();var A=J+Math.round(C/2);I.pageBottom=J+C;I.pageTop=J;if(!(I.activeTop&&I.activeRight)){I.setActiveCoordinates()}var D=I.activeTop>A?"up":"down";var B=I.activeRight>F?"left":"right";var E=I.container.innerHTML;I.contents.innerHTML=E;I.setBalloonStyle(D,B,G,H);if(balloonIsSticky){I.addCloseButton()}balloonIsVisible=true;I.showHide();I.fade(0,95,I.fadeIn)};Balloon.prototype.addCloseButton=function(){var B=currentBalloonClass;var E=Math.round(B.padding/2);var D=B.closeButtonWidth||16;var C=B.getLoc("balloon","y1")+E+B.shadow;var F=B.getLoc("topRight","x2")-B.closeButtonWidth-B.shadow-E;var A=document.getElementById("closeButton");if(!A){A=new Image;A.setAttribute("id","closeButton");A.setAttribute("src",B.closeButton);A.onclick=function(){Balloon.prototype.hideTooltip(1)};B.setStyle(A,"position","absolute");document.body.appendChild(A)}B.setStyle(A,"top",C);B.setStyle(A,"left",F);B.setStyle(A,"display","inline");B.setStyle(A,"cursor","pointer");B.setStyle(A,"z-index",999999999)};Balloon.prototype.makeBalloon=function(){var A=currentBalloonClass;var C=document.getElementById("balloon");if(C){A.parent.removeChild(C)}C=document.createElement("div");C.setAttribute("id","balloon");A.parent.appendChild(C);A.activeBalloon=C;A.parts=new Array(C);var D=new Array("contents","topRight","bottomRight","bottomLeft");for(var B=0;B<D.length;B++){var E=document.createElement("div");E.setAttribute("id",D[B]);C.appendChild(E);if(D[B]=="contents"){A.contents=E}A.parts.push(E)}A.setStyle("contents","z-index",2);A.setStyle("contents","color",A.fontColor);A.setStyle("contents","font-family",A.fontFamily);A.setStyle("contents","font-size",A.fontSize);if(balloonIsSticky){A.setStyle("contents","margin-right",10)}else{if(A.displayTime){A.timeoutAutoClose=window.setTimeout(this.hideTooltip,A.displayTime)}}return C};Balloon.prototype.setBalloonStyle=function(Q,D,T,J){var K=currentBalloonClass;var A=K.activeBalloon;if(typeof(K.shadow)!="number"){K.shadow=0}if(!K.stem){K.stemHeight=0}var U=K.padding+K.shadow;var M=K.padding;K.setStyle(A,"background","url("+K.balloonImage+") top left no-repeat");K.setStyle(A,"position","absolute");K.setStyle(A,"padding-top",U);K.setStyle(A,"padding-left",U);K.setStyle(A,"top",-9999);K.setStyle(A,"z-index",1000000);K.setStyle("bottomRight","background","url("+K.balloonImage+") bottom right no-repeat");K.setStyle("bottomRight","position","absolute");K.setStyle("bottomRight","right",0-U);K.setStyle("bottomRight","bottom",0-U);K.setStyle("bottomRight","height",U);K.setStyle("bottomRight","width",U);K.setStyle("bottomRight","z-index",-1);K.setStyle("topRight","background","url("+K.balloonImage+") top right no-repeat");K.setStyle("topRight","position","absolute");K.setStyle("topRight","right",0-U);K.setStyle("topRight","top",0);K.setStyle("topRight","width",U);K.setStyle("bottomLeft","background","url("+K.balloonImage+") bottom left no-repeat");K.setStyle("bottomLeft","position","absolute");K.setStyle("bottomLeft","left",0);K.setStyle("bottomLeft","bottom",0-U);K.setStyle("bottomLeft","height",U);K.setStyle("bottomLeft","z-index",-1);if(this.stem){var G=document.createElement("img");K.setStyle(G,"position","absolute");A.appendChild(G);if(Q=="up"&&D=="left"){G.src=K.upLeftStem;var L=K.stemHeight+M-K.stemOverlap;K.setStyle(G,"bottom",0-L);K.setStyle(G,"right",0)}else{if(Q=="down"&&D=="left"){G.src=K.downLeftStem;var L=K.stemHeight-(K.shadow+K.stemOverlap);K.setStyle(G,"top",0-L);K.setStyle(G,"right",0)}else{if(Q=="up"&&D=="right"){G.src=K.upRightStem;var L=K.stemHeight+M-K.stemOverlap;K.setStyle(G,"bottom",0-L);K.setStyle(G,"left",K.shadow)}else{if(Q=="down"&&D=="right"){G.src=K.downRightStem;var L=K.stemHeight-(K.shadow+K.stemOverlap);K.setStyle(G,"top",0-L);K.setStyle(G,"left",K.shadow)}}}}}if(D=="left"){var F=T-K.activeLeft;K.setStyle(A,"right",F)}else{K.setStyle(A,"left",K.activeRight-K.xOffset)}if(!K.width){var O=K.getLoc("contents","width");if(K.isIE()){O+=50}if(O>K.maxWidth){O=K.maxWidth+50}if(O<K.minWidth){O=K.minWidth}K.setStyle(A,"width",O)}else{K.setStyle(A,"width",K.width)}var R=K.padding+K.shadow;var E=K.getLoc(A,"x1");var B=K.getLoc(A,"x2");if(D=="left"){E+=R}if(D=="right"){B+=R}var C=J+T;if(D=="right"&&B>(C-30)){K.setStyle(A,"width",(C-E)-50)}else{if(D=="left"&&E<(J+30)){K.setStyle(A,"width",(B-J)-50)}}var S=K.getLoc(A,"width");var P=K.getLoc(A,"height");K.setStyle("topRight","height",P);K.setStyle("bottomLeft","width",S);var H=K.isOverlap("topRight","bottomRight");var I=K.isOverlap("bottomLeft","bottomRight");if(H){K.setStyle("topRight","height",P-H[1])}if(I){K.setStyle("bottomLeft","width",S-I[0])}if(Q=="up"){var N=K.activeTop-P;K.setStyle(A,"top",N);K.setStyle(A,"display","inline")}else{var N=K.activeBottom;K.setStyle(A,"top",N)}K.hOrient=D;K.vOrient=Q;K.setOpacity(1)};Balloon.prototype.fade=function(E,B,C){var A=currentBalloonClass||new Balloon;var D=Math.round(C/100);var F=0;if(E>B){if(A.fadeOK){for(o=E;o>=B;o--){A.timeoutFade=setTimeout("Balloon.prototype.setOpacity("+o+")",(F*D));F++}setTimeout("Balloon.prototype.setStyle('balloon','display','none')",C)}else{A.setStyle("balloon","display","none")}}else{if(E<B&&A.fadeOK){for(o=E;o<=B;o++){A.timeoutFade=setTimeout("Balloon.prototype.setOpacity("+o+")",(F*D));F++}}}};Balloon.prototype.setOpacity=function(E){var B=currentBalloonClass;if(!B||!B.fadeOK){return false}var D=parseFloat((E||0)/100);var C=B.isIE()?"contents":"balloon";var A=document.getElementById(C);if(!A){return false}B.setStyle(A,"opacity",D);B.setStyle(A,"filter","alpha(opacity= "+E+")");B.setStyle(A,"MozOpacity",D);B.setStyle(A,"KhtmlOpacity",D)};Balloon.prototype.hideTooltip=function(D){if(D&&typeof D=="object"){D=false}if(balloonIsSticky&&!D){return false}var C=currentBalloonClass;if(C){window.clearTimeout(C.timeoutTooltip);window.clearTimeout(C.timeoutAutoClose)}if(balloonIsSticky&&C){C.currentElement=null}balloonIsVisible=false;balloonIsSticky=false;var B=document.getElementById("closeButton");if(B){BalloonTip.util.Dom.setStyle(B,"display","none")}if(!C){var A=document.getElementById("balloon");if(A){Balloon.prototype.setStyle(A,"display","none")}}else{if(C.activeBalloon){if(!D&&C.fadeOK&&!C.isIE()){C.fade(95,0,C.fadeOut)}else{C.setStyle(C.activeBalloon,"display","none")}}}Balloon.prototype.showHide(1)};hideAllTooltips=function(){var A=currentBalloonClass;if(!A){return}window.clearTimeout(A.timeoutTooltip);if(A.activeBalloon){A.setStyle(A.activeBalloon,"display","none")}balloonIsVisible=false;balloonIsSticky=false;currentBalloonClass=null};Balloon.prototype.setActiveCoordinates=function(A){var I=currentBalloonClass;if(!I){return false}var F=I.activeBalloon;var H=A||window.event||I.currentEvent;if(!H){return false}I.hOffset=I.hOffset||0;I.vOffset=I.vOffset||0;var D=I.eventXY(H);I.activeTop=D[1]-I.vOffset-I.stemHeight;I.activeLeft=D[0]-I.hOffset;I.activeRight=D[0]+I.hOffset;I.activeBottom=D[1]+I.vOffset+I.stemHeight;if(balloonIsVisible&&!balloonIsSticky){var F=I.activeBalloon;var C=I.getLoc(F,"width");var J=I.getLoc(F,"height");var B=I.getLoc(F,"y1");var E=I.getLoc(F,"x1");if(I.hOrient=="right"){I.setStyle(F,"right",null);I.setStyle(F,"left",I.activeLeft)}else{if(I.hOrient=="left"){I.setStyle(F,"right",null);var G=I.activeRight-C;I.setStyle(F,"left",G)}}if(I.vOrient=="up"){I.setStyle(F,"top",I.activeTop-J)}else{if(I.vOrient=="down"){I.setStyle(F,"top",I.activeBottom)}}}return true};Balloon.prototype.eventXY=function(A){var C=new Array(2);var B=A||window.event;if(B.pageX||B.pageY){C[0]=B.pageX;C[1]=B.pageY}else{if(B.clientX||B.clientY){C[0]=B.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;C[1]=B.clientY+document.body.scrollTop+document.documentElement.scrollTop}}return C};Balloon.prototype.getEventTarget=function(B){var A;var C=B||window.event;if(C.target){A=C.target}else{if(C.srcElement){A=C.srcElement}}if(A.nodeType==3){A=A.parentNode}return A};Balloon.prototype.setStyle=function(B,A,C){if(!B){return false}if(C&&A.match(/left|top|bottom|right|width|height|padding|margin/)){C+="px"}if(typeof(B)!="object"){B=document.getElementById(B)}if(A=="z-index"){if(B.style){B.style.zIndex=parseInt(C)}}else{BalloonTip.util.Dom.setStyle(B,A,C)}};Balloon.prototype.getLoc=function(A,B){var C=BalloonTip.util.Dom.getRegion(A);switch(B){case ("y1"):return parseInt(C.top);case ("y2"):return parseInt(C.bottom);case ("x1"):return parseInt(C.left);case ("x2"):return parseInt(C.right);case ("width"):return(parseInt(C.right)-parseInt(C.left));case ("height"):return(parseInt(C.bottom)-parseInt(C.top));case ("region"):return C}};Balloon.prototype.parseIntAll=function(){this.padding=parseInt(this.padding);this.shadow=parseInt(this.shadow);this.stemHeight=parseInt(this.stemHeight);this.stemOverlap=parseInt(this.stemOverlap);this.vOffset=parseInt(this.vOffset);this.delayTime=parseInt(this.delayTime);this.width=parseInt(this.width);this.maxWidth=parseInt(this.maxWidth);this.minWidth=parseInt(this.minWidth);this.fadeIn=parseInt(this.fadeIn);this.fadeOut=parseInt(this.fadeOut)};Balloon.prototype.showHide=function(C){var I=currentBalloonClass||new Balloon;if(I.isOldIE()){if(!C){var D=document.getElementById("contents").getElementsByTagName("select");var H=new Object();for(var E=0;E<D.length;E++){var A=D[E].id||D[E].name;H[A]=1}balloonInvisibleSelects=new Array();var F=document.getElementsByTagName("select");for(var E=0;E<F.length;E++){var A=F[E].id||F[E].name;if(I.isOverlap(F[E],I.activeBalloon)&&!H[A]){balloonInvisibleSelects.push(F[E]);I.setStyle(F[E],"visibility","hidden")}}}else{if(balloonInvisibleSelects){for(var E=0;E<balloonInvisibleSelects.length;E++){var A=balloonInvisibleSelects[E].id||balloonInvisibleSelects[E].name;I.setStyle(balloonInvisibleSelects[E],"visibility","visible")}balloonInvisibleSelects=null}}}if(I.hide){var G=C?"inline":"none";for(var B=0;B<I.hide.length;B++){if(I.isOverlap(I.activeBalloon,I.hide[B])){I.setStyle(I.hide[B],"display",G)}}}};Balloon.prototype.isOverlap=function(E,C){if(!E||!C){return false}var D=this.getLoc(E,"region");var B=this.getLoc(C,"region");if(!D||!B){return false}var A=D.intersect(B);if(A){A=new Array((A.right-A.left),(A.bottom-A.top))}return A};Balloon.prototype.isSameElement=function(D,B){if(!D||!B){return false}var C=this.getLoc(D,"region");var A=this.getLoc(B,"region");var E=C.contains(A)&&A.contains(C);return E?true:false};Balloon.prototype.getAndCheckContents=function(B){var E=B;var A="are not allowed in popup balloons in this web site.  Please contact the site administrator for assistance.";var C="AJAX is not supported for popup balloons in this web site.  Please contact the site administrator for assistance.";if(this.helpUrl&&!this.allowAJAX){alert("Sorry, you have specified help URL "+this.helpUrl+" but "+C);return null}if(B.match(/^url:/)){this.activeUrl=B.replace(/^url:/,"");B=""}else{if(B.match(/^(https?:|\/|ftp:)\S+$/i)){this.activeUrl=B;B=""}}if(this.activeUrl&&!this.allowAJAX){alert("Sorry, you asked for "+E+" but "+C);return null}if(B.match(/^load:/)){var D=B.split(":");if(!document.getElementById(D[1])){alert("problem locating element "+D[1])}B=document.getElementById(D[1]).innerHTML;this.loadedFromElement=true}if(B.match(/\<\s*iframe/i)&&!this.allowIframes){alert("Sorry: iframe elements "+A);return null}if(B.match(/\bon(load|mouse|click|unload|before)[^=]*=/i)&&!this.allowEventHandlers){alert("Sorry: JavaScript event handlers "+A);return null}if(B.match(/\<\s*script/i)&&!this.allowScripts){alert("Sorry: elements "+A);return null}this.currentHelpText=this.getContents(B);this.loadedFromElement=false;return this.currentHelpText};Balloon.prototype.getContents=function(E){if(!this.helpUrl&&!this.activeUrl){return E}if(this.loadedFromElement){return E}var B=this.activeUrl||this.helpUrl;B+=this.activeUrl?"":"?section="+E;this.activeUrl=null;var C;if(window.XMLHttpRequest){C=new XMLHttpRequest()}else{C=new ActiveXObject("Microsoft.XMLHTTP")}if(C){C.open("GET",B,false);C.onreadystatechange=function(){};try{C.send(null)}catch(D){}var A=this.escapeHTML?escape(C.responseText):C.responseText;return A||E}else{return E}};Balloon.prototype.isIE=function(){return document.all&&!window.opera};Balloon.prototype.isOldIE=function(){if(navigator.appVersion.indexOf("MSIE")==-1){return false}var A=navigator.appVersion.split("MSIE");return parseFloat(A[1])<7};Balloon.prototype.isKonqueror=function(){return navigator.userAgent.indexOf("Konqueror")!=-1};if(typeof BalloonTip=="undefined"){var BalloonTip={}}BalloonTip.namespace=function(){var A=arguments,E=null,C,B,D;for(C=0;C<A.length;C=C+1){D=A[C].split(".");E=BalloonTip;for(B=(D[0]=="BalloonTip")?1:0;B<D.length;B=B+1){E[D[B]]=E[D[B]]||{};E=E[D[B]]}}return E};BalloonTip.log=function(D,A,C){var B=BalloonTip.widget.Logger;if(B&&B.log){return B.log(D,A,C)}else{return false}};BalloonTip.register=function(A,E,D){var I=BalloonTip.env.modules;if(!I[A]){I[A]={versions:[],builds:[]}}var B=I[A],H=D.version,G=D.build,F=BalloonTip.env.listeners;B.name=A;B.version=H;B.build=G;B.versions.push(H);B.builds.push(G);B.mainClass=E;for(var C=0;C<F.length;C=C+1){F[C](B)}if(E){E.VERSION=H;E.BUILD=G}else{BalloonTip.log("mainClass is undefined for module "+A,"warn")}};BalloonTip.env=BalloonTip.env||{modules:[],listeners:[]};BalloonTip.env.getVersion=function(A){return BalloonTip.env.modules[A]||null};BalloonTip.env.ua=function(){var C={ie:0,opera:0,gecko:0,webkit:0};var B=navigator.userAgent,A;if((/KHTML/).test(B)){C.webkit=1}A=B.match(/AppleWebKit\/([^\s]*)/);if(A&&A[1]){C.webkit=parseFloat(A[1])}if(!C.webkit){A=B.match(/Opera[\s\/]([^\s]*)/);if(A&&A[1]){C.opera=parseFloat(A[1])}else{A=B.match(/MSIE\s([^;]*)/);if(A&&A[1]){C.ie=parseFloat(A[1])}else{A=B.match(/Gecko\/([^\s]*)/);if(A){C.gecko=1;A=B.match(/rv:([^\s\)]*)/);if(A&&A[1]){C.gecko=parseFloat(A[1])}}}}}return C}();(function(){BalloonTip.namespace("util","widget","example");if(typeof BalloonTip_config!="undefined"){var B=BalloonTip_config.listener,A=BalloonTip.env.listeners,D=true,C;if(B){for(C=0;C<A.length;C=C+1){if(A[C]==B){D=false;break}}if(D){A.push(B)}}}})();BalloonTip.lang={isArray:function(B){if(B){var A=BalloonTip.lang;return A.isNumber(B.length)&&A.isFunction(B.splice)&&!A.hasOwnProperty(B.length)}return false},isBoolean:function(A){return typeof A==="boolean"},isFunction:function(A){return typeof A==="function"},isNull:function(A){return A===null},isNumber:function(A){return typeof A==="number"&&isFinite(A)},isObject:function(A){return(A&&(typeof A==="object"||BalloonTip.lang.isFunction(A)))||false},isString:function(A){return typeof A==="string"},isUndefined:function(A){return typeof A==="undefined"},hasOwnProperty:function(A,B){if(Object.prototype.hasOwnProperty){return A.hasOwnProperty(B)}return !BalloonTip.lang.isUndefined(A[B])&&A.constructor.prototype[B]!==A[B]},_IEEnumFix:function(B,A){if(BalloonTip.env.ua.ie){var D=["toString","valueOf"];for(i=0;i<D.length;i=i+1){var E=D[i],C=A[E];if(BalloonTip.lang.isFunction(C)&&C!=Object.prototype[E]){B[E]=C}}}},extend:function(D,E,C){if(!E||!D){throw new Error("BalloonTip.lang.extend failed, please check that all dependencies are included.")}var B=function(){};B.prototype=E.prototype;D.prototype=new B();D.prototype.constructor=D;D.superclass=E.prototype;if(E.prototype.constructor==Object.prototype.constructor){E.prototype.constructor=E}if(C){for(var A in C){D.prototype[A]=C[A]}BalloonTip.lang._IEEnumFix(D.prototype,C)}},augmentObject:function(E,D){if(!D||!E){throw new Error("Absorb failed, verify dependencies.")}var A=arguments,C,F,B=A[2];if(B&&B!==true){for(C=2;C<A.length;C=C+1){E[A[C]]=D[A[C]]}}else{for(F in D){if(B||!E[F]){E[F]=D[F]}}BalloonTip.lang._IEEnumFix(E,D)}},augmentProto:function(D,C){if(!C||!D){throw new Error("Augment failed, verify dependencies.")}var A=[D.prototype,C.prototype];for(var B=2;B<arguments.length;B=B+1){A.push(arguments[B])}BalloonTip.lang.augmentObject.apply(this,A)},dump:function(A,G){var C=BalloonTip.lang,D,F,I=[],J="{...}",B="f(){...}",H=", ",E=" => ";if(!C.isObject(A)||A instanceof Date||("nodeType" in A&&"tagName" in A)){return A}else{if(C.isFunction(A)){return B}}G=(C.isNumber(G))?G:3;if(C.isArray(A)){I.push("[");for(D=0,F=A.length;D<F;D=D+1){if(C.isObject(A[D])){I.push((G>0)?C.dump(A[D],G-1):J)}else{I.push(A[D])}I.push(H)}if(I.length>1){I.pop()}I.push("]")}else{I.push("{");for(D in A){if(C.hasOwnProperty(A,D)){I.push(D+E);if(C.isObject(A[D])){I.push((G>0)?C.dump(A[D],G-1):J)}else{I.push(A[D])}I.push(H)}}if(I.length>1){I.pop()}I.push("}")}return I.join("")},substitute:function(Q,B,J){var G,F,E,M,N,P,D=BalloonTip.lang,L=[],C,H="dump",K=" ",A="{",O="}";for(;;){G=Q.lastIndexOf(A);if(G<0){break}F=Q.indexOf(O,G);if(G+1>=F){break}C=Q.substring(G+1,F);M=C;P=null;E=M.indexOf(K);if(E>-1){P=M.substring(E+1);M=M.substring(0,E)}N=B[M];if(J){N=J(M,N,P)}if(D.isObject(N)){if(D.isArray(N)){N=D.dump(N,parseInt(P,10))}else{P=P||"";var I=P.indexOf(H);if(I>-1){P=P.substring(4)}if(N.toString===Object.prototype.toString||I>-1){N=D.dump(N,parseInt(P,10))}else{N=N.toString()}}}else{if(!D.isString(N)&&!D.isNumber(N)){N="~-"+L.length+"-~";L[L.length]=C}}Q=Q.substring(0,G)+N+Q.substring(F+1)}for(G=L.length-1;G>=0;G=G-1){Q=Q.replace(new RegExp("~-"+G+"-~"),"{"+L[G]+"}","g")}return Q},trim:function(A){try{return A.replace(/^\s+|\s+$/g,"")}catch(B){return A}},merge:function(){var C={},A=arguments,B;for(B=0;B<A.length;B=B+1){BalloonTip.lang.augmentObject(C,A[B],true)}return C},isValue:function(B){var A=BalloonTip.lang;return(A.isObject(B)||A.isString(B)||A.isNumber(B)||A.isBoolean(B))}};BalloonTip.util.Lang=BalloonTip.lang;BalloonTip.lang.augment=BalloonTip.lang.augmentProto;BalloonTip.augment=BalloonTip.lang.augmentProto;BalloonTip.extend=BalloonTip.lang.extend;BalloonTip.register("BalloonTip",BalloonTip,{version:"2.3.0",build:"442"});(function(){var B=BalloonTip.util,K,I,H=0,J={},F={};var C=BalloonTip.env.ua.opera,L=BalloonTip.env.ua.webkit,A=BalloonTip.env.ua.gecko,G=BalloonTip.env.ua.ie;var E={HYPHEN:/(-[a-z])/i,ROOT_TAG:/^body|html$/i};var M=function(O){if(!E.HYPHEN.test(O)){return O}if(J[O]){return J[O]}var P=O;while(E.HYPHEN.exec(P)){P=P.replace(RegExp.$1,RegExp.$1.substr(1).toUpperCase())}J[O]=P;return P};var N=function(P){var O=F[P];if(!O){O=new RegExp("(?:^|\\s+)"+P+"(?:\\s+|$)");F[P]=O}return O};if(document.defaultView&&document.defaultView.getComputedStyle){K=function(O,R){var Q=null;if(R=="float"){R="cssFloat"}var P=document.defaultView.getComputedStyle(O,"");if(P){Q=P[M(R)]}return O.style[R]||Q}}else{if(document.documentElement.currentStyle&&G){K=function(O,Q){switch(M(Q)){case"opacity":var S=100;try{S=O.filters["DXImageTransform.Microsoft.Alpha"].opacity}catch(R){try{S=O.filters("alpha").opacity}catch(R){}}return S/100;case"float":Q="styleFloat";default:var P=O.currentStyle?O.currentStyle[Q]:null;return(O.style[Q]||P)}}}else{K=function(O,P){return O.style[P]}}}if(G){I=function(O,P,Q){switch(P){case"opacity":if(BalloonTip.lang.isString(O.style.filter)){O.style.filter="alpha(opacity="+Q*100+")";if(!O.currentStyle||!O.currentStyle.hasLayout){O.style.zoom=1}}break;case"float":P="styleFloat";default:O.style[P]=Q}}}else{I=function(O,P,Q){if(P=="float"){P="cssFloat"}O.style[P]=Q}}var D=function(O,P){return O&&O.nodeType==1&&(!P||P(O))};BalloonTip.util.Dom={get:function(Q){if(!Q||Q.tagName||Q.item){return Q}if(BalloonTip.lang.isString(Q)){return document.getElementById(Q)}if(Q.splice){var R=[];for(var P=0,O=Q.length;P<O;++P){R[R.length]=B.Dom.get(Q[P])}return R}return Q},getStyle:function(O,Q){Q=M(Q);var P=function(R){return K(R,Q)};return B.Dom.batch(O,P,B.Dom,true)},setStyle:function(O,Q,R){Q=M(Q);var P=function(S){I(S,Q,R)};B.Dom.batch(O,P,B.Dom,true)},getXY:function(O){var P=function(R){if((R.parentNode===null||R.offsetParent===null||this.getStyle(R,"display")=="none")&&R!=document.body){return false}var Q=null;var V=[];var S;var T=R.ownerDocument;if(R.getBoundingClientRect){S=R.getBoundingClientRect();return[S.left+B.Dom.getDocumentScrollLeft(R.ownerDocument),S.top+B.Dom.getDocumentScrollTop(R.ownerDocument)]}else{V=[R.offsetLeft,R.offsetTop];Q=R.offsetParent;var U=this.getStyle(R,"position")=="absolute";if(Q!=R){while(Q){V[0]+=Q.offsetLeft;V[1]+=Q.offsetTop;if(L&&!U&&this.getStyle(Q,"position")=="absolute"){U=true}Q=Q.offsetParent}}if(L&&U){V[0]-=R.ownerDocument.body.offsetLeft;V[1]-=R.ownerDocument.body.offsetTop}}Q=R.parentNode;while(Q.tagName&&!E.ROOT_TAG.test(Q.tagName)){if(B.Dom.getStyle(Q,"display").search(/^inline|table-row.*$/i)){V[0]-=Q.scrollLeft;V[1]-=Q.scrollTop}Q=Q.parentNode}return V};return B.Dom.batch(O,P,B.Dom,true)},getX:function(O){var P=function(Q){return B.Dom.getXY(Q)[0]};return B.Dom.batch(O,P,B.Dom,true)},getY:function(O){var P=function(Q){return B.Dom.getXY(Q)[1]};return B.Dom.batch(O,P,B.Dom,true)},setXY:function(O,R,Q){var P=function(U){var T=this.getStyle(U,"position");if(T=="static"){this.setStyle(U,"position","relative");T="relative"}var W=this.getXY(U);if(W===false){return false}var V=[parseInt(this.getStyle(U,"left"),10),parseInt(this.getStyle(U,"top"),10)];if(isNaN(V[0])){V[0]=(T=="relative")?0:U.offsetLeft}if(isNaN(V[1])){V[1]=(T=="relative")?0:U.offsetTop}if(R[0]!==null){U.style.left=R[0]-W[0]+V[0]+"px"}if(R[1]!==null){U.style.top=R[1]-W[1]+V[1]+"px"}if(!Q){var S=this.getXY(U);if((R[0]!==null&&S[0]!=R[0])||(R[1]!==null&&S[1]!=R[1])){this.setXY(U,R,true)}}};B.Dom.batch(O,P,B.Dom,true)},setX:function(P,O){B.Dom.setXY(P,[O,null])},setY:function(O,P){B.Dom.setXY(O,[null,P])},getRegion:function(O){var P=function(Q){if((Q.parentNode===null||Q.offsetParent===null||this.getStyle(Q,"display")=="none")&&Q!=document.body){return false}var R=B.Region.getRegion(Q);return R};return B.Dom.batch(O,P,B.Dom,true)},getClientWidth:function(){return B.Dom.getViewportWidth()},getClientHeight:function(){return B.Dom.getViewportHeight()},getElementsByClassName:function(S,W,T,U){W=W||"*";T=(T)?B.Dom.get(T):null||document;if(!T){return[]}var P=[],O=T.getElementsByTagName(W),V=N(S);for(var Q=0,R=O.length;Q<R;++Q){if(V.test(O[Q].className)){P[P.length]=O[Q];if(U){U.call(O[Q],O[Q])}}}return P},hasClass:function(Q,P){var O=N(P);var R=function(S){return O.test(S.className)};return B.Dom.batch(Q,R,B.Dom,true)},addClass:function(P,O){var Q=function(R){if(this.hasClass(R,O)){return false}R.className=BalloonTip.lang.trim([R.className,O].join(" "));return true};return B.Dom.batch(P,Q,B.Dom,true)},removeClass:function(Q,P){var O=N(P);var R=function(S){if(!this.hasClass(S,P)){return false}var T=S.className;S.className=T.replace(O," ");if(this.hasClass(S,P)){this.removeClass(S,P)}S.className=BalloonTip.lang.trim(S.className);return true};return B.Dom.batch(Q,R,B.Dom,true)},replaceClass:function(R,P,O){if(!O||P===O){return false}var Q=N(P);var S=function(T){if(!this.hasClass(T,P)){this.addClass(T,O);return true}T.className=T.className.replace(Q," "+O+" ");if(this.hasClass(T,P)){this.replaceClass(T,P,O)}T.className=BalloonTip.lang.trim(T.className);return true};return B.Dom.batch(R,S,B.Dom,true)},generateId:function(O,Q){Q=Q||"yui-gen";var P=function(R){if(R&&R.id){return R.id}var S=Q+H++;if(R){R.id=S}return S};return B.Dom.batch(O,P,B.Dom,true)||P.apply(B.Dom,arguments)},isAncestor:function(P,Q){P=B.Dom.get(P);if(!P||!Q){return false}var O=function(R){if(P.contains&&R.nodeType&&!L){return P.contains(R)}else{if(P.compareDocumentPosition&&R.nodeType){return !!(P.compareDocumentPosition(R)&16)}else{if(R.nodeType){return !!this.getAncestorBy(R,function(S){return S==P})}}}return false};return B.Dom.batch(Q,O,B.Dom,true)},inDocument:function(O){var P=function(Q){if(L){while(Q=Q.parentNode){if(Q==document.documentElement){return true}}return false}return this.isAncestor(document.documentElement,Q)};return B.Dom.batch(O,P,B.Dom,true)},getElementsBy:function(V,P,Q,S){P=P||"*";Q=(Q)?B.Dom.get(Q):null||document;if(!Q){return[]}var R=[],U=Q.getElementsByTagName(P);for(var T=0,O=U.length;T<O;++T){if(V(U[T])){R[R.length]=U[T];if(S){S(U[T])}}}return R},batch:function(S,V,U,Q){S=(S&&S.tagName)?S:B.Dom.get(S);if(!S||!V){return false}var R=(Q)?U:window;if(S.tagName||(!S.item&&!S.slice)){return V.call(R,S,U)}var T=[];for(var P=0,O=S.length;P<O;++P){T[T.length]=V.call(R,S[P],U)}return T},getDocumentHeight:function(){var P=(document.compatMode!="CSS1Compat")?document.body.scrollHeight:document.documentElement.scrollHeight;var O=Math.max(P,B.Dom.getViewportHeight());return O},getDocumentWidth:function(){var P=(document.compatMode!="CSS1Compat")?document.body.scrollWidth:document.documentElement.scrollWidth;var O=Math.max(P,B.Dom.getViewportWidth());return O},getViewportHeight:function(){var O=self.innerHeight;var P=document.compatMode;if((P||G)&&!C){O=(P=="CSS1Compat")?document.documentElement.clientHeight:document.body.clientHeight}return O},getViewportWidth:function(){var O=self.innerWidth;var P=document.compatMode;if(P||G){O=(P=="CSS1Compat")?document.documentElement.clientWidth:document.body.clientWidth}return O},getAncestorBy:function(O,P){while(O=O.parentNode){if(D(O,P)){return O}}return null},getAncestorByClassName:function(P,O){P=B.Dom.get(P);if(!P){return null}var Q=function(R){return B.Dom.hasClass(R,O)};return B.Dom.getAncestorBy(P,Q)},getAncestorByTagName:function(P,O){P=B.Dom.get(P);if(!P){return null}var Q=function(R){return R.tagName&&R.tagName.toUpperCase()==O.toUpperCase()};return B.Dom.getAncestorBy(P,Q)},getPreviousSiblingBy:function(O,P){while(O){O=O.previousSibling;if(D(O,P)){return O}}return null},getPreviousSibling:function(O){O=B.Dom.get(O);if(!O){return null}return B.Dom.getPreviousSiblingBy(O)},getNextSiblingBy:function(O,P){while(O){O=O.nextSibling;if(D(O,P)){return O}}return null},getNextSibling:function(O){O=B.Dom.get(O);if(!O){return null}return B.Dom.getNextSiblingBy(O)},getFirstChildBy:function(O,Q){var P=(D(O.firstChild,Q))?O.firstChild:null;return P||B.Dom.getNextSiblingBy(O.firstChild,Q)},getFirstChild:function(O,P){O=B.Dom.get(O);if(!O){return null}return B.Dom.getFirstChildBy(O)},getLastChildBy:function(O,Q){if(!O){return null}var P=(D(O.lastChild,Q))?O.lastChild:null;return P||B.Dom.getPreviousSiblingBy(O.lastChild,Q)},getLastChild:function(O){O=B.Dom.get(O);return B.Dom.getLastChildBy(O)},getChildrenBy:function(P,R){var Q=B.Dom.getFirstChildBy(P,R);var O=Q?[Q]:[];B.Dom.getNextSiblingBy(Q,function(S){if(!R||R(S)){O[O.length]=S}return false});return O},getChildren:function(O){O=B.Dom.get(O);if(!O){}return B.Dom.getChildrenBy(O)},getDocumentScrollLeft:function(O){O=O||document;return Math.max(O.documentElement.scrollLeft,O.body.scrollLeft)},getDocumentScrollTop:function(O){O=O||document;return Math.max(O.documentElement.scrollTop,O.body.scrollTop)},insertBefore:function(P,O){P=B.Dom.get(P);O=B.Dom.get(O);if(!P||!O||!O.parentNode){return null}return O.parentNode.insertBefore(P,O)},insertAfter:function(P,O){P=B.Dom.get(P);O=B.Dom.get(O);if(!P||!O||!O.parentNode){return null}if(O.nextSibling){return O.parentNode.insertBefore(P,O.nextSibling)}else{return O.parentNode.appendChild(P)}}}})();BalloonTip.util.Region=function(C,D,A,B){this.top=C;this[1]=C;this.right=D;this.bottom=A;this.left=B;this[0]=B};BalloonTip.util.Region.prototype.contains=function(A){return(A.left>=this.left&&A.right<=this.right&&A.top>=this.top&&A.bottom<=this.bottom)};BalloonTip.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left))};BalloonTip.util.Region.prototype.intersect=function(E){var C=Math.max(this.top,E.top);var D=Math.min(this.right,E.right);var A=Math.min(this.bottom,E.bottom);var B=Math.max(this.left,E.left);if(A>=C&&D>=B){return new BalloonTip.util.Region(C,D,A,B)}else{return null}};BalloonTip.util.Region.prototype.union=function(E){var C=Math.min(this.top,E.top);var D=Math.max(this.right,E.right);var A=Math.max(this.bottom,E.bottom);var B=Math.min(this.left,E.left);return new BalloonTip.util.Region(C,D,A,B)};BalloonTip.util.Region.prototype.toString=function(){return("Region {top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+"}")};BalloonTip.util.Region.getRegion=function(D){var F=BalloonTip.util.Dom.getXY(D);var C=F[1];var E=F[0]+D.offsetWidth;var A=F[1]+D.offsetHeight;var B=F[0];return new BalloonTip.util.Region(C,E,A,B)};BalloonTip.util.Point=function(A,B){if(BalloonTip.lang.isArray(A)){B=A[1];A=A[0]}this.x=this.right=this.left=this[0]=A;this.y=this.top=this.bottom=this[1]=B};BalloonTip.util.Point.prototype=new BalloonTip.util.Region();BalloonTip.register("dom",BalloonTip.util.Dom,{version:"2.3.0",build:"442"});BalloonTip.util.CustomEvent=function(D,B,C,A){this.type=D;this.scope=B||window;this.silent=C;this.signature=A||BalloonTip.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var E="_YUICEOnSubscribe";if(D!==E){this.subscribeEvent=new BalloonTip.util.CustomEvent(E,this,true)}};BalloonTip.util.CustomEvent.LIST=0;BalloonTip.util.CustomEvent.FLAT=1;BalloonTip.util.CustomEvent.prototype={subscribe:function(B,C,A){if(!B){throw new Error("Invalid callback for subscriber to '"+this.type+"'")}if(this.subscribeEvent){this.subscribeEvent.fire(B,C,A)}this.subscribers.push(new BalloonTip.util.Subscriber(B,C,A))},unsubscribe:function(D,F){if(!D){return this.unsubscribeAll()}var E=false;for(var B=0,A=this.subscribers.length;B<A;++B){var C=this.subscribers[B];if(C&&C.contains(D,F)){this._delete(B);E=true}}return E},fire:function(){var E=this.subscribers.length;if(!E&&this.silent){return true}var G=[],F=true,D,H=false;for(D=0;D<arguments.length;++D){G.push(arguments[D])}var A=G.length;if(!this.silent){}for(D=0;D<E;++D){var K=this.subscribers[D];if(!K){H=true}else{if(!this.silent){}var J=K.getScope(this.scope);if(this.signature==BalloonTip.util.CustomEvent.FLAT){var B=null;if(G.length>0){B=G[0]}F=K.fn.call(J,B,K.obj)}else{F=K.fn.call(J,this.type,G,K.obj)}if(false===F){if(!this.silent){}return false}}}if(H){var I=[],C=this.subscribers;for(D=0,E=C.length;D<E;++D){K=C[D];I.push(C[D])}this.subscribers=I}return true},unsubscribeAll:function(){for(var B=0,A=this.subscribers.length;B<A;++B){this._delete(A-1-B)}this.subscribers=[];return B},_delete:function(A){var B=this.subscribers[A];if(B){delete B.fn;delete B.obj}this.subscribers[A]=null},toString:function(){return"CustomEvent: '"+this.type+"', scope: "+this.scope}};BalloonTip.util.Subscriber=function(B,C,A){this.fn=B;this.obj=BalloonTip.lang.isUndefined(C)?null:C;this.override=A};BalloonTip.util.Subscriber.prototype.getScope=function(A){if(this.override){if(this.override===true){return this.obj}else{return this.override}}return A};BalloonTip.util.Subscriber.prototype.contains=function(A,B){if(B){return(this.fn==A&&this.obj==B)}else{return(this.fn==A)}};BalloonTip.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+this.obj+", override: "+(this.override||"no")+" }"};if(!BalloonTip.util.Event){BalloonTip.util.Event=function(){var H=false;var J=false;var I=[];var K=[];var G=[];var E=[];var C=0;var F=[];var B=[];var A=0;var D={63232:38,63233:40,63234:37,63235:39};return{POLL_RETRYS:4000,POLL_INTERVAL:10,EL:0,TYPE:1,FN:2,WFN:3,OBJ:3,ADJ_SCOPE:4,lastError:null,isSafari:BalloonTip.env.ua.webkit,webkit:BalloonTip.env.ua.webkit,isIE:BalloonTip.env.ua.ie,_interval:null,startInterval:function(){if(!this._interval){var L=this;var M=function(){L._tryPreloadAttach()};this._interval=setInterval(M,this.POLL_INTERVAL)}},onAvailable:function(N,L,O,M){F.push({id:N,fn:L,obj:O,override:M,checkReady:false});C=this.POLL_RETRYS;this.startInterval()},onDOMReady:function(L,N,M){if(J){setTimeout(function(){var O=window;if(M){if(M===true){O=N}else{O=M}}L.call(O,"DOMReady",[],N)},0)}else{this.DOMReadyEvent.subscribe(L,N,M)}},onContentReady:function(N,L,O,M){F.push({id:N,fn:L,obj:O,override:M,checkReady:true});C=this.POLL_RETRYS;this.startInterval()},addListener:function(N,L,W,R,M){if(!W||!W.call){return false}if(this._isValidCollection(N)){var X=true;for(var S=0,U=N.length;S<U;++S){X=this.on(N[S],L,W,R,M)&&X}return X}else{if(BalloonTip.lang.isString(N)){var Q=this.getEl(N);if(Q){N=Q}else{this.onAvailable(N,function(){BalloonTip.util.Event.on(N,L,W,R,M)});return true}}}if(!N){return false}if("unload"==L&&R!==this){K[K.length]=[N,L,W,R,M];return true}var Z=N;if(M){if(M===true){Z=R}else{Z=M}}var O=function(a){return W.call(Z,BalloonTip.util.Event.getEvent(a),R)};var Y=[N,L,W,O,Z];var T=I.length;I[T]=Y;if(this.useLegacyEvent(N,L)){var P=this.getLegacyIndex(N,L);if(P==-1||N!=G[P][0]){P=G.length;B[N.id+L]=P;G[P]=[N,L,N["on"+L]];E[P]=[];N["on"+L]=function(a){BalloonTip.util.Event.fireLegacyEvent(BalloonTip.util.Event.getEvent(a),P)}}E[P].push(Y)}else{try{this._simpleAdd(N,L,O,false)}catch(V){this.lastError=V;this.removeListener(N,L,W);return false}}return true},fireLegacyEvent:function(P,N){var R=true,L,T,S,U,Q;T=E[N];for(var M=0,O=T.length;M<O;++M){S=T[M];if(S&&S[this.WFN]){U=S[this.ADJ_SCOPE];Q=S[this.WFN].call(U,P);R=(R&&Q)}}L=G[N];if(L&&L[2]){L[2](P)}return R},getLegacyIndex:function(M,N){var L=this.generateId(M)+N;if(typeof B[L]=="undefined"){return -1}else{return B[L]}},useLegacyEvent:function(M,N){if(this.webkit&&("click"==N||"dblclick"==N)){var L=parseInt(this.webkit,10);if(!isNaN(L)&&L<418){return true}}return false},removeListener:function(M,L,U){var P,S;if(typeof M=="string"){M=this.getEl(M)}else{if(this._isValidCollection(M)){var V=true;for(P=0,S=M.length;P<S;++P){V=(this.removeListener(M[P],L,U)&&V)}return V}}if(!U||!U.call){return this.purgeElement(M,false,L)}if("unload"==L){for(P=0,S=K.length;P<S;P++){var W=K[P];if(W&&W[0]==M&&W[1]==L&&W[2]==U){K[P]=null;return true}}return false}var Q=null;var R=arguments[3];if("undefined"==typeof R){R=this._getCacheIndex(M,L,U)}if(R>=0){Q=I[R]}if(!M||!Q){return false}if(this.useLegacyEvent(M,L)){var O=this.getLegacyIndex(M,L);var N=E[O];if(N){for(P=0,S=N.length;P<S;++P){W=N[P];if(W&&W[this.EL]==M&&W[this.TYPE]==L&&W[this.FN]==U){N[P]=null;break}}}}else{try{this._simpleRemove(M,L,Q[this.WFN],false)}catch(T){this.lastError=T;return false}}delete I[R][this.WFN];delete I[R][this.FN];I[R]=null;return true},getTarget:function(N,M){var L=N.target||N.srcElement;return this.resolveTextNode(L)},resolveTextNode:function(L){if(L&&3==L.nodeType){return L.parentNode}else{return L}},getPageX:function(M){var L=M.pageX;if(!L&&0!==L){L=M.clientX||0;if(this.isIE){L+=this._getScrollLeft()}}return L},getPageY:function(L){var M=L.pageY;if(!M&&0!==M){M=L.clientY||0;if(this.isIE){M+=this._getScrollTop()}}return M},getXY:function(L){return[this.getPageX(L),this.getPageY(L)]},getRelatedTarget:function(M){var L=M.relatedTarget;if(!L){if(M.type=="mouseout"){L=M.toElement}else{if(M.type=="mouseover"){L=M.fromElement}}}return this.resolveTextNode(L)},getTime:function(N){if(!N.time){var M=new Date().getTime();try{N.time=M}catch(L){this.lastError=L;return M}}return N.time},stopEvent:function(L){this.stopPropagation(L);this.preventDefault(L)},stopPropagation:function(L){if(L.stopPropagation){L.stopPropagation()}else{L.cancelBubble=true}},preventDefault:function(L){if(L.preventDefault){L.preventDefault()}else{L.returnValue=false}},getEvent:function(M){var L=M||window.event;if(!L){var N=this.getEvent.caller;while(N){L=N.arguments[0];if(L&&Event==L.constructor){break}N=N.caller}}return L},getCharCode:function(M){var L=M.keyCode||M.charCode||0;if(BalloonTip.env.ua.webkit&&(L in D)){L=D[L]}return L},_getCacheIndex:function(P,Q,O){for(var N=0,M=I.length;N<M;++N){var L=I[N];if(L&&L[this.FN]==O&&L[this.EL]==P&&L[this.TYPE]==Q){return N}}return -1},generateId:function(L){var M=L.id;if(!M){M="yuievtautoid-"+A;++A;L.id=M}return M},_isValidCollection:function(M){try{return(M&&M.length&&typeof M!="string"&&!M.tagName&&!M.alert&&typeof M[0]!="undefined")}catch(L){return false}},elCache:{},getEl:function(L){return document.getElementById(L)},clearCache:function(){},DOMReadyEvent:new BalloonTip.util.CustomEvent("DOMReady",this),_load:function(M){if(!H){H=true;var L=BalloonTip.util.Event;L._ready();L._tryPreloadAttach()}},_ready:function(M){if(!J){J=true;var L=BalloonTip.util.Event;L.DOMReadyEvent.fire();L._simpleRemove(document,"DOMContentLoaded",L._ready)}},_tryPreloadAttach:function(){if(this.locked){return false}if(this.isIE){if(!J){this.startInterval();return false}}this.locked=true;var Q=!H;if(!Q){Q=(C>0)}var P=[];var R=function(T,U){var S=T;if(U.override){if(U.override===true){S=U.obj}else{S=U.override}}U.fn.call(S,U.obj)};var M,L,O,N;for(M=0,L=F.length;M<L;++M){O=F[M];if(O&&!O.checkReady){N=this.getEl(O.id);if(N){R(N,O);F[M]=null}else{P.push(O)}}}for(M=0,L=F.length;M<L;++M){O=F[M];if(O&&O.checkReady){N=this.getEl(O.id);if(N){if(H||N.nextSibling){R(N,O);F[M]=null}}else{P.push(O)}}}C=(P.length===0)?0:C-1;if(Q){this.startInterval()}else{clearInterval(this._interval);this._interval=null}this.locked=false;return true},purgeElement:function(O,P,R){var Q=this.getListeners(O,R);if(Q){for(var N=0,L=Q.length;N<L;++N){var M=Q[N];this.removeListener(O,M.type,M.fn,M.index)}}if(P&&O&&O.childNodes){for(N=0,L=O.childNodes.length;N<L;++N){this.purgeElement(O.childNodes[N],P,R)}}},getListeners:function(N,L){var Q=[],M;if(!L){M=[I,K]}else{if(L=="unload"){M=[K]}else{M=[I]}}for(var P=0;P<M.length;++P){var T=M[P];if(T&&T.length>0){for(var R=0,S=T.length;R<S;++R){var O=T[R];if(O&&O[this.EL]===N&&(!L||L===O[this.TYPE])){Q.push({type:O[this.TYPE],fn:O[this.FN],obj:O[this.OBJ],adjust:O[this.ADJ_SCOPE],index:R})}}}}return(Q.length)?Q:null},_unload:function(S){var R=BalloonTip.util.Event,P,O,M,L,N;for(P=0,L=K.length;P<L;++P){M=K[P];if(M){var Q=window;if(M[R.ADJ_SCOPE]){if(M[R.ADJ_SCOPE]===true){Q=M[R.OBJ]}else{Q=M[R.ADJ_SCOPE]}}M[R.FN].call(Q,R.getEvent(S),M[R.OBJ]);K[P]=null;M=null;Q=null}}K=null;if(I&&I.length>0){O=I.length;while(O){N=O-1;M=I[N];if(M){R.removeListener(M[R.EL],M[R.TYPE],M[R.FN],N)}O=O-1}M=null;R.clearCache()}for(P=0,L=G.length;P<L;++P){G[P][0]=null;G[P]=null}G=null;R._simpleRemove(window,"unload",R._unload)},_getScrollLeft:function(){return this._getScroll()[1]},_getScrollTop:function(){return this._getScroll()[0]},_getScroll:function(){var L=document.documentElement,M=document.body;if(L&&(L.scrollTop||L.scrollLeft)){return[L.scrollTop,L.scrollLeft]}else{if(M){return[M.scrollTop,M.scrollLeft]}else{return[0,0]}}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(N,O,M,L){N.addEventListener(O,M,(L))}}else{if(window.attachEvent){return function(N,O,M,L){N.attachEvent("on"+O,M)}}else{return function(){}}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(N,O,M,L){N.removeEventListener(O,M,(L))}}else{if(window.detachEvent){return function(M,N,L){M.detachEvent("on"+N,L)}}else{return function(){}}}}()}}();(function(){var D=BalloonTip.util.Event;D.on=D.addListener;if(D.isIE){BalloonTip.util.Event.onDOMReady(BalloonTip.util.Event._tryPreloadAttach,BalloonTip.util.Event,true);var B,E=document,A=E.body;if(("undefined"!==typeof BalloonTip_config)&&BalloonTip_config.injecting){B=document.createElement("script");var C=E.getElementsByTagName("head")[0]||A;C.insertBefore(B,C.firstChild)}else{E.write('<script id="_yui_eu_dr" defer="true" src="//:"><\/script>');B=document.getElementById("_yui_eu_dr")}if(B){B.onreadystatechange=function(){if("complete"===this.readyState){this.parentNode.removeChild(this);BalloonTip.util.Event._ready()}}}else{}B=null}else{if(D.webkit){D._drwatch=setInterval(function(){var F=document.readyState;if("loaded"==F||"complete"==F){clearInterval(D._drwatch);D._drwatch=null;D._ready()}},D.POLL_INTERVAL)}else{D._simpleAdd(document,"DOMContentLoaded",D._ready)}}D._simpleAdd(window,"load",D._load);D._simpleAdd(window,"unload",D._unload);D._tryPreloadAttach()})()}BalloonTip.util.EventProvider=function(){};BalloonTip.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(A,C,F,E){this.__yui_events=this.__yui_events||{};var D=this.__yui_events[A];if(D){D.subscribe(C,F,E)}else{this.__yui_subscribers=this.__yui_subscribers||{};var B=this.__yui_subscribers;if(!B[A]){B[A]=[]}B[A].push({fn:C,obj:F,override:E})}},unsubscribe:function(C,E,G){this.__yui_events=this.__yui_events||{};var A=this.__yui_events;if(C){var F=A[C];if(F){return F.unsubscribe(E,G)}}else{for(var D in A){var B=true;if(BalloonTip.lang.hasOwnProperty(A,D)){B=B&&A[D].unsubscribe(E,G)}}return B}return false},unsubscribeAll:function(A){return this.unsubscribe(A)},createEvent:function(G,D){this.__yui_events=this.__yui_events||{};var A=D||{};var I=this.__yui_events;if(I[G]){}else{var H=A.scope||this;var E=(A.silent);var B=new BalloonTip.util.CustomEvent(G,H,E,BalloonTip.util.CustomEvent.FLAT);I[G]=B;if(A.onSubscribeCallback){B.subscribeEvent.subscribe(A.onSubscribeCallback)}this.__yui_subscribers=this.__yui_subscribers||{};var F=this.__yui_subscribers[G];if(F){for(var C=0;C<F.length;++C){B.subscribe(F[C].fn,F[C].obj,F[C].override)}}}return I[G]},fireEvent:function(E,D,A,C){this.__yui_events=this.__yui_events||{};var G=this.__yui_events[E];if(!G){return null}var B=[];for(var F=1;F<arguments.length;++F){B.push(arguments[F])}return G.fire.apply(G,B)},hasEvent:function(A){if(this.__yui_events){if(this.__yui_events[A]){return true}}return false}};BalloonTip.util.KeyListener=function(A,F,B,C){if(!A){}else{if(!F){}else{if(!B){}}}if(!C){C=BalloonTip.util.KeyListener.KEYDOWN}var D=new BalloonTip.util.CustomEvent("keyPressed");this.enabledEvent=new BalloonTip.util.CustomEvent("enabled");this.disabledEvent=new BalloonTip.util.CustomEvent("disabled");if(typeof A=="string"){A=document.getElementById(A)}if(typeof B=="function"){D.subscribe(B)}else{D.subscribe(B.fn,B.scope,B.correctScope)}function E(K,J){if(!F.shift){F.shift=false}if(!F.alt){F.alt=false}if(!F.ctrl){F.ctrl=false}if(K.shiftKey==F.shift&&K.altKey==F.alt&&K.ctrlKey==F.ctrl){var H;var G;if(F.keys instanceof Array){for(var I=0;I<F.keys.length;I++){H=F.keys[I];if(H==K.charCode){D.fire(K.charCode,K);break}else{if(H==K.keyCode){D.fire(K.keyCode,K);break}}}}else{H=F.keys;if(H==K.charCode){D.fire(K.charCode,K)}else{if(H==K.keyCode){D.fire(K.keyCode,K)}}}}}this.enable=function(){if(!this.enabled){BalloonTip.util.Event.addListener(A,C,E);this.enabledEvent.fire(F)}this.enabled=true};this.disable=function(){if(this.enabled){BalloonTip.util.Event.removeListener(A,C,E);this.disabledEvent.fire(F)}this.enabled=false};this.toString=function(){return"KeyListener ["+F.keys+"] "+A.tagName+(A.id?"["+A.id+"]":"")}};BalloonTip.util.KeyListener.KEYDOWN="keydown";BalloonTip.util.KeyListener.KEYUP="keyup";BalloonTip.register("event",BalloonTip.util.Event,{version:"1.0.0",build:"442"});BalloonTip.register("BalloonTip-dom-event",BalloonTip,{version:"1.0.0",build:"442"});
