function pokaz(id){
	
	var id = document.getElementById(id);
	
	if(id.style.display == 'none'){
		id.style.display = 'block';
	}else{
		id.style.display = 'none';
	}

}

$(function() {
	$('a.lbox').lightBox({fixedNavigation:true});
});

$(function() {
	$('a.lboxx').lightBox({fixedNavigation:true});
	$('a.lbox110302').lightBox({fixedNavigation:true});
	$('a.lbox110304').lightBox({fixedNavigation:true});
	$('a.lbox110317').lightBox({fixedNavigation:true});
	$('a.lbox110612').lightBox({fixedNavigation:true});
	$('a.lbox110615').lightBox({fixedNavigation:true});
	$('a.lbox110922').lightBox({fixedNavigation:true});
	$('a.lbox111109').lightBox({fixedNavigation:true});
	$('a.lbox111119').lightBox({fixedNavigation:true});
});

$(document).ready(function(){

$("#reportaz").click(function () {
	$("#fotoreportaz").toggle("slow");
  });
});

$(document).ready(function(e)
{	
	
	// laureaci box 2010
	function foto(i)
	{
		var j;
		i = parseInt(i);
		if(i==15) j = 1; else j = i+1;
	
		$('#left').click(function()
		{
			if(j==1) j = 15; else if(j==2) j = 15; else j=j-2;

		});
		
		$('#right').click(function()
		{
			if(j==15) j=1; else j++; 
		});
		
		$("#foto").empty();
		$("#foto").css({opacity: 0.0});
		$('#foto').append('<a href="banery/laureaci2010/baner.jpg" id="banLaur"><img src="banery/laureaci2010/'+i+'.jpg" alt="" style="border:none" class="foto'+i+'" /></a>');
		$("#foto").animate({opacity: 1.0}, {duration: 2000}).animate({opacity: 0.0}, {duration: 2000, complete: function(){foto(j);}});
		
		$('a#banLaur').lightBox({fixedNavigation:true});
	}
	
	foto(1);
	
		$.fn.maphilight.defaults = 
		{
			fill: true,
			fillColor: '000000',
			fillOpacity: 0.1,
			stroke: false,
			strokeColor: '000000',
			strokeOpacity: 0.5,
			strokeWidth: 1,
			fade: true,
			alwaysOn: false,
			neverOn: false,
			groupBy: false
		}
		
		$('.wwoj').hide();
		
		$('.woj').click(function()
		{
			var id = $(this).attr('id');
			$('.woj').data('maphilight',{alwaysOn:false,fill:true,stroke:false}).trigger('alwaysOn.maphilight');
			$('#'+id).data('maphilight',{alwaysOn:true,fill:false,stroke:true}).trigger('alwaysOn.maphilight');
			$('.wwoj').hide('slow');
			$('#w'+id).show('slow');
			
			//alert(document.location);
		
		});
	
	$('.polska').maphilight();
	
	
	// laureaci - rozwijana lista
	$('.a').click(function()
	{
		var id = $(this).attr('id');
		$('.n').not('#'+id+'a').hide('slow');
		$('#'+id+'a').toggle('slow');
	});

});
