// JavaScript Document
var _hbEC=0,_hbE=new Array;function _hbEvent(a,b){b=_hbE[_hbEC++]=new Object();b._N=a;b._C=0;return b;}
var hbx=_hbEvent("pv");hbx.vpc="HBX0200u";hbx.gn="ehg-maximhealthcare.hitbox.com";

//BEGIN EDITABLE SECTION
//CONFIGURATION VARIABLES
hbx.acct="DM560914HCVD72EN3";//ACCOUNT NUMBER(S)
hbx.pn="PUT+PAGE+NAME+HERE";//PAGE NAME(S)
hbx.mlc="CONTENT+CATEGORY";//MULTI-LEVEL CONTENT CATEGORY
hbx.pndef="index.php";//DEFAULT PAGE NAME
hbx.ctdef="full";//DEFAULT CONTENT CATEGORY

//OPTIONAL PAGE VARIABLES
//ACTION SETTINGS
hbx.fv="";//FORM VALIDATION MINIMUM ELEMENTS OR SUBMIT FUNCTION NAME
hbx.lt="auto";//LINK TRACKING
hbx.dlf="n";//DOWNLOAD FILTER
hbx.dft="n";//DOWNLOAD FILE NAMING
hbx.elf="n";//EXIT LINK FILTER

//SEGMENTS AND FUNNELS
hbx.seg="";//VISITOR SEGMENTATION
hbx.fnl="";//FUNNELS

//CAMPAIGNS
hbx.cmp="";//CAMPAIGN ID
hbx.cmpn="";//CAMPAIGN ID IN QUERY
hbx.dcmp="";//DYNAMIC CAMPAIGN ID
hbx.dcmpn="";//DYNAMIC CAMPAIGN ID IN QUERY
hbx.dcmpe="";//DYNAMIC CAMPAIGN EXPIRATION
hbx.dcmpre="";//DYNAMIC CAMPAIGN RESPONSE EXPIRATION
hbx.hra="";//RESPONSE ATTRIBUTE
hbx.hqsr="";//RESPONSE ATTRIBUTE IN REFERRAL QUERY
hbx.hqsp="";//RESPONSE ATTRIBUTE IN QUERY
hbx.hlt="";//LEAD TRACKING
hbx.hla="";//LEAD ATTRIBUTE
hbx.gp="";//CAMPAIGN GOAL
hbx.gpn="";//CAMPAIGN GOAL IN QUERY
hbx.hcn="";//CONVERSION ATTRIBUTE
hbx.hcv="";//CONVERSION VALUE
hbx.cp="null";//LEGACY CAMPAIGN
hbx.cpd="";//CAMPAIGN DOMAIN

//CUSTOM VARIABLES
hbx.ci="";//CUSTOMER ID
hbx.hc1="";//CUSTOM 1
hbx.hc2="";//CUSTOM 2
hbx.hc3="";//CUSTOM 3
hbx.hc4="";//CUSTOM 4
hbx.hrf="";//CUSTOM REFERRER
hbx.pec="";//ERROR CODES

//INSERT CUSTOM EVENTS

//END EDITABLE SECTION

//REQUIRED SECTION. CHANGE "YOURSERVER" TO VALID LOCATION ON YOUR WEB SERVER (HTTPS IF FROM SECURE SERVER)
var Cookie = {
	
	/**
	 * Set a cookie -- either create a new one or change the value of an existing one
	 *
	 * @param string name
	 * @param string value
	 * @param int expire		- In seconds or leave null to skip entirely
	 * @param string path		- Defaults to /
	 */
	set: function(name, value)
	{
		//Get expires
		if ( arguments[2] ) {
			var date = new Date();
			date.setTime(date.getTime() + (arguments[2] * 1000)); //convert seconds to milliseconds
			var expires = "; expires=" + date.toGMTString();
		
		} else {
			var expires = '';
			
		}
		
		//Get path
		var path = ( arguments[3] ) ? arguments[3] : '/';
		
		//Set the cookie
		document.cookie = name + "=" + value + expires + "; path=" + path;
		
	},//end set
	
	/**
	 * Deletes the cookie by name
	 */
	remove: function(name)
	{
		this.set(name, '', -1);
	
	},//remove
	
	/**
	 * Return the value of the given cookie or null if not found
	 */
	get: function(name)
	{
		var regexp = new RegExp("^" + name + "\\=", "g");
		var bits = document.cookie.split('; ');
		for ( var i=0; i<bits.length; i++ ) {
			if ( bits[i].match(regexp) != null ) {
				var keyval = bits[i].split('=');
				return keyval[1];
				
			}
			
		}//for i
		
		return null;
	
	}//end get
	
}//end Cookies

//Grab the referrer if we don't already have it in a cookie and as long 
//as one was set
if ( !Cookie.get('r') && document.referrer != '' ) {
	//Also check to make sure it's not from the current site
	var domain = window.location.host;
	if ( document.referrer.indexOf(domain) == -1 ) {
		Cookie.set('r', document.referrer, false);
		
	}
	
} 