
/**
 *	Remove html elemente with animation
 *	@param string selector jQuery selector 
 *	@param mixed  speed jQuery speed ( miliseconds )
 *	@param boolean noeffect set to true to delete elements directly, without effect
 **/
function fancyRemove( selector, speed, noeffect ){
	if (typeof(selector) == 'undefined') { return; }
	if (typeof( speed )  == 'undefined') { speed = 300; }
	if (typeof(noeffect) == 'undefined') { noeffect = false; }

	obj = $( selector );
	if ( noeffect ) {
		obj.remove();
		return;
	}	
	else {
		obj.slideUp( speed );
		setTimeout( 'fancyRemove("' + selector + '",' + speed + ',' + true + ')', speed)
		return;
	}
}
