jQuery(document).ready(function($){

	
	$('.blueCircle, .redCircle').tooltip({ relative: true, position: 'top left', offset: [22, 49], effect: 'slide'});
	
	$('.foundationLinkContainer > p').each(function() {
		theText = $(this).html();
		theText = theText.replace(/\[br\]/gi, "<br />");
		theText = theText.replace(/\[ul\]/gi, "<ul>");
		theText = theText.replace(/\[\/ul\]/gi, "</ul>");
		theText = theText.replace(/\[li\]/gi, "<li>");
		theText = theText.replace(/\[\/li\]/gi, "</li>");
		theText = theText.replace(/\[b\]/gi, "<span class=\"boldSpan\">");
		theText = theText.replace(/\[\/b\]/gi, "</span>");
		
		$(this).html(theText);
	});
	
});


function isValidEmailAddress(emailAddress) {
	var pattern = new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i);
	return pattern.test(emailAddress);
}

