
    function taglinks(linkCollection) {
		var msg1 = 'You are leaving the www.ucb.com website and are about to enter the website of a third party. UCB is not responsible for and does not endorse the content of the website you are about to enter.';
		var msg2 = 'You have selected a link that may take you away from www.ucbusa.com. This link may lead you to a site that is neither owned or controlled or paid for by UCB, Inc. UCB, Inc. is not responsible for the content, presentation, policies, or services on these sites.';
		$(linkCollection).each(function(i) {
			var msg = false;
			var tgt = false;
			var track = false;
			var trackURL = false;
			// set message by disclaimer-type
			if ($(this).hasClass('disclaimer-1')) {
				msg = msg1;
			} else if ($(this).hasClass('disclaimer-2')) {
				msg = msg2;
			}
			// track link?
			if (
			    $(this).attr('href') != undefined &&
			    ($(this).attr('href').substr(0, 4) == 'http' || $(this).attr('href').slice(0, 7) == '../_up/' || $(this).attr('href').slice(0, 13) == '/website/_up/')
			) {
			    track = true;
			}
			// has target?
			if ($(this).attr('target')) {
			    tgt = $(this).attr('target') == '_blank' ? '_blank' : false;
			}
			if (!msg && !track) return true;
			if (track) {
			    trackURL = $(this).attr('href').replace('http://www.', '');
			    trackURL = trackURL.replace('https://www.', '');
			    trackURL = trackURL.replace('http://', '');
			    trackURL = trackURL.replace('https://', '');
			    trackURL = trackURL.replace('../_up/', '');
			    trackURL = trackURL.replace('/website/_up/', '');
			    // special treatment for epilepsyadvocate.com
			    trackURL = trackURL.replace('epilepsyadvocate.com/community/join.aspx', 'EA.com/join.aspx');
			    trackURL = trackURL.replace('epilepsyadvocate.com', 'EA.com');
			}
			if (!msg && track) {
			    $(this).bind('click', function() {
			        //alert('pageTracker._trackPageview(/' + trackURL + ')');
			        pageTracker._trackPageview('/' + trackURL);
			    });
			    return true;
			}
			$(this).bind('click', function() {
			    /*
			    var tmp = confirm(msg);
				if (tmp) {*/
				    if (track) {
				        //alert('pageTracker._trackPageview(/' + trackURL + ')');
				        pageTracker._trackPageview('/' + trackURL);
				    }
				    if (tgt) {
				        window.open($(this).attr('href'), tgt);
				    } else {
					    location.href = $(this).attr('href');
					}
				//}
				return false;
			});
		});
	}
	
	$(document).ready(function() {
		var linkCollection = $('a');
		taglinks(linkCollection);
	});
	
	function quickSelectBlock(list) {
	    
		// In case of MSIE, read the <BASE HREF=''/> attribute from the DOM
		// This has to be done because MSIE ingnores the base href when doing a redirect via location.href 
		if (jQuery.browser.msie) 
			base_href = $('base').attr('href');
		else 
			base_href = '';
		
		if (list.options[list.selectedIndex].value) {	    	
	        location.href = base_href+list.options[list.selectedIndex].value;
	    }
	    return false;
	}