/**
  * This function tracks the click events
  * and passes the information to s_code.js
*/
function capture(event, desc, sCodeProperty, sCodePropertyVal, action) 
{ 
	var channel = 'DBing vNext';
    var description = channel + ':' + desc;
    var s2 = s_gi('mswlsrccrmusdiscoverbingoslocom');
    
    s2.linkTrackVars = 'prop13,prop14,eVar13,eVar14,events,channel';
    s2.linkTrackEvents = event;

	s2.eVar14 = "en-us";
	s2.prop14 = s.eVar14;

	s2.prop13 = description;
    s2.eVar13 = description;
    s2.events = event;

    s2.channel = channel;
    if (action == null) {
    	s2.tl();
    }
    else 
    {
    	s2.tl(this, action, description);
    }

    /* Clear out the variables so they are not cached for the next call */
    s2.linkTrackVars = "";
    s2.linkTrackEvents = "";
    
    s2.prop13 = "";
    s2.eVar13 = "";
    
    s2.events = "";
    
}

function trackitAuto(event,desc,linktype)
{
	
	s.linkTrackVars = 'prop13,prop14,eVar13,eVar14,events,channel';
	s.linkTrackEvents = event;

	s.eVar14 = "en-us";
	s.prop14 = s.eVar14;

	s.eVar13 = s.pageName + ':' + desc;
	s.prop13 = s.eVar13;

	s.events = event;

	if (linktype == null) {
		s.tl();
	}
	else {
		s.tl(this, linktype, s.prop13);
	}

}

