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