jQuery.ajaxSetup({contentType: "application/x-www-form-urlencoded; charset=utf-8"});


$(document).ready(function(){
	$(".banner[title]").css("cursor","pointer");
	$(".banner[title]").click(function(){ document.location = $(this).attr('title'); });
	
	$('#menu-list').droppy();
	
	$('.boxPozycja a:has(img.pozycjaPhoto)').fancybox({
		'hideOnContentClick': true,
		'overlayShow': false	
	});
	
	/* $('#content').jScrollPane(); */
	
	$('.menuLayerTwo li').hover(
		function() {
			$(this).css("background-color", "#d91921");
		}, 
		function() {
			$(this).css("background-color", "transparent");
		}
	);

	$('li.green').hover(
	function() {
		$(this).css("background-color", "#6ebd35");
	}, 
	function() {
		$(this).css("background-color", "transparent")
	}
	);

	/* png transparent for IE6 */
	$.ifixpng('data/img/pixel.gif');
	$('img[@src$=.png]').ifixpng();
	$('#headerAuto').ifixpng();
	
	/* preloader images */
	$.preloadImages('data/img/bg-menu.jpg','data/img/bg-off.jpg','data/img/bg-off-2.jpg');

	/* show info */
	$("#ssinfo").hover(function (){$(this).css("cursor", "pointer")}, function (){$(this).css("cursor", "text")} )
	$("#ssinfo").click(function(){
   $('#content p').slideToggle("slow");
   });
});


jQuery.preloadImages = function()
{
  for(var i = 0; i<arguments.length; i++)
  {
    jQuery("<img>").attr("src", arguments[i]);
  }
}
