var mboxCopyright="&copy; 1996-2008. Omniture, Inc. All rights reserved.";
mboxUrlBuilder=function(d,c){this.a=d;
this.b=c;
this.c=new Array();
this.d=function(a){return a
};
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(d){if(!d){return this
}for(var b=0;
b<d.length;
b++){var a=d[b].indexOf("=");
if(a==-1||a==0){continue
}this.addParameter(d[b].substring(0,a),d[b].substring(a+1,d[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 f=this.f?this.f:"/m2/"+this.b+"/mbox/"+this.o;
var d=document.location.protocol=="file:"?"http:":document.location.protocol;
var g=d+"//"+this.a+f;
var c=g.indexOf("?")!=-1?"&":"?";
for(var b=0;
b<this.c.length;
b++){var a=this.c[b];
g+=c+a.name+"="+encodeURIComponent(a.value);
c="&"
}return this.t(this.d(g))
};
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(a,b){if(!this.y[a]){this.z[this.z.length]=a
}this.y[a]=b
};
mboxMap.prototype.get=function(a){return this.y[a]
};
mboxMap.prototype.remove=function(a){this.y[a]=undefined
};
mboxMap.prototype.each=function(d){for(var b=0;
b<this.z.length;
b++){var a=this.z[b];
var c=this.y[a];
if(c){d(a,c)
}}};
mboxFactory=function(f,a,e){this.D=false;
this.B=f;
this.C=e;
this.E=new mboxList();
mboxFactories.put(e,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 c=e=="default";
this.I=new mboxCookieManager("mbox"+(c?"":("-"+e)),(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",1209600,this.I);
this.w=new mboxUrlBuilder(f,a);
this.M(this.w,c);
this.N=new Date().getTime();
this.O=this.N;
var d=this;
this.addOnLoad(function(){d.O=new Date().getTime()
});
if(this.F){this.addOnLoad(function(){d.D=true;
d.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,g){return d.create(b,g)
},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(g,k,b){if(!this.isSupported()){return null
}var j=this.w.clone();
j.addParameter("mboxCount",this.E.length()+1);
j.addParameters(k);
var d=this.E.get(g).length();
var a=this.C+"-"+g+"-"+d;
var l;
if(b){l=new mboxLocatorNode(b)
}else{if(this.D){throw"The page has already been loaded, can't write marker"
}l=new mboxLocatorDefault(a)
}try{var i=this;
var m="mboxImported-"+a;
var h=new mbox(g,d,j,l,m);
if(this.G){h.setFetcher(this.D?new mboxAjaxFetcher():new mboxStandardFetcher())
}h.setOnError(function(c,e){h.setMessage(c);
if(e=="standard"){h.activate();
if(!h.isActivated()){i.disable();
window.location.reload(false)
}}else{throw c
}});
this.E.add(h)
}catch(f){this.disable();
throw'Failed creating mbox "'+g+'", the error was: '+f
}return h
};
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(f){f+="&mboxURL="+encodeURIComponent(document.location);
var d=encodeURIComponent(document.referrer);
if(f.length+d.length<2000){f+="&mboxReferrer="+d
}f+="&mboxVersion="+mboxVersion;
return f
})
};
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._=e;
this.ab=c;
this.vb=null;
this.wb=new mboxOfferContent();
this.ob=null;
this.w=a;
this.message="";
this.xb=new Object();
this.yb=0;
this.rb=d;
this.g=b;
this.zb();
a.addParameter("mbox",b).addParameter("mboxId",d);
this.Ab=function(){};
this.Bb=function(){}
};
mbox.prototype.getId=function(){return this.rb
};
mbox.prototype.zb=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 b=new Array();
for(var a=0;
a<d.length;
a++){if(d[a].name.indexOf("mbox")!=0){b[b.length]=d[a].name+"="+d[a].value
}}return b
};
mbox.prototype.setOnLoad=function(a){this.Bb=a;
return this
};
mbox.prototype.setMessage=function(a){this.message=a;
return this
};
mbox.prototype.setOnError=function(a){this.Ab=a;
return this
};
mbox.prototype.setFetcher=function(a){if(this.vb){this.vb.cancel()
}this.vb=a;
return this
};
mbox.prototype.getFetcher=function(){return this.vb
};
mbox.prototype.load=function(d){if(this.vb==null){return this
}this.setEventTime("load.start");
this.cancelTimeout();
this.ub=0;
var a=(d&&d.length>0)?this.w.clone().addParameters(d):this.w;
this.vb.fetch(a);
var b=this;
this.Db=setTimeout(function(){b.Ab("Fetch of mbox timed out",b.vb.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.ub){return this.ub
}this.setEventTime("activate"+ ++this.yb+".start");
if(this.show()){this.cancelTimeout();
this.ub=1
}this.setEventTime("activate"+this.yb+".end");
return this.ub
};
mbox.prototype.isActivated=function(){return this.ub
};
mbox.prototype.setOffer=function(a){if(a&&a.show&&a.setOnLoad){this.wb=a
}else{throw"Invalid offer"
}return this
};
mbox.prototype.getOffer=function(){return this.wb
};
mbox.prototype.show=function(){this.setEventTime("show.start");
var a=this.wb.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.parentNode){this.ob=this.getDefaultDiv(true);
if(this.ob==null){return 0
}}if(this.ob!=a){this.Fb(this.ob);
this.ob.parentNode.replaceChild(a,this.ob);
this.ob=a
}this.Gb(a);
this.Bb();
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._.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.Db){clearTimeout(this.Db)
}if(this.vb!=null){this.vb.cancel()
}};
mbox.prototype.getDiv=function(){return this.ob
};
mbox.prototype.getDefaultDiv=function(a){var b=this._.locate();
if(b!=null){this.Ib=b
}return a?b:this.Ib
};
mbox.prototype.setEventTime=function(a){this.xb[a]=(new Date()).getTime()
};
mbox.prototype.getEventTimes=function(){return this.xb
};
mbox.prototype.getImportName=function(){return this.ab
};
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.Gb=function(a){this.Lb(a,true)
};
mbox.prototype.Fb=function(a){this.Lb(a,false)
};
mbox.prototype.Lb=function(b,a){b.style.visibility=a?"visible":"hidden";
b.style.display=a?"inline":"none"
};
mboxOfferContent=function(){this.Bb=function(){}
};
mboxOfferContent.prototype.show=function(a){var b=a.showContent(document.getElementById(a.getImportName()));
if(b==1){this.Bb()
}return b
};
mboxOfferContent.prototype.setOnLoad=function(a){this.Bb=a
};
mboxOfferAjax=function(a){this.Eb=a;
this.Bb=function(){}
};
mboxOfferAjax.prototype.setOnLoad=function(a){this.Bb=a
};
mboxOfferAjax.prototype.show=function(b){var a=document.createElement("div");
a.id=b.getImportName();
a.innerHTML=this.Eb;
var c=b.showContent(a);
if(c==1){this.Bb()
}return c
};
mboxOfferDefault=function(){this.Bb=function(){}
};
mboxOfferDefault.prototype.setOnLoad=function(a){this.Bb=a
};
mboxOfferDefault.prototype.show=function(a){var b=a.hide();
if(b==1){this.Bb()
}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,a,e,b){this.bc=d;
this.ib=a;
this.cc=e;
this.I=b;
this.dc=false;
this.rb=typeof mboxForceSessionId!="undefined"?mboxForceSessionId:mboxGetPageParameter(this.bc);
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.dc=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.cc)
};
mboxPC=function(a,c,b){this.ib=a;
this.cc=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.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=34;
var mboxFactories=new mboxMap();
var mboxFactoryDefault=new mboxFactory("mbox9e.offermatica.com","edmunds","default")
}mboxDebugActionsProto=function(){this.kc=new Object();
this.lc=new function(){this.show=function(){}
}
};
mboxDebugActionsProto.prototype.register=function(a,b){this.kc[a]=b
};
mboxDebugActionsProto.prototype.registerDefault=function(a){this.lc=a
};
mboxDebugActionsProto.prototype.show=function(a){var b=this.kc[a]?this.kc[a]:this.lc;
(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(c,d){var e=1;
b.put("<hr/><ul><li><b>Factory</b>: <i>'"+c+"'</i></li><ul>");
b.put("<li><i>pageId</i>: "+d.getPageId()+"</li>");
b.put("<li><i>mboxPC</i>: "+d.getPCId().getId()+"</li>");
b.put("<li><i>sessionId</i>: "+d.getSessionId().getId()+"</li>");
b.put("<hr/>");
d.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(a,b,d){this.qc=a;
this.p=null;
this.I=d.getCookieManager();
var c=mboxGetPageParameter(b);
if(c==null){c=this.I.getCookie(this.qc)
}if(c!=null){if(c.indexOf("x")==0){document.write('<script language="Javascript1.2" src="http://admin9.offermatica.com/admin/mbox/mbox_debug_'+c+'.jsp?clientCode=edmunds&mboxServerHost=mbox9e.offermatica.com"><\/script>')
}if(!d.isSupported()){alert("mbox functionality is not supported on this browser");
this.disable()
}d.addOnLoad(function(){mboxDebugActions.show(c)
});
this.I.setCookie(this.qc,c,45*60)
}else{this.disable()
}};
mboxDebug.prototype.disable=function(){this.I.deleteCookie(this.qc)
};
mboxDebugWindow=function(b){this.g=b+" "+document.location.hostname;
var c=/\W/g;
var a=this.g.replace(c,"_");
this.vc=window.open("","mboxDebugWindow"+a,"width=600,height=300,resizable,scrollbars=yes,toolbar=yes");
if(this.vc==null){alert("Unable to open debug window.\nAre you blocking popups?\n")
}};
mboxDebugWindow.prototype.put=function(a){if(this.vc==null){return
}try{this.vc.document.writeln(a);
this.vc.scrollBy(0,1000)
}catch(b){alert("Unable to write to the current mboxDebug window.\nPlease close any open debug window");
this.vc=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.vc!=null){this.vc.document.close()
}};
if(typeof mboxDebugger=="undefined"){mboxDebugger=new mboxDebug("debug","mboxDebug",mboxFactoryDefault)
};
