	$(document).ready(function()
			{
				$('.profile_mini, .testimonial-callout').each(function()
				{
					var width = 650;
					var height = 500;
					
					var popupPath = $('a.popup_path', $(this)).attr('href');

					$(this).click(function()
					{
						window.open(popupPath, '_blank', 'width='+width+',height='+height+',scrollbars=1');
					});
				
					$('a.popup_path', $(this)).remove();
				
				});			
			
				$('a[href*="#popup"], a[href*="pageAnchor=popup"]').each(function()
				{
					// set default values for the height and width of the popup
					
					var width = 650;
					var height = 500;
					
					// get the current value of the "href" attribute of the current
					// <a> element.
									
					var href = $(this).attr('href');
					
					// get the suffix following the last occurrence of
					// "popup-" in the URL. so if the URL contains
					// "#popup-exec", then set the suffix variable to
					// "exec".
					
					var suffix = href.substring(href.lastIndexOf("popup-")+6, href.length);
															
					if (suffix == 'exec')
					{
						width = 650;
						height = 500;
					}
					else if (suffix == 'careertool')
					{
						width = 650;
						height = 500;
					}
					else if (suffix == 'course')
					{
						width = 458;
						height = 400;
					}
									
					$(this).click(function()
					{
						window.open(href, '_blank', 'width='+width+',height='+height+',scrollbars=1');
					});
					
					$(this).removeAttr('href');
				});
				
			});
