Object.extend(Event,{_domReady:function(){if(arguments.callee.done){return ;}arguments.callee.done=true;if(this._timer){clearInterval(this._timer);}AC.isDomReady=true;if(this._readyCallbacks){this._readyCallbacks.each(function(h){h();});}this._readyCallbacks=null;},onDOMReady:function(S){if(AC.isDomReady){S();}else{if(!this._readyCallbacks){var h=this._domReady.bind(this);if(document.addEventListener){document.addEventListener("DOMContentLoaded",h,false);}if(/WebKit/i.test(navigator.userAgent)){this._timer=setInterval(function(){if(/loaded|complete/.test(document.readyState)){h();}},10);}Event.observe(window,"load",h);Event._readyCallbacks=[];}Event._readyCallbacks.push(S);}}});if(typeof (AC)=="undefined"){AC={};}AC.decorateSearchInput=function(V,a){var e=$(V);var O=null;var D=0;var K="";var N="";if(a){if(a.results){D=a.results;}if(a.placeholder){K=a.placeholder;}if(a.autosave){N=a.autosave;}}if(AC.Detector.isWebKit()){if(AC.Detector.isWin()){e.addClassName("not-round");}e.setAttribute("type","search");if(!e.getAttribute("results")){e.setAttribute("results",D);}if(null!=K){e.setAttribute("placeholder",K);e.setAttribute("autosave",N);}}else{e.setAttribute("autocomplete","off");O=document.createElement("input");e.parentNode.replaceChild(O,e);var X=document.createElement("span");Element.addClassName(X,"left");var b=document.createElement("span");Element.addClassName(b,"right");var f=document.createElement("div");Element.addClassName(f,"reset");var h=document.createElement("div");Element.addClassName(h,"search-wrapper");var F=V.value==K;var U=V.value.length==0;if(F||U){e.value=K;Element.addClassName(h,"blurred");Element.addClassName(h,"empty");}h.appendChild(X);h.appendChild(e);h.appendChild(b);h.appendChild(f);var J=function(){var z=Element.hasClassName(h,"blurred");if(e.value==K&&z){e.value="";}Element.removeClassName(h,"blurred");};Event.observe(e,"focus",J);var G=function(){if(e.value==""){Element.addClassName(h,"empty");e.value=K;}Element.addClassName(h,"blurred");};Event.observe(e,"blur",G);var S=function(){if(e.value.length>=0){Element.removeClassName(h,"empty");}};Event.observe(e,"keydown",S);var q=function(){return (function(z){var C=false;if(z.type=="keydown"){if(z.keyCode!=27){return ;}else{C=true;}}e.blur();e.value="";Element.addClassName(h,"empty");e.focus();});};Event.observe(f,"mousedown",q());Event.observe(e,"keydown",q());if(O){O.parentNode.replaceChild(h,O);}}};var Element2={};Element2.Methods={getInnerDimensions:function(G){G=$(G);var U=Element.getDimensions(G);var X=U.height;var S=Element.getStyle;X-=S(G,"border-top-width")&&S(G,"border-top-width")!="medium"?parseInt(S(G,"border-top-width"),10):0;X-=S(G,"border-bottom-width")&&S(G,"border-bottom-width")!="medium"?parseInt(S(G,"border-bottom-width"),10):0;X-=S(G,"padding-top")?parseInt(S(G,"padding-top"),10):0;X-=S(G,"padding-bottom")?parseInt(S(G,"padding-bottom"),10):0;var h=U.width;h-=S(G,"border-left-width")&&S(G,"border-left-width")!="medium"?parseInt(S(G,"border-left-width"),10):0;h-=S(G,"border-right-width")&&S(G,"border-right-width")!="medium"?parseInt(S(G,"border-right-width"),10):0;h-=S(G,"padding-left")?parseInt(S(G,"padding-left"),10):0;h-=S(G,"padding-right")?parseInt(S(G,"padding-right"),10):0;return {width:h,height:X};},getOuterDimensions:function(S){S=$(S);var D=S.cloneNode(true);document.body.appendChild(D);Element.setStyle(D,{position:"absolute",visibility:"hidden"});var U=Element.getDimensions(D);var G=U.height;var h=Element.getStyle;G+=h(D,"margin-top")?parseInt(h(D,"margin-top"),10):0;G+=h(D,"margin-bottom")?parseInt(h(D,"margin-bottom"),10):0;var X=U.width;X+=h(D,"margin-left")?parseInt(h(D,"margin-left"),10):0;X+=h(D,"margin-right")?parseInt(h(D,"margin-right"),10):0;Element.remove(D);return {width:X,height:G};},removeAllChildNodes:function(h){h=$(h);if(!h){return ;}while(h.hasChildNodes()){h.removeChild(h.lastChild);}}};Object.extend(Element,Element2.Methods);if(typeof (AC)=="undefined"){AC={};}if(typeof (AC.Tracking)=="undefined"){AC.Tracking={};}AC.Tracking.getLinkClicked=function(h){if(!h){return null;}while(h.nodeName.toLowerCase()!="a"&&h.nodeName.toLowerCase()!="body"){h=h.parentNode;}if(!h.href){h=null;}return h;};AC.Tracking.trackLinksWithin=function(h,U,X,G,S){$(h).observe("mousedown",function(D){var F=AC.Tracking.getLinkClicked(Event.element(D));if(F&&U(F)){if(S&&S.beforeTrack){var O=S.beforeTrack(F,X,G);if(O){X=O.title;G=O.properties;}}AC.Tracking.trackClick(G,this,"o",X);}});};AC.Tracking.tagLinksWithin=function(h,S,G,X){$(h).observe("mousedown",function(U){var D=Event.element(U);if(!D){return ;}while(D.nodeName.toLowerCase()!="a"&&D.nodeName.toLowerCase()!="body"){D=D.parentNode;}if(D.href&&X(D)){AC.Tracking.tagLink(D,S,G);}D=null;});};AC.Tracking.tagLink=function(G,S,X){var h=G.getAttribute("href");if(h.match(/\?/)){var U=h.toQueryParams();U[S]=X;h=h.split(/\?/)[0]+"?"+$H(U).toQueryString();}else{h+="?"+S+"="+X;}G.setAttribute("href",h);};AC.Tracking.track=function(D,X,S){if(typeof (s_gi)=="undefined"||!s_gi){return ;}S=S||{};if(typeof (s_account)!="undefined"){s=s_gi(s_account);}else{if(S.s_account){s=s_gi(S.s_account);}else{return ;}}if(D==s.tl){var h="";for(var G in X){h+=G+",";}h=h.replace(/,$/,"");s.linkTrackVars=h;}else{s.linkTrackVars="";}s.prop4="";s.g_prop4="";s.prop6="";s.g_prop6="";s.pageName="";s.g_pageName="";s.pageURL="";s.g_pageURL="";s.g_channel="";var U=function(O){if(typeof (O)=="string"){return O.replace(/[\'\"\“\”\‘\’]/g,"");}else{return O;}};for(var G in X){s[G]=U(X[G]);if(G=="events"){s.linkTrackEvents=U(X[G]);}}if(D==s.t){void (s.t());}else{s.tl(S.obj,S.linkType,U(S.title));}for(var G in X){if(G!="pageName"){s[G]="";}if(G=="events"){s.linkTrackEvents="None";}}},AC.Tracking.trackClick=function(G,X,h,U,S){var S={obj:X,linkType:h,title:U};AC.Tracking.track(s.tl,G,S);},AC.Tracking.trackPage=function(S,h){AC.Tracking.track(s.t,S,h);};Element.Methods.childNodeWithNodeTypeAtIndex=function(X,h,S){var U=X.firstChild;if(!U){return null;}var G=0;while(U){if(U.nodeType===h){if(S===G){return U;}G++;}U=U.nextSibling;}return null;};String.prototype.lastPathComponent=function(){var h=this.lastIndexOf("/");if(h!=-1){return this.substring(h+1,this.length-1);}else{return null;}};String.prototype.stringByDeletingLastPathComponent=function(){var h=this.lastIndexOf("/");if(h!=-1){return this.slice(0,h);}else{return null;}};String.prototype.stringByAppendingPathComponent=function(h){return (this.lastIndexOf("/")!==(this.length-1))?(this+"/"+h):(this+h);};String.prototype.stringByRemovingPrefix=function(G){var S=this.indexOf(G);if(S>-1){var h=this.substring(S+G.length,this.length);return h;}else{return this;}};String.prototype.pathExtension=function(){var S=this.lastPathComponent();var h=S.lastIndexOf(".");if(h!=-1){return S.slice(h,S.length);}else{return "";}};Array.prototype.addObjectsFromArray=function(G){if(G.constructor===Array){this.push.apply(this,G);}else{for(var h=0,S;(S=G[h]);h++){this[this.length]=S;}}};Array.prototype.item=function(h){return this[h];};document._importNode=function(O,S){if(O.nodeType===Node.ELEMENT_NODE){var U=document.createElement(O.nodeName);var X,G;if(O.attributes&&O.attributes.length>0){var F=O.attributes;}var D,h;for(X=0,G=O.attributes.length;X<G;){D=F[X].nodeName;h=O.getAttribute(F[X++].nodeName);if(D==="class"){U.setAttribute("className",h);}U.setAttribute(D,h);}if(S&&O.childNodes&&O.childNodes.length>0){for(X=0,G=O.childNodes.length;X<G;){U.appendChild(document._importNode(O.childNodes[X++],S));}}return U;}else{if(O.nodeType===Node.TEXT_NODE){return document.createTextNode(O.nodeValue);}else{if(O.nodeType===Node.COMMENT_NODE){return document.createComment(O.nodeValue);}else{if(O.nodeType===Node.CDATA_SECTION_NODE){return document.createCDATASection(O.nodeValue);}else{return null;}}}}};if(!document.importNode){document.importNode=document._importNode;}if(AC.Detector.isIEStrict()){Element.Methods.hasAttribute=function(G,S){if(S=="class"){S="className";}else{if(S=="for"){S="htmlFor";}}var h=G.getAttribute(S);return ((h!=null)&&(h!==""));};document._getElementsByName=document.getElementsByName;document._HTMLElementsWithName=["a","apple","button","form","frame","iframe","img","input","object","map","meta","param","textarea","select"];document.getElementsByName=function(X){var G=this._HTMLElementsWithName;var h=[],S,D,O;for(var F=0,U;(U=G[F]);F++){S=document.getElementsByTagName(U);for(D=0;(O=S[D]);D++){if(O.name===X){h[h.length]=O;}}}return h;};}