if(typeof (AC)=="undefined"){AC={};}if(typeof (document.event)=="undefined"){document.event={};}if(Event.Publisher){Object.extend(document.event,Event.Publisher);}AC.SwapView=Class.create({_view:null,currentContent:null,delegate:null,initialize:function(n){if(typeof n==="string"){this._viewId=n;}else{this._view=$(n);}if(this._view){var D=this._view.childNodes,g;while(g=D[0]){this._view.removeChild(g);}this._view.addClassName("swapView");}},view:function(){if(!this._view){this._view=$(this._viewId);if(this._view){this._view.innerHTML="";this._view.addClassName("swapView");}}return this._view;},setDelegate:function(n){this.delegate=n;},setContent:function(n){if(n==this.currentContent){return ;}if(this.currentContent&&typeof (this.delegate.willClose)=="function"){this.delegate.willClose(this,this.currentContent);}if(n&&typeof (this.delegate.isContentLoaded)=="function"){if(!this.delegate.isContentLoaded(this,n)){if(typeof (this.delegate.loadContent)=="function"){this.delegate.loadContent(this,n);return ;}}}this.setLoadedContent(n);},setLoadedContent:function(g){if(typeof (this.delegate.willShow)=="function"){g=this.delegate.willShow(this,this.currentContent,g);}var n=true;if(typeof (this.delegate.shouldAnimateContentChange)=="function"){n=this.delegate.shouldAnimateContentChange(this,this.currentContent,g);}if(n&&typeof (this.delegate.willAnimate)=="function"){this.didAnimate=true;if(this.currentContent!==g){this.view().appendChild(g);}var D=this.delegate.willAnimate(this,this.currentContent,g,this.didShow.bind(this,g));}else{this.didAnimate=false;if(this.currentContent!==g){if(this.currentContent&&this.currentContent.parentNode){this.currentContent.parentNode.removeChild(this.currentContent);}if(g){this.view().appendChild(g);}}if(g){$(g).setOpacity(1);}this.didShow(g);}},didShow:function(n){if(this.currentContent&&(this.currentContent!==n)&&this.currentContent.parentNode){this.currentContent.parentNode.removeChild(this.currentContent);}if(typeof (this.delegate.didShow)=="function"){this.delegate.didShow(this,this.currentContent,n);}this.currentContent=n;}});if(typeof (AC.ViewMaster)=="undefined"){AC.ViewMaster={};}AC.ViewMaster.Viewer=Class.create({view:null,triggerClassName:null,currentSection:null,requestedSection:null,sections:null,orderedSections:null,_locked:false,_didShowInitial:false,options:null,initialSectionFromId:function(J){if(!J){return null;}var D=null;if(J&&this.sections.get(J)){D=this.sections.get(J);}if(!D){var g,n=null;g=document.getElementById(J);if(g===this.view._view){g=null;}if(!g){n=document.getElementsByName(J);}if(n&&n.length>0){g=n[0];}if(g===this.view._view){g=null;}if(g){if(g.tagName.toLowerCase()==="a"){if(Element.Methods.hasClassName(g,this.triggerClassName)){D=this.addSection(g);}}else{D=this.addSection(g);}}}return D;},initialize:function(V,n,Z,g){this.triggerClassName=Z;this.sections=$H();this.orderedSections=[];this.options=g||{};var G=null;if(V){for(var J=0;J<V.length;J++){section=this.addSection(V.item(J));if(!G){G=section;}}}this.view=new AC.SwapView(n);this.view.setDelegate(this);var D=document.location.hash.replace(/#/,""),C;if(D!==this.view._viewId){C=this.initialSectionFromId(D);}if(C){G=C;}if(!G&&typeof this.options.initialId==="string"&&this.options.initialId.length>0){G=this.initialSectionFromId(this.options.initialId);}this.show(G);Event.observe(document,"click",this._triggerClicked.bindAsEventListener(this));if(AC.Detector.isIEStrict()){Event.observe(document,"mouseup",this._triggerClicked.bindAsEventListener(this));}},setDelegate:function(n){this.delegate=n;if(this.delegate&&typeof (this.delegate.didShow)==="function"&&this.currentSection&&this.currentSection.isContentLoaded()){this.delegate.didShow(this,this.previousSection,this.currentSection);}},addSection:function(n){var g=new AC.ViewMaster.Section(n,this);this.sections.set(g.id,g);this.orderedSections.push(g.id);return g;},triggerClicked:function(n,g){g.addClassName("active");if(this.options.silentTriggers){Event.stop(n);}var J=null;if(!!g.href.match(/#previous/)){J=this.getPreviousSection();}else{if(!!g.href.match(/#next/)){J=this.getNextSection();}else{if(!this.sectionRegExp){this.sectionRegExp=this.options.sectionRegExp||new RegExp(/#(.*)$/);}var D=g.href.match(this.sectionRegExp);if(D){var C=D[1];}else{C=g.name;}J=this.sections.get(C);}}if(!J){J=this.addSection(g);}if(J.isContentRemote()&&!J.isContentLoaded()){Event.stop(n);}if(J==this.currentSection){Event.stop(n);return ;}else{if(!J){return ;}}this._didShowInitial=true;setTimeout(this.show.bind(this,J),1);},_triggerClicked:function(n){if(this._locked){Event.stop(n);return ;}var g=n.element();if(AC.Detector.isIEStrict()&&n.type==="mouseup"){if(g&&g.nodeName.toUpperCase()==="A"){g=g.down("."+this.triggerClassName);}}else{while(g&&g.nodeName.toUpperCase()!="A"&&g.nodeName.toUpperCase()!="BODY"){g=g.parentNode;}}if(g&&g.href&&Element.Methods.hasClassName(g,this.triggerClassName)){this.triggerClicked(n,g);}},isContentLoaded:function(g,n){return n.isContentLoaded();},loadContent:function(g,n){if(n){n.loadContent();}},_showContentDidLoad:false,contentDidLoad:function(D,g,n){if(g&&g.firstChild){this._showContentDidLoad=true;}this.view.setLoadedContent(D);AC.loadRemoteContent.insertScriptFragment(g);if(this._showContentDidLoad&&this.delegate&&typeof (this.delegate.didShow)=="function"){this.delegate.didShow(this,this.previousSection,this.currentSection);}this._showContentDidLoad=false;},show:function(n){if(this._locked||!n){return ;}if(!this.options.alwaysShowSection&&n==this.currentSection){return ;}this._locked=true;this.previousSection=this.currentSection;this.currentSection=n;this.view.setContent(n);if(typeof this.options.ensureInView==="boolean"&&this.options.ensureInView){if(this._didShowInitial){var g=n.content.viewportOffset()[1];if(g<0||g>(document.viewport.getHeight()*0.75)){new Effect.ScrollTo(n.content,{duration:0.3});}}else{$(document.body).scrollTo();}}},getNextSection:function(){var g=this.orderedSections.indexOf(this.currentSection.id);var n=(this.orderedSections.length-1)==g?0:g+1;return this.sections.get(this.orderedSections[n]);},getPreviousSection:function(){var n=this.orderedSections.indexOf(this.currentSection.id);var g=0==n?this.orderedSections.length-1:n-1;return this.sections.get(this.orderedSections[g]);},willShow:function(g,D,n){if(this.delegate&&typeof (this.delegate.willShow)=="function"){this.delegate.willShow(this,this.previousSection,this.currentSection);}this._repaintTriggers(this.previousSection,this.currentSection);if(this._didShowInitial&&n&&n!=this.previousSection){$(n.content).setOpacity(0);$(n.content).removeClassName("hidden");}if(n){return n.willShow(this);}return null;},willClose:function(n,g){if(this.delegate&&typeof (this.delegate.willClose)=="function"){this.delegate.willClose(this,this.previousSection,this.currentSection);}if(this.previousSection){this.previousSection.willClose(this);}},shouldAnimateContentChange:function(D,g,n){return (typeof this.options.shouldAnimateContentChange==="boolean")?this.options.shouldAnimateContentChange:true;},willAnimate:function(g,D,n,C){var V=this.options.animationDuration||0.4;var J=Math.random()+"Queue";if(!this._didShowInitial&&typeof (C)=="function"){C();return ;}if(D){return new Effect.Parallel([new Effect.Opacity(D,{sync:true,from:1,to:0}),new Effect.Opacity(n,{sync:true,from:0,to:1})],{duration:V,afterFinish:C,queue:{scope:J}});}else{return new Effect.Opacity(n,{from:0,to:1,duration:V,afterFinish:C,queue:{scope:J}});}},didShow:function(g,D,n){if(this.currentSection){this.currentSection.didShow(this);}this._didShowInitial=true;this._locked=false;if(!this._showContentDidLoad&&this.delegate&&typeof (this.delegate.didShow)=="function"){this.delegate.didShow(this,this.previousSection,this.currentSection);}},_repaintTriggers:function(g,n){if(g){var V=g.triggers();for(var D=0,J;(J=V[D]);D++){J.removeClassName("active");}V=g.relatedElements();for(var D=0,J;(J=V[D]);D++){J.removeClassName("active");}}if(n){var C=n.triggers();for(var D=0,J;(J=C[D]);D++){J.addClassName("active");}C=n.relatedElements();for(var D=0,J;(J=C[D]);D++){J.addClassName("active");}}}});AC.ViewMaster.Section=Class.create({content:null,moviePanel:null,controllerPanel:null,movie:null,_movieController:null,movieLink:null,endState:null,hasShown:false,_isContentRemote:false,isContentRemote:function(){return this._isContentRemote;},_isContentLoaded:true,isContentLoaded:function(){return this._isContentLoaded;},_onMoviePlayable:Prototype.EmptyFunction,_onMovieFinished:Prototype.EmptyFunction,id:null,triggers:function(){if(!this._triggers){this._triggers=[];var J=new RegExp("#"+this.id+"$");if(this.viewMaster.sectionRegExp||this.viewMaster.options.sectionRegExp){J=this.viewMaster.sectionRegExp||this.viewMaster.options.sectionRegExp;J=J.toString().replace(/^\//,"").replace(/\/$/,"");J=new RegExp(J.replace("(.*)",this.id));}var D=document.getElementsByClassName(this.viewMaster.triggerClassName);for(var n=0,g;(g=$(D[n]));n++){if(g.tagName.toLowerCase()!=="a"){continue;}if(g.href.match(J)){this._triggers.push(g);}}}return this._triggers;},relatedElements:function(){if(!this._relatedElements){this._relatedElements=document.getElementsByClassName(this.id);}return this._relatedElements;},initialize:function(D,V){this.content=$(D);if(this.content.tagName.toLowerCase()==="a"){var n=this.content.href;var C=n.split("#");this._contentURL=C[0];var J=window.location.href.split("#");if(C.length===2){this.id=C[1];}if(this._contentURL.length>0&&(this._contentURL!==J[0])&&(!this._contentURL.startsWith("#")||this._contentURL!==n)){this._isContentRemote=true;this._isContentLoaded=false;}else{var Z=$(this.id);if(Z){this.content=Z;}}if(!this.id){this.id=this.content.name;}}else{this.id=D.id;}if(!this._isContentRemote||this._isContentLoaded){this.content.setAttribute("id","MASKED-"+this.id);}if(V){this.viewMaster=V;}if(!this._isContentRemote&&this._isContentLoaded&&!this.content.hasClassName("content")){var g=this.content.getElementsByClassName("content")[0];if(g){this.content=g;}}this.isMobile=AC.Detector.isMobile();},remoteContentDidLoad:function(n,g){this.content.href="#"+this.id;this.content.removeAttribute("id");this.content.removeAttribute("name");this.content=$(n);this.content.setAttribute("id","MASKED-"+this.id);this._isContentLoaded=true;this.viewMaster.contentDidLoad(this,g);},loadContent:function(){if(this._isContentLoaded){var n=this;n.viewMaster.contentDidLoad(n,null);}else{AC.loadRemoteContent(this._contentURL,true,true,this.remoteContentDidLoad.bind(this));}},willShow:function(){if(!this.hasShown){this.hasShown=true;var n=this.content.getElementsByClassName("imageLink");for(var g=0;g<n.length;g++){this._loadImage(n[g]);}if(!this.moviePanel){this.movieLink=this.content.getElementsByClassName("movieLink")[0];this.posterLink=this.content.getElementsByClassName("posterLink")[0];if(this.movieLink){this._loadMovie();}}}return this.content;},_loadImage:function(g){var n=document.createElement("img");n.setAttribute("src",g.href);n.setAttribute("alt",g.title);g.parentNode.replaceChild(n,g);},_loadMovie:function(){this.moviePanel=$(document.createElement("div"));this.moviePanel.addClassName("moviePanel");this.movieLink.parentNode.replaceChild(this.moviePanel,this.movieLink);this.controllerPanel=$(document.createElement("div"));this.controllerPanel.addClassName("controllerPanel");this.moviePanel.parentNode.insertBefore(this.controllerPanel,this.moviePanel.nextSibling);this.endState=$(this.content.getElementsByClassName("endState")[0]);if(this.endState){this.endState.parentNode.removeChild(this.endState);var n=$(this.endState.getElementsByClassName("replay")[0]);if(n){n.observe("click",function(g){Event.stop(g);this.replayMovie();}.bindAsEventListener(this));}}},didShow:function(g){var n=this.hasMovie()&&!this.isMobile;if(n){this._movieController=new AC.QuicktimeController();this.controllerPanel.innerHTML="";this.controllerPanel.appendChild(this._movieController.render());}this._playMovie();if(n){this._onMoviePlayable=this._movieController.monitorMovie.bind(this._movieController);this._onMovieFinished=this.didFinishMovie.bind(this);this._movieController.attachToMovie(this.movie,{onMoviePlayable:this._onMoviePlayable,onMovieFinished:this._onMovieFinished});}},willClose:function(n){this._closeController();this._closeMovie();},_closeMovie:function(){if(this.movie&&this.moviePanel){this.moviePanel.removeChild(this.movie);this.movie=null;this.moviePanel.innerHTML="";}},_closeController:function(){if(this._movieController&&this._movieController.movie&&this.hasMovie()&&!this.isMobile){this._movieController.Stop();this._movieController.detachFromMovie();this.controllerPanel.addClassName("inactive");this._movieController.replay=this.replayMovie.bind(this);this.controllerPanel.observe("click",this._movieController.replay);}},hasMovie:function(){return !!this.movieLink;},didFinishMovie:function(){if(!this.hasMovie()){return ;}this._closeController();this._closeMovie();if(this.endState){this.moviePanel.appendChild(this.endState);}if(typeof (document.event.dispatchEvent)=="function"){document.event.dispatchEvent("didFinishMovie",this);}},_playMovie:function(){if(this.movieLink&&this.moviePanel){this.moviePanel.innerHTML="";if(this.posterLink&&this.posterLink.href){var g=this.posterLink.href;}var C=this.movieLink.getAttribute("href",2).toQueryParams();var J=C.width||640;var n=C.height||480;var D=C.bgcolor||"white";this.movie=AC.Quicktime.packageMovie(this.movieLink.id+"movieId",this.movieLink.getAttribute("href",2),{width:J,height:n,controller:false,posterFrame:g,showlogo:false,autostart:true,cache:true,bgcolor:D,aggressiveCleanup:false});this.moviePanel.appendChild(this.movie);}},replayMovie:function(){if(typeof (document.event.dispatchEvent)=="function"){document.event.dispatchEvent("replayMovie",this);}this._playMovie();this.controllerPanel.removeClassName("inactive");this.controllerPanel.stopObserving("click",this._movieController.replay);this._movieController.replay=null;this._movieController.attachToMovie(this.movie,{onMoviePlayable:this._onMoviePlayable,onMovieFinished:this._onMovieFinished});}});AC.ViewMaster.Slideshow=Class.create();Object.extend(AC.ViewMaster.Slideshow.prototype,Event.Listener);Object.extend(AC.ViewMaster.Slideshow.prototype,{viewMaster:null,animationTimeout:null,options:null,_playing:false,_active:false,_progress:0,setProgress:function(n){this._progress=n;},progress:function(){return this._progress;},initialize:function(D,g,n){this.viewMaster=D;this.viewMaster.setDelegate(this);this.triggerClassName=g;this.options=n||{};this.start();Event.observe(document,"click",this._triggerHandler.bindAsEventListener(this));},start:function(){if(this._active){return ;}this._active=true;if(this.options.wipeProgress=="always"||this.options.wipeProgress=="on start"){this._progress=0;}this.play(true);this._repaintTriggers();},stop:function(){if(!this._active){return ;}this._active=false;this.pause();this._repaintTriggers();},play:function(n){if(!this._active){return ;}if(this.options.wipeProgress=="always"||(this.options.wipeProgress=="on play"&&!n)){this._progress=0;}this.animationTimeout=setTimeout(this._update.bind(this),this._heartbeatDelay());this._playing=true;},_update:function(){if(typeof (this.options.onProgress)=="function"){this.options.onProgress(this._progress,this.delay());}if(this._progress>=this.delay()){this._progress=0;this.next();}else{this._progress+=this._heartbeatDelay();this.animationTimeout=setTimeout(this._update.bind(this),this._heartbeatDelay());}},delay:function(){return this.options.delay||5000;},_heartbeatDelay:function(){return this.options.heartbeatDelay||100;},pause:function(){clearTimeout(this.animationTimeout);this._playing=false;},next:function(){this.viewMaster.show(this.viewMaster.getNextSection());},previous:function(){this.viewMaster.show(this.viewMaster.getPreviousSection());},willShow:function(D,g,n){this.pause();},didShow:function(D,g,n){this.play();},_triggerHandler:function(n){var g=n.element();var D=null;if(g.hasClassName(this.triggerClassName)&&g.href.match(/#slideshow-toggle/)){Event.stop(n);if(this._active){this.stop();}else{this.start();}}},_repaintTriggers:function(){var g=document.getElementsByClassName(this.triggerClassName);for(var n=g.length-1;n>=0;n--){this._repaintTrigger(g[n]);}},_repaintTrigger:function(n){var g=$(n);if(this._active){g.addClassName("playing");}else{g.removeClassName("playing");}}});AC.loadRemoteContent=function(G,n,D,Z,J,V){if(typeof G!=="string"){return ;}if(typeof n!=="boolean"){n=true;}if(typeof D!=="boolean"){D=true;}var C=arguments.callee;var g=C._loadArgumentsByUrl[G];if(!g){C._loadArgumentsByUrl[G]={contentURL:G,importScripts:n,importCSS:D,callback:Z,context:J,delegate:V};new Ajax.Request(G,{method:"get",requestHeaders:{Accept:"text/xml"},onSuccess:arguments.callee.loadTemplateHTMLFromRequest,onFailure:arguments.callee.failedToadTemplateHTMLFromRequest,onCreate:function(y){y.request.overrideMimeType("text/xml");}});}};AC.loadRemoteContent._loadArgumentsByUrl={};AC.loadRemoteContent.loadTemplateHTMLFromRequest=function(g){var J=g.request.url;var E=arguments.callee;var G=AC.loadRemoteContent._loadArgumentsByUrl[J];var L=window.document;var s=g.responseXMLValue().documentElement;if(AC.Detector.isIEStrict()){s=s.ownerDocument;}var L=window.document;var x=document.createDocumentFragment();if(G.importScripts){AC.loadRemoteContent.importScriptsFromXMLDocument(s,x,G);}if(G.importCSS){AC.loadRemoteContent.importCssFromXMLDocumentAtLocation(s,J,G);}var X=null;var n=null;var Z=s.getElementsByTagName("body")[0];if(!Z){return ;}Z.normalize();var n=Element.Methods.childNodeWithNodeTypeAtIndex(Z,Node.ELEMENT_NODE,0);var V=AC.Detector.isSafari2();if(n){if(V){X=L._importNode(n,true);}else{X=L.importNode(n,true);}if(X.cleanSpaces){X.cleanSpaces(true);}}else{if(Z.cleanSpaces){Z.cleanSpaces(true);}else{if(typeof Z.normalize==="function"){Z.normalize();}}var y=Z.childNodes;X=L.createDocumentFragment();var M=/\S/;for(var C=0,D=0;(D=y[C]);C++){var b=(V)?L._importNode(D,true):L.importNode(D,true);X.appendChild(b);}}var k=G.callback;k(X,x,G.context);};AC.loadRemoteContent.javascriptTypeValueRegExp=new RegExp("text/javascript","i");AC.loadRemoteContent.javascriptLanguageValueRegExp=new RegExp("javascript","i");AC.loadRemoteContent.documentScriptsBySrc=function(){if(!AC.loadRemoteContent._documentScriptsBySrc){AC.loadRemoteContent._documentScriptsBySrc={};var g=document.getElementsByTagName("script");if(!g||g.length===0){return AC.loadRemoteContent._documentScriptsBySrc;}for(var D=0,n=null;(n=g[D]);D++){var J=n.getAttribute("type");var V=null;var Z=n.getAttribute("language");if(!this.javascriptTypeValueRegExp.test(J)&&!this.javascriptLanguageValueRegExp.test(Z)){continue;}if(n.hasAttribute){var C=n.hasAttribute("src");}else{var C=Element.Methods.hasAttribute(n,"src");}if(C){var V=n.getAttribute("src");AC.loadRemoteContent._documentScriptsBySrc[V]=V;}}}return AC.loadRemoteContent._documentScriptsBySrc;};AC.loadRemoteContent.importScriptsFromXMLDocument=function(b,D,U){var V=b.getElementsByTagName("script"),Z,y,L,K,J=U.contentURL,f=U.delegate,C=U.context,g=(f&&typeof f.shouldImportScript==="function"),s=true;if(!D){D=document.createDocumentFragment();}var E=AC.loadRemoteContent.documentScriptsBySrc();for(var H=0,M=null;(M=V[H]);H++){Z=M.getAttribute("type");y=null;s=true;L=M.getAttribute("language");if(!this.javascriptTypeValueRegExp.test(Z)&&!this.javascriptLanguageValueRegExp.test(L)){continue;}if(M.hasAttribute){K=M.hasAttribute("src");y=M.getAttribute("src");}else{y=M.getAttribute("src");K=((y!=null)&&(y!==""));}if(M.getAttribute("id")==="Redirect"||(g&&!f.shouldImportScriptForContentURL(M,J,C))){continue;}if(K){if(!E.hasOwnProperty(y)){var k=document.createElement("script");k.setAttribute("type","text/javascript");k.src=y;AC.loadRemoteContent._documentScriptsBySrc[y]=y;D.appendChild(k);}}else{var k=document.createElement("script");k.setAttribute("type","text/javascript");if(AC.Detector.isIEStrict()){var x=new Function(M.text);k.onreadystatechange=function(){var i=window.event.srcElement;if(!i.isLoaded&&((i.readyState=="complete")||(i.readyState=="loaded"))){i.onreadystatechange=null;i.isLoaded=true;x();}};}else{var X=navigator.userAgent.toLowerCase();var n=(X.indexOf("applewebkit")!=-1);var G=parseInt(parseFloat(X.substring(X.lastIndexOf("safari/")+7)));var o=(n&&G>=419);if(o){k.innerHTML=M.innerHTML;}else{k.text=M.text;}}AC.loadRemoteContent._documentScriptsBySrc[y]=y;D.appendChild(k);}}return D;};AC.loadRemoteContent.insertScriptFragment=function(g){if(!g){return ;}var n=document.getElementsByTagName("head")[0];n.appendChild(g);n=null;};AC.loadRemoteContent.documentLinksByHref=function(){if(!AC.loadRemoteContent._documentLinksByHref){AC.loadRemoteContent._documentLinksByHref={};var g=document.getElementsByTagName("link");if(!g||g.length===0){return AC.loadRemoteContent._documentLinksByHref;}for(var D=0,C=null;(C=g[D]);D++){var J=C.getAttribute("type");if(C.type.toLowerCase()!=="text/css"){continue;}var V=null;if(C.hasAttribute){var n=C.hasAttribute("href");}else{var n=Element.hasAttribute(C,"href");}if(n){var V=C.getAttribute("href");AC.loadRemoteContent._documentLinksByHref[V]=V;}}}return AC.loadRemoteContent._documentLinksByHref;};AC.loadRemoteContent.__importCssElementInHeadFromLocation=function(C,Z,g){var J=(C.tagName.toUpperCase()==="LINK");if(J){var V=C.getAttribute("type");if(!V||V&&V.toLowerCase()!=="text/css"){return ;}var D=C.getAttribute("href");if(!D.startsWith("http")&&!D.startsWith("/")){var y=D;if(g.pathExtension().length>0){g=g.stringByDeletingLastPathComponent();}D=g.stringByAppendingPathComponent(y);}if(AC.Detector.isIEStrict()){var n=window.document.createStyleSheet(D,1);}else{var G=window.document.importNode(C,true);G.href=D;}AC.loadRemoteContent.documentLinksByHref()[D]=D;}if(!AC.Detector.isIEStrict()||(AC.Detector.isIEStrict()&&!J)){Z.insertBefore(G,Z.firstChild);}};AC.loadRemoteContent.importCssFromXMLDocumentAtLocation=function(G,g,Z){var y=window.document.getElementsByTagName("head")[0];var D=[];D.addObjectsFromArray(G.getElementsByTagName("style"));D.addObjectsFromArray(G.getElementsByTagName("link"));if(D){var J=AC.loadRemoteContent.documentLinksByHref();for(var C=0,V=null;(V=D[C]);C++){var n=V.getAttribute("href");if(J.hasOwnProperty(n)){continue;}this.__importCssElementInHeadFromLocation(V,y,g);}}};Ajax.Request.prototype._overrideMimeType=null;Ajax.Request.prototype.overrideMimeType=function(n){this._overrideMimeType=n;if(this.transport.overrideMimeType){this.transport.overrideMimeType(n);}};Ajax.Request.prototype._doesOverrideXMLMimeType=function(){return (this._overrideMimeType==="text/xml");};Ajax.Response.prototype.responseXMLValue=function(){if(AC.Detector.isIEStrict()){var n=this.transport.responseXML.documentElement;if(!n&&this.request._doesOverrideXMLMimeType()){this.transport.responseXML.loadXML(this.transport.responseText);}}return this.transport.responseXML;};