var mboxCopyright="&copy; 2003-2009. Omniture, Inc. All rights reserved.";mboxUrlBuilder=function(B,A){this.a=B;this.b=A;this.c=new Array();this.d=function(C){return C};this.f=null};mboxUrlBuilder.prototype.addParameter=function(F,E){var D=new RegExp("('|\")");if(D.exec(F)){throw"Parameter '"+F+"' contains invalid characters"}for(var C=0;C<this.c.length;C++){var B=this.c[C];if(B.name==F){B.value=E;return this}}var A=new Object();A.name=F;A.value=E;this.c[this.c.length]=A;return this};mboxUrlBuilder.prototype.addParameters=function(C){if(!C){return this}for(var B=0;B<C.length;B++){var A=C[B].indexOf("=");if(A==-1||A==0){continue}this.addParameter(C[B].substring(0,A),C[B].substring(A+1,C[B].length))}return this};mboxUrlBuilder.prototype.setServerType=function(A){this.o=A};mboxUrlBuilder.prototype.setBasePath=function(A){this.f=A};mboxUrlBuilder.prototype.setUrlProcessAction=function(A){this.d=A};mboxUrlBuilder.prototype.buildUrl=function(){var E=this.f?this.f:"/m2/"+this.b+"/mbox/"+this.o;var D=document.location.protocol=="file:"?"http:":document.location.protocol;var F=D+"//"+this.a+E;var C=F.indexOf("?")!=-1?"&":"?";for(var B=0;B<this.c.length;B++){var A=this.c[B];F+=C+encodeURIComponent(A.name)+"="+encodeURIComponent(A.value);C="&"}return this.t(this.d(F))};mboxUrlBuilder.prototype.getParameters=function(){return this.c};mboxUrlBuilder.prototype.setParameters=function(A){this.c=A};mboxUrlBuilder.prototype.clone=function(){var B=new mboxUrlBuilder(this.a,this.b);B.setServerType(this.o);B.setBasePath(this.f);B.setUrlProcessAction(this.d);for(var A=0;A<this.c.length;A++){B.addParameter(this.c[A].name,this.c[A].value)}return B};mboxUrlBuilder.prototype.t=function(A){return A.replace(/\"/g,"&quot;").replace(/>/g,"&gt;")};mboxStandardFetcher=function(){};mboxStandardFetcher.prototype.getType=function(){return"standard"};mboxStandardFetcher.prototype.fetch=function(A){A.setServerType(this.getType());document.write('<script src="'+A.buildUrl()+'" language="JavaScript"><\/script>')};mboxStandardFetcher.prototype.cancel=function(){};mboxAjaxFetcher=function(){};mboxAjaxFetcher.prototype.getType=function(){return"ajax"};mboxAjaxFetcher.prototype.fetch=function(A){A.setServerType(this.getType());var B=A.buildUrl();this.x=document.createElement("script");this.x.src=B;document.body.appendChild(this.x)};mboxAjaxFetcher.prototype.cancel=function(){};mboxMap=function(){this.y=new Object();this.z=new Array()};mboxMap.prototype.put=function(B,C){if(!this.y[B]){this.z[this.z.length]=B}this.y[B]=C};mboxMap.prototype.get=function(B){return this.y[B]};mboxMap.prototype.remove=function(B){this.y[B]=undefined};mboxMap.prototype.each=function(E){for(var C=0;C<this.z.length;C++){var B=this.z[C];var D=this.y[B];if(D){E(B,D)}}};mboxFactory=function(G,A,F){this.D=false;this.B=G;this.C=F;this.E=new mboxList();mboxFactories.put(F,this);this.F=typeof document.createElement("div").replaceChild!="undefined"&&(function(){return true})()&&typeof document.getElementById!="undefined"&&typeof (window.attachEvent||document.addEventListener||window.addEventListener)!="undefined"&&typeof encodeURIComponent!="undefined";this.G=this.F&&mboxGetPageParameter("mboxDisable")==null;var D=F=="default";this.I=new mboxCookieManager("mbox"+(D?"":("-"+F)),(function(){return mboxCookiePageDomain()})());this.G=this.G&&this.I.isEnabled()&&(this.I.getCookie("disable")==null);if(this.isAdmin()){this.enable()}this.J=mboxGenerateId();this.K=new mboxSession(this.J,"mboxSession","session",31*60,this.I);this.L=new mboxPC("PC",1209600,this.I);this.w=new mboxUrlBuilder(G,A);this.M(this.w,D);this.N=new Date().getTime();this.O=this.N;var E=this;this.addOnLoad(function(){E.O=new Date().getTime()});if(this.F){this.addOnLoad(function(){E.D=true;E.getMboxes().each(function(B){B.setFetcher(new mboxAjaxFetcher());B.finalize()})});this.limitTraffic(100,10368000);if(this.G){this.R();this.S=new mboxSignaler(function(B,C){return E.create(B,C)},this.I)}}};mboxFactory.prototype.isEnabled=function(){return this.G};mboxFactory.prototype.getDisableReason=function(){return this.I.getCookie("disable")};mboxFactory.prototype.isSupported=function(){return this.F};mboxFactory.prototype.disable=function(B,A){if(typeof B=="undefined"){B=60*60}if(typeof A=="undefined"){A="unspecified"}if(!this.isAdmin()){this.G=false;this.I.setCookie("disable",A,B)}};mboxFactory.prototype.enable=function(){this.G=true;this.I.deleteCookie("disable")};mboxFactory.prototype.isAdmin=function(){return document.location.href.indexOf("mboxEnv")!=-1};mboxFactory.prototype.limitTraffic=function(A,B){};mboxFactory.prototype.addOnLoad=function(A){if(window.addEventListener){window.addEventListener("load",A,false)}else{if(document.addEventListener){document.addEventListener("load",A,false)}else{if(document.attachEvent){window.attachEvent("onload",A)}}}};mboxFactory.prototype.getEllapsedTime=function(){return this.O-this.N};mboxFactory.prototype.getEllapsedTimeUntil=function(A){return A-this.N};mboxFactory.prototype.getMboxes=function(){return this.E};mboxFactory.prototype.get=function(A,B){return this.E.get(A).getById(B||0)};mboxFactory.prototype.update=function(A,B){if(!this.isEnabled()){return }if(this.E.get(A).length()==0){throw"Mbox "+A+" is not defined"}this.E.get(A).each(function(C){C.getUrlBuilder().addParameter("mboxPage",mboxGenerateId());C.load(B)})};mboxFactory.prototype.create=function(C,I,A){if(!this.isSupported()){return null}var G=this.w.clone();G.addParameter("mboxCount",this.E.length()+1);G.addParameters(I);var B=this.E.get(C).length();var J=this.C+"-"+C+"-"+B;var L;if(A){L=new mboxLocatorNode(A)}else{if(this.D){throw"The page has already been loaded, can't write marker"}L=new mboxLocatorDefault(J)}try{var E=this;var H="mboxImported-"+J;var D=new mbox(C,B,G,L,H);if(this.G){D.setFetcher(this.D?new mboxAjaxFetcher():new mboxStandardFetcher())}D.setOnError(function(M,N){D.setMessage(M);D.activate();if(!D.isActivated()){E.disable(60*60,M);window.location.reload(false)}});this.E.add(D)}catch(K){this.disable();throw'Failed creating mbox "'+C+'", the error was: '+K}var F=new Date();G.addParameter("mboxTime",F.getTime()-(F.getTimezoneOffset()*60000));return D};mboxFactory.prototype.getCookieManager=function(){return this.I};mboxFactory.prototype.getPageId=function(){return this.J};mboxFactory.prototype.getPCId=function(){return this.L};mboxFactory.prototype.getSessionId=function(){return this.K};mboxFactory.prototype.getSignaler=function(){return this.S};mboxFactory.prototype.getUrlBuilder=function(){return this.w};mboxFactory.prototype.M=function(B,A){B.addParameter("mboxHost",document.location.hostname).addParameter("mboxSession",this.K.getId());if(!A){B.addParameter("mboxFactoryId",this.C)}if(this.L.getId()!=null){B.addParameter("mboxPC",this.L.getId())}B.addParameter("mboxPage",this.J);B.setUrlProcessAction(function(D){D+="&mboxURL="+encodeURIComponent(document.location);var C=encodeURIComponent(document.referrer);if(D.length+C.length<2000){D+="&mboxReferrer="+C}D+="&mboxVersion="+mboxVersion;return D})};mboxFactory.prototype.gb=function(){return""};mboxFactory.prototype.R=function(){document.write("<style>.mboxDefault { visibility:hidden; }</style>")};mboxFactory.prototype.isDomLoaded=function(){return this.D};mboxSignaler=function(G,D){this.I=D;var A=D.getCookieNames("signal-");for(var C=0;C<A.length;C++){var B=A[C];var E=D.getCookie(B).split("&");var F=G(E[0],E);F.load();D.deleteCookie(B)}};mboxSignaler.prototype.signal=function(B,A){this.I.setCookie("signal-"+B,mboxShiftArray(arguments).join("&"),45*60)};mboxList=function(){this.E=new Array()};mboxList.prototype.add=function(A){if(A!=null){this.E[this.E.length]=A}};mboxList.prototype.get=function(B){var D=new mboxList();for(var A=0;A<this.E.length;A++){var C=this.E[A];if(C.getName()==B){D.add(C)}}return D};mboxList.prototype.getById=function(A){return this.E[A]};mboxList.prototype.length=function(){return this.E.length};mboxList.prototype.each=function(B){if(typeof B!="function"){throw"Action must be a function, was: "+typeof (B)}for(var A=0;A<this.E.length;A++){B(this.E[A])}};mboxLocatorDefault=function(A){this.g="mboxMarker-"+A;document.write('<div id="'+this.g+'" style="visibility:hidden;display:none">&nbsp;</div>')};mboxLocatorDefault.prototype.locate=function(){var A=document.getElementById(this.g);while(A!=null){if(A.nodeType==1){if(A.className=="mboxDefault"){return A}}A=A.previousSibling}return null};mboxLocatorDefault.prototype.force=function(){var A=document.createElement("div");A.className="mboxDefault";var B=document.getElementById(this.g);B.parentNode.insertBefore(A,B);return A};mboxLocatorNode=function(A){this.ob=A};mboxLocatorNode.prototype.locate=function(){return typeof this.ob=="string"?document.getElementById(this.ob):this.ob};mboxLocatorNode.prototype.force=function(){return null};mboxCreate=function(A){var B=mboxFactoryDefault.create(A,mboxShiftArray(arguments));if(B){B.load()}return B};mboxDefine=function(C,A){var B=mboxFactoryDefault.create(A,mboxShiftArray(mboxShiftArray(arguments)),C);return B};mboxUpdate=function(A){mboxFactoryDefault.update(A,mboxShiftArray(arguments))};mbox=function(C,E,B,A,D){this.ub=null;this.vb=0;this.ab=A;this.bb=D;this.wb=null;this.xb=new mboxOfferContent();this.pb=null;this.w=B;this.message="";this.yb=new Object();this.zb=0;this.sb=E;this.g=C;this.Ab();B.addParameter("mbox",C).addParameter("mboxId",E);this.Bb=function(){};this.Cb=function(){};this.Db=null};mbox.prototype.getId=function(){return this.sb};mbox.prototype.Ab=function(){if(this.g.length>250){throw"Mbox Name "+this.g+" exceeds max length of 250 characters."}else{if(this.g.match(/^\s+|\s+$/g)){throw"Mbox Name "+this.g+" has leading/trailing whitespace(s)."}}};mbox.prototype.getName=function(){return this.g};mbox.prototype.getParameters=function(){var C=this.w.getParameters();var B=new Array();for(var A=0;A<C.length;A++){if(C[A].name.indexOf("mbox")!=0){B[B.length]=C[A].name+"="+C[A].value}}return B};mbox.prototype.setOnLoad=function(A){this.Cb=A;return this};mbox.prototype.setMessage=function(A){this.message=A;return this};mbox.prototype.setOnError=function(A){this.Bb=A;return this};mbox.prototype.setFetcher=function(A){if(this.wb){this.wb.cancel()}this.wb=A;return this};mbox.prototype.getFetcher=function(){return this.wb};mbox.prototype.load=function(C){if(this.wb==null){return this}this.setEventTime("load.start");this.cancelTimeout();this.vb=0;var A=(C&&C.length>0)?this.w.clone().addParameters(C):this.w;this.wb.fetch(A);var B=this;this.Fb=setTimeout(function(){B.Bb("browser timeout",B.wb.getType())},15000);this.setEventTime("load.end");return this};mbox.prototype.loaded=function(){this.cancelTimeout();if(!this.activate()){var A=this;setTimeout(function(){A.loaded()},100)}};mbox.prototype.activate=function(){if(this.vb){return this.vb}this.setEventTime("activate"+ ++this.zb+".start");if(this.show()){this.cancelTimeout();this.vb=1}this.setEventTime("activate"+this.zb+".end");return this.vb};mbox.prototype.isActivated=function(){return this.vb};mbox.prototype.setOffer=function(A){if(A&&A.show&&A.setOnLoad){this.xb=A}else{throw"Invalid offer"}return this};mbox.prototype.getOffer=function(){return this.xb};mbox.prototype.show=function(){this.setEventTime("show.start");var A=this.xb.show(this);this.setEventTime(A==1?"show.end.ok":"show.end");return A};mbox.prototype.showContent=function(A){if(A==null){return 0}if(this.pb==null||!this.pb.parentNode){this.pb=this.getDefaultDiv();if(this.pb==null){return 0}}if(this.pb!=A){this.Hb(this.pb);this.pb.parentNode.replaceChild(A,this.pb);this.pb=A}this.Ib(A);this.Cb();return 1};mbox.prototype.hide=function(){this.setEventTime("hide.start");var A=this.showContent(this.getDefaultDiv());this.setEventTime(A==1?"hide.end.ok":"hide.end.fail");return A};mbox.prototype.finalize=function(){this.setEventTime("finalize.start");this.cancelTimeout();if(this.getDefaultDiv()==null){if(this.ab.force()!=null){this.setMessage("No default content, an empty one has been added")}else{this.setMessage("Unable to locate mbox")}}if(!this.activate()){this.hide();this.setEventTime("finalize.end.hide")}this.setEventTime("finalize.end.ok")};mbox.prototype.cancelTimeout=function(){if(this.Fb){clearTimeout(this.Fb)}if(this.wb!=null){this.wb.cancel()}};mbox.prototype.getDiv=function(){return this.pb};mbox.prototype.getDefaultDiv=function(){if(this.Db==null){this.Db=this.ab.locate()}return this.Db};mbox.prototype.setEventTime=function(A){this.yb[A]=(new Date()).getTime()};mbox.prototype.getEventTimes=function(){return this.yb};mbox.prototype.getImportName=function(){return this.bb};mbox.prototype.getURL=function(){return this.w.buildUrl()};mbox.prototype.getUrlBuilder=function(){return this.w};mbox.prototype.Kb=function(A){return A.style.display!="none"};mbox.prototype.Ib=function(A){this.Lb(A,true)};mbox.prototype.Hb=function(A){this.Lb(A,false)};mbox.prototype.Lb=function(B,A){B.style.visibility=A?"visible":"hidden";B.style.display=A?"block":"none"};mboxOfferContent=function(){this.Cb=function(){}};mboxOfferContent.prototype.show=function(A){var B=A.showContent(document.getElementById(A.getImportName()));if(B==1){this.Cb()}return B};mboxOfferContent.prototype.setOnLoad=function(A){this.Cb=A};mboxOfferAjax=function(A){this.Gb=A;this.Cb=function(){}};mboxOfferAjax.prototype.setOnLoad=function(A){this.Cb=A};mboxOfferAjax.prototype.show=function(B){var A=document.createElement("div");A.id=B.getImportName();A.innerHTML=this.Gb;var C=B.showContent(A);if(C==1){this.Cb()}return C};mboxOfferDefault=function(){this.Cb=function(){}};mboxOfferDefault.prototype.setOnLoad=function(A){this.Cb=A};mboxOfferDefault.prototype.show=function(A){var B=A.hide();if(B==1){this.Cb()}return B};mboxCookieManager=function mboxCookieManager(B,A){this.g=B;this.Ob=A==""||A.indexOf(".")==-1?"":"; domain="+A;this.Pb=new mboxMap();this.loadCookies()};mboxCookieManager.prototype.isEnabled=function(){this.setCookie("check","true",60);this.loadCookies();return this.getCookie("check")=="true"};mboxCookieManager.prototype.setCookie=function(C,B,A){if(typeof C!="undefined"&&typeof B!="undefined"&&typeof A!="undefined"){var D=new Object();D.name=C;D.value=escape(B);D.expireOn=Math.ceil(A+new Date().getTime()/1000);this.Pb.put(C,D);this.saveCookies()}};mboxCookieManager.prototype.getCookie=function(A){var B=this.Pb.get(A);return B?unescape(B.value):null};mboxCookieManager.prototype.deleteCookie=function(A){this.Pb.remove(A);this.saveCookies()};mboxCookieManager.prototype.getCookieNames=function(B){var A=new Array();this.Pb.each(function(C,D){if(C.indexOf(B)==0){A[A.length]=C}});return A};mboxCookieManager.prototype.saveCookies=function(){var A=new Array();var B=0;this.Pb.each(function(D,E){A[A.length]=D+"#"+E.value+"#"+E.expireOn;if(B<E.expireOn){B=E.expireOn}});var C=new Date(B*1000);document.cookie=this.g+"="+A.join("|")+"; expires="+C.toGMTString()+"; path=/"+this.Ob};mboxCookieManager.prototype.loadCookies=function(){this.Pb=new mboxMap();var G=document.cookie.indexOf(this.g+"=");if(G!=-1){var A=document.cookie.indexOf(";",G);if(A==-1){A=document.cookie.indexOf(",",G);if(A==-1){A=document.cookie.length}}var B=document.cookie.substring(G+this.g.length+1,A).split("|");var E=Math.ceil(new Date().getTime()/1000);for(var D=0;D<B.length;D++){var F=B[D].split("#");if(E<=F[2]){var C=new Object();C.name=F[0];C.value=F[1];C.expireOn=F[2];this.Pb.put(C.name,C)}}}};mboxSession=function(C,D,B,E,A){this.bc=D;this.jb=B;this.cc=E;this.I=A;this.dc=false;this.sb=typeof mboxForceSessionId!="undefined"?mboxForceSessionId:mboxGetPageParameter(this.bc);if(this.sb==null||this.sb.length==0){this.sb=A.getCookie(B);if(this.sb==null||this.sb.length==0){this.sb=C;this.dc=true}}A.setCookie(B,this.sb,E)};mboxSession.prototype.getId=function(){return this.sb};mboxSession.prototype.forceId=function(A){this.sb=A;this.I.setCookie(this.jb,this.sb,this.cc)};mboxPC=function(B,C,A){this.jb=B;this.cc=C;this.I=A;this.sb=typeof mboxForcePCId!="undefined"?mboxForcePCId:A.getCookie(B);if(this.sb!=null){A.setCookie(B,this.sb,C)}};mboxPC.prototype.getId=function(){return this.sb};mboxPC.prototype.forceId=function(A){if(this.sb!=A){this.sb=A;this.I.setCookie(this.jb,this.sb,this.cc);return true}return false};mboxGetPageParameter=function(B){var D=null;var A=new RegExp(B+"=([^&]*)");var C=A.exec(document.location);if(C!=null&&C.length>=2){D=C[1]}return D};mboxSetCookie=function(C,B,A){return mboxFactoryDefault.getCookieManager().setCookie(C,B,A)};mboxGetCookie=function(A){return mboxFactoryDefault.getCookieManager().getCookie(A)};mboxCookiePageDomain=function(){var B=(/([^:]*)(:[0-9]{0,5})?/).exec(document.location.host)[1];var C=/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/;if(!C.exec(B)){var A=(/([^\.]+\.[^\.]{3}|[^\.]+\.[^\.]+\.[^\.]{2})$/).exec(B);if(A){B=A[0]}}return B?B:""};mboxShiftArray=function(A){var C=new Array();for(var B=1;B<A.length;B++){C[C.length]=A[B]}return C};mboxGenerateId=function(){return(new Date()).getTime()+"-"+Math.floor(Math.random()*999999)};if(typeof mboxVersion=="undefined"){var mboxVersion=38;var mboxFactories=new mboxMap();var mboxFactoryDefault=new mboxFactory("dermadoctor.tt.omtrdc.net","dermadoctor","default")}if(mboxGetPageParameter("mboxDebug")!=null||mboxFactoryDefault.getCookieManager().getCookie("debug")!=null){setTimeout(function(){if(typeof mboxDebugLoaded=="undefined"){alert("Could not load the remote debug.\nPlease check your connection to Test&amp;Target servers")}},60*60);document.write('<script language="Javascript1.2" src="http://admin16.testandtarget.omniture.com/admin/mbox/mbox_debug.jsp?mboxServerHost=dermadoctor.tt.omtrdc.net&clientCode=dermadoctor"><\/script>')}mboxScPluginFetcher=function(A,B){this.b=A;this.kc=B};mboxScPluginFetcher.prototype.lc=function(A){A.setBasePath("/m2/"+this.b+"/sc/standard");this.mc(A);var B=A.buildUrl();B+="&scPluginVersion=1";return B};mboxScPluginFetcher.prototype.mc=function(A){var C=["dynamicVariablePrefix","visitorID","vmk","ppu","charSet","visitorNamespace","cookieDomainPeriods","cookieLifetime","pageName","currencyCode","variableProvider","channel","server","pageType","transactionID","purchaseID","campaign","state","zip","events","products","linkName","linkType","resolution","colorDepth","javascriptVersion","javaEnabled","cookiesEnabled","browserWidth","browserHeight","connectionType","homepage","pe","pev1","pev2","pev3","visitorSampling","visitorSamplingGroup","dynamicAccountSelection","dynamicAccountList","dynamicAccountMatch","trackDownloadLinks","trackExternalLinks","trackInlineStats","linkLeaveQueryString","linkDownloadFileTypes","linkExternalFilters","linkInternalFilters","linkTrackVars","linkTrackEvents","linkNames","lnk","eo"];for(var B=0;B<C.length;B++){this.oc(C[B],A)}for(var B=1;B<=50;B++){this.oc("prop"+B,A);this.oc("eVar"+B,A);this.oc("hier"+B,A)}};mboxScPluginFetcher.prototype.oc=function(C,A){var B=this.kc[C];if(typeof (B)==="undefined"||B===null||B===""){return }A.addParameter(C,B)};mboxScPluginFetcher.prototype.cancel=function(){};mboxStandardScPluginFetcher=function(A,B){mboxScPluginFetcher.call(this,A,B)};mboxStandardScPluginFetcher.prototype=new mboxScPluginFetcher;mboxStandardScPluginFetcher.prototype.getType=function(){return"standard"};mboxStandardScPluginFetcher.prototype.fetch=function(A){A.setServerType(this.getType());var B=this.lc(A);document.write('<script src="'+B+'" language="JavaScript"><\/script>')};mboxAjaxScPluginFetcher=function(A,B){mboxScPluginFetcher.call(this,A,B)};mboxAjaxScPluginFetcher.prototype=new mboxScPluginFetcher;mboxAjaxScPluginFetcher.prototype.fetch=function(A){A.setServerType(this.getType());var B=this.lc(A);this.x=document.createElement("script");this.x.src=B;document.body.appendChild(this.x)};mboxAjaxScPluginFetcher.prototype.getType=function(){return"ajax"};function mboxLoadSCPlugin(A){if(!A){return null}A.m_tt=function(C){var B=C.m_i("tt");B.G=true;B.b="dermadoctor";B._t=function(){if(!this.isEnabled()){return }var E=this.rc();if(E){var D=mboxFactoryDefault.isDomLoaded()?new mboxAjaxScPluginFetcher(this.b,this.s):new mboxStandardScPluginFetcher(this.b,this.s);E.setFetcher(D);E.load()}};B.isEnabled=function(){return this.G&&mboxFactoryDefault.isEnabled()};B.rc=function(){var D=this.sc();var E=document.createElement("DIV");return mboxFactoryDefault.create(D,new Array(),E)};B.sc=function(){var D=this.s.events&&this.s.events.indexOf("purchase")!=-1;return"SiteCatalyst: "+(D?"purchase":"event")}};return A.loadModule("tt")};