$(document).ready(function() {
	
	// Buttons handler
	$("button.button.cancel").click(function() {
		history.go(-1);
	});
	
	
	$("button.button.reset.tinymce").click(function() {
		$("textarea").each(function() {
			var name = $(this).attr("name");
			try { tinyMCE.get(name).setContent(""); } catch (e) { }
		});
	});
	
	
	
	
	// Buttons animation
	$(".button").fadeTo(1, 0.6);
	$(".button").hover(
		function()
		{
			$(this).stop().fadeTo("fast", 1);
		},
		function()
		{
			$(this).stop().fadeTo("fast", 0.6);
		}
	);
	
	
	
	
});


