		var current_photo = 1;
		var miniaturki_current = 1;		
		var current = "home_page";
		var kontakt_top = 0;
		

/*#########################################################*/

	function resetHome()
	{
		document.getElementById('portret_over').style.display="none";
		document.getElementById('biznes_over').style.display="none";
		document.getElementById('reportaz_over').style.display="none";
		document.getElementById('linki_over').style.display="none";
		document.getElementById('publikacje_over').style.display="none";
		document.getElementById('kontakt_over').style.display="none";
	}
		

/*#########################################################*/

	function showGaleria(page){
		
		var title = "";
		
		if(page=="reportaz" || page=="reportaz_2")
		{
		title = "autorskie";
		}
		else 
		{
		title = page;
		}
		document.getElementById('title').innerHTML= title;
		
		
		$("#goright").show(0);
		miniaturki_current = 1;	
		
		$("#autorskie").hide(0);

		current = page;
		updatePodpis(page, 1);		
		showPhoto(1);
		
		$("#"+page).show(0);
	
		$("#galeria").fadeIn("slow");
		
	}


/*#########################################################*/

	function hideGaleria(){
		hidePhoto();
		$("#"+current).hide(0);
		$("#"+current+"_miniaturki").show().animate({left: 0},0);
		$("#galeria").hide(0);
		$("#goright").show(0);

		miniaturki_current = 1;	
	}


/*#########################################################*/

	function showPortfolio(){
		$("#intro").hide(0);
	}


/*#########################################################*/

		function updateCounter(current, nr, max)
		{
				if(nr<10)
				{
				var numer = "0"+nr;
				}
				else
				{
				var numer = nr;
				}
				
			document.getElementById('counter').innerHTML=numer;
			
				if(max<10)
				{
				var numer = "0"+max;
				}
				else
				{
				var numer = max;
				}
			
			document.getElementById('counter_total').innerHTML="."+numer;
		}

/*#########################################################*/

		function getMax(page)
		{
			if(page == "portret"){
			max=portret_ilosc_zdjec;
			}
			if(page == "biznes"){
			max=biznes_ilosc_zdjec;
			}
			if(page == "reportaz"){
			max=reportaz_ilosc_zdjec;
			}
			if(page == "reportaz_2"){
			max=reportaz_2_ilosc_zdjec;
			}
			if(page == "publikacje"){
			max=publikacje_ilosc_zdjec;
			}
		
		return max;
		
		}

/*#########################################################*/

		function updatePodpis(current, nr){
		
			if(current == "portret"){
				document.getElementById('podpis').innerHTML=portret[nr];	
			}
			if(current == "biznes"){
				document.getElementById('podpis').innerHTML=biznes[nr];		
			}
			if(current == "reportaz"){
				document.getElementById('podpis').innerHTML=reportaz[nr];		
			}
			if(current == "reportaz_2"){
				document.getElementById('podpis').innerHTML=reportaz_2[nr];		
			}
			if(current == "publikacje"){
				document.getElementById('podpis').innerHTML=publikacje[nr];		
			}
			
		}
		

/*#########################################################*/


		function showPhoto(nr){
		
		if((nr==8 || nr==15 || nr==22 || nr==29) && current_photo<nr){
		scroll_right(89);
		}
		
		maximum = getMax(current);

			$("#"+current+current_photo).hide(0);
			$("#"+current+nr).fadeIn("slow");
			current_photo = nr;
			
				if(current_photo>1)
				{
				$("#go_one_down").show(0);
				}
				else
				{
				$("#go_one_down").hide(0);
				}
			
				if(max!=0 && current_photo==maximum)
				{
				$("#go_one_up").hide(0);
				}
				else
				{
				$("#go_one_up").show(0);
				}
				

			
			
			updateCounter(current, nr, maximum);

			$("#podpis").stop(true, true);
			
			updatePodpis(current, nr);
			
			$("#podpis").fadeIn("slow");
			$("#podpis").animate({opacity: 1.0}, 3000);
			$("#podpis").fadeOut("slow");
		}
		
