function tiny() {
	tinyMCE.init({
		mode : "textareas",
		theme : "advanced",
 		language : "es",
		plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,inlinepopups,insertdatetime,preview,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras",
		theme_advanced_buttons1 : "newdocument,|,fullscreen,code,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,fontselect,fontsizeselect",
		theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,|,insertdate,inserttime,|,forecolor,backcolor",
		theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,charmap,|,print,flash",
		theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,|,cite,attribs,pagebreak",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		theme_advanced_resizing : true
	});
}

function __redir(url) { window.location.href = url; }

function __status(update,mensaje) {
	if(mensaje) {
		$(update).setHTML('<h1 class="ajaxon">'+mensaje+'</div>');
	}
	$(update).setStyle('display', 'block');
	var myFx = new Fx.Style(update, 'opacity').start(0,1)
}

function __ajax(url,post,update,mensaje) {
	__status(update,mensaje);
	new Ajax(url, {
		method: 'post',
		evalScripts : true,
		postBody: post,
		update: update
	}).request();
}
function __ajaxmsg(update,mensaje) {
	$(update).setHTML('<h1 class=\"ajax\">'+mensaje+'</h1>');
}
function __ajaxdone(update,tiempo) {
	(function(){
		var fx = new Fx.Style(update, 'opacity', {
			onComplete: function() {
				$(update).setStyle('display', 'none');
			}
		});
		fx.start(0);  }).delay(tiempo); 
}
