// JavaScript Document
$(document).ready(function(){
$('#mapa-inwestycji div.on').next().show(); 
$('#mapa-inwestycji > div.h2').click(function() {
   if (!$(this).hasClass('on')){											  
	$('#mapa-inwestycji div.on').removeClass('on');
	$(this).next().slideToggle('slow')
    .siblings('div.opis-pelny:visible').slideUp('slow');

	if ($(this).next('div.opis-pelny:visible')) $(this).addClass('on');
	}
	});
				
				
				
	if ($('div.pasek').length) {
			$('div.pasek a').click(function() {
				str = $(this).find('span').text()-1;
				if ($('#nrstr').length) $('#nrstr').val(str);
				$('#ftmieszkan').submit();
			
			});
		}			
				
//$('.wyznacz-trase- a').click({opacity: '0.5'});

$('.wyznacz-trase- a').click(function(){
									  
		$(this).parent().prev().toggle();
		if ($(this).text()=='ZAMKNIJ') {
				$(this).text('WYZNACZ TRASE');}
		else {$(this).text('ZAMKNIJ');}
									  });

$('.wyznacz-trase- a').corner();

});

 $(function() {
                $("#newsbar").scroller_roll({
                    title_show: 'disable',//enable  disable
                    time_interval: '15',
                    window_background_color: '#EBB700',
                    window_padding: '1',
                    border_size: '0',
                    border_color: '#EBB700',
                    images_width: '75',
                    images_height: '70',
                    images_margin: '5',
                    title_size: '12',
                    title_color: 'black',
                    show_count: '3'
                });
			});

