 $(document).ready(function(){										
						
						$(".table_text tr:nth-child(even)").addClass("background1_tab");
						$(".table_text tr:nth-child(odd)").addClass("background2_tab");
						$(".table_text tr:first-child").addClass("header_tab");
										
						
						/*menu*/
				 		$("ul#menu_slide li").children("h2").hover(
					     function()
									{ 
									//alert('sad');
									
										$(this).next("p").fadeIn('slow');
										
										$(this).addClass("background_hover");
										$("ul#menu_slide li h2").not(this).next("p:visible").fadeOut("normal");
										$("ul#menu_slide li h2").not(this).removeClass("background_hover");
												
										
									}
						);
				
						
						/*autoslider*/
					/* 	
						$("#slider").easySlider({
							auto: true,
							continuous: true 
						});		 */		
						
						/*czcionki*/
							Cufon.replace('h1');
							Cufon.replace('h2');
							Cufon.replace('div#menu_ul ul li p a');
		
		
		
		
						

							$('.slider').innerfade({
								speed: 'slow',
								timeout: 4000,
								type: 'sequence'
								
							});
							
							
							$(".slider ul li").css("display","block");
						
							
							/*prettyphoto*/
							$("a[rel^='prettyPhoto']").prettyPhoto({
								animationSpeed: 'normal', /* fast/slow/normal */
								padding: 40, /* padding for each side of the picture */
								opacity: 0.35, /* Value betwee 0 and 1 */
								showTitle: true, /* true/false */
								allowresize: true, /* true/false */
								counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
								theme: 'dark_square', /* light_rounded / dark_rounded / light_square / dark_square */
								callback: function(){}
							});

							
							
							$(window).load(function () {
 
								$("div#loading").fadeOut();
								//$("#main_content").fadeIn();
								//$("#header").fadeIn();
							});
							
						
}); 


/*

$(function(){
	
	var content_height = $(".realizacje").height();

	$(".realizacje").css("min-height", content_height+50+"px");

	var items_number = $(".short_text").length;
	
	if (items_number != 1) {
			$(document).everyTime(5000, 'przejscie', function(i){
			
				var test = $(".realizacje").find(".short_hover").html();
		
				
				if (test == null) {
					$(".realizacje > .short_text:eq(0)").addClass("short_hover").hide().fadeIn().find(".short_text_content").fadeIn();
				}
				else {
					$(".realizacje").find(".short_hover").find(".short_text_content").slideUp("slow", function(){
						$(this).parent(".short_hover").removeClass("short_hover");
						
						var next_item = $(this).parent(".short_text").next(".short_text");
						
						if (next_item.html() == null) {
							var kontent = $(".realizacje > .short_text:eq(0)").addClass("short_hover").hide().fadeIn().find(".short_text_content").fadeIn();
						}
						else {
						
							$(this).parent(".short_text").next(".short_text").addClass("short_hover");
							$(this).parent(".short_text").next(".short_text").hide();
							$(this).parent(".short_text").next(".short_text").fadeIn();
							$(this).parent(".short_text").next(".short_text").find(".short_text_content").fadeIn();
						}
					});
				}
				
			});
			
			
			$(".short_text").click(function(){
			
			var has_class= $(this).hasClass("short_hover");
			
			if(has_class == false)
			{
				var clicked = $(this);
				$(".realizacje").find(".short_hover").find(".short_text_content").slideUp("slow", function(){
					$(this).parent(".short_hover").removeClass("short_hover").find("p").find(".orange").removeClass("orange");
					clicked.addClass("short_hover").find(".real_text").find("p").find("span").addClass("orange");
					clicked.hide();
					clicked.fadeIn();
					clicked.find(".short_text_content").fadeIn();
				});
				
				
				$(document).stopTime('przejscie');				
			}
		
				
			});
	}

});


*/		


