// Omniture stats update
jQuery(function($) {
	var LOGGING = false;

	// capture print click
	$('#Print a').click(function() {
		var s=s_gi('bahcomdev');
		s.linkTrackVars='events';
		s.linkTrackEvents='event3';
		s.events='event3'
		s.tl(this,'o','Print Button');
		if (LOGGING && window && window.console != null) { console.log('s=',s.events,' this=',this,''); }
	});

	// Twitter
	$('#Social li.Twitter a').click(function() {
		var s=s_gi('bahcomdev');
		s.linkTrackVars='events';
		s.linkTrackEvents='event4';
		s.events='event4'
		s.tl(this,'o','Twitter');
		if (LOGGING && window && window.console != null) { console.log('s=',s.events,' this=',this,''); }
	});

	// Font Size
	// #FontSize .Size1 a,#FontSize .Size2 a,#FontSize .Size3 a
	// Used in custom link tag. Be sure to grab the page name value from hosting page.
	function sendFontSizeEvent(font_size, link_el) {
		var
			s=s_gi('bahcomdev'),
			pagename = s.pageName;
		s.linkTrackVars='prop15';
		s.prop15=pagename + '|' + font_size;
		s.tl(link_el,'o','Font Size');
		if (LOGGING && window && window.console != null) { console.log('s.prop15=',s.prop15,' link_el=',link_el,''); }
	}

	$('#FontSize .Size1 a').click(function() { sendFontSizeEvent('Size1',this); });
	$('#FontSize .Size2 a').click(function() { sendFontSizeEvent('Size2',this); });
	$('#FontSize .Size3 a').click(function() { sendFontSizeEvent('Size3',this); });
	
	// continue below/close
	function sendContinueEvent(desc, link_el) {
		var
			s=s_gi('bahcomdev'),
			pagename = s.pageName;
		s.linkTrackVars='prop17';
		s.prop17=pagename + '|' + desc;
		s.tl(link_el,'o',desc);
		if (LOGGING && window && window.console != null) { console.log('s.prop17=',s.prop17,' link_el=',link_el,''); }
	}
	$('#Header720').delegate('a.awc-show', 'click', function() { sendContinueEvent('Continue Below',this); });
	$('#Header720').delegate('a.awc-hide', 'click', function() { sendContinueEvent('Close',this); });

	// of note
	$('ul.RelatedInfo li a').click(function(e) {
		var
			s=s_gi('bahcomdev'),
			pagename = s.pageName;
		s.linkTrackVars='prop14';
		s.prop14=pagename + '|' + $(this).text();
		s.tl(this,'o','Of Note Article');
		if (LOGGING && window && window.console != null) { console.log('s.prop14=',s.prop14,' this=',this,''); }
	});
	

});


