var t;
var behaviors = {
	'.richeditable': function(element) {
		var iframe = document.createElement('iframe');
		var html = element.value;
		element.parentNode.replaceChild(iframe, element);
		iframe.contentWindow.document.open('text/html');
		iframe.contentWindow.document.write(html);
		iframe.contentWindow.document.close();
		t = function() { 
			iframe.contentWindow.document.designMode = 'On';
		}
		setTimeout('t();', 100);
	}
};

Behaviour.register(behaviors);

