jQuery(document).ready(function($){
	
	/* GodBox */
	$("#godbox").live('mouseover',function(){  $(this).stop().slideUp('slow',function(){ $(this).remove(); }); });

	$("#godbox").delay(500).slideDown('normal').delay(5000).slideUp('normal',function(){ $(this).remove(); });
	
	 $(window).scroll(function () { 
		var scroll_top = $(document).scrollTop();
		$("#godbox").css('top',scroll_top+'px')
    });

	
	/*/GodBox */
	
});

/* Plugin Show Godbox 1.1 */
(function($) {
	$.fn.godbox = function(settings) {
		var config = {
				css: 'flash_success',
				msg: 'Mensaje por Defecto'
			};
				
		if (settings) $.extend(config, settings);		
		
		var html = '<div id="godbox">';
		html += '<div class="flash_box '+ settings.css +'">'
		html += settings.msg;
		html += '</div>';
		html += '</div>';		
		
		var scroll_top = $(document).scrollTop();
		
		if( $("#godbox").is(':visible') ){ $("#godbox").slideUp('fast').remove(); }

		this.each(function() {			
			$("body").prepend(html);			  

			$("#godbox").css('top',scroll_top+'px').delay(500).slideDown('normal').delay(5000).slideUp('normal',function(){ $(this).remove(); });
		});
		 
		return this;
	}; 
})(jQuery);
