

$(document).ready(function(){

    
                                $("area[rel^='prettyPhoto2']").prettyPhoto();
				$("area[rel^='prettyPhoto']").prettyPhoto();
				
				$(".gallery:first a[rel^='prettyPhoto']").prettyPhoto({social_tools: false,animation_speed:'normal',theme:'facebook',slideshow:3000, autoplay_slideshow: false});
				$(".gallery:gt(0) a[rel^='prettyPhoto']").prettyPhoto({social_tools: false,animation_speed:'normal',theme:'facebook',slideshow:10000, hideflash: true});
		
				$("#custom_content a[rel^='prettyPhoto']:first").prettyPhoto({
                                        custom_markup: '<div id="map_canvas" style="width:260px; height:265px"></div>',
					changepicturecallback: function(){ initialize(); }
				});
 
				$("#custom_content a[rel^='prettyPhoto']:last").prettyPhoto({
                                        custom_markup: '<div id="bsap_1259344" class="bsarocks bsap_d49a0984d0f377271ccbf01a33f2b6d6"></div><div id="bsap_1237859" class="bsarocks bsap_d49a0984d0f377271ccbf01a33f2b6d6" style="height:260px"></div><div id="bsap_1251710" class="bsarocks bsap_d49a0984d0f377271ccbf01a33f2b6d6"></div>',
					changepicturecallback: function(){ _bsap.exec(); }
				});
			});



function showImage(sdate, stime){
    
    
    if(sdate[1] <10){
        sdate[1] = "0"+sdate[1];
    }
    if(sdate[2] <10){
        sdate[2] = "0"+sdate[2];
    }
    if(stime[0] <10){
        stime[0] = stime[0];
    }
    if(stime[1] <10){
        stime[1] = "0"+stime[1];
    }
    if(stime[2] <10){
        stime[2] = "0"+stime[2];
    }
	var path = 'http://holujemy.pl/images/akcja_big/'+sdate[0]+'-'+ sdate[1]+'-'+sdate[2]+'_'+stime[0]+'-'+ stime[1]+'-'+stime[2]+'.jpg';

    
    $.fn.prettyPhoto();
    $.prettyPhoto.open(path,'','');
}

