jQuery(document).ready(function(){
	var targetURL, newWindow;

	function showEvent() {
		newWindow.location.replace(targetURL);
		}

	jQuery('a[href*="/sfnet/Sections.asp"]').click(function(e){
		targetURL = $(this).attr('href');
		var conversion = '/'+window.location.pathname.split('/')[1]+'/conversions/'+$(this).attr('title');
		pageTracker._trackPageview(conversion);
		newWindow = window.open('http://healthconnection.emory.org/sfnet/ServiceSearch.asp?n=1&dblink=2',"_event");
		setTimeout(showEvent,500);
		e.preventDefault();
		});
		
	jQuery('a[href^="/"][href$=".pdf"],a[href^="/"][href$=".PDF"]').attr('target','_blank');

	jQuery('a[href^="/"][href$=".pdf"],a[href^="/"][href$=".PDF"]').click(function(){
		pageTracker._trackPageview($(this).attr('href'));
		});
	});	



