/*-----------------------------------------------------------------------
toaster JavaScript File

version: 	4.1
author:		sebastian kupke
email:		sebastian.kupke@baral-geohaus.de
website:	http://www.baral.de
-----------------------------------------------------------------------*/

/* =namespace toaster
-----------------------------------------------------------------------*/
ws.tst = {
	
	/* =show
	-----------------------------------------------------------------------*/
	show: function(header, content) {
	
		// BAD
		try {
			ws.m.objectsAdmin.tinymce.remove('content');
		} catch(e) {}
		
		$('#tst_header_txt').html(header);
		$('#tst_content').html(content);
		
		if ($('#tst:hidden')) {
			$('#tst').slideDown();
		}
	},
	
	/* =hide
	-----------------------------------------------------------------------*/
	hide: function() {
		
		// BAD
		try {
			ws.m.objectsAdmin.tinymce.remove('content');
		} catch(e) {}
		
		// BAD
		try {
			$('#m_objectsAdmin_edit_image_move').remove();
		} catch(e) {}
		
		$('#tst:visible').slideUp(400, function() {
			$('#tst_header_txt').html('');
			$('#tst_content').html('');
		});
	}
};














