// custom code for 2.0 release to send linkviews on page view until the backend is ready
// remove this code block if we want to send linkViews as a separate request
function _hbOnPrePV(req) {
    for(var a=0;a<_IL(document.links);a++)_LV(document.links[(a)]);
    _ar += "&lv.id="+_A(_lvid)+"&lv.pos="+_A(_lvpos);
    _lvl=-1; 
    
    //Make input string valid for managed "Configuration Variables"
    _pn = ConvertSpacesPluses(_pn);
    _mlc = ConvertSpacesPluses(_mlc);
}

//CUSTOM FUNCTION: ConvertSpacesPluses, implemented 4-10-2006, ZAAZ Inc.
function ConvertSpacesPluses(input) {
	var output = "";
    var arrSplit = input.split(' ');
    output = arrSplit.join('+');
	return output;
}

var _du =  _proxy_jslib_handle(document, 'URL', '', 0, 0);
if(_du && _du.indexOf("CMP=")>-1){
var _idx1 = _du.indexOf("CMP=");
var _idx2 = _du.indexOf("-",_idx1);
var _cc = _du.substring(_idx1+4,_idx2);
	var _idx3 = _du.indexOf("&",_idx2);
_idx3 = (_idx3==-1)?_du.length:_idx3;
var _c = _du.substring(_idx1+4,_idx3);
var _cseg = "";
if(_cc.toUpperCase()=="BAC")
	_cseg = 5;
else if(_cc.toUpperCase()=="AFC")
	_cseg = 6;
else if(_cc.toUpperCase()=="EMC")
	_cseg = 7;
else if(_cc.toUpperCase()=="RAC")
	_cseg = 8;
else if(_cc.toUpperCase()=="SPC")
	_cseg = 9;

if(_c.toUpperCase()=="AFC-MYSPACE")
	_cseg = 10;
else if(_c.toUpperCase()=="AFC-YAHOO")
	_cseg = 11;

if(hbx.seg = "")
	hbx.seg = _cseg;
else 
	hbx.seg += "," + _cseg

} ;
_proxy_jslib_flush_write_buffers() ;