﻿function showPodmenu(idUl)
{
	var ul = document.getElementById(idUl);
	if (ul.style.display == 'block')
		ul.style.display='none';
	else
		ul.style.display='block';
}

$(document).ready(function() 
{ /* This is basic - uses default settings */ 
jQuery('a.pic').fancybox({'overlayShow':false,'zoomSpeedIn':600,'zoomSpeedOut':500,'easingIn':'easeOutBack','easingOut':'easeInBack'});
//jQuery.easing.def = 'easeOutBounce'; 
//load();
});

var x = new Array();
jQuery("#pokazWiecej").click(function() {
   jQuery("#toggleText").toggle('blind','slow',changeName());
   return false;
  });

  function changeName(ahref,idWiecej)
  {
   if (x[idWiecej])
    jQuery(ahref).text('Schowaj');
   else jQuery(ahref).text('Zobacz więcej');
  }
function toggleDiv(wiecej)
{
	var el = jQuery(wiecej).parent().find(".prOpisB");
	var idWiecej = wiecej.id;
	if (x[idWiecej]==null)
		x[idWiecej]=true;
	if (x[idWiecej])
	 el.show("blind",{},'slow',changeName(wiecej,idWiecej));
	else
	  el.hide("blind",{},'slow',changeName(wiecej,idWiecej));
	 x[idWiecej] = x[idWiecej] ^ true;
	return false;
}