(function($){  
		
	$.overbox = function() {
            this.refreshPage = false;
            this.reloadIframe = false;
	}

	$.extend($.overbox, { 



		show : function(div,title) {

                        if (typeof title === 'undefined') title = 'INFORMACJA';

			$(".overBox").each(function (index, domEle) {
				$.overbox.hide('#'+domEle.id);		
			});

			$(div).show();
                        $(div+'_title').text(title);
			$(div+'_content').show();
		},

		hide : function(div) {
                        if (this.refreshPage){
                            window.location.reload(true);
                        }
			$(div).hide();
			$(div+'_content').hide();
		},

                populate : function (div,content,oContentCss){
                    this.refreshPage = '';
                    $(div+'_information').css(oContentCss);
                    /*if ($(div+'_data iframe').length===0 || this.reloadIframe){*/
                        $(div+'_data').empty();
                        $(div+'_data').append(content);
                    //}
                }

	});	
  
})(jQuery); 
