// JavaScript Document
/*************************************************/
/*************************************************/
$(document).ready(function(){			       
/*************************************************/
/*************************************************/
/*	$("#slider").easySlider({
		auto: true,
		continuous: true 
	});*/
// find the div.fade elements and hook the hover event
	$('.fadeThis').hover(function() {
		// on hovering over find the element we want to fade *up*
		var fade = $('> .hover', this);
 
		// if the element is currently being animated (to fadeOut)...
		if (fade.is(':animated')) {
			// ...stop the current animation, and fade it to 1 from current position
			fade.stop().fadeTo(500, 1);
		} else {
			fade.fadeIn(500);
		}
	}, function () {
		var fade = $('> .hover', this);
		if (fade.is(':animated')) {
			fade.stop().fadeTo(500, 0);
		} else {
			fade.fadeOut(500);
		}
	});
 
	// get rid of the text
	$('.fadeThis > .hover').empty();

		$('#facebook-slide').hover(function(){
			$("#facebook-slide").stop(true, false).animate({right:"0"},"medium");
		},function(){
			$("#facebook-slide").stop(true, false).animate({right:"-205"},"medium");
		},500);
/*************************************************/
$('#slideshow').cycle({ 
    fx:     'fade', 
    speed:  '300', 
    timeout: 6000,  
    prev:   '#prevBtn1', 
    next:   '#nextBtn1'
});
$('#p-slider').cycle({ 
    fx:     'fade', 
    speed:  '300', 
    timeout: 3000,  
    prev:   '#prevBtn', 
    next:   '#nextBtn'
});

/*************************************************/
 $('#mapa-list').hide();
 
 $('#bttn-mapa').click(function() {
	 $('a#bttn-mapa').addClass("selected");
	 $('a#bttn-miasto').removeClass("selected");
	 $('#mapa-img').show();
	 $('#mapa-list').hide();
 return false;
  });
 
 $('#bttn-miasto').click(function() {
	 $('a#bttn-mapa').removeClass("selected");
	 $('a#bttn-miasto').addClass("selected");
	 $('#mapa-list').show();
 	 $('#mapa-img').hide();
 	 return false;
  });
 $('#tabela-notus .rozwin').hide();
 $('#tabela-notus h2').toggle(function() {
	 $('div.formularz').addClass("hidden");
	 $('#tabela-notus h2').addClass("notus-border");
	 $('#tabela-notus .zwin').hide();
	  $('#tabela-notus .rozwin').show();
		}, function () {
		$('div.formularz').removeClass("hidden");
		$('#tabela-notus h2').removeClass("hidden");
		$('#tabela-notus .zwin').show();
		 $('#tabela-notus .rozwin').hide();
  });
 /*************************************************/

/*************************************************/

jQuery('#accordion').accordion(); 

/*************************************************/

$(function() {
		$("#tabs").tabs();
});
$('a#zaloguj-link').click(function() {
   $('#newsletter-box').toggle('medium');
	return false;
});

/*************************************************/
/*************************************************/
})
/*************************************************/
/*************************************************/

