var mboxCopyright="&copy; 1996-2008. 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+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")!="true";
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",63072000,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.isSupported=function(){return this.F
};
mboxFactory.prototype.disable=function(A){if(typeof A=="undefined"){A=60*60
}if(!this.isAdmin()){this.G=false;
this.I.setCookie("disable","true",A)
}};
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(E,I,B){if(!this.isSupported()){return null
}var H=this.w.clone();
H.addParameter("mboxCount",this.E.length()+1);
H.addParameters(I);
var C=this.E.get(E).length();
var A=this.C+"-"+E+"-"+C;
var J;
if(B){J=new mboxLocatorNode(B)
}else{if(this.D){throw"The page has already been loaded, can't write marker"
}J=new mboxLocatorDefault(A)
}try{var G=this;
var K="mboxImported-"+A;
var F=new mbox(E,C,H,J,K);
if(this.G){F.setFetcher(this.D?new mboxAjaxFetcher():new mboxStandardFetcher())
}F.setOnError(function(L,M){F.setMessage(L);
if(M=="standard"){F.activate();
if(!F.isActivated()){G.disable();
window.location.reload(false)
}}else{throw L
}});
this.E.add(F)
}catch(D){this.disable();
throw'Failed creating mbox "'+E+'", the error was: '+D
}return F
};
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(C,B){C.addParameter("mboxHost",document.location.hostname).addParameter("mboxSession",this.K.getId());
if(!B){C.addParameter("mboxFactoryId",this.C)
}if(this.L.getId()!=null){C.addParameter("mboxPC",this.L.getId())
}C.addParameter("mboxPage",this.J);
var A=this.I.getCookie("edge");
if(A!=null){C.addParameter("edge",A)
}C.setUrlProcessAction(function(E){E+="&mboxURL="+escape(document.location);
var D=escape(document.referrer);
if(E.length+D.length<2000){E+="&mboxReferrer="+D
}E+="&mboxVersion="+mboxVersion;
return E
})
};
mboxFactory.prototype.fb=function(){return""
};
mboxFactory.prototype.R=function(){document.write("<style>.mboxDefault { visibility:hidden; }</style>")
};
mboxSignaler=function(F,D){this.I=D;
var G=D.getCookieNames("signal-");
for(var C=0;
C<G.length;
C++){var A=G[C];
var B=D.getCookie(A).split("&");
var E=F(B[0],B);
E.load();
D.deleteCookie(A)
}};
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"></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.nb=A
};
mboxLocatorNode.prototype.locate=function(){return typeof this.nb=="string"?document.getElementById(this.nb):this.nb
};
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(B,D,A,E,C){this.tb=null;
this.ub=0;
this.vb=null;
this._=E;
this.ab=C;
this.wb=null;
this.xb=new mboxOfferContent();
this.ob=this.getDefaultDiv();
this.w=A;
this.message="";
this.yb=new Object();
this.zb=0;
this.rb=D;
this.g=B;
this.Ab();
A.addParameter("mbox",B).addParameter("mboxId",D);
this.Bb=function(){};
this.Cb=function(){}
};
mbox.prototype.getId=function(){return this.rb
};
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();
var A=(C&&C.length>0)?this.w.clone().addParameters(C):this.w;
this.wb.fetch(A);
var B=this;
this.Eb=setTimeout(function(){B.Bb("Fetch of mbox timed out",B.wb.getType())
},15000);
this.setEventTime("load.end");
return this
};
mbox.prototype.loaded=function(B){this.cancelTimeout();
if(!this.activate()){var A=this;
setTimeout(function(){A.loaded()
},100)
}};
mbox.prototype.activate=function(){if(this.ub){return this.ub
}this.setEventTime("activate"+ ++this.zb+".start");
if(this.show()){this.cancelTimeout();
this.ub=1
}this.setEventTime("activate"+this.zb+".end");
return this.ub
};
mbox.prototype.isActivated=function(){return this.ub
};
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.ob==null){this.ob=this.getDefaultDiv();
if(this.ob==null){return 0
}}if(this.ob!=A){this.Gb(this.ob);
this.ob.parentNode.replaceChild(A,this.ob);
this.ob=A
}this.Hb(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._==null){this.setMessage("No locator specified")
}else{if(this._.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.Eb){clearTimeout(this.Eb)
}if(this.wb!=null){this.wb.cancel()
}};
mbox.prototype.getDiv=function(){return this.ob
};
mbox.prototype.getDefaultDiv=function(){if(this.vb!=null){return this.vb
}if(this._==null){return null
}this.vb=this._.locate();
return this.vb
};
mbox.prototype.setEventTime=function(A){this.yb[A]=(new Date()).getTime()
};
mbox.prototype.getEventTimes=function(){return this.yb
};
mbox.prototype.getImportName=function(){return this.ab
};
mbox.prototype.getURL=function(){return this.w.buildUrl()
};
mbox.prototype.getUrlBuilder=function(){return this.w
};
mbox.prototype.Jb=function(A){return A.style.display!="none"
};
mbox.prototype.Hb=function(A){this.Kb(A,true)
};
mbox.prototype.Gb=function(A){this.Kb(A,false)
};
mbox.prototype.Kb=function(A,B){A.style.visibility=B?"visible":"hidden";
A.style.display=B?"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.Fb=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.Fb;
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.Nb=A==""||A.indexOf(".")==-1?"":"; domain="+A;
this.Ob=new mboxMap();
this.loadCookies()
};
mboxCookieManager.prototype.isEnabled=function(){this.setCookie("check","true",60);
this.loadCookies();
return this.getCookie("check")=="true"
};
mboxCookieManager.prototype.setCookie=function(D,B,A){if(typeof D!="undefined"&&typeof B!="undefined"&&typeof A!="undefined"){var C=new Object();
C.name=D;
C.value=escape(B);
C.expireOn=Math.ceil(A+new Date().getTime()/1000);
this.Ob.put(D,C);
this.saveCookies()
}};
mboxCookieManager.prototype.getCookie=function(B){var A=this.Ob.get(B);
return A?unescape(A.value):null
};
mboxCookieManager.prototype.deleteCookie=function(A){this.Ob.remove(A);
this.saveCookies()
};
mboxCookieManager.prototype.getCookieNames=function(A){var B=new Array();
this.Ob.each(function(D,C){if(D.indexOf(A)==0){B[B.length]=D
}});
return B
};
mboxCookieManager.prototype.saveCookies=function(){var A=new Array();
var B=0;
this.Ob.each(function(E,D){A[A.length]=E+"#"+D.value+"#"+D.expireOn;
if(B<D.expireOn){B=D.expireOn
}});
var C=new Date(B*1000);
document.cookie=this.g+"="+A.join("|")+"; expires="+C.toGMTString()+"; path=/"+this.Nb
};
mboxCookieManager.prototype.loadCookies=function(){this.Ob=new mboxMap();
var F=document.cookie.indexOf(this.g+"=");
if(F!=-1){var G=document.cookie.indexOf(";",F);
if(G==-1){G=document.cookie.indexOf(",",F);
if(G==-1){G=document.cookie.length
}}var A=document.cookie.substring(F+this.g.length+1,G).split("|");
var B=Math.ceil(new Date().getTime()/1000);
for(var C=0;
C<A.length;
C++){var E=A[C].split("#");
if(B<=E[2]){var D=new Object();
D.name=E[0];
D.value=E[1];
D.expireOn=E[2];
this.Ob.put(D.name,D)
}}}};
mboxSession=function(C,D,A,E,B){this.ac=D;
this.ib=A;
this.bc=E;
this.I=B;
this.cc=false;
this.rb=typeof mboxForceSessionId!="undefined"?mboxForceSessionId:mboxGetPageParameter(this.ac);
if(this.rb==null||this.rb.length==0){this.rb=B.getCookie(A);
if(this.rb==null||this.rb.length==0){this.rb=C;
this.cc=true
}}B.setCookie(A,this.rb,E)
};
mboxSession.prototype.getId=function(){return this.rb
};
mboxSession.prototype.forceId=function(A){this.rb=A;
this.I.setCookie(this.ib,this.rb,this.bc)
};
mboxPC=function(A,C,B){this.ib=A;
this.bc=C;
this.I=B;
this.rb=typeof mboxForcePCId!="undefined"?mboxForcePCId:B.getCookie(A);
if(this.rb!=null){B.setCookie(A,this.rb,C)
}};
mboxPC.prototype.getId=function(){return this.rb
};
mboxPC.prototype.forceId=function(A){if(this.rb!=A){this.rb=A;
this.I.setCookie(this.ib,this.rb,this.bc);
return true
}return false
};
mboxGetPageParameter=function(C){var D=null;
var A=new RegExp(C+"=([^&]*)");
var B=A.exec(document.location);
if(B!=null&&B.length>=2){D=B[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 A=(/([^:]*)(:[0-9]{0,5})?/).exec(document.location.host)[1];
var B=/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/;
if(!B.exec(A)){var C=(/([^\.]+\.[^\.]{3}|[^\.]+\.[^\.]+\.[^\.]{2})$/).exec(A);
if(C){A=C[0]
}}return A?A:""
};
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=33;
var mboxFactories=new mboxMap();
var mboxFactoryDefault=new mboxFactory("mbox9.offermatica.com","stylehive","default")
}mboxDebugActionsProto=function(){this.jc=new Object();
this.kc=new function(){this.show=function(){}
}
};
mboxDebugActionsProto.prototype.register=function(A,B){this.jc[A]=B
};
mboxDebugActionsProto.prototype.registerDefault=function(A){this.kc=A
};
mboxDebugActionsProto.prototype.show=function(A){var B=this.jc[A]?this.jc[A]:this.kc;
(new B()).show()
};
if(typeof mboxDebugActions=="undefined"){mboxDebugActions=new mboxDebugActionsProto()
}mboxDebugActionDefault=function(){};
mboxDebugActionDefault.prototype.show=function(){var B=new mboxDebugWindow("Debug");
B.putPageStart();
B.put("  <b>Mbox Debug Window (version: "+mboxVersion+")</b><br/>");
B.put("<p/>");
B.put("<b>Page</b>: "+document.location);
B.put("<br/><b>Referrer</b>: "+document.referrer);
B.put(" <ul>");
var A=mboxFactoryDefault.isEnabled();
B.put('  <li>Enabled: <span style="color:'+(A?"green":"red")+'"><b>'+A+"</b></span></li>");
B.put("  <li>Cookies: '"+document.cookie+"'</li></ul>");
mboxFactories.each(function(D,C){var E=1;
B.put("<hr/><ul><li><b>Factory</b>: <i>'"+D+"'</i></li><ul>");
B.put("<li><i>pageId</i>: "+C.getPageId()+"</li>");
B.put("<li><i>mboxPC</i>: "+C.getPCId().getId()+"</li>");
B.put("<li><i>sessionId</i>: "+C.getSessionId().getId()+"</li>");
B.put("<hr/>");
C.getMboxes().each(function(F){B.put("  <li>"+E+++". '<a href=\""+F.getURL()+'">'+F.getName()+"</a>'");
B.put("   <ul>");
if(F.getId()!=0){B.put("<li> <b>id</b>: "+F.getId()+"</li>")
}if(F.getParameters().length>0){B.put(" <li><b>parameters</b>: '"+F.getParameters().join(", ")+"'</li>")
}B.put("<li><i>"+F.getURL()+"</i></li>");
if(F.message!=""){B.put('   <li><span style="color: red"><b>Error: '+F.message+"</b></span></li>")
}if(F.getDefaultDiv()==null){B.put('    <li><span style="color: red"><b>Error: cannot find mbox in dom</b></span></li>')
}B.put("   </ul>");
B.put("  </li>")
});
B.put(" </ul>");
B.put(" </ul>")
});
B.put(" <hr/>");
B.putCloseButton();
B.putPageEnd()
};
mboxDebugActions.registerDefault(mboxDebugActionDefault);
mboxDebug=function(D,A,C){this.pc=D;
this.p=null;
this.I=C.getCookieManager();
var B=mboxGetPageParameter(A);
if(B==null){B=this.I.getCookie(this.pc)
}if(B!=null){if(B.indexOf("x")==0){document.write('<script language="Javascript1.2" src="http://admin9.offermatica.com/admin/mbox/mbox_debug_'+B+'.jsp?clientCode=stylehive&mboxServerHost=mbox9.offermatica.com"><\/script>')
}if(!C.isSupported()){alert("mbox functionality is not supported on this browser");
this.disable()
}C.addOnLoad(function(){mboxDebugActions.show(B)
});
this.I.setCookie(this.pc,B,45*60)
}else{this.disable()
}};
mboxDebug.prototype.disable=function(){this.I.deleteCookie(this.pc)
};
mboxDebugWindow=function(A){this.g=A+" "+document.location.hostname;
var B=/\W/g;
var C=this.g.replace(B,"_");
this.uc=window.open("","mboxDebugWindow"+C,"width=600,height=300,resizable,scrollbars=yes,toolbar=yes");
if(this.uc==null){alert("Unable to open debug window.\nAre you blocking popups?\n")
}};
mboxDebugWindow.prototype.put=function(A){if(this.uc==null){return 
}try{this.uc.document.writeln(A);
this.uc.scrollBy(0,1000)
}catch(B){alert("Unable to write to the current mboxDebug window.\nPlease close any open debug window");
this.uc=null
}};
mboxDebugWindow.prototype.putCloseButton=function(){this.put('<a href="javascript:mboxDebugWindowClose()">click here to close debug window</a>')
};
mboxDebugWindow.prototype.putPageStart=function(){this.put("<html><head> <title>"+this.g+"</title>  <script>   function mboxDebugWindowClose() {     try {       window.opener.mboxDebugger.disable();     } catch(e) {       alert('Could not disable debug mode.\\n'         + 'Browse to a page containing an mbox and\\n'         + 'click on close link.');     }     window.close();   }  <\/script> </head> <body>")
};
mboxDebugWindow.prototype.putPageEnd=function(){this.put("</body></html>");
if(this.uc!=null){this.uc.document.close()
}};
if(typeof mboxDebugger=="undefined"){mboxDebugger=new mboxDebug("debug","mboxDebug",mboxFactoryDefault)
};