var xmlns = 'http://www.w3.org/1999/xhtml';

/* Internet Explorer... */
if(!document.createElementNS)
{
	document.createElementNS = function(ns, el)
	{
		return document.createElement(el);
	};
}

if(!window.DOMInitialised)
{
	Event.onDOMReady(init);
}
else
{
	window.setTimeout(init, 1);
}

function init()
{
	document.getElementsByClassName('popup').each(function (obj) { Event.observe(obj, 'click', popup, false); });
};

/**
 * Pop up a link in a new window.
 * @param evt Event
 */
function popup(evt)
{
	window.open(Event.element(evt).href, null);
	Event.stop(evt);
};
/*
	theme_advanced_buttons1 : "bold,italic,underline,separator,justifyleft,justifycenter,justifyright, justifyfull,bullist,numlist,undo,redo,paste,spellchecker",
*/
/*
tinyMCE.init({
	mode : "textareas",
	plugins : "spellchecker,paste",
	theme : "advanced",
	theme_advanced_buttons1 : "undo,redo,paste,spellchecker",
	theme_advanced_buttons2 : "",
	theme_advanced_buttons3 : "",
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "left",
	theme_advanced_path_location : "bottom",
	extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]"
});
*/
