var mboxCopyright="Copyright 1996-2009. Adobe Systems Incorporated. All rights reserved";mboxUrlBuilder=function(a,b){this.a=a;this.b=b;this.c=new Array();this.d=function(e){return e;};this.f=null;};mboxUrlBuilder.prototype.addParameter=function(g,h){var i=new RegExp('(\'|")');if(i.exec(g)){throw"Parameter '"+g+"' contains invalid characters";}for(var j=0;j<this.c.length;j++){var k=this.c[j];if(k.name==g){k.value=h;return this;}}var l=new Object();l.name=g;l.value=h;this.c[this.c.length]=l;return this;};mboxUrlBuilder.prototype.addParameters=function(c){if(!c){return this;}for(var j=0;j<c.length;j++){var m=c[j].indexOf('=');if(m==-1||m==0){continue;}this.addParameter(c[j].substring(0,m),c[j].substring(m+1,c[j].length));}return this;};mboxUrlBuilder.prototype.setServerType=function(n){this.o=n;};mboxUrlBuilder.prototype.setBasePath=function(f){this.f=f;};mboxUrlBuilder.prototype.setUrlProcessAction=function(p){this.d=p;};mboxUrlBuilder.prototype.buildUrl=function(){var q=this.f?this.f:'/m2/'+this.b+'/mbox/'+this.o;var r=document.location.protocol=='file:'?'http:':document.location.protocol;var e=r+"//"+this.a+q;var s=e.indexOf('?')!=-1?'&':'?';for(var j=0;j<this.c.length;j++){var k=this.c[j];e+=s+encodeURIComponent(k.name)+'='+encodeURIComponent(k.value);s='&';}return this.t(this.d(e));};mboxUrlBuilder.prototype.getParameters=function(){return this.c;};mboxUrlBuilder.prototype.setParameters=function(c){this.c=c;};mboxUrlBuilder.prototype.clone=function(){var u=new mboxUrlBuilder(this.a,this.b);u.setServerType(this.o);u.setBasePath(this.f);u.setUrlProcessAction(this.d);for(var j=0;j<this.c.length;j++){u.addParameter(this.c[j].name,this.c[j].value);}return u;};mboxUrlBuilder.prototype.t=function(v){return v.replace(/\"/g,'&quot;').replace(/>/g,'&gt;');};mboxStandardFetcher=function(){};mboxStandardFetcher.prototype.getType=function(){return'standard';};mboxStandardFetcher.prototype.fetch=function(w){w.setServerType(this.getType());document.write('<'+'scr'+'ipt src="'+w.buildUrl()+'" language="JavaScript"><'+'\/scr'+'ipt>');};mboxStandardFetcher.prototype.cancel=function(){};mboxAjaxFetcher=function(){};mboxAjaxFetcher.prototype.getType=function(){return'ajax';};mboxAjaxFetcher.prototype.fetch=function(w){w.setServerType(this.getType());var e=w.buildUrl();this.x=document.createElement('script');this.x.src=e;document.body.appendChild(this.x);};mboxAjaxFetcher.prototype.cancel=function(){};mboxMap=function(){this.y=new Object();this.z=new Array();};mboxMap.prototype.put=function(A,h){if(!this.y[A]){this.z[this.z.length]=A;}this.y[A]=h;};mboxMap.prototype.get=function(A){return this.y[A];};mboxMap.prototype.remove=function(A){this.y[A]=undefined;};mboxMap.prototype.each=function(p){for(var j=0;j<this.z.length;j++){var A=this.z[j];var h=this.y[A];if(h){p(A,h);}}};mboxFactory=function(B,b,C){this.D=false;this.B=B;this.C=C;this.E=new mboxList();mboxFactories.put(C,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 H=C=='default';this.I=new mboxCookieManager('mbox'+(H?'':('-'+C)),(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=mboxScreenHeight();this.L=mboxScreenWidth();this.M=mboxBrowserWidth();this.N=mboxBrowserHeight();this.O=mboxScreenColorDepth();this.P=mboxBrowserTimeOffset();this.Q=new mboxSession(this.J,'mboxSession','session',31*60,this.I);this.R=new mboxPC('PC',1209600,this.I);this.w=new mboxUrlBuilder(B,b);this.S(this.w,H);this.T=new Date().getTime();this.U=this.T;var V=this;this.addOnLoad(function(){V.U=new Date().getTime();});if(this.F){this.addOnLoad(function(){V.D=true;V.getMboxes().each(function(W){W.setFetcher(new mboxAjaxFetcher());W.finalize();});});this.limitTraffic(100,10368000);if(this.G){this.X();this.Y=new mboxSignaler(function(Z,c){return V.create(Z,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(_,ab){if(typeof _=='undefined'){_=60*60;}if(typeof ab=='undefined'){ab='unspecified';}if(!this.isAdmin()){this.G=false;this.I.setCookie('disable',ab,_);}};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(bb,_){};mboxFactory.prototype.addOnLoad=function(p){if(window.addEventListener){window.addEventListener('load',p,false);}else if(document.addEventListener){document.addEventListener('load',p,false);}else if(document.attachEvent){window.attachEvent('onload',p);}};mboxFactory.prototype.getEllapsedTime=function(){return this.U-this.T;};mboxFactory.prototype.getEllapsedTimeUntil=function(cb){return cb-this.T;};mboxFactory.prototype.getMboxes=function(){return this.E;};mboxFactory.prototype.get=function(Z,db){return this.E.get(Z).getById(db||0);};mboxFactory.prototype.update=function(Z,c){if(!this.isEnabled()){return;}if(this.E.get(Z).length()==0){throw"Mbox "+Z+" is not defined";}this.E.get(Z).each(function(W){W.getUrlBuilder().addParameter('mboxPage',mboxGenerateId());W.load(c);});};mboxFactory.prototype.create=function(Z,c,eb){if(!this.isSupported()){return null;}var e=this.w.clone();e.addParameter('mboxCount',this.E.length()+1);e.addParameters(c);var db=this.E.get(Z).length();var fb=this.C+'-'+Z+'-'+db;var gb;if(eb){gb=new mboxLocatorNode(eb);}else{if(this.D){throw'The page has already been loaded, can\'t write marker';}gb=new mboxLocatorDefault(fb);}try{var V=this;var hb='mboxImported-'+fb;var W=new mbox(Z,db,e,gb,hb);if(this.G){W.setFetcher(this.D?new mboxAjaxFetcher():new mboxStandardFetcher());}W.setOnError(function(ib,n){W.setMessage(ib);W.activate();if(!W.isActivated()){V.disable(60*60,ib);window.location.reload(false);}});this.E.add(W);}catch(jb){this.disable();throw'Failed creating mbox "'+Z+'", the error was: '+jb;}var kb=new Date();e.addParameter('mboxTime',kb.getTime()-(kb.getTimezoneOffset()*60000));return W;};mboxFactory.prototype.getCookieManager=function(){return this.I;};mboxFactory.prototype.getPageId=function(){return this.J;};mboxFactory.prototype.getPCId=function(){return this.R;};mboxFactory.prototype.getSessionId=function(){return this.Q;};mboxFactory.prototype.getSignaler=function(){return this.Y;};mboxFactory.prototype.getUrlBuilder=function(){return this.w;};mboxFactory.prototype.S=function(e,H){e.addParameter('mboxHost',document.location.hostname).addParameter('mboxSession',this.Q.getId());if(!H){e.addParameter('mboxFactoryId',this.C);}if(this.R.getId()!=null){e.addParameter('mboxPC',this.R.getId());}e.addParameter('mboxPage',this.J);e.addParameter('screenHeight',this.K);e.addParameter('screenWidth',this.L);e.addParameter('browserWidth',this.M);e.addParameter('browserHeight',this.N);e.addParameter('browserTimeOffset',this.P);e.addParameter('colorDepth',this.O);e.setUrlProcessAction(function(e){e+='&mboxURL='+encodeURIComponent(document.location);var lb=encodeURIComponent(document.referrer);if(e.length+lb.length<2000){e+='&mboxReferrer='+lb;}e+='&mboxVersion='+mboxVersion;return e;});};mboxFactory.prototype.mb=function(){return"";};mboxFactory.prototype.X=function(){document.write('<style>.'+'mboxDefault'+' { visibility:hidden; }</style>');};mboxFactory.prototype.isDomLoaded=function(){return this.D;};mboxSignaler=function(nb,I){this.I=I;var ob=I.getCookieNames('signal-');for(var j=0;j<ob.length;j++){var pb=ob[j];var qb=I.getCookie(pb).split('&');var W=nb(qb[0],qb);W.load();I.deleteCookie(pb);}};mboxSignaler.prototype.signal=function(rb,Z){this.I.setCookie('signal-'+rb,mboxShiftArray(arguments).join('&'),45*60);};mboxList=function(){this.E=new Array();};mboxList.prototype.add=function(W){if(W!=null){this.E[this.E.length]=W;}};mboxList.prototype.get=function(Z){var sb=new mboxList();for(var j=0;j<this.E.length;j++){var W=this.E[j];if(W.getName()==Z){sb.add(W);}}return sb;};mboxList.prototype.getById=function(tb){return this.E[tb];};mboxList.prototype.length=function(){return this.E.length;};mboxList.prototype.each=function(p){if(typeof p!='function'){throw'Action must be a function, was: '+typeof(p);}for(var j=0;j<this.E.length;j++){p(this.E[j]);}};mboxLocatorDefault=function(g){this.g='mboxMarker-'+g;document.write('<div id="'+this.g+'" style="visibility:hidden;display:none">&nbsp;</div>');};mboxLocatorDefault.prototype.locate=function(){var ub=document.getElementById(this.g);while(ub!=null){if(ub.nodeType==1){if(ub.className=='mboxDefault'){return ub;}}ub=ub.previousSibling;}return null;};mboxLocatorDefault.prototype.force=function(){var vb=document.createElement('div');vb.className='mboxDefault';var wb=document.getElementById(this.g);wb.parentNode.insertBefore(vb,wb);return vb;};mboxLocatorNode=function(xb){this.ub=xb;};mboxLocatorNode.prototype.locate=function(){return typeof this.ub=='string'?document.getElementById(this.ub):this.ub;};mboxLocatorNode.prototype.force=function(){return null;};mboxCreate=function(Z){var W=mboxFactoryDefault.create(Z,mboxShiftArray(arguments));if(W){W.load();}return W;};mboxDefine=function(eb,Z){var W=mboxFactoryDefault.create(Z,mboxShiftArray(mboxShiftArray(arguments)),eb);return W;};mboxUpdate=function(Z){mboxFactoryDefault.update(Z,mboxShiftArray(arguments));};mbox=function(g,yb,w,zb,hb){this.Ab=null;this.Bb=0;this.gb=zb;this.hb=hb;this.Cb=null;this.Db=new mboxOfferContent();this.vb=null;this.w=w;this.message='';this.Eb=new Object();this.Fb=0;this.yb=yb;this.g=g;this.Gb();w.addParameter('mbox',g).addParameter('mboxId',yb);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 c=this.w.getParameters();var sb=new Array();for(var j=0;j<c.length;j++){if(c[j].name.indexOf('mbox')!=0){sb[sb.length]=c[j].name+'='+c[j].value;}}return sb;};mbox.prototype.setOnLoad=function(p){this.Ib=p;return this;};mbox.prototype.setMessage=function(ib){this.message=ib;return this;};mbox.prototype.setOnError=function(Hb){this.Hb=Hb;return this;};mbox.prototype.setFetcher=function(Kb){if(this.Cb){this.Cb.cancel();}this.Cb=Kb;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 w=(c&&c.length>0)?this.w.clone().addParameters(c):this.w;this.Cb.fetch(w);var V=this;this.Lb=setTimeout(function(){V.Hb('browser timeout',V.Cb.getType());},15000);this.setEventTime("load.end");return this;};mbox.prototype.loaded=function(){this.cancelTimeout();if(!this.activate()){var V=this;setTimeout(function(){V.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(Db){if(Db&&Db.show&&Db.setOnLoad){this.Db=Db;}else{throw'Invalid offer';}return this;};mbox.prototype.getOffer=function(){return this.Db;};mbox.prototype.show=function(){this.setEventTime('show.start');var sb=this.Db.show(this);this.setEventTime(sb==1?"show.end.ok":"show.end");return sb;};mbox.prototype.showContent=function(Mb){if(Mb==null){return 0;}if(this.vb==null||!this.vb.parentNode){this.vb=this.getDefaultDiv();if(this.vb==null){return 0;}}if(this.vb!=Mb){this.Nb(this.vb);this.vb.parentNode.replaceChild(Mb,this.vb);this.vb=Mb;}this.Ob(Mb);this.Ib();return 1;};mbox.prototype.hide=function(){this.setEventTime('hide.start');var sb=this.showContent(this.getDefaultDiv());this.setEventTime(sb==1?'hide.end.ok':'hide.end.fail');return sb;};mbox.prototype.finalize=function(){this.setEventTime('finalize.start');this.cancelTimeout();if(this.getDefaultDiv()==null){if(this.gb.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.gb.locate();}return this.Jb;};mbox.prototype.setEventTime=function(Pb){this.Eb[Pb]=(new Date()).getTime();};mbox.prototype.getEventTimes=function(){return this.Eb;};mbox.prototype.getImportName=function(){return this.hb;};mbox.prototype.getURL=function(){return this.w.buildUrl();};mbox.prototype.getUrlBuilder=function(){return this.w;};mbox.prototype.Qb=function(vb){return vb.style.display!='none';};mbox.prototype.Ob=function(vb){this.Rb(vb,true);};mbox.prototype.Nb=function(vb){this.Rb(vb,false);};mbox.prototype.Rb=function(vb,Sb){vb.style.visibility=Sb?"visible":"hidden";vb.style.display=Sb?"block":"none";};mboxOfferContent=function(){this.Ib=function(){};};mboxOfferContent.prototype.show=function(W){var sb=W.showContent(document.getElementById(W.getImportName()));if(sb==1){this.Ib();}return sb;};mboxOfferContent.prototype.setOnLoad=function(Ib){this.Ib=Ib;};mboxOfferAjax=function(Mb){this.Mb=Mb;this.Ib=function(){};};mboxOfferAjax.prototype.setOnLoad=function(Ib){this.Ib=Ib;};mboxOfferAjax.prototype.show=function(W){var Tb=document.createElement('div');Tb.id=W.getImportName();Tb.innerHTML=this.Mb;var sb=W.showContent(Tb);if(sb==1){this.Ib();}return sb;};mboxOfferDefault=function(){this.Ib=function(){};};mboxOfferDefault.prototype.setOnLoad=function(Ib){this.Ib=Ib;};mboxOfferDefault.prototype.show=function(W){var sb=W.hide();if(sb==1){this.Ib();}return sb;};mboxCookieManager=function mboxCookieManager(g,Ub){this.g=g;this.Ub=Ub==''||Ub.indexOf('.')==-1?'':'; domain='+Ub;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(g,h,_){if(typeof g!='undefined'&&typeof h!='undefined'&&typeof _!='undefined'){var Wb=new Object();Wb.name=g;Wb.value=escape(h);Wb.expireOn=Math.ceil(_+new Date().getTime()/1000);this.Vb.put(g,Wb);this.saveCookies();}};mboxCookieManager.prototype.getCookie=function(g){var Wb=this.Vb.get(g);return Wb?unescape(Wb.value):null;};mboxCookieManager.prototype.deleteCookie=function(g){this.Vb.remove(g);this.saveCookies();};mboxCookieManager.prototype.getCookieNames=function(Xb){var Yb=new Array();this.Vb.each(function(g,Wb){if(g.indexOf(Xb)==0){Yb[Yb.length]=g;}});return Yb;};mboxCookieManager.prototype.saveCookies=function(){var Zb=new Array();var _b=0;this.Vb.each(function(g,Wb){Zb[Zb.length]=g+'#'+Wb.value+'#'+Wb.expireOn;if(_b<Wb.expireOn){_b=Wb.expireOn;}});var ac=new Date(_b*1000);document.cookie=this.g+'='+Zb.join('|')+'; expires='+ac.toGMTString()+'; path=/'+this.Ub;};mboxCookieManager.prototype.loadCookies=function(){this.Vb=new mboxMap();var bc=document.cookie.indexOf(this.g+'=');if(bc!=-1){var cc=document.cookie.indexOf(';',bc);if(cc==-1){cc=document.cookie.indexOf(',',bc);if(cc==-1){cc=document.cookie.length;}}var dc=document.cookie.substring(bc+this.g.length+1,cc).split('|');var ec=Math.ceil(new Date().getTime()/1000);for(var j=0;j<dc.length;j++){var Wb=dc[j].split('#');if(ec<=Wb[2]){var fc=new Object();fc.name=Wb[0];fc.value=Wb[1];fc.expireOn=Wb[2];this.Vb.put(fc.name,fc);}}}};mboxSession=function(gc,hc,pb,ic,I){this.hc=hc;this.pb=pb;this.ic=ic;this.I=I;this.jc=false;this.yb=typeof mboxForceSessionId!='undefined'?mboxForceSessionId:mboxGetPageParameter(this.hc);if(this.yb==null||this.yb.length==0){this.yb=I.getCookie(pb);if(this.yb==null||this.yb.length==0){this.yb=gc;this.jc=true;}}I.setCookie(pb,this.yb,ic);};mboxSession.prototype.getId=function(){return this.yb;};mboxSession.prototype.forceId=function(kc){this.yb=kc;this.I.setCookie(this.pb,this.yb,this.ic);};mboxPC=function(pb,ic,I){this.pb=pb;this.ic=ic;this.I=I;this.yb=typeof mboxForcePCId!='undefined'?mboxForcePCId:I.getCookie(pb);if(this.yb!=null){I.setCookie(pb,this.yb,ic);}};mboxPC.prototype.getId=function(){return this.yb;};mboxPC.prototype.forceId=function(kc){if(this.yb!=kc){this.yb=kc;this.I.setCookie(this.pb,this.yb,this.ic);return true;}return false;};mboxGetPageParameter=function(g){var sb=null;var lc=new RegExp(g+"=([^\&]*)");var mc=lc.exec(document.location);if(mc!=null&&mc.length>=2){sb=mc[1];}return sb;};mboxSetCookie=function(g,h,_){return mboxFactoryDefault.getCookieManager().setCookie(g,h,_);};mboxGetCookie=function(g){return mboxFactoryDefault.getCookieManager().getCookie(g);};mboxCookiePageDomain=function(){var Ub=(/([^:]*)(:[0-9]{0,5})?/).exec(document.location.host)[1];var nc=/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/;if(!nc.exec(Ub)){var oc=(/([^\.]+\.[^\.]{3}|[^\.]+\.[^\.]+\.[^\.]{2})$/).exec(Ub);if(oc){Ub=oc[0];}}return Ub?Ub:"";};mboxShiftArray=function(pc){var sb=new Array();for(var j=1;j<pc.length;j++){sb[sb.length]=pc[j];}return sb;};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('totalgymfitness.tt.omtrdc.net','totalgymfitness','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('<'+'scr'+'ipt language="Javascript1.2" src='+'"http://admin9.testandtarget.omniture.com/admin/mbox/mbox_debug.jsp?mboxServerHost=totalgymfitness.tt.omtrdc.net'+'&clientCode=totalgymfitness"><'+'\/scr'+'ipt>');};var mboxTrack=function(mbox,params){var m,u,i,f=mboxFactoryDefault;if(f.isEnabled()){if(f.getMboxes().length()>0){m=f.getMboxes().getById(0);u=m.getURL().replace("mbox="+escape(m.getName()),"mbox="+mbox).replace("/undefined","/ajax").replace("mboxPage="+f.getPageId(),"mboxPage="+mboxGenerateId())+'&'+params,i=new Image();i.style.display='none';i.src=u;document.body.appendChild(i)}else{mboxTrackDefer(mbox,params)}}},mboxTrackDefer=function(mbox,params){var f=mboxFactoryDefault;if(f.isEnabled()){mboxFactoryDefault.getSignaler().signal(mbox,mbox+'&'+params)}},mboxTrackLink=function(mbox,params,url){mboxTrack(mbox,params);setTimeout("location='"+url+"'",500)};
