$(document).ready(function() 
{
	var anima = new SWFObject("http://www.balmar.com.pl/images/fl.swf", "anima", "238", "299", "7", "#ffffff");
	//var anima = new SWFObject("/swf/fl.swf", "anima", "238", "299", "7", "#ffffff");
	anima.addParam("scale", "noscale");
	anima.addParam("wmode", "transparent");
	anima.addParam("allowScriptAccess", "sameDomain");
	anima.write("animacja");
	
	$(".slide").fadeTo("slow", 0.5);
	$(".slide").hover(function()
	{
		$(this).fadeTo("slow", 1.0);
	},function()
	{
		$(this).fadeTo("slow", 0.5);
	});
	
	$("a.noaction").click(function(event) 
	{
		event.preventDefault();
		var actPhoto = $(this).attr("rel");
		$('#mainPhoto').fadeOut(function() 
		{
				$("#mainPhoto").attr("src",actPhoto);
				$('#mainPhoto').fadeIn();
    	});

		// $("#mainPhoto").attr("src",$(this).attr("rel"));
    });

	
});



