// Add Help Cursor to Treatments tables with title attr
jQuery(document).ready(function($) {
	$('table.treatments tr').each(function() {
		var title_attr = $(this).attr('title');
		if (title_attr.length) {
			$(this).children('td').css('cursor', 'help');
		};
	});
});

// Email/Phone Encryption
function ewrite(a,b,c,d) {
	var mail;
	var link;
	mail = a + "@" + b + "." + c;
	if (d == 0) {
		document.write(mail);
	} else {
		link = '<a href="mailto:' + mail + '">' + mail + '</a>';
		document.write(link);
	}
}
function telwrite(a,b,c) {
	var phone;
	var ext;
	ext = a + " ";
	phone = b + " " + c;
	if (a == 0) {
		document.write(phone);
	} else {
		document.write(ext); document.write(phone);
	}
}