/*#########################################################*/


		function hidePhoto(){
		
			$("#"+current+current_photo).hide(0);
		}

/*#########################################################*/


		function showUpPhoto(){
		showPhoto(current_photo+1);
		}

/*#########################################################*/


		function showDownPhoto(){
		if(current_photo==8 || current_photo==15 || current_photo==22 || current_photo==29){
		scroll_left(89);
		}
		showPhoto(current_photo-1);
		}


/*#########################################################*/

		function scrollto(id,size) {
		 
		 maximum = getMax(current);
		 
		 if(miniaturki_current!=id)
			 {
				if(id>0&&id<=maximum)
				 {
					var liczba=-1*((id-1)*size);
					$("#"+current+"_miniaturki").show().animate({left: liczba},"slow");
				
					miniaturki_current=id;
				}
				if((maximum-id)<6)
				 {
					$("#goright").hide("slow");

				}
				else
				{
					$("#goright").show("slow");

				}
			 }
		 }

/*#########################################################*/
 
	 function scroll_left(size) {

	 scrollto(miniaturki_current-7, size);

	 }

/*#########################################################*/

	 function scroll_right(size) {
	 
	 scrollto(miniaturki_current+7, size);

	 }




/*#########################################################*/

$(document).ready(function(){

    $("#omnie_box").mouseover(function(){
      $("#omnie_over").fadeIn("slow");
    });
		
		
    $("#omnie_box").mouseout(function(){
      $("#omnie_over").fadeOut("slow");
    });
		
		
    $("#omnie_box").click(function(){
			if(current=="kontakt"){
      $("#kontakt_text").show().animate({left: -400}, 500);
      $("#omnie_text").animate({opacity: 1.0}, 500);
      $("#omnie_text").show().animate({left: 10}, 1000);
			current="omnie";
			}
			else if(current=="linki"){
      $("#linki_text").show().animate({left: -400}, 500);
      $("#omnie_text").animate({opacity: 1.0}, 500);
      $("#omnie_text").show().animate({left: 10}, 1000);
			current="omnie";
			}
			else if(current=="omnie"){
      $("#omnie_text").show().animate({left: -400}, 500);
      $("#linki_pion").animate({opacity: 1.0}, 500);
      $("#linia_pion").show().animate({top: 431}, 1500);
			current="home_page";
			}
			else
			{
      $("#linia_pion").show().animate({top: 0}, 1500);
      $("#omnie_text").animate({opacity: 1.0}, 1250);
      $("#omnie_text").show().animate({left: 10}, 1000);
				current="omnie";
			}
    });
	
	
	$("#linki_box").mouseover(function(){
      $("#linki_over").fadeIn("slow");
    });
		
		
    $("#linki_box").mouseout(function(){
      $("#linki_over").fadeOut("slow");
    });
		
		
    $("#linki_box").click(function(){
			if(current=="kontakt"){
      $("#kontakt_text").show().animate({left: -400}, 500);
      $("#linki_text").animate({opacity: 1.0}, 500);
      $("#linki_text").show().animate({left: 10}, 1000);
			current="linki";
			}
			else if(current=="omnie"){
      $("#omnie_text").show().animate({left: -400}, 500);
      $("#linki_text").animate({opacity: 1.0}, 500);
      $("#linki_text").show().animate({left: 10}, 1000);
			current="linki";
			}
			else if(current=="linki"){
      $("#linki_text").show().animate({left: -400}, 500);
      $("#linki_pion").animate({opacity: 1.0}, 500);
      $("#linia_pion").show().animate({top: 431}, 1500);
			current="home_page";
			}
			else
			{
      $("#linia_pion").show().animate({top: 0}, 1500);
      $("#linki_text").animate({opacity: 1.0}, 1250);
      $("#linki_text").show().animate({left: 10}, 1000);
				current="linki";
			}
    });
		

		
    $("#publikacje_box").mouseover(function(){
		
		if(current=="kontakt"){
      $("#kontakt_text").show().animate({left: -400}, 500);
      $("#linia_pion").animate({opacity: 1.0}, 500);
      $("#linia_pion").show().animate({top: 361}, 1500);
			current="home_page";
			}
		if(current=="omnie"){
      $("#omnie_text").show().animate({left: -400}, 500);
      $("#linia_pion").animate({opacity: 1.0}, 500);
      $("#linia_pion").show().animate({top: 361}, 1500);
			current="home_page";
			}
		if(current=="linki"){
      $("#linki_text").show().animate({left: -400}, 500);
      $("#linia_pion").animate({opacity: 1.0}, 500);
      $("#linia_pion").show().animate({top: 361}, 1500);
			current="home_page";
			}
		
      $("#publikacje_over").fadeIn("slow");
    });
		
		
    $("#publikacje_box").mouseout(function(){
      $("#publikacje_over").fadeOut("slow");
    });
		
		
    $("#publikacje_box").click(function(){
			
			
				if(current=="linki"){
				$("#linki_text").show().animate({left: -300}, 500);
				$("#linki_pion").animate({opacity: 1.0}, 500);
				$("#linia_pion").show().animate({top: 361}, 1500);
				}
				else if(current=="kontakt"){
				$("#kontakt_text").show().animate({left: -300}, 500);
				$("#linia_pion").animate({opacity: 1.0}, 500);
				$("#linia_pion").show().animate({top: 361}, 1500);
				}

			resetHome();
			$("#"+current).hide(0);
			showGaleria("publikacje");
    });
		
    $("#publikacje_tomekpikula").mouseenter(function(){
		if(kontakt_top==1){
		$("#kontakt_top").fadeOut("fast");
		$("#kontakt_top").show().animate({left: 370}, "slow");
		$("#podpis").fadeIn("slow");
		kontakt_top = 0;
		}
			$("#publikacje_tomekpikula").show().animate({width: 250}, "slow");
      $("#publikacje_portret").show().animate({left: 15}, "slow");
      $("#publikacje_biznes").show().animate({left: 85}, "slow");
      $("#publikacje_reportaz").show().animate({left: 155}, "slow");
			
    });	
		
    $("#publikacje_tomekpikula_wrapper").mouseleave(function(){
			$("#publikacje_tomekpikula").show().animate({width: 100}, "slow");
      $("#publikacje_portret").show().animate({left: -210}, "slow");
      $("#publikacje_biznes").show().animate({left: -140}, "slow");
			$("#publikacje_reportaz").show().animate({left: -80}, "slow");

    });	
		
    $("#publikacje_portret").click(function(){
			hideGaleria();
			showGaleria("portret");
    });	
		
    $("#publikacje_biznes").click(function(){
			hideGaleria();
			showGaleria("biznes");
    });
		
    $("#publikacje_reportaz").click(function(){
			hideGaleria();
			$("#autorskie").fadeIn("slow");
    });
		
    $("#kontakt_box").mouseover(function(){
      $("#kontakt_over").fadeIn("slow");
    });
		
		
    $("#kontakt_box").mouseout(function(){
      $("#kontakt_over").fadeOut("slow");
    });
		
		
    $("#kontakt_box").click(function(){
			if(current=="linki"){
      $("#linki_text").show().animate({left: -300}, 500);
      $("#kontakt_text").animate({opacity: 1.0}, 500);
      $("#kontakt_text").show().animate({left: 10}, 1000);
				current="kontakt";
			}
			else if(current=="omnie"){
      $("#omnie_text").show().animate({left: -400}, 500);
      $("#kontakt_text").animate({opacity: 1.0}, 500);
      $("#kontakt_text").show().animate({left: 10}, 1000);
			current="linki";
			}
			else if(current=="kontakt"){
      $("#kontakt_text").show().animate({left: -300}, 500);
      $("#linia_pion").animate({opacity: 1.0}, 500);
      $("#linia_pion").show().animate({top: 361}, 1500);
			current="home_page";
			}
			else
			{
      $("#linia_pion").show().animate({top: 0}, 1500);
      $("#kontakt_text").animate({opacity: 1.0}, 1250);
      $("#kontakt_text").show().animate({left: 10}, 1000);
				current="kontakt";
			}
    });
		
		
    $("#portret_box").mouseover(function(){
		if(current=="kontakt"){
      $("#kontakt_text").show().animate({left: -300}, 500);
      $("#linia_pion").animate({opacity: 1.0}, 500);
      $("#linia_pion").show().animate({top: 361}, 1500);
			current="home_page";
			}
			
		if(current=="linki"){
      $("#linki_text").show().animate({left: -300}, 500);
      $("#linia_pion").animate({opacity: 1.0}, 500);
      $("#linia_pion").show().animate({top: 361}, 1500);
			current="home_page";
			}

				$("#portret_over").fadeIn("slow");
				$("#portret_out").fadeOut("slow");
				$("#subpage").fadeOut(0);
				$("#subpage_portret").fadeIn(0);
    });
		
		
    $("#portret_box").mouseout(function(){
      $("#portret_over").fadeOut("slow");
				$("#portret_out").fadeIn("slow");
				$("#subpage").fadeIn(0);
				$("#subpage_portret").fadeOut(0);
    });
		
    $("#portret_box").click(function(){
			
			
				if(current=="linki"){
				$("#linki_text").show().animate({left: -300}, 500);
				$("#linki_pion").animate({opacity: 1.0}, 500);
				$("#linia_pion").show().animate({top: 361}, 1500);
				}
				else if(current=="omnie"){
				$("#omnie_text").show().animate({left: -300}, 500);
				$("#linia_pion").animate({opacity: 1.0}, 500);
				$("#linia_pion").show().animate({top: 361}, 1500);
				}
				else if(current=="kontakt"){
				$("#kontakt_text").show().animate({left: -300}, 500);
				$("#linia_pion").animate({opacity: 1.0}, 500);
				$("#linia_pion").show().animate({top: 361}, 1500);
				}
				
			resetHome();
			$("#"+current).hide(0);
			showGaleria("portret");
    });
		
		
    $("#biznes_box").mouseover(function(){
		if(current=="kontakt"){
		$("#kontakt_text").show().animate({left: -300}, 500);
		$("#linia_pion").animate({opacity: 1.0}, 500);
		$("#linia_pion").show().animate({top: 361}, 1500);
		current="home_page";
		}	
		else if(current=="linki"){
		$("#linki_text").show().animate({left: -300}, 500);
		$("#linia_pion").animate({opacity: 1.0}, 500);
		$("#linia_pion").show().animate({top: 361}, 1500);
		current="home_page";
		}
		else if(current=="omnie"){
		$("#omnie_text").show().animate({left: -300}, 500);
		$("#linia_pion").animate({opacity: 1.0}, 500);
		$("#linia_pion").show().animate({top: 361}, 1500);
		}
	
				$("#biznes_over").fadeIn("slow");
				$("#biznes_out").fadeOut("slow");
				$("#subpage").fadeOut(0);
				$("#subpage_biznes").fadeIn(0);
    });
		
		
    $("#biznes_box").mouseout(function(){
      $("#biznes_over").fadeOut("slow");
				$("#biznes_out").fadeIn("slow");
				$("#subpage").fadeIn(0);
				$("#subpage_biznes").fadeOut(0);
    });
		
		
    $("#biznes_box").click(function(){
			
			
				if(current=="linki"){
				$("#linki_text").show().animate({left: -300}, 500);
				$("#linki_pion").animate({opacity: 1.0}, 500);
				$("#linia_pion").show().animate({top: 361}, 1500);
				}
				else if(current=="kontakt"){
				$("#kontakt_text").show().animate({left: -300}, 500);
				$("#linia_pion").animate({opacity: 1.0}, 500);
				$("#linia_pion").show().animate({top: 361}, 1500);
				}
				else if(current=="omnie"){
				$("#omnie_text").show().animate({left: -300}, 500);
				$("#linia_pion").animate({opacity: 1.0}, 500);
				$("#linia_pion").show().animate({top: 361}, 1500);
				}
		
			resetHome();
			$("#"+current).hide(0);
			showGaleria("biznes");
    });
		
    $("#reportaz_box").mouseover(function(){
		
		if(current=="kontakt"){
		$("#kontakt_text").show().animate({left: -300}, 500);
		$("#linia_pion").animate({opacity: 1.0}, 500);
		$("#linia_pion").show().animate({top: 361}, 1500);
		current="home_page";
		}
		
		if(current=="linki"){
		$("#linki_text").show().animate({left: -300}, 500);
		$("#linia_pion").animate({opacity: 1.0}, 500);
		$("#linia_pion").show().animate({top: 361}, 1500);
		current="home_page";
		}
		else if(current=="omnie"){
		$("#omnie_text").show().animate({left: -300}, 500);
		$("#linia_pion").animate({opacity: 1.0}, 500);
		$("#linia_pion").show().animate({top: 361}, 1500);
		}
		
				$("#reportaz_over").fadeIn("slow");
				$("#reportaz_out").fadeOut("slow");
				$("#subpage").fadeOut(0);
				$("#subpage_reportaz").fadeIn(0);
    });
		
		
    $("#reportaz_box").mouseout(function(){
      $("#reportaz_over").fadeOut("slow");
				$("#reportaz_out").fadeIn("slow");
				$("#subpage").fadeIn(0);
				$("#subpage_reportaz").fadeOut(0);
    });
	
	
    $("#reportaz_box").click(function(){
			
			
				if(current=="linki"){
				$("#linki_text").show().animate({left: -300}, 500);
				$("#linki_pion").animate({opacity: 1.0}, 500);
				$("#linia_pion").show().animate({top: 361}, 1500);
				}
				else if(current=="kontakt"){
				$("#kontakt_text").show().animate({left: -300}, 500);
				$("#linia_pion").animate({opacity: 1.0}, 500);
				$("#linia_pion").show().animate({top: 361}, 1500);
				}
				else if(current=="omnie"){
				$("#omnie_text").show().animate({left: -300}, 500);
				$("#linia_pion").animate({opacity: 1.0}, 500);
				$("#linia_pion").show().animate({top: 361}, 1500);
				}
		
			resetHome();
			$("#"+current).hide(0);
			//showGaleria("reportaz");
			$("#autorskie").fadeIn("slow");
    });
	
	
	
		
    $("#blog_box").mouseover(function(){
		
		if(current=="kontakt"){
		$("#kontakt_text").show().animate({left: -300}, 500);
		$("#linia_pion").animate({opacity: 1.0}, 500);
		$("#linia_pion").show().animate({top: 361}, 1500);
		current="home_page";
		}
		
		if(current=="linki"){
		$("#linki_text").show().animate({left: -300}, 500);
		$("#linia_pion").animate({opacity: 1.0}, 500);
		$("#linia_pion").show().animate({top: 361}, 1500);
		current="home_page";
		}
		else if(current=="omnie"){
		$("#omnie_text").show().animate({left: -300}, 500);
		$("#linia_pion").animate({opacity: 1.0}, 500);
		$("#linia_pion").show().animate({top: 361}, 1500);
		current="home_page";
		}
		
		
      $("#blog_over").fadeIn("slow");
    });
		
		
    $("#blog_box").mouseout(function(){
      $("#blog_over").fadeOut("slow");
    });
		
		
    $("#blog_box").click(function(){
      	window.open( 'http://www.tomekpikula.com/blog');
	});
	
	
	
	
	
	
	
	
	
    $("#bottom_home").click(function(){
		$("#kontakt_top").show().animate({left: 370}, "slow");
		hideGaleria();
		
		
		current="home_page";
      	$("#home_page").fadeIn("fast");
		

    });		
		
    $("#bottom_blog").click(function(){
      	window.open( 'http://www.tomekpikula.com/blog');
    });	
		
		
    $("#bottom_kontakt").click(function(){

			$("#podpis").fadeOut("fast");
			$("#kontakt_top").show().animate({left: 0}, "slow");
			
			kontakt_top = 1;

    });	
		
		
    $("#bottom_menu").mouseenter(function(){
		if(kontakt_top==1){
		$("#kontakt_top").fadeOut("fast");
		$("#kontakt_top").show().animate({left: 370}, "slow");
		$("#podpis").fadeIn("slow");
		kontakt_top = 0;
		}
			$("#bottom_menu").show().animate({width: 240}, "slow");
      $("#bottom_home").show().animate({left: 110}, "slow");
	   $("#bottom_blog").show().animate({left: 155}, "slow");
      $("#bottom_kontakt").show().animate({left: 190}, "slow");

    });	
		
    $("#bottom_menu_outwrapper").mouseleave(function(){
			$("#bottom_menu").show().animate({width: 35}, "slow");
      $("#bottom_home").show().animate({left: 250}, "slow");
      $("#bottom_blog").show().animate({left: 295}, "slow");
      $("#bottom_kontakt").show().animate({left: 330}, "slow");

    });	
		
		
    $("#portret_tomekpikula").mouseenter(function(){
		if(kontakt_top==1){
		$("#kontakt_top").fadeOut("fast");
		$("#kontakt_top").show().animate({left: 370}, "slow");
		$("#podpis").fadeIn("slow");
		kontakt_top = 0;
		}
			$("#portret_tomekpikula").show().animate({width: 250}, "slow");
      $("#portret_biznes").show().animate({left: 15}, "slow");
      $("#portret_reportaz").show().animate({left: 85}, "slow");

    });	
		
    $("#portret_tomekpikula_wrapper").mouseleave(function(){
			$("#portret_tomekpikula").show().animate({width: 100}, "slow");
      $("#portret_biznes").show().animate({left: -140}, "slow");
      $("#portret_reportaz").show().animate({left: -80}, "slow");

    });	
		
    $("#portret_biznes").click(function(){
			hideGaleria();
			showGaleria("biznes");
    });	
		
    $("#portret_reportaz").click(function(){
			hideGaleria();
			$("#autorskie").fadeIn("slow");
    });	
		
		
		
		
    $("#biznes_tomekpikula").mouseenter(function(){
		if(kontakt_top==1){
		$("#kontakt_top").fadeOut("fast");
		$("#kontakt_top").show().animate({left: 370}, "slow");
		$("#podpis").fadeIn("slow");
		kontakt_top = 0;
		}
			$("#biznes_tomekpikula").show().animate({width: 250}, "slow");
      $("#biznes_portret").show().animate({left: 15}, "slow");
      $("#biznes_reportaz").show().animate({left: 85}, "slow");

    });	
		
    $("#biznes_tomekpikula_wrapper").mouseleave(function(){
			$("#biznes_tomekpikula").show().animate({width: 100}, "slow");
      $("#biznes_portret").show().animate({left: -140}, "slow");
      $("#biznes_reportaz").show().animate({left: -80}, "slow");

    });	
		
    $("#biznes_portret").click(function(){
			hideGaleria();
			showGaleria("portret");
    });	
		
    $("#biznes_reportaz").click(function(){
			hideGaleria();
			$("#autorskie").fadeIn("slow");
    });	
		
		
		
		
    $("#reportaz_tomekpikula").mouseenter(function(){
		if(kontakt_top==1){
		$("#kontakt_top").fadeOut("fast");
		$("#kontakt_top").show().animate({left: 370}, "slow");
		$("#podpis").fadeIn("slow");
		kontakt_top = 0;
		}
			$("#reportaz_tomekpikula").show().animate({width: 250}, "slow");
      $("#reportaz_portret").show().animate({left: 15}, "slow");
      $("#reportaz_biznes").show().animate({left: 85}, "slow");
	  $("#reportaz_autorskie").show().animate({left: 155}, "slow");

    });	
		
    $("#reportaz_tomekpikula_wrapper").mouseleave(function(){
			$("#reportaz_tomekpikula").show().animate({width: 100}, "slow");
      $("#reportaz_portret").show().animate({left: -220}, "slow");
      $("#reportaz_biznes").show().animate({left: -150}, "slow");
	  $("#reportaz_autorskie").show().animate({left: -80}, "slow");

    });	
		
    $("#reportaz_portret").click(function(){
			hideGaleria();
			showGaleria("portret");
    });	
		
    $("#reportaz_biznes").click(function(){
			hideGaleria();
			showGaleria("biznes");
    });
	
    $("#reportaz_autorskie").click(function(){
			hideGaleria();
			$("#autorskie").fadeIn("slow");
    });
		
		
    $("#reportaz_2_tomekpikula").mouseenter(function(){
		if(kontakt_top==1){
		$("#kontakt_top").fadeOut("fast");
		$("#kontakt_top").show().animate({left: 370}, "slow");
		$("#podpis").fadeIn("slow");
		kontakt_top = 0;
		}
	$("#reportaz_2_tomekpikula").show().animate({width: 250}, "slow");
      $("#reportaz_2_portret").show().animate({left: 15}, "slow");
      $("#reportaz_2_biznes").show().animate({left: 85}, "slow");
	  $("#reportaz_2_autorskie").show().animate({left: 155}, "slow");

    });	
		
    $("#reportaz_2_tomekpikula_wrapper").mouseleave(function(){
	$("#reportaz_2_tomekpikula").show().animate({width: 100}, "slow");
      $("#reportaz_2_portret").show().animate({left: -220}, "slow");
      $("#reportaz_2_biznes").show().animate({left: -150}, "slow");
	  $("#reportaz_2_autorskie").show().animate({left: -80}, "slow");

    });	
		
    $("#reportaz_2_portret").click(function(){
			hideGaleria();
			showGaleria("portret");
    });	
		
    $("#reportaz_2_biznes").click(function(){
			hideGaleria();
			showGaleria("biznes");
    });
		
    $("#reportaz_2_autorskie").click(function(){
			hideGaleria();
			$("#autorskie").fadeIn("slow");
    });
		

    $("#goright_transparent").mouseover(function(){
      $("#goright_white").fadeIn("fast");
		});
		
    $("#goright_transparent").mouseout(function(){
      $("#goright_white").fadeOut("fast");
		});
		
    $("#goleft_transparent").mouseover(function(){
		if(miniaturki_current != 1){
      $("#goleft_white").fadeIn("fast");
		}
		});
		
    $("#goleft_transparent").mouseout(function(){
      $("#goleft_white").fadeOut("fast");
		});
		
    $("#go_one_down").mouseover(function(){
      $("#left-arrow").fadeIn("fast");
    });
    $("#go_one_up").mouseover(function(){
      $("#right-arrow").fadeIn("fast");
    });
		
    $("#go_one_down").mouseout(function(){
      $("#left-arrow").fadeOut("fast");
    });
    $("#go_one_up").mouseout(function(){
      $("#right-arrow").fadeOut("fast");
    });
		
    $("#portret0").mouseover(function(){
		$("#podpis").stop(true, true);							  
		$("#podpis").fadeIn("slow");
    });
	
    $("#portret0").mouseleave(function(){
		$("#podpis").fadeOut("slow");
    });
		
    $("#biznes0").mouseover(function(){
		$("#podpis").stop(true, true);
		$("#podpis").fadeIn("slow");
    });
		
    $("#biznes0").mouseout(function(){
		$("#podpis").fadeOut("slow");
    });
		
    $("#reportaz0").mouseover(function(){
		$("#podpis").stop(true, true);
		$("#podpis").fadeIn("slow");
    });
		
    $("#reportaz0").mouseout(function(){
		$("#podpis").fadeOut("slow");
    });
		
    $("#reportaz0_2").mouseover(function(){
		$("#podpis").stop(true, true);
		$("#podpis").fadeIn("slow");
    });
		
    $("#reportaz0_2").mouseout(function(){
		$("#podpis").fadeOut("slow");
    });
		
	$("#publikacje0").mouseover(function(){
		$("#podpis").stop(true, true);
		$("#podpis").fadeIn("slow");
    });
		
    $("#publikacje0").mouseout(function(){
		$("#podpis").fadeOut("slow");
    });
  });

