function display_obj (disp_obj, this_obj, text_show, text_hidden)
{
 if(disp_obj.style.display == 'block'){
	$(disp_obj).hide('slow');
	if(this_obj && text_show && text_hidden)
		this_obj.innerHTML = text_hidden;
 } else {
	$(disp_obj).toggle('slow');
	if(this_obj && text_show && text_hidden)
		this_obj.innerHTML = text_show;
 }
}


$(document).ready(function() {
    $("#anketa a").overlay({
        onBeforeLoad: function() {
            // grab wrapper element inside content
            var wrap = this.getOverlay().find(".contentWrap");

            // load the page specified in the trigger
            wrap.load(this.getTrigger().attr("href"));
        }
    });
});

