$(document).ready(function() {
			$("a.zoom").fancybox({
 			    'zoomSpeedIn'		:	500,
				'zoomSpeedOut'		:	500,
				'overlayShow'		:	true
								 
								 });

	
   $('.box h2 span').each(function(index) {
    

var tlo = $(this).parent().parent().attr('id');	
 var cssObj = {
      'background-image' : 'url(' + 'images/' + tlo  + '.png)',
      'background-repeat' : 'no-repeat'
    }
	$(this).css(cssObj); 
	$('.box h2 span').css('display' , 'block');
	$('.box h2 span span').css('visibility' , 'hidden');
		
		});
  $('#pobierzreg').click(function() {
  window.open($(this).attr('href'));
  return false;
});
   });
 
 
 addEvent(window, 'load', initCorners);

  function initCorners() {
    var settings = {
      tl: { radius: 15 },
      tr: { radius: 15 },
      bl: { radius: 15 },
      br: { radius: 15 },
      antiAlias: true
    }
 
  curvyCorners(settings, ".box");
 
 }
 
 
 

