hbx.lt = 'auto';

// Assign Page Title and URL to Custom Metric 1 (dimensions 1 and 2)
var cTitle = document.title;
cTitle = cTitle.replace(/'/g, "");
cTitle = cTitle.replace(/"/g, "");
cTitle = cTitle.replace(/,/g, "");
cTitle = cTitle.replace(/\|/g, "");
var cUrl = window.location;
hbx.hc1 = cTitle  + '|' + cUrl;



// "Proxy" functions for reporting page views and media activity to HBX from Flash or Ajax applications.

function cbcStatsReportPageView(params) {
	if (params.page != undefined && params.category != undefined) _hbPageView(params.page, params.category); // report page view to hbx
}

function cbcStatsReportMedia(params) {
	if (params.clientname != undefined) _hbSet("m.cl",params.clientname);
	if (params.clientversion != undefined) _hbSet("m.cv",params.clientversion);
	if (params.filename != undefined) _hbSet("m.f",params.filename);
	if (params.state != undefined) _hbSet("m.s",params.state); //play,pause,stop,playp
	if (params.position != undefined) _hbSet("m.cp",params.position); // current position, usually 0 when movie starts playing
	if (params.duration != undefined) _hbSet("m.ep",params.duration); // aka "end position"
	if (params) _hbSend(); // send variables to hbx
}
