
function cleanWSSString(str) {
 str = str.replace(/&trade;/g,"");
 str = str.replace(/&copy;/g,"");
 str = str.replace(/&reg;/g,"");
 str = str.replace(/&lsquo;/g,"");
 str = str.replace(/&rsquo;/g,"");
 str = str.replace(/&ldquo;/g,"");
 str = str.replace(/&rdquo;/g,"");
 str = str.replace(/&ndash;/g,"-");
 str = str.replace(/&mdash;/g,"-");
 str = str.replace(/&frac14;/g," 1/4");
 str = str.replace(/&frac12;/g," 1/2");
 str = str.replace(/&frac34;/g," 3/4");
 str = str.replace(/&eacute;/g,"e");
 str = str.replace(/&egrave;/g,"e");
 str = str.replace(/&hellip;/g,"");
 str = str.replace(/&deg;/g,"");
 str = str.replace(/&dagger;/g,"");
 str = str.replace(/\u2122/g,""); // hex equavalent
 str = str.replace(/\uA9/g,""); // hex equavalent
 str = str.replace(/<[^>]*>/g," "); // remove any html formatting
 str = str.replace(/[^a-zA-Z 0-9_,./\-()\\]/g,""); // allow only these characters
 str = str.replace(/ +/g,"+"); // strip repeat white space
 return str;
}

function WSS_Set(a,b) {
	_hbSet(a, cleanWSSString(b));
}

