
<!--VISUAL SCIENCES CODE HBX2.0 (Universal)-->
<!--COPYRIGHT 1997-2005 VISUAL SCIENCES,INC. ALL RIGHTS RESERVED. U.S.PATENT No. 6,393,479B1. MORE  INFO:http://visualsciences.com-->
<!--hbxmodify.js version 2.01 for 1.7 Release of AIG Web Analytics Setup documentation -->

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-aig.hitbox.com";

//BEGIN EDITABLE SECTION
//CONFIGURATION VARIABLES
hbx.acct="DM5703306OAR;XXXXXXXXXXXX;DM5805025BWW";//ACCOUNT NUMBER(S)                     
hbx.pn="PUT+PAGE+NAME+HERE";//PAGE NAME(S)
hbx.mlc="CONTENT+CATEGORY";//MULTI-LEVEL CONTENT CATEGORY
hbx.pndef="title";//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

//Internal Search
//var ev1 = new _hbEvent("search"); // required definition to create custom event
//ev1.keywords = ""; // required value -- populate with search term
//ev1.results = "1"; // Number of results  -- when set = 0 the word becomes a failed keyword
//ev1.attr1 = ""; // Search attribute -- best recommendation is to set this = to the audience type
//ev1.attr2 = ""; // Search attribute -- best recommendation is to set this = to the Country (dash delimit if more than one country is chosen) or Select+All
//ev1.attr3 = ""; // Search attribute -- best recommendation is to set this = to the category
//ev1.attr4 = ""; // Search attribute -- use to populate whatever other metric you feel is important.

//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="ATT";//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

function cleanCharacters(str) {
var text = str;
text = text.replace(/ /g, "+");
var pattern = new RegExp(/[^a-zA-Z_0-9_+_\/_-]/g);
var result = text.replace(pattern, "");
return result;
}

<!--END VISUAL SCIENCES CODE-->
 
 
function setPNandMLC(){
var titlename = (window.location.pathname).toLowerCase();
hbx.mlc="/Home/Home/Information";

if (titlename.indexOf("get-a-quote.aspx") != -1){
hbx.pn="Acceptace+Criteria";
hbx.mlc="/Home/Home/Quote";
return;
}

if (titlename.indexOf("retrievequote.aspx") != -1){
hbx.mlc="/Home/Home/Quote";
hbx.pn="Retrieve+A+Quote";
return;
}

if (titlename.indexOf("aggregator.aspx") != -1){
hbx.mlc="/Home/Home/Quote";
hbx.pn="Aggregator";
return;
}

if (titlename.indexOf("extras.aspx") != -1){
hbx.pn="Policy+Extras";
return;
}
if (titlename.indexOf("aboutus.aspx") != -1){
hbx.pn="About+Us";
return;
}
if (titlename.indexOf("privacy.aspx") != -1){
hbx.pn="Privacy+Statement";
return;
}
if (titlename.indexOf("terms.aspx") != -1){
hbx.pn="Terms+And+Conditions";
return;
}
if (titlename.indexOf("websitesecurity.aspx") != -1){
hbx.pn="Website+Security";
return;
}
if (titlename.indexOf("contactus.aspx") != -1){
hbx.pn="Contact+Us";
return;
}
if (titlename.indexOf("abouthomeinsurance.aspx") != -1){
hbx.pn="All+About+Home+Insurance";
return;
}
if (titlename.indexOf("faqs.aspx") != -1){
hbx.pn="Frequently+Asked+Questions";
return;
}

if (titlename.indexOf("glossary.aspx") != -1){
hbx.pn="Glossary";
return;
}
if (titlename.indexOf("makeaclaim.aspx") != -1){
hbx.pn="How+To+Claim";
return;
}

if (titlename.indexOf("policydocuments.aspx") != -1){
hbx.pn="Policy+Documents";
return;
}

if (titlename.indexOf("renewpolicy.aspx") != -1){
hbx.pn="Online+Renewal";
return;
}

if (titlename.indexOf("homepersonalaccident.aspx") != -1){
hbx.pn="Home+Personal+Accident";
return;
}

}
