$(document).ready(function(){

$('.galleria-lightbox-prev').html('');

btn_id = $('.selected').attr('id');

    $('#show_list').live('click',function(){

            $('#galleria-shell').css({display: 'none'})
         //   $('#galleria').html('');
            $(this).css({display: 'none'});

        $.post('get_gallery',{ gallery_name: btn_id, type: 'list'}, function(data) {
            
            $('#galleria-shell').after(data);
                $().piroBox({
                          my_speed: 300,
                          bg_alpha: 0.5,
                          slideShow : true,
                          slideSpeed : 6,
                          close_all : '.piro_close'
                    })
                    });
         })

 //---- show gallery button click ------------------

    $("#show_gal").live('click', function(){
           $('#list_view').css({display: 'none'})
           $('#list_view').html('');
           $('#show_list').show();
           $('#galleria-shell').show();

    })//----- end show_gal


//------- menu lava lamp effect --------------------
switch (btn_id)
{
case 'home':
 $('ul#menu').lavaLamp({startItem: 0});
  break;
case 'bulgaria':
 $('ul#menu').lavaLamp({startItem: 1});
  break;
case 'landscapes':
 $('ul#menu').lavaLamp({startItem: 2});
  break;
case 'portraits':
 $('ul#menu').lavaLamp({startItem: 3});
  break;
case 'interior':
 $('ul#menu').lavaLamp({startItem: 4});
  break;
case 'studio':
 $('ul#menu').lavaLamp({startItem: 5});
  break;
  case 'weddings':
 $('ul#menu').lavaLamp({startItem: 6});
  break;
case 'other':
 $('ul#menu').lavaLamp({startItem: 7});
  break;
case 'contacts':
 $('ul#menu').lavaLamp({startItem: 8});
  break;

//--- end - lava lava ---------------------------



//default:
 //$('ul#menu').lavaLamp({startItem: 0});
}
})
