/* external links */
$(document).ready(function() {
	$("a").click(
		function() {
			var cls = $(this).attr('class');
			var href = $(this).attr('href');
			var a1 = href.split("mammothblog.com");
			var a2 = href.split("mammothblog.com/out.cfm");
			var a3 = href.split("localhost");
//alert("a1: "+a1+"\na2: "+a2+"\na3: "+a3);
			if ( cls != "no-open" ) {
				if (a3 != href) {
					// do nothing
				} else if ( a1 != href && a2 != href ) {
					window.open(href, 'MammothOffsite');
					return false;
				}
			}
		}
	);
});
