function addScrollable(){
	jQuery(document).ready(function(){
		var S=jQuery("div.scrollable");
		S.scrollable({speed: 400, loop:true, size: 6});
		
		jQuery(".obrazek").load(function(){
			jQuery(this).fadeIn();
		}).attr("src","/files/framework/gallery/big1.jpg");
		
		var imgGal = S.find("div.itemmm img");
		imgGal.each(function (i) {
			jQuery(".obrazek"+(i+1)).load(function(){
				jQuery(this).fadeIn();
			}).attr("src","/files/framework/gallery/min"+(i+1)+".jpg");
		});
	});
}

function addScrollableCertificate(){
	jQuery(document).ready(function(){
		var S=jQuery("div.contentScrollable2");
		S.scrollable({size:4,next:"div.contentScrollable2Right",prev:"div.contentScrollable2Left", speed: 400, loop:true});
		jQuery("div.contentScrollable2Left").click(function(){ if(S.scrollable().getIndex()==0) S.scrollable().end();	});
		
		var imgGal = S.find("div.itemmm img");
		imgGal.each(function (i) {
			jQuery(".obrazek"+i).load(function(){
				jQuery(this).fadeIn();
			}).attr("src",jQuery("#obrazeczek"+i).html());
		});
	});
}

function addScrollableClick(plik){
	jQuery("#galleryImg img").animate({opacity: 'hide'}, 500);
	setTimeout(function(){ jQuery("#galleryImg img").load(function(){jQuery(this).animate({opacity: 'show'}, 500); }).attr("src",plik) }, 1000);
}

function addMovieFlash()
{
	jQuery(document).ready(function(){
		jQuery('#flash').flash(
			{ src: '/files/flash/film.swf',
			  width: 622,
			  height: 475 },
			{ version: 9 }
		);
	});
}
