var mboxCopyright="Copyright 1996-2009. Adobe Systems Incorporated. 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(F){for(var D=0;D<this.z.length;D++){var C=this.z[D];var E=this.y[C];if(E){var G=F(C,E);if(G===false){break;}}}};mboxFactory=function(G,B,F){this.E=false;this.C=G;this.D=F;this.F=new mboxList();mboxFactories.put(F,this);this.G=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.H=this.G&&mboxGetPageParameter("mboxDisable")==null;var E=F=="default";this.J=new mboxCookieManager("mbox"+(E?"":("-"+F)),(function(){return mboxCookiePageDomain();})());this.H=this.H&&this.J.isEnabled()&&(this.J.getCookie("disable")==null);if(this.isAdmin()){this.enable();}this.K=mboxGenerateId();this.L=mboxScreenHeight();this.M=mboxScreenWidth();this.N=mboxBrowserWidth();this.O=mboxBrowserHeight();this.P=mboxScreenColorDepth();this.Q=mboxBrowserTimeOffset();this.R=new mboxSession(this.K,"mboxSession","session",31*60,this.J);this.S=new mboxPC("PC",1209600,this.J);this.w=new mboxUrlBuilder(G,B);this.T(this.w,E);this.U=new Date().getTime();this.V=this.U;var A=this;this.addOnLoad(function(){A.V=new Date().getTime();});if(this.G){this.addOnLoad(function(){A.E=true;A.getMboxes().each(function(C){C.setFetcher(new mboxAjaxFetcher());C.finalize();});});this.limitTraffic(100,10368000);if(this.H){this.Y();this.Z=new mboxSignaler(function(C,D){return A.create(C,D);},this.J);}}};mboxFactory.prototype.isEnabled=function(){return this.H;};mboxFactory.prototype.getDisableReason=function(){return this.J.getCookie("disable");};mboxFactory.prototype.isSupported=function(){return this.G;};mboxFactory.prototype.disable=function(A,B){if(typeof A=="undefined"){A=60*60;}if(typeof B=="undefined"){B="unspecified";}if(!this.isAdmin()){this.H=false;this.J.setCookie("disable",B,A);}};mboxFactory.prototype.enable=function(){this.H=true;this.J.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.V-this.U;};mboxFactory.prototype.getEllapsedTimeUntil=function(A){return A-this.U;};mboxFactory.prototype.getMboxes=function(){return this.F;};mboxFactory.prototype.get=function(A,B){return this.F.get(A).getById(B||0);};mboxFactory.prototype.update=function(A,B){if(!this.isEnabled()){return ;}if(this.F.get(A).length()==0){throw"Mbox "+A+" is not defined";}this.F.get(A).each(function(C){C.getUrlBuilder().addParameter("mboxPage",mboxGenerateId());C.load(B);});};mboxFactory.prototype.create=function(K,J,E){if(!this.isSupported()){return null;}var H=this.w.clone();H.addParameter("mboxCount",this.F.length()+1);H.addParameters(J);var I=this.F.get(K).length();var L=this.D+"-"+K+"-"+I;var G;if(E){G=new mboxLocatorNode(E);}else{if(this.E){throw"The page has already been loaded, can't write marker";}G=new mboxLocatorDefault(L);}try{var D=this;var C="mboxImported-"+L;var B=new mbox(K,I,H,G,C);if(this.H){B.setFetcher(this.E?new mboxAjaxFetcher():new mboxStandardFetcher());}B.setOnError(function(M,N){B.setMessage(M);B.activate();if(!B.isActivated()){D.disable(60*60,M);window.location.reload(false);}});this.F.add(B);}catch(F){this.disable();throw'Failed creating mbox "'+K+'", the error was: '+F;}var A=new Date();H.addParameter("mboxTime",A.getTime()-(A.getTimezoneOffset()*60000));return B;};mboxFactory.prototype.getCookieManager=function(){return this.J;};mboxFactory.prototype.getPageId=function(){return this.K;};mboxFactory.prototype.getPCId=function(){return this.S;};mboxFactory.prototype.getSessionId=function(){return this.R;};mboxFactory.prototype.getSignaler=function(){return this.Z;};mboxFactory.prototype.getUrlBuilder=function(){return this.w;};mboxFactory.prototype.T=function(B,A){B.addParameter("mboxHost",document.location.hostname).addParameter("mboxSession",this.R.getId());if(!A){B.addParameter("mboxFactoryId",this.D);}if(this.S.getId()!=null){B.addParameter("mboxPC",this.S.getId());}B.addParameter("mboxPage",this.K);B.addParameter("screenHeight",this.L);B.addParameter("screenWidth",this.M);B.addParameter("browserWidth",this.N);B.addParameter("browserHeight",this.O);B.addParameter("browserTimeOffset",this.Q);B.addParameter("colorDepth",this.P);B.addParameter("mboxXDomain","enabled");B.setUrlProcessAction(function(C){C+="&mboxURL="+encodeURIComponent(document.location);var D=encodeURIComponent(document.referrer);if(C.length+D.length<2000){C+="&mboxReferrer="+D;}C+="&mboxVersion="+mboxVersion;return C;});};mboxFactory.prototype.nb=function(){return"";};mboxFactory.prototype.Y=function(){document.write("<style>.mboxDefault { visibility:hidden; }</style>");};mboxFactory.prototype.isDomLoaded=function(){return this.E;};mboxSignaler=function(B,A){this.J=A;var D=A.getCookieNames("signal-");for(var C=0;C<D.length;C++){var E=D[C];var F=A.getCookie(E).split("&");var G=B(F[0],F);G.load();A.deleteCookie(E);}};mboxSignaler.prototype.signal=function(B,A){this.J.setCookie("signal-"+B,mboxShiftArray(arguments).join("&"),45*60);};mboxList=function(){this.F=new Array();};mboxList.prototype.add=function(A){if(A!=null){this.F[this.F.length]=A;}};mboxList.prototype.get=function(C){var E=new mboxList();for(var A=0;A<this.F.length;A++){var D=this.F[A];if(D.getName()==C){E.add(D);}}return E;};mboxList.prototype.getById=function(A){return this.F[A];};mboxList.prototype.length=function(){return this.F.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.F.length;A++){B(this.F[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.ub=A;};mboxLocatorNode.prototype.locate=function(){return typeof this.ub=="string"?document.getElementById(this.ub):this.ub;};mboxLocatorNode.prototype.force=function(){return null;};mboxCreate=function(A){var B=mboxFactoryDefault.create(A,mboxShiftArray(arguments));if(B){B.load();}return B;};mboxDefine=function(B,A){var C=mboxFactoryDefault.create(A,mboxShiftArray(mboxShiftArray(arguments)),B);return C;};mboxUpdate=function(A){mboxFactoryDefault.update(A,mboxShiftArray(arguments));};mbox=function(E,A,C,D,B){this.Ab=null;this.Bb=0;this.hb=D;this.ib=B;this.Cb=null;this.Db=new mboxOfferContent();this.vb=null;this.w=C;this.message="";this.Eb=new Object();this.Fb=0;this.yb=A;this.g=E;this.Gb();C.addParameter("mbox",E).addParameter("mboxId",A);this.Hb=function(){};this.Ib=function(){};this.Jb=null;};mbox.prototype.getId=function(){return this.yb;};mbox.prototype.Gb=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 D=this.w.getParameters();var C=new Array();for(var A=0;A<D.length;A++){if(D[A].name.indexOf("mbox")!=0){C[C.length]=D[A].name+"="+D[A].value;}}return C;};mbox.prototype.setOnLoad=function(A){this.Ib=A;return this;};mbox.prototype.setMessage=function(A){this.message=A;return this;};mbox.prototype.setOnError=function(A){this.Hb=A;return this;};mbox.prototype.setFetcher=function(A){if(this.Cb){this.Cb.cancel();}this.Cb=A;return this;};mbox.prototype.getFetcher=function(){return this.Cb;};mbox.prototype.load=function(C){if(this.Cb==null){return this;}this.setEventTime("load.start");this.cancelTimeout();this.Bb=0;var B=(C&&C.length>0)?this.w.clone().addParameters(C):this.w;this.Cb.fetch(B);var A=this;this.Lb=setTimeout(function(){A.Hb("browser timeout",A.Cb.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.Bb){return this.Bb;}this.setEventTime("activate"+ ++this.Fb+".start");if(this.show()){this.cancelTimeout();this.Bb=1;}this.setEventTime("activate"+this.Fb+".end");return this.Bb;};mbox.prototype.isActivated=function(){return this.Bb;};mbox.prototype.setOffer=function(A){if(A&&A.show&&A.setOnLoad){this.Db=A;}else{throw"Invalid offer";}return this;};mbox.prototype.getOffer=function(){return this.Db;};mbox.prototype.show=function(){this.setEventTime("show.start");var A=this.Db.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.vb==null||!this.vb.parentNode){this.vb=this.getDefaultDiv();if(this.vb==null){return 0;}}if(this.vb!=A){this.Nb(this.vb);this.vb.parentNode.replaceChild(A,this.vb);this.vb=A;}this.Ob(A);this.Ib();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.hb.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.Lb){clearTimeout(this.Lb);}if(this.Cb!=null){this.Cb.cancel();}};mbox.prototype.getDiv=function(){return this.vb;};mbox.prototype.getDefaultDiv=function(){if(this.Jb==null){this.Jb=this.hb.locate();}return this.Jb;};mbox.prototype.setEventTime=function(A){this.Eb[A]=(new Date()).getTime();};mbox.prototype.getEventTimes=function(){return this.Eb;};mbox.prototype.getImportName=function(){return this.ib;};mbox.prototype.getURL=function(){return this.w.buildUrl();};mbox.prototype.getUrlBuilder=function(){return this.w;};mbox.prototype.Qb=function(A){return A.style.display!="none";};mbox.prototype.Ob=function(A){this.Rb(A,true);};mbox.prototype.Nb=function(A){this.Rb(A,false);};mbox.prototype.Rb=function(B,A){B.style.visibility=A?"visible":"hidden";B.style.display=A?"block":"none";};mboxOfferContent=function(){this.Ib=function(){};};mboxOfferContent.prototype.show=function(C){var A=C.showContent(document.getElementById(C.getImportName()));if(A==1){this.Ib();}return A;};mboxOfferContent.prototype.setOnLoad=function(A){this.Ib=A;};mboxOfferAjax=function(A){this.Mb=A;this.Ib=function(){};};mboxOfferAjax.prototype.setOnLoad=function(A){this.Ib=A;};mboxOfferAjax.prototype.show=function(D){var A=document.createElement("div");A.id=D.getImportName();A.innerHTML=this.Mb;var C=D.showContent(A);if(C==1){this.Ib();}return C;};mboxOfferDefault=function(){this.Ib=function(){};};mboxOfferDefault.prototype.setOnLoad=function(A){this.Ib=A;};mboxOfferDefault.prototype.show=function(C){var A=C.hide();if(A==1){this.Ib();}return A;};mboxCookieManager=function mboxCookieManager(B,A){this.g=B;this.Ub=A==""||A.indexOf(".")==-1?"":"; domain="+A;this.Vb=new mboxMap();this.loadCookies();};mboxCookieManager.prototype.isEnabled=function(){this.setCookie("check","true",60);this.loadCookies();return this.getCookie("check")=="true";};mboxCookieManager.prototype.setCookie=function(B,A,C){if(typeof B!="undefined"&&typeof A!="undefined"&&typeof C!="undefined"){var D=new Object();D.name=B;D.value=escape(A);D.expireOn=Math.ceil(C+new Date().getTime()/1000);this.Vb.put(B,D);this.saveCookies();}};mboxCookieManager.prototype.getCookie=function(A){var B=this.Vb.get(A);return B?unescape(B.value):null;};mboxCookieManager.prototype.deleteCookie=function(A){this.Vb.remove(A);this.saveCookies();};mboxCookieManager.prototype.getCookieNames=function(A){var B=new Array();this.Vb.each(function(C,D){if(C.indexOf(A)==0){B[B.length]=C;}});return B;};mboxCookieManager.prototype.saveCookies=function(){var B=new Array();var A=0;this.Vb.each(function(D,E){B[B.length]=D+"#"+E.value+"#"+E.expireOn;if(A<E.expireOn){A=E.expireOn;}});var C=new Date(A*1000);document.cookie=this.g+"="+B.join("|")+"; expires="+C.toGMTString()+"; path=/"+this.Ub;};mboxCookieManager.prototype.loadCookies=function(){this.Vb=new mboxMap();var E=document.cookie.indexOf(this.g+"=");if(E!=-1){var G=document.cookie.indexOf(";",E);if(G==-1){G=document.cookie.indexOf(",",E);if(G==-1){G=document.cookie.length;}}var A=document.cookie.substring(E+this.g.length+1,G).split("|");var C=Math.ceil(new Date().getTime()/1000);for(var B=0;B<A.length;B++){var F=A[B].split("#");if(C<=F[2]){var D=new Object();D.name=F[0];D.value=F[1];D.expireOn=F[2];this.Vb.put(D.name,D);}}}};mboxSession=function(D,E,C,A,B){this.hc=E;this.qb=C;this.ic=A;this.J=B;this.jc=false;this.yb=typeof mboxForceSessionId!="undefined"?mboxForceSessionId:mboxGetPageParameter(this.hc);if(this.yb==null||this.yb.length==0){this.yb=B.getCookie(C);if(this.yb==null||this.yb.length==0){this.yb=D;this.jc=true;}}B.setCookie(C,this.yb,A);};mboxSession.prototype.getId=function(){return this.yb;};mboxSession.prototype.forceId=function(A){this.yb=A;this.J.setCookie(this.qb,this.yb,this.ic);};mboxPC=function(C,A,B){this.qb=C;this.ic=A;this.J=B;this.yb=typeof mboxForcePCId!="undefined"?mboxForcePCId:B.getCookie(C);if(this.yb!=null){B.setCookie(C,this.yb,A);}};mboxPC.prototype.getId=function(){return this.yb;};mboxPC.prototype.forceId=function(A){if(this.yb!=A){this.yb=A;this.J.setCookie(this.qb,this.yb,this.ic);return true;}return false;};mboxGetPageParameter=function(C){var E=null;var A=new RegExp(C+"=([^&]*)");var D=A.exec(document.location);if(D!=null&&D.length>=2){E=D[1];}return E;};mboxSetCookie=function(B,A,C){return mboxFactoryDefault.getCookieManager().setCookie(B,A,C);};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(C){var D=new Array();for(var A=1;A<C.length;A++){D[D.length]=C[A];}return D;};mboxGenerateId=function(){return(new Date()).getTime()+"-"+Math.floor(Math.random()*999999);};mboxScreenHeight=function(){return screen.height;};mboxScreenWidth=function(){return screen.width;};mboxBrowserWidth=function(){return(window.innerWidth)?window.innerWidth:document.documentElement?document.documentElement.clientWidth:document.body.clientWidth;};mboxBrowserHeight=function(){return(window.innerHeight)?window.innerHeight:document.documentElement?document.documentElement.clientHeight:document.body.clientHeight;};mboxBrowserTimeOffset=function(){return -new Date().getTimezoneOffset();};mboxScreenColorDepth=function(){return screen.pixelDepth;};if(typeof mboxVersion=="undefined"){var mboxVersion=39;var mboxFactories=new mboxMap();var mboxFactoryDefault=new mboxFactory("sungarddatasystemsin.tt.omtrdc.net","sungarddatasystemsin","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=sungarddatasystemsin.tt.omtrdc.net&clientCode=sungarddatasystemsin"><\/script>');}