/*grzegorz.jaworek@gmail.com ąę*/

		function slider(speed){
			$("div#footer_link_wrap").smoothDivScroll({
			autoScrollStep: speed,
			scrollInterval: 1,
			scrollStep: 1,
			autoScroll: "always",
			autoScrollDirection: "endlessloopright"
			});
		}

jQuery(document).ready(function(){
	jQuery("div#footer_link_wrap img").css('margin-top','61px');
	jQuery('#table').hide();
	jQuery('#table .space td').html('&nbsp;');
	jQuery('#table td:eq(4)').css('width','140px');
	// jQuery('#table').find('tr').each(function () {
		// if (parseInt(jQuery(this).attr('rel')) > 0) {
			// jQuery(this).before('<tr class="space"><td class="odd"></td><td></td><td class="odd"></td><td class="odd"></td><td></td></tr>');
		// }
	// });	
	// jQuery('#table').find('td').each(function () {
		// if (jQuery(this).html().indexOf('nie') > 0) {
			// jQuery(this).parents('tr').remove();
		// }
	// });	
	jQuery('#table').find('tr').hide();
	jQuery('#table').find('tr.header,tr.A').show();
	jQuery('#table').show();
	jQuery('#table_nav a').click(function () {
		jQuery('#table_nav a').removeClass('activeSlide');
		jQuery(this).addClass('activeSlide');
		jQuery('#table table').find('tr').not('tr.header').hide();
		jQuery('#table table').find('tr.'+jQuery(this).attr('href')).show();
		return false;
	});
	//jQuery("div#footer_link_wrap").smoothDivScroll({scrollingSpeed: 9, mouseDownSpeedBooster: 2, autoScroll: "always", autoScrollDirection: "endlessloop", autoScrollSpeed: 1, autoScrollStep: 1, autoScrollInterval: 15, startAtElementId: "startAtMe"});
});

jQuery(window).load(function(){
	jQuery("div#footer_link_wrap img").css('margin-top','0');
	jQuery('#table').show();
	
		slider(1);
		
		jQuery(".scrollableArea a").mouseover(function(){
		slider(0);
		});
		
		jQuery(".scrollableArea a").mouseout(function(){
		slider(1);
		});
	
});
