
jQuery.noConflict(); 
jQuery(document).ready(function() {
	
	//Looking for links to track
	jQuery("a[href*=/visit-broker/]").click(function(){ 

		//Finding broker name in visit links
		var regexp = /visit-broker\/(.*)\.html/i;

		var broker = regexp.exec( this.href );

		if ( broker && broker[1] )
		{
			broker_name = broker[1];
		}

		s.linkTrackVars = 'events,products';
		s.linkTrackEvents="purchase";
		s.events="purchase";
		s.products=";" + broker_name + ";1;1.0";
		s.referrer=document.location.href;

		//Track exit link
		s.tl(this,'e',this.href);

		s.linkTrackVars = '';
		s.linkTrackEvents = '';
		s.events = '';
		s.products= '';
		
		s.pageName = this.pathname.toLowerCase()+this.search;

		//Track page view to get correct bounce rate
		void(s.t());

		//Open new win
		window.open( this.href );
		return false;

	});
});