var t;
var v;

	$(document).ready(  
	function()
	{			



$("#mapa area").mouseover( function() { 
  t = "#"+$(this).attr("class");
  v = $(this).attr("class");
  $(".info").hide();
  $(t+" .info").show(); 
} );


$("h1 + .m").addClass("close");
$(".current_page_item").parent().removeClass("close");
$(".current_page_ancestor").parent().removeClass("close");

$(".menu h1").click(function () { 
  var el = $(this).parent().children().index(this) / 2;
  $("h1 + .m").addClass("close");
  $(".m").eq(el).removeClass("close"); 
});

$(".zamknij").click(function () { 
  $(".logowanie").addClass("minimalizuj"); 
});

$(".poczta").click(function () { 
  $(".logowanie").addClass("minimalizuj");
  $("#poczta").removeClass("minimalizuj");
  return false; 
});

$(".ebok").click(function () { 
  $(".logowanie").addClass("minimalizuj");
  $("#ebok").removeClass("minimalizuj");
  return false; 
});


  	$('#prezentacja').cycle({ 
       fx:        'scrollRight',
       direction: 'up',
       timeout:   4000,
       speed:     700,
       cssBefore: { opacity: 1 },
       animOut:   { opacity: 0 },
       pager:  '#pakiety',
       pagerEvent: 'mouseover',
       pauseOnPagerHover: true, 
      pagerAnchorBuilder: function(idx, slide) { 
        // return selector string for existing anchor 
        return '#pakiety a:eq(' + idx + ')';
    } 
    });


    $("th").mousemove(function()
    {
	  var element_index = $(this).parent().children().index(this);
    var b = $(this).parent().parent().children().length-1; 
    $(this).addClass("active");
    for ( var i=1 ; i<=b ; i++ ) { $(this).parent().parent().children().eq(i).children().eq(element_index).addClass('active'); }
  	});
    
    $("th").mouseout(function()
    { 
    $("table th").removeClass("active");
    $("table td").removeClass('active');
  	});  
  	  	
    $("td:first-child").mousemove(function()
    {
    $(this).parent().children().addClass("active");
  	});
    
    $("td:first-child").mouseout(function()
    { 
    $(this).parent().children().removeClass("active");
  	});


  			
	}); 
	
	
	
	
	


	




    


