var API,global=this;API=API||{};(function(){var bv,al;var U=new RegExp("^(function|object)$","i");var W=function(bT,bS){return !!(typeof bT[bS]=="object"&&bT[bS])};API.isRealObjectProperty=W;var A=function(bU,bS){var bT=typeof bU[bS];return !!((U.test(bT)&&bU[bS])||bT=="unknown")};API.isHostMethod=A;var B=function(bU,bT){var bS=typeof bU[bT];return !!(U.test(bS)&&bU[bT])};API.isHostObjectProperty=B;var aU=function(){var bS=arguments.length;while(bS--){if(!API[arguments[bS]]){return false}}return true};API.areFeatures=aU;var a=function(bT,bS){var bU=bT.constructor.prototype[bS];return typeof bU=="undefined"||bU!==bT[bS]};API.isOwnProperty=a;if(W(this,"document")){bv=this.document}function y(bU){var bS=[];var bT=bU.length;bS.length=bT;while(bT--){bS[bT]=bU[bT]}return bS}API.toArray=y;var H;var f=(function(){var bS=0;return function(bT){return bT.uniqueID||(bT.uniqueID="_api"+bS++)}})();API.elementUniqueId=f;var bC,J,h,bj,q=[];var ak,am,bf;if(bv){ak=A(bv,"addEventListener");am=A(this,"addEventListener");bf=A(this,"attachEvent");J=false;h=function(){return J};bj=function(bU){if(!J){J=true;var bT=q.length;var bS=bT-1;while(bT--){q[bS-bT](bU)}}};bC=function(bU,bS){var bT=function(bX){if(ak){bS.addEventListener("DOMContentLoaded",bj,false)}if(am){global.addEventListener("load",bj,false)}else{if(bf){global.attachEvent("onload",bj)}else{var bW=global.onload;global.onload=function(bY){if(bW){bW(bY)}bj()}}}};bS=bS||global.document;if(bS==global.document){if(!q.length){bT(global)}q[q.length]=bU;return true}if(H){var bV=H(bS);if(bV){bT(bV);return true}}return false};API.documentReady=h;API.documentReadyListener=bj;API.attachDocumentReadyListener=bC}var ay;var aw;var bF,aI,ba=[];var au,L,bI,br,bM,bh,a8,aY,aW,bm;var be,bE;var w,X,bO,av,x,ao,aK,ap,F,M,bu,az,aS,aZ,bc;var bG={"for":"htmlFor",accesskey:"accessKey",codebase:"codeBase",frameborder:"frameBorder",framespacing:"frameSpacing",nowrap:"noWrap",maxlength:"maxLength","class":"className",readonly:"readOnly",longdesc:"longDesc",tabindex:"tabIndex",rowspan:"rowSpan",colspan:"colSpan",ismap:"isMap",usemap:"useMap",cellpadding:"cellPadding",cellspacing:"cellSpacing"};var aD,bb,bK,bL;var i,aE,aX=new RegExp("([^-]*)-(.)(.*)");var a0;if(bv){H=(function(){if(W(bv,"parentWindow")){return function(bS){return(bS||global.document).parentWindow}}if(W(bv,"defaultView")&&bv.defaultView==this){return function(bS){return(bS||global.document).defaultView}}if(W(bv,"__parent__")){return function(bS){return(bS||global.document).__parent__}}})()}API.getDocumentWindow=H;var l;function aL(bS){return[bS.offsetHeight||0,bS.offsetWidth||0,bS.clientHeight||0,bS.clientWidth||0,bS.scrollHeight||0,bS.scrollWidth||0]}API.getElementSize=aL;API.emptyNode=bO=function(bS){while(bS.firstChild){bS.removeChild(bS.firstChild)}};function k(bS){if(bS.ownerDocument){return bS.ownerDocument}if(bS.parentNode){while(bS.parentNode){bS=bS.parentNode}if(bS.nodeType==9||(!bS.nodeType&&!bS.tagName)){return bS}if(bS.document&&typeof bS.tagName=="string"){return bS.document}}return null}API.getElementDocument=k;function p(bS){return(bS.parentNode&&(bS.parentNode.tagName||bS.parentNode.nodeType==1))?bS.parentNode:(bS.parentElement||null)}API.getElementParentElement=p;function S(bS){var bT=(bS.tagName||bS.nodeName).toLowerCase();return(!bT.indexOf("html:"))?bT.substring(5):bT}API.getElementNodeName=S;var a5;a0=function(bV,bU,bT){var bS;bS=bU.childNodes.length;while(bS--){if(bU.childNodes[bS].id==bV.id){if(typeof a5=="function"){a5(bV,bU.childNodes[bS])}bV=bU.childNodes[bS];break}}if(bV.id==bT){bV.id=""}return bV};function aa(bS){return typeof bS.canHaveChildren=="undefined"||bS.canHaveChildren}var bw,a6,C,a9;var D,R,bR,a4;if(bv){if(B(bv,"all")){D=(function(){return function(bV,bU){var bT,bS,bX,bW;if(!bU){return bV.all}else{bS=y(bV.all);bT=bS.length;bW=[];while(bT--){bX=bS[bT];if((bX.nodeType==1&&bX.tagName!="!")||(!bX.nodeType&&bX.tagName)){bW[bW.length]=bS[bT]}}return bW.reverse()}}})()}bR=function(bS,bV){var bU,bT;bS=bS||global.document;bU=W(bS,"documentElement")?bS.documentElement:((typeof ap=="function")?ap("html",bS)[0]:null);if(!bU&&D){bT=D(bS);bU=bT[(bT[0].tagName=="!")?1:0];if(bU&&!bV&&bU.tagName.toLowerCase()!="html"){bU=null}}return bU};API.getHtmlElement=bR;R=function(bS){return bR(bS,true)};API.getAnElement=R;al=R();if(al&&typeof al.parentNode!="undefined"){a4=function(bT,bU){var bS=bU.parentNode;while(bS&&bS!=bT){bS=bS.parentNode}return bS==bT}}API.isDescendant=a4}if(bv){aD=!!(al&&A(al,"getAttribute")&&al.getAttribute("style")&&typeof al.getAttribute("style")=="object");if(!aD&&A(bv,"createElement")){bb=(function(){var bS=bv.createElement("td");if(bS&&A(bS,"getAttribute")){return bS.getAttribute("colspan")!==null}})();bK=(function(){var bS=bv.createElement("form");bS.setAttribute("enctype","application/x-www-form-urlencoded");bS.removeAttribute("enctype");return bS.getAttribute("enctype")!==null})();bL=(function(){var bS=bv.createElement("input");bS.type="checkbox";bS.checked=true;return(typeof bS.hasAttribute!="undefined"&&bS.hasAttribute("value"))})()}ay=(function(){var bT,bS;if(al&&A(al,"hasAttribute")){return function(bY,bV){var bX,bZ=bV.toLowerCase();var bW=bG[bZ];var b0=typeof bY[bW];if(bb){if(bc.test(bZ)){if(!bY.getAttribute(bZ)){return false}if(typeof bY.outerHTML=="string"){bX=new RegExp("^[^>]*\\s+"+bV+"=(['\"])?\\w+\\1?","i");return bX.test(bY.outerHTML)}}else{if(b0=="number"&&!bY.getAttribute(bZ)){return false}else{if(aS.test(bZ)){var bU=bY["default"+bZ.substring(0,1).toUpperCase()+bV.substring(1)];if(typeof bU=="boolean"){return bU}}}}}if(bK&&bZ=="enctype"){if(typeof bY.outerHTML=="string"){bX=new RegExp("^[^>]*\\s+"+bV+"=(['\"])?\\w+\\1?","i");return bX.test(bY.outerHTML)}return !!(bY.attributes.enctype&&bY.attributes.enctype.specified)}if(bL&&bZ=="value"&&typeof bY.outerHTML=="string"){bX=new RegExp("^[^>]*\\s+value=(['\"])?\\w*\\1?","i");return bX.test(bY.outerHTML)}return bY.hasAttribute(bV)}}if(al&&A(al,"attributes")){bT=function(bV,bU){bS=bV.attributes[bU];return !!(bS&&bS.specified)};if(aD){return function(bX,bU){var b0=arguments[2]||k(bX);if(b0&&typeof(b0.selectNodes)!="undefined"){return bT(bX,bU)}var bZ,bW,bY=bU.toLowerCase();var bV=bY=="enctype"?"encType":bG[bY];if(bV&&bV.toLowerCase()==bY){bU=bV}if(bX.attributes){bZ=bX.attributes[bU]||bX.attributes[bY]}if(bZ){if(bc.test(bY)&&bZ.value=="1"){bW=new RegExp("^[^>]*\\s+"+bU+"=(['\"])?\\w*\\1?","i");return bW.test(bX.outerHTML)}if(bZ.specified){return true}if(typeof bX[bU]=="boolean"){if(aS.test(bY)){return bX["default"+bY.substring(0,1).toUpperCase()+bU.substring(1)]}return bX[bU]}if(bY=="value"&&((/^input$/i.test(bX.tagName)&&/^text$/i.test(bX.type)))){return !!(bX.defaultValue||bX.defaultValue!=bX.value)}if(/^(enctype|value)$/.test(bY)&&typeof bX.outerHTML=="string"){bW=new RegExp("^[^>]*\\s+"+bU+"=(['\"])?\\w*\\1?","i");return bW.test(bX.outerHTML)}}return false}}return bT}})();API.hasAttribute=ay;X=function(){var bS,bT=arguments.length;if(bT>1&&typeof arguments[bT-1]=="boolean"){bS=arguments[bT-1];bT--}while(bT--){arguments[bT].disabled=!bS}};API.disableElements=X;aK=(function(){function bS(bT,bU){return(bT&&bT.id==bU)?bT:null}if(A(bv,"getElementById")){return function(bU,bT){return bS((bT||global.document).getElementById(bU),bU)}}if(A(bv,"all")){return function(bU,bT){return bS((bT||global.document).all[bU],bU)}}})();API.getEBI=aK;M=function(bU,bS){var bT=(bS||global).frames[bU];if(!bT&&aK){bT=aK(bU,bS.document);if(bT&&B(bT,"contentWindow")){bT=bT.contentWindow||null}}return bT};API.getFrameById=M;bu=function(bS,bT){return bS.contentDocument||(bS.contentWindow||M(bS.name,bT)||bS).document||null};API.getIFrameDocument=bu;w=(function(){if(D){return function(bT,bS){return(bS=="*"&&bT.all)?D(bT,true):bT.getElementsByTagName(bS)}}return function(bT,bS){return bT.getElementsByTagName(bS)}})();ap=(function(){var bS;if(A(bv,"getElementsByTagName")){bS=bv.getElementsByTagName("*");if(bS&&(bS.length||D)){return function(bU,bT){return w(bT||global.document,bU)}}}if(B(bv,"all")&&A(bv.all,"tags")){return function(bU,bT){return(bT||global.document).all.tags(bU)}}})();API.getEBTN=ap;if(ap){F=function(bS){return ap("head",bS||global.document)[0]||null}}API.getHeadElement=F;i=function(bT){if(aX.test(bT)){var bS=bT.match(aX);return(bS)?([bS[1],bS[2].toUpperCase(),bS[3]].join("")):bT}return bT};if(al&&A(al,"removeAttribute")){az=function(bU,bS){var bV=bS.toLowerCase();var bT=bG[bV];if(aD){if(bT&&bT.toLowerCase()==bV){bS=bT}else{bS=i(bS)}}bT=bT||bV;if(typeof bU[bT]=="boolean"){bU[bT]=false}else{bU.removeAttribute(bS)}}}aS=new RegExp("^(checked|selected)$");bc=new RegExp("^(row|col)?span$");aZ=new RegExp("^(href|src|data|usemap|longdesc|codebase|classid|profile|cite)$");API.removeAttribute=az;av=(function(){var bU,bY,bS,bV,bZ,bX,bT,bW;if(al&&A(al,"getAttribute")&&ay){if(aD){bX=new RegExp("^on");bT=new RegExp("[\\n\\r]","g");bW=new RegExp("^function [^\\(]*\\(\\) *{(.*)} *$");return function(b1,b0){var b2=arguments[2]||k(b1);if(b2&&typeof(b2.selectNodes)!="undefined"){return b1.getAttribute(b0)}if(ay(b1,b0)){bV=b0;b0=b0.toLowerCase();bY=bG[b0];if(!bY){if(aS.test(b0)){return b1["default"+b0.substring(0,1).toUpperCase()+b0.substring(1)]?"":null}if(b0=="style"){return(b1.style)?(b1.style.cssText||""):""}if(aZ.test(b0)){return b1.getAttribute(b0,2)}if(bX.test(b0)&&b1[b0]){bU=b1[b0].toString();if(bU){bU=bU.replace(bT,"");if(bW.test(bU)){return bU.replace(bW,"$1")}}return null}bZ=b1.tagName.toLowerCase();if(bZ=="select"&&b0=="type"){return null}if(bZ=="form"&&b1.getAttributeNode){bU=b1.getAttributeNode(b0);return(bU&&bU.nodeValue)?bU.nodeValue:null}}bS=i(bY||b0);if(typeof b1[bS]=="unknown"){return"[unknown]"}else{if(aZ.test(bS)){return b1.getAttribute(bS,2)}if(typeof b1[bS]=="boolean"){return(b1[bS])?"":null}if(typeof b1[bS]=="undefined"){return b1.getAttribute(bV)}if(b0=="value"&&b1.tagName.toLowerCase()=="input"&&b1.type.toLowerCase()=="text"){return b1.defaultValue}return(typeof b1[bS]!="string"&&b1[bS]!==null&&b1[bS].toString)?b1[bS].toString():b1[bS]}}return null}}return function(b2,b0){var b3=b0.toLowerCase();var b1=bG[b3]||(b3.indexOf("-")!=-1&&i(b3))||b3;if(typeof b2[b1]=="boolean"){if(aS.test(b3)){return b2["default"+b3.substring(0,1).toUpperCase()+b3.substring(1)]?"":null}return b2[b1]?"":null}if(bb&&A(b2,"hasAttribute")){return ay(b2,b0)?b2.getAttribute(b0):null}return b2.getAttribute(b0)}}})();API.getAttribute=av;var bP="/favicon.ico";if(av){var a3,g,aH=(function(){var bS=bv.createElement("a");if(bS&&A(bS,"setAttribute")){bS.setAttribute("href",bP);return bS.href!=bP}})();if(aH&&A(bv,"createElement")){g=(function(){var bU,bS={};var bT=function(bX,bV,bY){var bW=bV.toLowerCase();bY=bY||bv.createElement(bX);if(bY&&A(bY,"setAttribute")){bY.setAttribute(bW,bP);bS[bW]=bY[bV]==bP}};bT("form","action");bU=bv.createElement("img");bT("img","useMap",bU);bT("img","src",bU);bT("img","longDesc",bU);bT("link","href");bT("head","profile");bU=bv.createElement("object");bT("object","codeBase",bU);bT("object","classid",bU);bT("object","data",bU);bT("blockquote","cite");bT("area","href");return bS})();a3=bv.createElement("a")}x=function(bU,bS){var bV=bS.toLowerCase();var bT=bG[bV]||i(bV);var bX=a3;switch(typeof bU[bT]){case"boolean":return aS.test(bV)?bU["default"+bV.substring(0,1).toUpperCase()+bV.substring(1)]:bU[bT];case"undefined":return av(bU,bV);default:if(ay(bU,bS)){if(aH&&a3&&(aZ.test(bV)||bV=="action")&&g[bV]&&!(/^a$/i).test(bU.tagName)){var bW=arguments[2]||k(bU);if(bW&&bW!=global.document&&A(bW,"createElement")){bX=bW.createElement("a")}bX.setAttribute("href",av(bU,bV));return bX.href}return bV=="value"?av(bU,bV):bU[bT]}return null}};API.getAttributeProperty=x}if(al){ao=(function(){if(B(al,"children")){return function(bU){var bS,bW,bT,bV;if(arguments[1]){return bU.children}bS=[];bW=bU.children;for(bT=bW.length;bT--;){bV=bW[bT];if((bV.nodeType==1&&bV.tagName!="!")||(!bV.nodeType&&bV.tagName)){bS[bS.length]=bV}}return bS.reverse()}}if(A(al,"childNodes")){return function(bU){var bW,bS=bU.childNodes,bV=[];var bT=bS.length;while(bT--){bW=bS[bT];if((bW.nodeType==1&&bW.tagName!="!")||(!bW.nodeType&&bW.tagName)){bV.push(bS[bT])}}return bV.reverse()}}})()}API.getChildren=ao;aE=new RegExp("[^\\t\\n\\r ]");API.isEmptyTextNode=function(bS){return !aE.test(bS.data)};var aT;bE=function(bS){return false};aT=bE();API.isXmlParseMode=bE;be=(function(){if(A(bv,"createElement")){return(function(){if(aT&&A(bv,"createElementNS")){return function(bT,bS){return(bS||global.document).createElementNS("http://www.w3.org/1999/xhtml","html:"+bT)}}return function(bT,bS){return(bS||global.document).createElement(bT)}})()}})();API.createElement=be;aw=function(bS,bT){bS.src=bT};API.changeImage=aw;if(this.Image){aI=function(bU,bT,bS){var bV=new global.Image();bV.src=bU;bV.height=bT;bV.width=bS;ba[ba.length]=bV;return ba.length-1};API.preloadImage=aI;if(be){bF=function(bT){var bS=be("img");var bU=ba(bT);bS.src=bU.src;bS.height=bU.height;bS.width=bU.width;return bS};API.clonePreloadedImage=bF}}aw=function(bS,bT){if(typeof bT=="number"){if(ba[bT]){bS.src=ba[bT].src}}else{bS.src=bT}};API.changeImage=aw;if(al&&typeof al.innerHTML=="string"){if(be&&!bE()&&typeof al.outerHTML=="string"&&A(al,"childNodes")){br=be("select");if(br&&A(br,"insertAdjacentHTML")&&typeof br.canHaveChildren=="boolean"){br.innerHTML="<option>T</option>";bM=(!br.options.length)}}if(bM){aY=function(bV,bU){var bT=f(bV);bV.id=bV.id||bT;var bS=bV.parentNode;bV.innerHTML="";bV.outerHTML=bV.outerHTML.replace(">",">"+bU+"</select>");if(bV.parentNode!==bS){bV=a0(bV,bS,bT)}return bV}}aW=(function(){var bV;var bS=new RegExp("^[^<]*<script","i");function bT(bX,bW){switch(bV){case"table":L=be("div",bW);return"<table>"+bX+"</table>";case"caption":case"colgroup":case"col":case"thead":case"tbody":case"tfoot":L=be("div",bW);return["<table><",bV,">",bX,"</",bV,"></table>"].join("");case"form":L=be("div",bW)}return bX}function bU(bW){switch(bV){case"table":return L.firstChild;case"caption":case"colgroup":case"col":case"thead":case"tbody":case"tfoot":return L.firstChild.firstChild;default:return L}}if(A(be&&be("div")||al,"insertAdjacentHTML")){return function(bX,bW){bV=S(L);if(!bW&&bS.test(bX)&&!bE()){bX="&nbsp;"+bX}bX=bT(bX);L.insertAdjacentHTML("afterBegin",bX);L=bU(bX)}}return function(bX,bW){bV=S(L);if(!bW&&bS.test(bX)&&!bE()){bX="&nbsp;"+bX}bX=bT(bX);L.innerHTML=bX;L=bU(bX)}})();if(A(al,"removeChild")&&be&&W(al,"firstChild")){bm=function(bV,bU,bT,bS){var bW=S(bV);if(bW=="head"){bW="div"}L=be(bW,bT);if(L){aW(bU,bS);while(L.firstChild){bV.appendChild(L.firstChild)}L=null}};au=function(bU,bT,bS){if(aa(bU)){bm(bU,bT,k(bU),true)}};API.addElementHtml=au}bI=function(bT,bS){var bU;L=be("div",bS);if(L){aW(bT);bU=L.childNodes;L=null}return bU};API.htmlToNodes=bI;bh=(function(){if(bm){return function(bT,bS){if(aY&&S(bT)=="select"){return aY(bT,bS)}if(aa(bT)){while(bT.firstChild){bT.removeChild(bT.firstChild)}bm(bT,bS,k(bT))}return bT}}})();API.setElementHtml=bh;a8=(function(){if(typeof al.outerHTML=="string"){return function(bT,bS){bT.outerHTML=bS;return bT}}if(A(al,"insertBefore")&&W(al,"firstChild")){return function(bX,bU){var bT;var bS=k(bX);var bW=p(bX);var bV=bX.nextSibling;L=be("div",bS);if(L&&bW){aW(bU,bS);bW.removeChild(bX);bT=L.firstChild;if(bV){bW.insertBefore(L.firstChild,bV)}else{bW.appendChild(L.firstChild)}L=null;return bT}return bX}}})();API.setElementOuterHtml=a8}}var z=function(bS){return[bS.clientTop||0,bS.clientLeft||0]};API.getElementBordersOrigin=z;a6=!!(al&&W(al,"style"));if(a6){bw={};a9=["display","visibility","position"];C=3;while(C--){bw[a9[C]]=typeof al.style[a9[C]]=="string"}API.canAdjustStyle=function(bS){return bw[bS]}}var aJ,bq,d,s,aR,aM,bg,I,ab,a2;var bx,ah,G,aq;var aF;var a7,K,af;var bl,T;var at,bB,aj,a1;var aN=new RegExp("^(-)?[\\d\\.]*px$","i");var bi=new RegExp("^(-)?[\\d\\.]*(em|pt|cm|in)$","i");var ae=new RegExp("color","i");var n=new RegExp("rgb[a]*\\((\\d*),[\\s]*(\\d*),[\\s]*(\\d*)[),]","i");var P=new RegExp("^rgba\\(\\d+,\\s*,\\d+,\\s*\\d,\\s*0\\)$","i");var aO={aqua:"00FFFF",green:"008000",navy:"000080",silver:"C0C0C0",black:"000000",gray:"808080",olive:"808000",teal:"008080",blue:"0000FF",lime:"00FF00",purple:"800080",white:"FFFFFF",fuchsia:"FF00FF",maroon:"800000",red:"FF0000",yellow:"FFFF00"};var Q,o,ad=["WebkitOpacity","KhtmlOpacity","MozOpacity","opacity"];if(al){if(a6){aF=(function(){var bS=(typeof al.style.top=="number")?0:"px";return function(bU,bV,bT){if(bV!==null){bU.style.top=bV+bS}if(bT!==null){bU.style.left=bT+bS}}})();API.positionElement=aF;K=(function(){var bS=(typeof al.style.height=="number")?0:"px";return function(bV,bU,bT){if(bU!==null&&bU>=0){bV.style.height=bU+bS}if(bT!==null&&bT>=0){bV.style.width=bT+bS}}})();API.sizeElement=K;a7=function(bS,bT){if(bS.offsetHeight!=bT[0]){bT[0]-=(bS.offsetHeight-bT[0]);if(bT[0]>=0){bS.style.height=bT[0]+"px"}}if(bS.offsetWidth!=bT[1]){bT[1]-=(bS.offsetWidth-bT[1]);if(bT[1]>=0){bS.style.width=bT[1]+"px"}}return bT};af=function(bS,bT){K(bS,bT);a7(bS,bT)};API.sizeElementOuter=af;bl=function(bS,bT){aF(bS,bT[0],bT[1]);K(bS,bT[2],bT[3])};T=function(bS,bT){bl(bS,bT);a7(bS,[bT[2],bT[3]])};API.positionAndSizeElement=bl;API.positionAndSizeElementOuter=T;aJ=(typeof al.style.cssFloat=="string")?"cssFloat":"styleFloat";aR=function(bT,bS){if(bS=="float"){bS=aJ}return(bT)?bT[bS]||null:null};bq=(function(){if(W(al,"currentStyle")){return function(bT,bS){return aR(bT.currentStyle,bS)}}})();API.getCascadedStyle=bq;d=(function(){var bT=new RegExp("^(absolute|fixed)$");var bS=new RegExp("^(height|width|left|top|right|bottom|margin.+|border.+|padding.+)$","i");if(W(bv,"defaultView")&&A(bv.defaultView,"getComputedStyle")){return function(bX,bW){var bU=k(bX);var bV=bU.defaultView.getComputedStyle(bX,null);return aR(bV,bW)}}if(bq){return function(bY,bX){var b1,bW,bU,b0,bV;var bZ=bq(bY,bX);if(bZ=="inherit"){bW=p(bY);if(bW){return d(bW,bX)}}switch(bX){case"float":bU=d(bY,"position");return(bU&&bT.test(bU))?"none":bZ;case"display":if(bZ!="none"){bW=p(bY);while(bW){if(bq(bW,"display")=="none"){return"none"}bW=p(bW)}bU=d(bY,"position");if(bU&&bT.test(bU)){bZ="block"}else{b1=bq(bY,"float");if(b1&&b1!="none"){bZ="block"}}}return bZ}if(aN.test(bZ)){return bZ}if(bi.test(bZ)){if(bS.test(bX)){if(parseFloat(bZ)){if(W(bY,"runtimeStyle")){b0=bY.style.left;bV=bY.runtimeStyle.left;bY.runtimeStyle.left=bY.currentStyle.left;bY.style.left=bZ;bZ=bY.style.pixelLeft;bY.style.left=b0;bY.runtimeStyle.left=bV;return bZ+"px"}}else{return"0px"}}return null}return((bZ=="auto"&&bX!="overflow")||bZ=="inherit")?null:bZ}}})();API.getComputedStyle=d;s=function(bT,bS){var bU=aR(bT.style,bS);if(typeof bU=="number"){bU+="px"}return bU};API.getInlineStyle=s;aM=(function(){if(W(bv,"defaultView")&&A(bv.defaultView,"getOverrideStyle")){return function(bU,bT){var bS=k(bU).defaultView.getOverrideStyle(bU,null);return aR(bS,bT)}}if(W(al,"runtimeStyle")){return function(bT,bS){return aR(bT.runtimeStyle,bS)}}})();API.getOverrideStyle=aM;Q=(function(bV){var bS,bU,bX;var bW=new RegExp("alpha\\(opacity=[^\\)]+\\)","i");var bT=function(bY,bZ){bY.style[bU]=bZ};bS=ad.length;while(bS--){if(typeof bV.style[ad[bS]]=="string"){bU=ad[bS];return bT}}if(typeof bV.style.filter=="string"){return function(bY,bZ){bX=bY.style;if(bY.currentStyle&&!bY.currentStyle.hasLayout){bX.zoom=1}if(!bW.test(bX.filter)){bX.filter+=" alpha(opacity="+(bZ*100)+")"}else{bX.filter=bX.filter.replace(bW,(bZ>=0.9999)?"":"alpha(opacity="+(bZ*100)+")")}}}})(al);API.setOpacity=Q;o=(function(bV){var bS,bU,bW=new RegExp("opacity\\s*=\\s*([^\\)]*)","i");var bT=function(bX){var bY=bX.style[bU];if(bY){return parseFloat(bY)}if(d){bY=d(bX,"opacity");if(bY!==null){return parseFloat(bY)}}return 1};bS=ad.length;while(bS--){if(typeof bV.style[ad[bS]]=="string"){bU=ad[bS];return bT}}if(typeof al.style.filter=="string"&&bq){return(function(){var bX;return function(bZ){var bY=bq(bZ,"filter");if(bY){bX=bY.match(bW);return(bX)?parseFloat(bX[1])/100:1}return 1}})()}})(al);API.getOpacity=o;aj=function(bS){return"0123456789ABCDEF".substring(bS,bS+1)};bB=function(bS){return aj(Math.floor(bS/16))+aj(bS%16)};a1=function(bS){return[bB(bS[0]),bB(bS[1]),bB(bS[2])].join("")};at=function(bT){var bS=n.exec(bT);if(bS){return["#",bB(parseInt(bS[1],10)),bB(parseInt(bS[2],10)),bB(parseInt(bS[3],10))].join("")}if(P.test(bT)){return"transparent"}return(aO[bT])?"#"+aO[bT]:null};bg=(function(){var bS=(function(){if(d){return function(bV,bU){var bW,bT,bX;if(aM){bW=aM(bV,bU)}if(bW){return bW}bX=d(bV,bU);if(bX){return bX}else{bT=s(bV,bU);bX=bq&&bq(bV,bU);if(bX){return bX}return((bU=="display")?"none":bT)||null}}}return function(bW,bV){var bU,bT=s(bW,bV);if(bV=="display"&&(bT!="none")){bU=p(bW);while(bU){if(bU.style.display=="none"){return"none"}bU=p(bU)}}return bT}})();return function(bU,bT){var bV=bS(bU,bT);return(ae.test(bT))?at(bV)||bV:bV}})();API.getStyle=bg;ab=function(bT,bS,bU){if(bS=="float"){bS=aJ}bT.style[bS]=bU};API.setStyle=ab;a2=function(bT,bU){var bS;for(bS in bU){if(a(bU,bS)){ab(bT,bS,bU[bS])}}};API.setStyles=a2;I=function(bT,bS){var bU=bg(bT,bS);if(aN.test(bU)){return parseFloat(bU)}if(bi.test(bU)&&!parseFloat(bU)){return 0}return null};API.getStylePixels=I;bx=function(bT){var bS;if(bg(bT,"position")!="fixed"&&W(bT,"offsetParent")){do{bT=bT.offsetParent;if(bT){bS=bg(bT,"position")}}while(bT&&(!bS||bS=="static"));return bT}};API.getPositionedParent=bx;aq=function(bS){return bg(bS,"visibility")!="hidden"};API.isVisible=aq;G=function(bS){return bg(bS,"display")!="none"};API.isPresent=G;ah=function(bT){var bS=bg(bT,"position");return(bS)?(bS!="static"):false};API.isPositionable=ah}}var m,bn,bp,bs,aG,c;var ag,aC,aV,an,E,ar,bo;var bk={},ac={},r={};var bH=0;if(A(bv,"createElement")){bo=function(bS,bU){bS="on"+bS;var bT=bS+(bU&&bU.tagName||"");if(typeof r[bT]=="undefined"){r[bT]=true;bU=bU||global.document.createElement("div");if(bU&&A(bU,"setAttribute")){if(typeof bU[bS]=="undefined"){bU.setAttribute(bS,'window.alert(" ");');r[bT]=A(bU,bS)}}}return r[bT]}}API.isEventSupported=bo;function ai(){var bS=API.attachedListeners.length;while(bS--){API.attachedListeners[bS].el.detachEvent("on"+API.attachedListeners[bS].ev,API.attachedListeners[bS].fn)}API.attachedListeners=null;global.detachEvent("onunload",ai)}var Y=0;function bA(bS){if(bS.tagName){return f(bS)}else{if(bS==global){return"_apiwin"}return(bS._targetId=bS._targetId||("_api"+Y++))}}function N(bW,bX,bT,bY,bS,bV){var bU=bA(bW);if(!bk[bU]){bk[bU]={}}if(!bk[bU][bX]){bk[bU][bX]={}}bk[bU][bX][bT]=bY;ac[bT]={fn:bS,context:bV}}function bt(bU,bV,bS){var bT=bA(bU);return(bk[bT]&&bk[bT][bV]&&bk[bT][bV][bS])}function bz(bU,bV,bS){var bT=bA(bU);if(bk[bT]&&bk[bT][bV]){bk[bT][bV][bS]=null}}API.eventContexts=[];var u=0;var V=function(bS){return(function(){var bU=(function(){if(Function.prototype.call){return function(bV,bW){return function(bX){return bV.call(API.eventContexts[bW].context,bX||API.eventContexts[bW].globalContext.event)}}}else{return function(bV,bW){return function(bZ){var bX=API.eventContexts[bW].context;bX.__mylibevent=bV;var bY=bX.__mylibevent(bZ||API.eventContexts[bW].globalContext.event);bX.__mylibevent=null;return bY}}}})();var bT;if(A(bS,"addEventListener")){return function(bY,bX,bW,bV){var bZ=(bV)?function(b0){return bW.call(bV,b0)}:bW;if(!bW._fnId){bW._fnId=++bH}N(bY,bX,bW._fnId,bZ,bW,bV);return bY.addEventListener(bX,bZ,false)}}if(A(bS,"attachEvent")){bT=function(bY,bX,bW,bZ,bV){if(!API.attachedListeners){API.attachedListeners=[];global.attachEvent("onunload",ai)}N(bY,bX,bW._fnId,bZ,bW,bV);bY.attachEvent("on"+bX,bZ);if(!(bX=="unload"&&bY==global)){API.attachedListeners[API.attachedListeners.length]={el:bY,ev:bX,fn:bZ}}bY=null}}if(bT){return function(b0,bY,bX,bW){var bZ,bV=k(b0);if((bV||b0)==global.document){bZ=global}else{if(H){bZ=(bV&&H(bV))||H(b0)||b0}}if(bZ){API.eventContexts[u]={context:bW||b0,globalContext:bZ};var b1=bU(bX,u++);if(!bX._fnId){bX._fnId=++bH}if(!bt(b0,bY,bX._fnId)){bT(b0,bY,bX,b1,bW)}return true}return false}}})()};var O=function(bT){var bS=(function(){if(A(bT,"removeEventListener")){return function(bW,bV,bU){bW.removeEventListener(bV,bU,false)}}if(A(bT,"detachEvent")){return function(bW,bV,bU){bW.detachEvent("on"+bV,bU)}}})();if(bS){return function(bW,bV,bU){var bX;if(bU._fnId){bX=bt(bW,bV,bU._fnId);if(bX){bz(bW,bV,bU._fnId);bS(bW,bV,bX)}}else{bS(bW,bV,bU)}}}};function ax(bS){var bT=V(bS);return bT&&function(bX,bW,bU,bV){return bT(bU||bS,bX,bW,bV)}}function j(bT){var bS=O(bT);return bS&&function(bW,bV,bU){return bS(bU||bT,bW,bV)}}if(V){if(al){m=V(al);if(m){bs=O(al)}API.attachListener=m;API.detachListener=bs}if(bv){bn=ax(bv);if(bn){aG=j(bv)}API.attachDocumentListener=bn;API.detachDocumentListener=aG}bp=ax(this);if(bp){c=j(this)}}API.attachWindowListener=bp;API.detachWindowListener=c;a5=function(bY,bV){var bU,bT,bX,bW=f(bY),bZ=f(bV),bS=bk[bW];if(bS&&bW!=bZ){for(bU in bS){if(a(bS,bU)){for(bT in bS[bU]){if(a(bS[bU],bT)&&bS[bU][bT]){bX=ac[bT];if(bX){bs(bY,bU,bX.fn);m(bV,bU,bX.fn,bX.context)}}}}}}};l=function(bZ,bY,bX){var bU,bT,bW,bV=f(bZ),bS=bk[bV];if(!bX){if(bS){for(bU in bS){if(a(bS,bU)){for(bT in bS[bU]){if(a(bS[bU],bT)&&bS[bU][bT]){bW=ac[bT];if(bW){bs(bZ,bU,bW.fn)}}}}}}}if(bY&&bZ.childNodes){bU=bZ.childNodes.length;while(bU--){if(bZ.childNodes[bU].nodeType==1){l(bZ.childNodes[bU],true)}}}};API.purgeListeners=l;if(m){E=function(bS){return(bS.type=="keypress")?bS.charCode||bS.keyCode||bS.which:bS.which||bS.keyCode};API.getKeyboardKey=E;ag=function(bS){if(bS.stopPropagation){bS.stopPropagation()}else{bS.cancelBubble=true}};API.cancelPropagation=ag;aC=function(bS){if(bS.preventDefault){bS.preventDefault()}if(global.event){global.event.returnValue=false}return false};API.cancelDefault=aC;ar=function(bT){var bS={};if(typeof bT.which!="undefined"){bS.left=(bT.which==1);bS.middle=(bT.which==2);bS.right=(bT.which==3)}else{bS.left=(bT.button&1);bS.middle=(bT.button&4);bS.right=(bT.button&2)}return bS};API.getMouseButtons=ar;aV=function(bS){return(bS.target)?((bS.target.nodeType==3)?bS.target.parentNode:bS.target):bS.srcElement};API.getEventTarget=aV;an=function(bS){if(bS.relatedTarget){return(bS.relatedTarget.nodeType==3)?bS.relatedTarget.parentNode:bS.relatedTarget}if(bS.srcElement){if(bS.srcElement==bS.fromElement){return bS.toElement}if(bS.srcElement==bS.toElement){return bS.fromElement}}return null};API.getEventTargetRelated=an}var bQ,aA;var bN,by;var bJ;var bD;var Z;var bd,aB,aQ,v;var e;var aP;var b,t;if(bC){bC(function(){var b3,bV;bQ=function(ch){ch=ch||global.document;if(W(ch,"body")){return ch.body}if(typeof ap=="function"){return ap("body",ch)[0]||null}return null};API.getBodyElement=bQ;b3=bQ();aA=function(ch){ch=ch||global.document;return(ch.documentElement&&(!ch.compatMode||ch.compatMode.indexOf("CSS")!=-1))?ch.documentElement:bQ(ch)};API.getContainerElement=aA;bV=aA();var bY;var bS;var b7,bW;var cf,b4=bR();var b9,cc;if(b4&&A(global.document,"getBoxObjectFor")&&typeof z=="function"&&typeof getElementMarginsOrigin=="function"){(function(){var ci=getElementMarginsOrigin(b4);var ch=z(b4);var cj=global.document.getBoxObjectFor(b4);if(!cj){return}if((ci[0]||ci[1]||ch[0]||ch[1])&&(cj.y==ci[0]+ch[0]&&cj.x==ci[1]+ch[1])){cf=function(cl){var ck,cp;var cm=bR(cl);var co=z(cm);var cn=getElementMarginsOrigin(cm);cp=co[0]+cn[0];ck=co[1]+cn[1];return[cp,ck]}}else{if(cj.x||cj.y){cf=function(ck){ck=ck||global.document;var cl=bR(ck);var cm=ck.getBoxObjectFor(cl);return[cm.x,cm.y]}}}if(cf){b9=function(cm,ck){var cl=cf(ck);cl[0]+=cm[0];cl[1]+=cm[1];return cl};cc=function(cm,ck){var cl=cf(ck);cl[0]=cm[0]-cl[0];cl[1]=cm[1]-cl[1];return cl};API.viewportToHtmlOrigin=b9;API.htmlToViewportOrigin=cc}})()}aP=(function(){var cp;var cn,cs,cj,cm,ck,cl;if(typeof a6=="boolean"&&a6&&be&&b3&&b3.appendChild&&b3.removeChild){var ch=be("div");var ci=be("div");if(ci&&ch){cn=(function(){a2(ch,{position:"absolute",visibility:"hidden",left:"0",top:"0",padding:"0",border:"solid 1px black",overflow:"auto"});a2(ci,{position:"static",left:"0",top:"0"});ch.appendChild(ci);b3.appendChild(ch);cp=ci.offsetLeft==-1;b3.removeChild(ch);ch.removeChild(ci);return cp})();cs=(function(){var ct=z(b3)[1];if(ct){b3.appendChild(ch);cp=ch.offsetLeft==-ct;b3.removeChild(ch);return cp}})();cj=(function(){a2(ch,{position:"static",height:"0",width:"0",border:"none"});a2(ci,{height:"0",width:"0"});ch.appendChild(ci);b3.appendChild(ch);cp=ci.offsetParent===b3;b3.removeChild(ch);ch.removeChild(ci);return cp})();if(A(global.document,"createTextNode")){cm=(function(){var cu=be("span");var ct=global.document.createTextNode("Initializing...");cu.appendChild(ct);ci.appendChild(cu);a2(ch,{overflow:"auto"});ch.appendChild(ci);b3.appendChild(ch);var cv=cu.offsetTop;ch.scrollTop=1;cp=cv!=cu.offsetTop;b3.removeChild(ch);return cp})()}ck=(function(){a2(ch,{position:"absolute",visibility:"hidden",left:"0",top:"0",padding:"0",border:"solid 1px"});a2(ci,{position:"absolute",left:"0",top:"0",margin:"0"});ch.appendChild(ci);b3.appendChild(ch);cp=ci.offsetLeft==1;b3.removeChild(ch);ch.removeChild(ci);return cp})();var cq=I(b3,"borderLeftWidth");if(cq){cl=(function(){ch=API.createElement("div");a2(ch,{position:"static",visibility:"hidden",padding:"0",border:"0"});if(b3.firstChild){b3.insertBefore(ch,b3.firstChild)}else{b3.appendChild(ch)}cp=ch.offsetLeft==cq;b3.removeChild(ch);return cp})()}ci=ch=null}}function cr(cu,ct){var cy,cx,cw,cv=[0,0,0,0];var cz=bg(cu,"position");if(cz!="fixed"){while(cu.parentNode&&cu.parentNode!==ct){cu=cu.parentNode;cy=bg(cu,"position")||"static";cx=bg(cu,"overflow");if(!((cy=="static"&&cz=="absolute")||cz=="fixed")){if((cu.scrollTop||cu.scrollLeft)&&cx!="visible"){cv[0]-=(cu.scrollTop||0);cv[1]-=(cu.scrollLeft||0);if(cn){cw=z(cu);cv[2]+=cw[0];cv[3]+=cw[1]}}}}}return cv}function co(cu,cy,cD){var cG=0,cE=0,cz,cC,cF;var ct,cA=[0,0,0,0];var cx=cu;var cw=k(cu);if(cw){cz=bQ(cw)}if(!cu.offsetParent&&typeof bJ=="function"){return bJ(cu,null)}if(cu.offsetParent===cz){if(cy&&cj){var cv=co(cy);cE=-cv[0];cG=-cv[1]}}if(cy&&(ck||(cj&&cu.offsetParent==cz))){cC=z(cy);cE-=cC[0];cG-=cC[1]}if(typeof bg=="function"){var cB=bg(cu,"display");cA=cr(cu,cz);if(cD){if(cm&&cB=="inline"){cE-=cA[0];cG-=cA[1]}}else{if((!cm||(!cB||cB!="inline"))){cE+=cA[0];cG+=cA[1]}}if(cn){cE+=cA[2];cG+=cA[3]}}if(typeof bg=="function"&&cw&&typeof getScrollPosition=="function"){cF=bg(cu,"position");if(cF=="fixed"){ct=getScrollPosition(cw);cG+=ct[1];cE+=ct[0]}}do{if(cu!==cz||(cu.offsetLeft>0&&cu.offsetTop>0)){if(cu.offsetLeft){cG+=cu.offsetLeft}if(cu.offsetTop){cE+=cu.offsetTop}}if(!ck&&cu!==cx&&(!cl||cu!==cz)){cp=z(cu);cE+=cp[0];cG+=cp[1]}if((cF=="absolute"||cF=="fixed")&&cu.offsetParent===cz){if(cs){cp=z(cz);cE+=cp[0];cG+=cp[1]}cu=null}else{cu=cu.offsetParent}}while(cu&&cu!==cy);return[cE,cG]}if(A(global.document,"getBoxObjectFor")){return function(cu,cw,cC){var cE,cB,cy,cA,ct,cx;var cF=(cw)?aP(cw):[0,0];var cv=k(cu);var cz=bQ(cv);var cD=cv.getBoxObjectFor(cu);if(!cD){return co(cu,cw,cC)}cE=[cD.y,cD.x];if(typeof bg=="function"){cy=cu;while(cy&&cy.nodeType==1&&cx!="fixed"){cx=bg(cy,"position");cy=cy.parentNode}if(cx=="fixed"){ct=(typeof getScrollPosition=="function")?getScrollPosition(cv):[0,0];cE[0]+=ct[0];cE[1]+=ct[1];if(cc){cE=cc(cE,cv)}}else{if(!cC){cA=cr(cu,cz);cE[0]+=cA[0]+cA[2];cE[1]+=cA[1]+cA[3]}}}cB=z(cu);return[cE[0]-cB[0]-cF[0],cE[1]-cB[1]-cF[1]]}}if(b3&&A(b3,"getBoundingClientRect")){return function(cv,cx,cz){if(cx){return co(cv,cx,cz)}else{var cC,cA;var cB=cv.getBoundingClientRect();var cw=k(cv);var cy=bQ(cw);var cu=bR(cw);var ct=[0,0];cA=cB.top;cC=cB.left;if(cu){if(cy&&cu!=cy&&cu.clientWidth===0&&typeof cy.clientTop=="number"){cu=cy}if(cu.clientTop){cA-=cu.clientTop}if(cu.clientLeft){cC-=cu.clientLeft}if(cu.scrollTop||cu.scrollLeft){ct=[cu.scrollTop,cu.scrollLeft]}}if(typeof getScrollPosition=="function"){ct=getScrollPosition(cw)}cA+=ct[0];cC+=ct[1];return[cA,cC]}}}return co})();API.getElementPosition=aP;if(bw){if(b3&&d&&A(b3,"appendChild")&&typeof be=="function"){b7=be("div");if(b7){a2(b7,{height:"0",width:"0",padding:"0",top:"0",left:"0",position:"absolute",visibility:"hidden",border:"solid 1px"});b3.appendChild(b7);bY=(d(b7,"height")=="2px");bW=be("div");if(bW){a2(bW,{margin:"0",position:"absolute"});b7.appendChild(bW);bS=(d(bW,"left")=="1px");b3.removeChild(b7);bW=null}b7=null}}bD=function(ch){var ci=[];ci[0]=I(ch,"height");ci[1]=I(ch,"width");if((ci[0]===null||ci[1]===null||bY)){if(typeof ch.offsetHeight=="number"){ci[0]=ch.offsetHeight;ci[1]=ch.offsetWidth;ch.style.height=ci[0]+"px";ch.style.width=ci[1]+"px";a7(ch,ci)}else{return null}}return ci};API.getElementSizeStyle=bD;Z=function(ch,ci){var cj;if(typeof ch.height!="number"){cj=bg(ch,"display");if(!cj||cj=="inline"){if(typeof presentElement=="function"){presentElement(ch,true);if(ch.style.display=="inline"){ch.style.display=ci||"block"}return true}return false}}return true};bJ=(function(){var ch;if(b3&&typeof b3.offsetLeft=="number"){ch=function(ck,cm,ci){var cl=ck.offsetLeft;var cj=ck.offsetTop;aF(ck,cm,ci);if(cl!=ck.offsetLeft){ci-=(ck.offsetLeft-cl)}if(cj!=ck.offsetTop){cm-=(ck.offsetTop-cj)}if(cl!=ci||cj!=cm){aF(ck,cm,ci)}return[cm,ci]}}return function(ck,cj){var cn=bg(ck,"position");var ci=I(ck,"left");var cm=I(ck,"top");if(ci!==null&&cm!==null&&(!bS||ah(ck))){return(bS&&ch&&(ci+"px"!=ck.style.left||cm+"px"!=ck.style.top))?ch(ck,cm,ci):[cm,ci]}if(W(ck,"offsetParent")&&typeof aP=="function"){cj=(typeof cj=="undefined")?bx(ck):cj;if(!cj&&cn=="relative"){ci=cm=0}else{var cl=(cj)?aP(ck,cj,true,cj):aP(ck,null,true,cj);cm=cl[0];ci=cl[1]}}else{if(ah(ck)){ci=cm=0}else{return null}}return(ch)?ch(ck,cm,ci):[cm,ci]}})();API.getElementPositionStyle=bJ;if(bw.visibility){bN=function(cj,ch,ci){if(typeof ch=="undefined"){ch=true}ci=ci||{};if(ch&&typeof presentElement!="undefined"){if(ci.skipPresenceCheck||bg(cj,"display")=="none"){presentElement(cj,ci.display)}}cj.style.visibility=(ch)?"visible":"hidden";if(!ch&&typeof presentElement!="undefined"&&ci.removeOnHide){cj.style.display="none"}};API.showElement=bN;by=function(ci,ch){bN(ci,!aq(ci)||!G(ci),ch)};API.toggleElement=by}if(bw.position){v=function(ci,ch){var ck;ch=(typeof ch=="undefined")?bx(ci):ch;var cj=bg(ci,"position");if(cj!="relative"){if(ch){ck=aP(ci,ch);aF(ci,ck[0],ck[1])}else{aF(ci,0,0)}ci.style.position="relative"}};API.relativeElement=v;bd=function(ci,ch){ch=(typeof ch=="undefined")?bx(ci):ch;var cl=aP(ci,ch);var ck=bD(ci);var cj=(typeof getElementMarginsOrigin=="function")?getElementMarginsOrigin(ci):[0,0];if(ck){K(ci,ck[0],ck[1])}if(cl){aF(ci,cl[0]-cj[0],cl[1]-cj[1])}ci.style.position="absolute"};API.absoluteElement=bd}aB=function(cj,ci,ch){var ck=bg(cj,"position");if(!ck||ck=="static"){if(bw.position){((!ch||ch=="absolute")?bd:v)(cj,ci);return true}return false}return true};aQ=function(ch,ci){return(bg(ch,"position")=="relative")?aP(ch,ci,true):bJ(ch,ci)};e=function(ci,cn,cr){var co,cm;var ck=(typeof getElementMarginsOrigin=="function")?getElementMarginsOrigin(ci):[0,0];var cp=bx(ci);var cq=bx(cn);if(!aB(ci,cp)){return false}if(cp){if(cp===cq){co=aQ(cn,cq)}else{return false}}else{co=aP(cn);var cl=bg(ci,"position");if(cl=="fixed"){if(typeof getScrollPosition!="undefined"){var cj=k(ci);var ch=getScrollPosition(cj);co[0]-=ch[0];co[1]-=ch[1]}}}if(cr){cm=aL(cn);K(ci,cm[0],cm[1]);a7(ci,cm)}aF(ci,co[0]-ck[0],co[1]-ck[1]);return true};API.overlayElement=e}if(!bw){return}var b2,bZ,cb;var cd,b1;var ce,b6,bX,b8,b5,b0,bT,ca,cg;var bU=function(ch,ci){if(!G(ch)){if(typeof presentElement=="function"){presentElement(ch,true,ci);return G(ch)}return false}return true};b2=function(cm){var cj,cp,cG,cB,cF,ck,ch,cE,cA,cJ,cr,cD,cs,cl,cK,ci,cH,cv,cz,cI,cL;var cy=cm||{};function co(cO,cN){cp(cj,cO,cD,cN)}function cu(){global.clearInterval(cK);cK=0}function cC(cN){cu();if((!cr||!cr(cj,cN))&&(cN||ck)){co((cG)?cv:cH,(ck)?3:2)}if(cA){cA(cj,cN)}}function cq(){if(--cF){if(cB=="inandout"||cB=="outandin"){cG=!cG}ci=new Date()}else{cC()}}function cn(){if((cB=="inandout"&&cG)||(cB=="outandin"&&!cG)){co(cI*(cv-cH));cG=!cG;if(cJ){cJ(cj,cF)}ci=new Date()}else{cC()}}function cx(){cz=((new Date()-ci)/ch);if(cz>1){cz=1}cI=cz;if(!cG){cI=1-cI}if(cE&&cz<1){cI=cE(cI)}co(cI*(cv-cH));if(cz==1){if(cB=="in"||cB=="out"||(cB=="inandout"&&!cG)||(cB=="outandin"&&cG)){cq()}else{cn()}}}function cM(){cC(true)}function ct(cO,cN){return(typeof cO[cN]=="undefined")?cy[cN]:cO[cN]}function cw(cO,cN){return function(cQ,cS,cR,cP){cO(cQ,cS,cR,cP);cN(cQ,cS,cR,cP)}}this.start=function(cQ,cP,cR,cO,cS){var cN;if(cK){cM()}cP=cP||{};cj=cQ;cH=ct(cP,"from")||0;cv=ct(cP,"to")||1;cB=(cP.dir||"in").toLowerCase();cG=cB!="out"&&cB!="outandin";ch=ct(cP,"duration");cE=ct(cP,"ease");cA=cR;cJ=cO;cr=cS;cD={};cs=ct(cP,"effectParams");if(cs){for(cN in cs){if(a(cs,cN)){cD[cN]=cs[cN]}}}ck=ct(cP,"revert");cL=ct(cP,"effects");if(typeof cL!="function"){cN=cL.length;while(cN--){cp=(cp)?cw(cp,cL[cN]):cL[cN]}}else{cp=cL}cl=ct(cP,"fps")||30;ci=new Date();cF=ct(cP,"repeat")||1;cK=global.setInterval(cx,1000/cl);co((cG)?cH:cv,1)};this.stop=function(cN){if(cN){cG=(cB=="in"||cB=="outandin");cM()}else{cC()}};this.busy=function(){return !!cK}};API.EffectTimer=b2;bZ=function(ci,cj,ck){var ch=cj.length;while(ch--){ck[cj[ch]]=ci.style[cj[ch]]}};cb=function(ci,cj,ck){var ch=cj.length;while(ch--){ci.style[cj[ch]]=ck[cj[ch]]}};if(typeof bN=="function"){ca=bN;bN=API.showElement=(function(){var cj={};var ch={};function ci(cm,ck,cl){if(!ck&&(cl&&cl.removeOnHide)&&typeof presentElement=="function"){presentElement(cm,false)}}return function(cp,cl,cm,cq){var co,ck,cr,cn;cm=cm||{};cn=f(cp);if(cj[cn]){cj[cn].stop(true);presentElement(cp,cm.display)}if(cm.effects){co=new b2();cm.dir=(cl)?"in":"out";cm.revert=true;ch[cn]=cq;if(bU(cp,cm.display)){ck=function(cs,ct){ci(cs,cl,cm);co=null;cj[cn]=null;if(ch[cn]){ch[cn](cs,cl)}};cr=function(cs,ct){if(!cl&&!ct){ca(cs,false)}};cj[cn]=co;co.start(cp,cm,ck,null,cr)}}else{ca(cp,cl,cm);if(cq){cq()}}return cp}})();by=API.toggleElement=function(ci,ch,cj){return bN(ci,!aq(ci)||!G(ci),ch,cj)};bN.async=true;by.async=true}if(typeof K=="function"){cg=K;K=(function(){var ci={};var ch={};return function(cj,cm,co,cr,cl){var cq,ck,cp,cn;if(cr&&cr.duration){cn=f(cj);if(ci[cn]){ci[cn].stop(true)}cq=new b2();cr.effects=b.grow;cp=cr.effectParams||{};cp.targetSize=[cm,co];cr.effectParams=cp;ch[f(cj)]=cl;ck=function(){cq=null;ci[cn]=null;if(ch[cn]){ch[cn](cj)}};ci[cn]=cq;cq.start(cj,cr,ck)}else{cg(cj,cm,co);if(cl){cl(cj)}}}})();K.async=true;API.sizeElement=K}if(typeof aF=="function"){ce=aF;aF=(function(){var ci={};var ch={};return function(cj,co,ck,cr,cm){var cq,cl,cp,cn;if(cr&&cr.duration){cn=f(cj);if(ci[cn]){ci[cn].stop(true)}cq=new b2();cr.effects=b.move;cp=cr.effectParams||{};cp.targetPosition=[co,ck];cr.effectParams=cp;ch[cn]=cm;cl=function(cs,ct){cq=null;ci[cn]=null;if(ch[cn]){ch[cn](cs,ct)}};ci[cn]=cq;cq.start(cj,cr,cl)}else{ce(cj,co,ck);if(cm){cm(cj)}}}})();aF.async=true;API.positionElement=aF}b={};if(typeof Q=="function"){b.fade=function(ci,ck,cj,ch){if(ch){if(ch>2){ck=(typeof cj.targetOpacity!="undefined")?0:1}if(ch==2){ck=1}if(ch==1){cj.opacity=o(ci)||1;if(cj.opacity>=0.9999){cj.opacity=1}if(bw.visibility){ci.style.visibility="visible"}}}ck=(typeof cj.targetOpacity!="undefined")?cj.opacity+(cj.targetOpacity-cj.opacity)*ck:cj.opacity*ck;Q(ci,(ck>=1)?0.9999:ck)}}b1=function(cj,co,cm,cl){var cn,ch,ck,ci;cn=co[0];ch=co[1];ck=cm[0];ci=cm[1];switch(cj){case"left":ch=((ch+ci)-(cl*ci));break;case"top":cn=((cn+ck)-(cl*ck));break;case"diagonalsw":cn=((cn+ck)-(cl*ck));ch=((ch-ci)+(cl*ci));break;case"diagonalnw":cn=((cn-ck)+(cl*ck));ch=((ch-ci)+(cl*ci));break;case"diagonalse":cn=((cn+ck)-(cl*ck));ch=((ch+ci)-(cl*ci));break;case"diagonalne":cn=((cn-ck)+(cl*ck));ch=((ch+ci)-(cl*ci));break;case"bottom":cn=((cn-ck)+(cl*ck));break;default:ch=((ch-ci)+(cl*ci))}return[cn,ch]};cd=function(ci,cl,ck){var cj=cl[0];var ch=cl[1];switch(ci){case"top":return"rect(0px "+ch+"px "+Math.round(ck*cj)+"px 0px)";case"left":return"rect(0px "+Math.round(ck*ch)+"px "+cj+"px 0px)";case"zoom":return"rect("+Math.round(((1-ck)/2)*cj)+"px "+Math.round((ck/2)*ch+ch/2)+"px "+Math.round((ck/2)*cj+cj/2)+"px "+Math.round(((1-ck)/2)*ch)+"px)";case"horizontal":return"rect("+(Math.round(((1-ck)/2)*cj))+"px "+ch+"px "+Math.round((ck/2)*cj+cj/2)+"px 0px)";case"vertical":return"rect(0px "+Math.round((ck/2)*ch+ch/2)+"px "+cj+"px "+(Math.round(((1-ck)/2)*ch))+"px)";case"diagonalnw":return"rect("+Math.round((1-ck)*cj)+"px "+ch+"px "+cj+"px "+Math.round((1-ck)*ch)+"px)";case"diagonalne":return"rect("+Math.round((1-ck)*cj)+"px "+Math.round(ck*ch)+"px "+cj+"px 0px)";case"diagonalsw":return"rect(0px "+ch+"px "+Math.round(ck*cj)+"px "+Math.round((1-ck)*ch)+"px)";case"diagonalse":return"rect(0px "+Math.round(ck*ch)+"px "+Math.round(ck*cj)+"px 0px)";case"bottom":return"rect("+Math.round((1-ck)*cj)+"px "+ch+"px "+cj+"px 0px)";default:return"rect(0px "+ch+"px "+cj+"px "+Math.round((1-ck)*ch)+"px)"}};if(typeof ce=="function"){b.drop=(function(){var ch;return function(cj,cl,ck,ci){if(ci){if(ci>2){cb(cj,["top","left","position"],ck);return}if(ci==1){bZ(cj,["top","left","position"],ck);if(typeof aB=="undefined"||aB(cj)){if(!ck.dimOuter){ck.dimOuter=aL(cj)}if(!ck.pos){ck.pos=bJ(cj)}}else{ck.pos=null}if(bw.visibility){cj.style.visibility="visible"}}}if(ck.pos){ch=b1(ck.side,ck.pos,ck.dimOuter,cl);ce(cj,ch[0],ch[1])}}})()}if(typeof cg=="function"){b.grow=(function(){var cl,cj,ci;var ch=new RegExp("(.+)(em|px|pt|%)");function ck(co){var cn;var cm=s(co,"fontSize")||bg(co,"fontSize");if(cm){cn=cm.match(ch)}return cn&&{size:parseFloat(cn[1]),unit:cn[2]}}return function(cn,cp,co,cm){if(cm){if(cm>2){cb(cn,["overflow","fontSize","height","width"],co);return}if(cm==1){bZ(cn,["overflow","fontSize","height","width"],co);cn.style.overflow="hidden";if(Z(cn)){if(!co.dim){co.dim=bD(cn)}}else{co.dim=null}if(d){co.font=ck(cn)}if(bw.visibility){cn.style.visibility="visible"}}}if(co.dim){if(co.targetSize){cj=(co.dim[0]+(co.targetSize[0]-co.dim[0])*cp);ci=(co.dim[1]+(co.targetSize[1]-co.dim[1])*cp)}else{cl=co.axes;cj=(!cl||cl==1)?co.dim[0]*cp:null;ci=(!cl||cl==2)?co.dim[1]*cp:null;if(!cl&&co.font&&cp>=0){cn.style.fontSize=(co.font.size*cp)+co.font.unit}}cg(cn,(cj<0)?null:cj,(ci<0)?null:ci)}}})();b.fold=function(ci,ck,cj,ch){if(ch==1){cj.axes=cj.axes||2}b.grow(ci,ck,cj,ch)}}if(API.unclipElement){b.clip=(function(){return function(ci,ck,cj,ch){if(ch){if(ch>2){cb(ci,["overflow","position"],cj);API.unclipElement(ci);return}if(ch==1){bZ(ci,["overflow","position"],cj);ci.style.overflow="hidden";if(typeof aB=="function"){aB(ci)}if(!cj.dimOuter){cj.dimOuter=aL(ci)}if(bw.visibility){ci.style.visibility="visible"}}}ci.style.clip=cd(cj.side,cj.dimOuter,ck)}})();b.zoom=function(ci,ck,cj,ch){if(ch==1){cj.side="zoom"}b.clip(ci,ck,cj,ch)};b.horizontalBlinds=function(ci,ck,cj,ch){if(ch==1){cj.side="horizontal"}b.clip(ci,ck,cj,ch)};b.verticalBlinds=function(ci,ck,cj,ch){if(ch==1){cj.side="vertical"}b.clip(ci,ck,cj,ch)};if(typeof ce=="function"){b.slide=(function(){var ch;return function(cj,cl,ck,ci){if(ci){if(ci>2){cb(cj,["overflow","top","left","position"],ck);API.unclipElement(cj);return}if(ci==1){bZ(cj,["overflow","top","left","position"],ck);cj.style.overflow="hidden";if(typeof aB=="undefined"||aB(cj)){if(!ck.dimOuter){ck.dimOuter=aL(cj)}if(!ck.pos){ck.pos=bJ(cj)}}else{ck.pos=null}if(bw.visibility){cj.style.visibility="visible"}}}if(ck.pos){ch=b1(ck.side,ck.pos,ck.dimOuter,cl);ce(cj,ch[0],ch[1]);cj.style.clip=cd(ck.side,ck.dimOuter,cl)}}})()}}if(typeof ce=="function"){b.move=function(ci,ck,cj,ch){if(ch){if(ch>2){if(cj.pos){ce(ci,cj.pos[0],cj.pos[1])}return}if(ch==1){if(typeof aB=="undefined"||aB(ci)){if(!cj.pos){cj.pos=bJ(ci)}if(cj.pos){if(cj.targetPosition[0]===null){cj.targetPosition[0]=cj.pos[0]}if(cj.targetPosition[1]===null){cj.targetPosition[1]=cj.pos[1]}}}else{cj.pos=null}}}if(cj.pos){ce(ci,(cj.pos[0]+((cj.targetPosition[0]-cj.pos[0])*ck)),(cj.pos[1]+((cj.targetPosition[1]-cj.pos[1])*ck)))}};if(typeof maximizeElement=="function"){bX=maximizeElement;b8=restoreElement;maximizeElement=API.maximizeElement=function(cj,cu,cn){var cl,cs,co,ch,cq,ci,cm,cp,cr,ct,ck;if(cu){ci=cj.style.top;cm=cj.style.left;cp=cj.style.height;cr=cj.style.width;ct=cj.style.visibility;ck=cj.style.position;cj.style.visibility="hidden";ch=bX(cj);if(ck==cj.style.position){cs=I(cj,"top");cl=I(cj,"left");co=I(cj,"height");cq=I(cj,"width");cj.style.top=ci;cj.style.left=cm;cj.style.height=cp;cj.style.width=cr;cj.style.visibility=ct;aF(cj,cs,cl,cu,cn);K(cj,co,cq,cu,cn)}else{cj.style.visibility=ct;if(cn){cn(cj)}}}else{ch=bX(cj);if(cn){cn(cj)}}return ch};maximizeElement.async=true;restoreElement=API.restoreElement=function(cj,cv,cn){var cq,cl,ct,co,ch,cr,ci,cm,cp,cs,cu,ck;if(cv){ci=cj.style.top;cm=cj.style.left;cp=cj.style.height;cs=cj.style.width;cu=cj.style.visibility;ck=cj.style.position;cj.style.visibility="hidden";ch=b8(cj);if(ck==cj.style.position){ct=I(cj,"top");cl=I(cj,"left");cq=bD(cj);co=cq[0];cr=cq[1];cj.style.top=ci;cj.style.left=cm;cj.style.height=cp;cj.style.width=cs;cj.style.visibility=cu;aF(cj,ct,cl,cv,cn);K(cj,co,cr,cv,cn)}else{cj.style.visibility=cu;if(cn){cn(cj)}}}else{ch=b8(cj);if(cn){cn(cj)}}return ch};restoreElement.async=true}if(typeof centerElement=="function"){b6=centerElement;centerElement=API.centerElement=function(ci,cp,cm){var ck,cn,cl,ch,co,cj;if(cp){ch=ci.style.top;cl=ci.style.left;co=ci.style.visibility;cj=ci.style.position;ci.style.visibility="hidden";b6(ci);cn=I(ci,"top");ck=I(ci,"left");ci.style.top=ch;ci.style.left=cl;ci.style.visibility=co;if(cj==ci.style.position){aF(ci,cn,ck,cp,cm);return}}b6(ci);if(cm){cm(ci)}};centerElement.async=true;if(b.grow&&typeof e=="function"&&typeof bN=="function"){t=function(ck,cl,ch,cj,co){var cn,cm,ci={duration:cj.duration,ease:cj.ease,removeOnHide:cj.removeOnHide};if(cj.effects&&typeof cj.effects=="function"){ci.effects=[cj.effects]}else{ci.effects=(cj.effects||[]).concat([b.grow])}if(ch){cn=bJ(ck);e(ck,cl);if(cj.springMode=="center"){centerElement(ck,{duration:cj.duration,ease:cj.ease})}else{aF(ck,cn[0],cn[1],{duration:cj.duration,ease:cj.ease})}}else{cm=bJ(ck);ck.style.visibility="hidden";e(ck,cl);cn=bJ(ck);aF(ck,cm[0],cm[1]);ck.style.visibility="visible";aF(ck,cn[0],cn[1],{duration:cj.duration,ease:cj.ease,revert:true})}bN(ck,ch,ci,co)};API.spring=t}}b.shake=function(ci,ck,cj,ch){if(ch){if(ch>2){cb(ci,["top","left","position"],cj);return}if(ch==1){bZ(ci,["top","left","position"],cj);if(typeof aB=="undefined"||aB(ci)){if(!cj.pos){cj.pos=bJ(ci)}}else{cj.pos=null}cj.severity=cj.severity||5;if(bw.visibility){ci.style.visibility="visible"}}}if(cj.pos){ce(ci,cj.pos[0]+(!cj.axes||cj.axes==1)?(cj.severity-Math.floor(Math.random()*(cj.severity*2+1))):0,cj.pos[1]+(!cj.axes||cj.axes==2)?(cj.severity-Math.floor(Math.random()*(cj.severity*2+1))):0)}}}API.effects=b;if(typeof aw=="function"){b5=aw;aw=(function(){if(bw.visibility&&bw.display&&b3&&A(b3,"cloneNode")&&A(b3,"appendChild")&&A(b3,"removeChild")){return function(cl,co,ck,cm){var cn;var ci=k(cl);var ch=bQ(ci);var cj=function(){b5(cl,co);bN(cn,false);ch.removeChild(cn);cn=null};if(ck&&ck.effects){cn=cl.cloneNode(false);cn.id=f(cl)+"_temporaryoverlay";b5(cn,co);cn.style.visibility="hidden";cn.style.display="none";cn.style.position="absolute";cn.style.left=cn.style.top="0";ch.appendChild(cn);cn.style.display="block";e(cn,cl);bN(cn,true,ck,function(){cj();if(cm){cm(cl)}})}else{b5(cl,co);if(cm){cm(cl)}}}}return function(ci,ck,ch,cj){b5(ci,ck);if(cj){cj(ci)}}})();API.changeImage=aw}if(typeof bh=="function"&&bw.visibility&&bw.display&&b3&&A(b3,"cloneNode")&&A(b3,"appendChild")&&A(b3,"removeChild")){b0=bh;bh=function(cm,cl,ck,cn){var co;var ci=k(cm);var ch=bQ(ci);var cj=function(){cm=b0(cm,cl);bN(co,false);ch.removeChild(co);co=null};if(ck&&ck.effects){co=cm.cloneNode(false);co.id=f(cm)+"_temporaryoverlay";co.style.visibility="hidden";co.style.display="none";co.style.position="absolute";co.style.left=co.style.top="0";ch.appendChild(co);co=b0(co,cl);co.style.display="block";e(co,cm,true);bN(co,true,ck,function(){cj();if(cn){cn(cm)}});return cm}else{cm=b0(cm,cl);if(cn){cn(cm)}return cm}};API.setElementHtml=bh}b3=bV=null})}bv=null;al=null})();