function setupExternalLinks() {
	var links       = document.getElementsByTagName('a');
	var linkcount = 1;
	var setup_link;
	for (var i = links.length; i != 0; i--) {
		setup_link = false;
		var a = links[i-1];
		if (!a.href) continue;
		
		// Track external links
		if(a.href.indexOf('http') != -1 &&
            a.href.indexOf(window.location.hostname) == -1){
			url = a.href;
			
			start_pos = url.indexOf('.com');
			end_pos = start_pos + 5;
			domain = url.substring(0, end_pos);			
			
			if (domain == 'http://www.sunovion.com/') continue;
			if (domain == 'http://www.sunovionprofile.com/') continue;		
			if (domain == 'http://sunovion.force.com/') continue;	
			
			a.onclick = function(){

				// select the overlay element - and "make it an overlay"
				$('#ok-continue').attr('href', this.href);
				$('#ok-continue').attr('target', 'blank');
				$('#facebox').overlay({

					// custom top position
					top: 272,

					// some expose tweaks suitable for facebox-looking dialogs
					expose: {

						// you might also consider a "transparent" color for the mask
						color: '#000',

						// load mask a little faster
						loadSpeed: 200,

						// highly transparent
						opacity: 0.7
					},

					// disable this for modal dialog-type of overlays
					closeOnClick: true,

					// we want to use the programming API
					api: true

				// load it immediately after the construction
				}).load();
				
				return false;
			}

			linkcount++;
            
		}
	}
	
}

