$().ready(function(){
	
	height = 0;
	$(".topBox dd").each(
		function() {
			if ($(this).height() >= height) {
				height = $(this).height();
			}
		}
	).height(height);
	
	height = 0;
	$(".bottomBox dd").each(
		function() {
			if ($(this).height() >= height) {
				height = $(this).height();
			}
		}
	).height(height);
	
	var  i = 1;
	$(".auctionsList tr").each(
		function() {
			$(this).children("td:last").css("text-align", "right");
		}
	);
	
	$(".auctionsList tr:odd td").css("background-color", "#ffffff");
	
	$("ul.tabs li a").click(function(){
		$("ul.tabs li a").removeClass("active");
		$(this).addClass("active");
		toShow = $(this).attr("href");
		$(".tabBoxContents:visible").fadeOut("slow", function(){
			$(toShow).fadeIn("slow");
		});
		
		return false;
	});
	
	$("div.home, #menu1 div.allegro_active, #menu1 div.allegro").click(
			function() {
				window.location.href = 'http://www.allegro.archiver.pl';
				return false;
			}
	);
	
	$("div.email").click(
			function() {
				window.location.href = 'http://www.allegro.archiver.pl/kontakt.php';
				return false;
			}
	);
	
});
