﻿$(document).ready(function() {


	//$(document).pngFix();

	if($('#planpowiatu').length > 0) {
		$('#planpowiatu tr:odd').addClass('odd');
	}


//fancybox
if ($('#gallery a, .lightbox').get(0)) {
	$("#gallery a, .lightbox").fancybox({
		titlePosition: 'over'
	});
}

	// start slider

		$("#slide").easySlider({
			prevText: '',
			nextText: '',
			auto: true,
			continuous: true
		});




	// Focus border remove

			$("a").focus(function() {
				$(this).blur();
			});




	// Lightbox

			//$("#gallery a, .lightbox").prettyPhoto({theme:'light_square'});






	// Empty field after click

				$('#newsletter input[type="text"]').focus(function() { $(this).val(''); });




	// Menu Drop-Down:

			$(".menu_head").click(function() {
				$(this).next(".menu_body").slideToggle(300).siblings(".menu_body").slideUp("fast");
			});


			$(".hit").next(".menu_body").slideToggle(300).siblings(".menu_body").slideUp("fast");





	// Rest

				$("#top .links a:last").css({ border: 'none' });
				$("#top .links a:last").css({ paddingRight: '25px' });
				$("#top .links a:last").css({ background: 'url(images/i_rss.gif) no-repeat right 0' })

				$("#left .galerie img:eq(0)").css({marginRight: '15px' });
				$("#left .galerie img:eq(2)").css({marginRight: '15px' });



});

