function SB_addLinkTargets() {
	$$('a').each(function(el){
		if (el.title == "external") {
			el.target = "_blank";
		}
	});
}


function SB_launchModal(elem) {
	new MochaUI.Window({
		id: 'modalWindow',
		title: elem.title,
		loadMethod: 'iframe',
		contentURL: elem.href,
		type: 'modal',
		minimizable: false,
		draggable: true,
		width: 400,
		height: 250,
		scrollbars: true,
		shadowBlur: 8
	});
}