$(document).ready(function() {
	
	//showPageContent();
	
	$('.scroll-pane').jScrollPane(
	{
			autoReinitialise: true
		}
	);
	
	
	if($.cookie('snd') == 'sndMute') { 
		$('#sndControll a').removeClass("active").addClass("inActive");
	} 
	else { 
		$('#sndControll a').removeClass("inActive").addClass("active");
	}
	
	

	       
});


function showPageContent(){ 
	$('.pageContentApla').fadeIn('normal', function() { $('.scroll-pane').jScrollPane({showArrows: true}); }); 
}


function mute() {
	if($.cookie('snd') == 'sndMute') { 
		$('#sndControll a').removeClass("inActive").addClass("active");
		$.cookie('snd', 'sndPlay');
	} 
	else { 
		$('#sndControll a').removeClass("active").addClass("inActive");
		$.cookie('snd', 'sndMute'); 
	}
	
	//$("#flashBg").fadeOut();
	$('#flashBg').flash( function() { this.SetVariable('/:pMusic', $.cookie('snd')); });
	$('#flashBgHome').flash( function() { this.SetVariable('/:pMusic', $.cookie('snd')); });
	
	//alert($('#fashBg').flash());		
}


/////////	
	$(function(){
 
    $("#wysuwane").css("left","-310px");
 
$("#wysuwane").hover(
  function () {
    $("#wysuwane").animate({left: "0px"}, 1000 );
        $(this).addClass("zamknij");
  },
  function () {
    $("#wysuwane").animate({left: "-310px"}, 1000 );
        $(this).removeClass("zamknij");
  }
);
});

	
	////////	 
