Rgm.HBXWrapper = Class.create();
Rgm.HBXWrapper.prototype = {
	initialize: function(acct,is404){
		this.acct=acct;
		this.pn='';
		this.mlc='';
		this.winHost=window.location.host;
		this.is404=is404;
	},

	setPageName:function(pn){
		this.pn=pn;
	},
	setMLC:function(mlc){
		this.mlc=mlc;
	},

	writeScript:function(){
		document.write(this.buildScript());
	},

	buildScript:function(jsSrc){
		return Utils.scriptTag(this.buildScriptUrl());
	},

	buildScriptUrl:function(){
		return'http://'+this.winHost+'/javascripts/third-party/hbx/hbx.js';
		},
		render:function(){
			if(this.is404){
				this.renderErrorCode();
			}else{
				this.renderStandardCode();
				this.writeScript();
		}
	},

	renderErrorCode:function(){
	},

	renderStandardCode:function(){
		_hbEC=0,_hbE=new Array;function 
_hbEvent(a,b){b=_hbE[_hbEC++]=new Object();b._N=a;b.
_C=0;return b;}
		hbx=_hbEvent("pv");hbx.vpc="HBX0200u";hbx.gn="a.divinecaroline.com";

	hbx.acct=this.acct;
	hbx.pn=this.pn;
	hbx.mlc=this.mlc;

	hbx.pndef="title";
	hbx.ctdef="full";

	hbx.fv="";
	hbx.lt="auto";
	hbx.dlf="n";
	hbx.dft="n";
	hbx.elf="n";

	hbx.seg="";
	hbx.fnl="";

	hbx.cmp="";
	hbx.cmpn="";
	hbx.dcmp="";
	hbx.dcmpn="";
	hbx.dcmpe="";
	hbx.dcmpre="";

	hbx.hra="";
	hbx.hqsr="";

	hbx.hqsp="";
	hbx.hlt="";
	hbx.hla="";
	hbx.gp="";
	hbx.gpn="";
	hbx.hcn="";
	hbx.hcv="";
	hbx.cp="null";
	hbx.cpd="";

	hbx.ci="";
	hbx.hc1="";
	hbx.hc2="";
	hbx.hc3="";
	hbx.hc4="";
	hbx.hrf="";
	hbx.pec="";}}