$(document).ready(function() {
         $('#content #slider').innerfade({ speed: 1500,
		 timeout: 5000, 
		 type: 'sequence', 
		 containerheight: '316px' }); 
		 
		 
		 $('#slide_text #slide_text_lista').innerfade({ speed: 1500,
		 timeout: 5000, 
		 type: 'sequence', 
		 containerheight: '15px' }); 
         
		 $('#promocja #top_slide').innerfade({ speed: 3000,
		 timeout: 10000, 
		 type: 'sequence', 
		 containerheight: '88px' }); 		 

    });


$(function() {
   $("#menu_dol img").hover(function() {
     $(this).attr("src", $(this).attr("src").split(".").join("-hover."));
   }, function() {
     $(this).attr("src", $(this).attr("src").split("-hover.").join("."));
 });
 });
	
	
	
	
				$(function()
			{
				// this initialises the demo scollpanes and makes it reinitialise itself once it's images have loaded...
				$('#scroll_menu')
					.jScrollPane(
						{
							showArrows:false, 
							scrollbarWidth: 4,
							scrollbarMargin:0, 
							reinitialiseOnImageLoad: true
						}
					);
			}); 

	
$(function() {

			$('#scr').jScrollPane({scrollbarWidth:4, scrollbarMargin:15, showArrows:false});
		
	$('#fotka_logo').jScrollPane({scrollbarWidth:4, scrollbarMargin:0, showArrows:false});
		
			//$('#scroll_menu').jScrollPane({scrollbarWidth:4, scrollbarMargin:0, showArrows:false});
		 
     $("#menu_lista img").hover(function() {
     $(this).attr("src", $(this).attr("src").split(".").join("-hover."));
   }, function() {
     $(this).attr("src", $(this).attr("src").split("-hover.").join("."));
 });
 });	
	
