function showItem(src_mid, src_big){
    
    //pobrac potomkow
    //gallery_container
    $('#gallery_container').find('a').each(function(){
        var id = $(this);
        var link = id.attr('href');
        
        if(link == src_big)
        {
            id.attr('rel','none');
        }else
        {
            id.attr('rel','lightbox');
        }
        
        
    });    
    
	$('#gallery_preview a img').fadeOut('1000', function(){
		$('#gallery_preview a img').attr('src', src_mid);
		$('#gallery_preview a').attr('href', src_big);
		$('#gallery_preview a img').load(function(){
			$('#gallery_preview a img').fadeIn('1000');
		});
	});
    

    
}

function showMap(map){
    if (map == '#mapka-2')
	{
		$('#mapka-1').hide();
		$('#mapka-2').show();
		
		$('#mapka-link-1').removeClass('selected');
		$('#mapka-link-2').addClass('selected');
	}
	else
	{
		$('#mapka-1').show();
		$('#mapka-2').hide();
		
		$('#mapka-link-2').removeClass('selected');
		$('#mapka-link-1').addClass('selected');
	}
}

$().ready(function(){
		Cufon.replace('h2', { 
							color: '-linear-gradient(#a1d347, #57ad27)'
							});
		Cufon.replace('h3');
		Cufon.replace('h2.portfolio_link', { 
							color: '-linear-gradient(#d3d3d3, #b6b6b6)'
							});
		Cufon.replace('h2.portfolio_link span', { 
							color: '-linear-gradient(#a1d347, #57ad27)'
							});
		Cufon.replace('h4');
		Cufon.replace('.follower a', {hover: true} );
		Cufon.replace('.more_photo', { 
							color: '-linear-gradient(#d3d3d3, #b6b6b6)'
							});
		Cufon.replace('.more_photo span', { 
							color: '-linear-gradient(#a1d347, #57ad27)'
							});
		
		
		$(".news_post:last-child").addClass('last-child');
		$(".offer_list:last-child").addClass('last-child');
		$(".text_box:last-child").addClass('last-child');
		$(".promo_post:last-child").addClass('last-child');
		$(".cell:last-child").addClass('last-child');
		$(".nav_menu:last-child").addClass('last-child');
		$(".gallery_item:last-child").addClass('last-child');
		$(".row:first").addClass('first-child');
		
					
		
		$('#offer_accordion').accordion({
			autoHeight: false,
			header: 'h4',
			collapsible: true,
			active: activePos
		});
		
		$("a[rel='lightbox']").colorbox();
        $("#min1").attr('rel','none');
});
	