function WSS_JavaScriptView(title,category) {
	 title = title.replace(/\//g,"-"); 
	_hbPageView(cleanWSSString(title), cleanWSSString(category));
}

function WSS_FlashPageView(title,category) {
	 title = title.replace(/\//g,"-"); 
	_hbPageView(cleanWSSString(title), cleanWSSString(category));
}


function WSS_PageView(hbx_gn, hbx_acct, hbx_mlc, eventsStr) {
 _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=hbx_gn;
//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=hbx_gn;

//BEGIN EDITABLE SECTION
//CONFIGURATION VARIABLES
hbx.acct=hbx_acct;//ACCOUNT NUMBER(S)
//hbx.pn="PUT+PAGE+NAME+HERE";//PAGE NAME(S)
hbx.pn=cleanWSSString(document.title);
hbx.pndef="title";//DEFAULT PAGE NAME
if(hbx_mlc == '') { hbx.mlc="CONTENT+CATEGORY";} else { hbx.mlc=cleanWSSString(hbx_mlc);}//MULTI-LEVEL CONTENT CATEGORY
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
//<cfif arguments.eventStr is not "">
//#arguments.eventStr#
//</cfif>

if( eventsStr != '') { eval(eventsStr); }
//END EDITABLE SECTION
}

function WSS_ProductView(hbx_gn, hbx_acct, hbx_cacct, hbx_mlc,  products, productcategories) {

<!-- BEGIN WEBSIDESTORY CODE HITBOX COMMERCE HBX1.4 (cartadd) -->
<!--COPYRIGHT 1997-2005 WEBSIDESTORY,INC. ALL RIGHTS RESERVED. U.S.PATENT No.6,393,479B1 & 6,766,370. INFO:http://websidestory.com/privacy-->

_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="HBX0140.01a";hbx.gn=hbx_gn;

//BEGIN EDITABLE SECTION
//CONFIGURATION VARIABLES
hbx.acct=hbx_acct;//ACCOUNT NUMBER(S)
hbx.pn=cleanWSSString(document.title);
hbx.mlc=cleanWSSString(hbx_mlc);//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

//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.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

//CUSTOM VARIABLES
hbx.hc1="";//CUSTOM 1
hbx.hc2="";//CUSTOM 2
hbx.hc3="";//CUSTOM 3
hbx.hc4="";//CUSTOM 4
hbx.hrf="";//CUSTOM REFERRER
hbx.pec="";//ERROR CODES

//COMMERCE VARIABLES
hbx.cacct=hbx_cacct;
hbx.pr=eval(products);  //comma delimited products
hbx.bd="BRAND";

if( productcategories == '') {
hbx.ca="CATEGORIES";
}
else {
hbx.ca=eval(productcategories);  //comma delimited products
}
hbx.pc="PRICE";    //comma delimited prices
hbx.qn="QUANTITY"; //comma delimited quantities
hbx.sr="STORE";    //store
hbx.cp="null";  //campaign
hbx.cam="0";  //cart add methodology, 0 = highwatermark, 1 = incremental
hbx.pv=1;  //product view flag, 0 = cart add, 1 = product view

//INSERT CUSTOM EVENTS

//END EDITABLE SECTION
function $ii( a, b,c){ return a.indexOf(b, c?c:0)};function $is(a,b, c){return b>a.length?
"":a.substring(b,c!=null?c:a.length)};function $a(v){ return escape(v) }; var _sv=10, _bn=navigator.
appName,_mn="we74",_bv=parseInt(navigator.appVersion),__r=".referrer",_rf=$a(eval("document"+__r)),
_epg="n&cam="+hbx.cam+"&pv="+(hbx.pv>0?"1":"0&abd_type=cart_add")+"&product="+$a(hbx.pr)+
"&quantity="+$a(hbx.qn)+"&brand="+$a(hbx.bd)+"&category="+$a(hbx.ca)+"&price="+$a(hbx.pc)+
"&store="+$a((hbx.sr=="S"+"TORE")?1:hbx.sr)+"&tz=CST&aid="+hbx.cacct;if(!$ii(_bn,"Micro"+
"soft"))_bn="MSIE";if(_bn=="MSIE"&&_bv==2)_bv=3;function $l(m,l){return m=="/"?
m:(($ii(m,"/")?"/":"")+(m.lastIndexOf("/")==l?m.substring(0,l):m))};function $n(
a,b){return(a==""||a=="/")?"/":$is(a,hbx.ctdef!="full"?a.lastIndexOf("/",b-2): $ii(
a,"/"),b)};function $o(a,b,c){var d=location.pathname,e=$is(d,d.lastIndexOf("/")+
1,d.length);if(a&&b==c){return(hbx.pndef=="title"&&document.title!=""&&document.
title!=location)?document.title:e?e:hbx.pndef}else{return(b==c)?$n(d,d.lastIndexOf(
"/")):$l(b,b.length-1)}};function $p(a,b,c,d){return ""+(c>-1?$o(b,$is(a,0,c),d
)+";"+$p($is(a,c+1),b,$ii($is(a,c+1),";")):$o(b,a,d))};hbx.mlc=$p( hbx.mlc,0,$ii(hbx.mlc,
";"),"CONTENT+CAT"+"EGORY");hbx.pn=$p(hbx.pn,1,$ii(hbx.pn,";"),"PUT+"+"PAGE+NAME+HERE" );

<!-- END WEBSIDESTORY CODE  -->
}

function WSS_CartItems(hbx_gn, hbx_acct, hbx_cacct, cartitems) {
<!-- BEGIN WEBSIDESTORY CODE HITBOX COMMERCE HBX1.4 (cartadd) -->
<!--COPYRIGHT 1997-2005 WEBSIDESTORY,INC. ALL RIGHTS RESERVED. U.S.PATENT No.6,393,479B1 & 6,766,370. INFO:http://websidestory.com/privacy-->

_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="HBX0140.01a";hbx.gn=hbx_gn;

//BEGIN EDITABLE SECTION
//CONFIGURATION VARIABLES
hbx.acct=hbx_acct;//ACCOUNT NUMBER(S)
hbx.pn='Shopping Cart';
hbx.mlc='/store/cart';//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

//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.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

//CUSTOM VARIABLES
hbx.hc1="";//CUSTOM 1
hbx.hc2="";//CUSTOM 2
hbx.hc3="";//CUSTOM 3
hbx.hc4="";//CUSTOM 4
hbx.hrf="";//CUSTOM REFERRER
hbx.pec="";//ERROR CODES

var productStr = '';
var categoryStr = '';
var priceStr = '';
var quantityStr = '';

for( var i=0; i<cartitems.length; i++) {
	if( i > 0) {
		productStr += ',';
		categoryStr += ',';
		priceStr += ',';
		quantityStr += ',';
	}
	productStr += cleanWSSString(cartitems[i].NAME);
	categoryStr += cleanWSSString(cartitems[i].CATEGORY);
	priceStr += cartitems[i].PRICE;
	quantityStr += cartitems[i].QTY;
}

//COMMERCE VARIABLES
hbx.cacct=hbx_cacct;
hbx.pr=productStr;  //comma delimited products
hbx.bd="BRAND";
if (categoryStr == '') {
	hbx.ca = "CATEGORIES";
}
else {
	hbx.ca=categoryStr;  //comma delimited product categories
}

hbx.pc=priceStr;    //comma delimited prices
hbx.qn=quantityStr; //comma delimited quantities
hbx.sr="STORE";    //store
hbx.cp="null";  //campaign
hbx.cam="0";  //cart add methodology, 0 = highwatermark, 1 = incremental
hbx.pv=0;  //product view flag, 0 = cart add, 1 = product view

//INSERT CUSTOM EVENTS

//END EDITABLE SECTION
function $ii( a, b,c){ return a.indexOf(b, c?c:0)};function $is(a,b, c){return b>a.length?
"":a.substring(b,c!=null?c:a.length)};function $a(v){ return escape(v) }; var _sv=10, _bn=navigator.
appName,_mn="we74",_bv=parseInt(navigator.appVersion),__r=".referrer",_rf=$a(eval("document"+__r)),
_epg="n&cam="+hbx.cam+"&pv="+(hbx.pv>0?"1":"0&abd_type=cart_add")+"&product="+$a(hbx.pr)+
"&quantity="+$a(hbx.qn)+"&brand="+$a(hbx.bd)+"&category="+$a(hbx.ca)+"&price="+$a(hbx.pc)+
"&store="+$a((hbx.sr=="S"+"TORE")?1:hbx.sr)+"&tz=CST&aid="+hbx.cacct;if(!$ii(_bn,"Micro"+
"soft"))_bn="MSIE";if(_bn=="MSIE"&&_bv==2)_bv=3;function $l(m,l){return m=="/"?
m:(($ii(m,"/")?"/":"")+(m.lastIndexOf("/")==l?m.substring(0,l):m))};function $n(
a,b){return(a==""||a=="/")?"/":$is(a,hbx.ctdef!="full"?a.lastIndexOf("/",b-2): $ii(
a,"/"),b)};function $o(a,b,c){var d=location.pathname,e=$is(d,d.lastIndexOf("/")+
1,d.length);if(a&&b==c){return(hbx.pndef=="title"&&document.title!=""&&document.
title!=location)?document.title:e?e:hbx.pndef}else{return(b==c)?$n(d,d.lastIndexOf(
"/")):$l(b,b.length-1)}};function $p(a,b,c,d){return ""+(c>-1?$o(b,$is(a,0,c),d
)+";"+$p($is(a,c+1),b,$ii($is(a,c+1),";")):$o(b,a,d))};hbx.mlc=$p( hbx.mlc,0,$ii(hbx.mlc,
";"),"CONTENT+CAT"+"EGORY");hbx.pn=$p(hbx.pn,1,$ii(hbx.pn,";"),"PUT+"+"PAGE+NAME+HERE" );
<!-- END WEBSIDESTORY CODE  -->
}

function WSS_MissingPageView(hbx_gn, hbx_acct) {

<!--WEBSIDESTORY CODE HBX1.5 (Error)-->
<!--COPYRIGHT 1997-2005 WEBSIDESTORY,INC. ALL RIGHTS RESERVED. U.S.PATENT No.6,393,479B1 & 6,766,370. INFO:http://websidestory.com/privacy-->

var hbx=new Object();hbx.vpc="HBX0150.02e";hbx.gn=hbx_gn;

//BEGIN EDITABLE SECTION
//CONFIGURATION VARIABLES
hbx.acct=hbx_acct;//ACCOUNT NUMBER(S)
hbx.mlc="ERROR"; //multi-level content category

//END EDITABLE SECTION
var _sv=10;
_sv=11;
function _A(v){return escape(v)}function _D(v){return(typeof eval("window._"+v)!=_hud)?eval("window._"+v):""}
function _II(a,b,c){return a.indexOf(b,c?c:0)}function _E(a){var b="",d=a.split(",");for(var c=0;c<d.length;c++)b+="&"+d[c]+"="+_A(_D(d[c]));return b}

var _hud="undefined",_ss="na",_sc="na",_cy="u",_hp="u",_vpc=hbx.vpc,_rf=document.location+"";var __r=".referrer";_er=eval("document"+__r)+"";
if((_er==_hud)||(_er==""))_er="bookmark";if(_II(document.cookie,"CP=")!=-1){_ce="y"}else{
document.cookie="CP=nul"+"l*; path=/; expires=Wed, 1 Jan 2020 00:00:00 GMT";_ce=(_II(document.cookie,"CP=")!=-1)?"y":"n"};
var _bnI=_II(navigator.appName,"Microsoft")>-1;var _hM=_II(navigator.userAgent,"Mac")>-1;var _I5=false;
if(_bnI){var _nua=navigator.userAgent,_is=_II(_nua,"MSIE"),_if=_II(_nua,".",_is);if(_if>_is)_I5=_nua.substring(_is+5,_if)>=5}
if(window.screen){_sv=12;_ss=screen.width+"*"+screen.height;_sc=_bnI?screen.colorDepth:screen.pixelDepth;
if(_sc==_hud)_sc="na"}var _ra=new Array();if(_ra.toSource||(_bnI&&_ra.shift))_sv=13;if(_I5&&!_hM){
if(_II(""+navigator.appMinorVersion,"Privacy")>-1)_ce="p";if(document.body&&document.body.addBehavior){document.body.addBehavior("#default#homePage");
_hp=document.body.isHomePage(location.href)?"y":"n";document.body.addBehavior("#default#clientCaps");_cy=document.body.connectionType}}
var _arg=(location.protocol=='https:'?'https://':'http://')+hbx.gn+"/HG?hc=&hb="+hbx.acct+"&cd=1&l=e"+"&ja="+(navigator.javaEnabled()?"y":"n")+
_E("rf,er,ce,vpc,sv,ss,sc,cy,hp");if(typeof eval("hbx.mlc")!=_hud&&_II(hbx.mlc,"CONTENT+CATEGORY")<0)_arg+="&vcon="+_A(hbx.mlc);
var _hbi=new Image();_hbi.src=_arg+"&hid="+Math.random();

if(_sv<11){document.write("<img src='"+_arg+"' border='0' height='1' width='1'>")}
<!--END WEBSIDESTORY CODE-->
}
