		function ImgRoll(ItemId){
            
            var Id = ItemId;
			var TextSlide = false;
            
            $(document).ready(function(){
                
                //Ustawnienie pierwszego zdjecia jako aktywnego
                $(Id + " .imgConSmall div:eq(0) .active").css({'width': '60px', 'display': 'block', 'height': '60px', 'float': 'left', 'background': 'url(http://wizaz.pl/design/plain_site/images/60fiol.gif) no-repeat', 'position': 'absolute'});
                
                $(Id + " .imgConSmall img").click(function(){
                    var imgIndex = $(Id + " .imgConSmall img").index(this);
                    imgClick(imgIndex);
                });
                
                function imgClick(imgIndex){
                    var margin = imgIndex * (-200);
                    $(Id + " .imgConBig").animate({
                        marginLeft: margin
                    }, 500 );
                    
					if(TextSlide = true){
						for(i=0; i<3; i++){
							$(Id + " .textCon div").css({'display': 'none'});
						}
						$(Id + " .textCon div:eq(" + imgIndex + ")").css({'display': 'block'});
					}
					
                    //wyzeorwanie wszystkich aktywnych
                        
                    $(Id + " .imgConSmall .active").css({'display': 'none'});
                    $(Id + " .imgConSmall div:eq(" + imgIndex + ") .active").css({'width': '60px', 'display': 'block', 'height': '60px', 'float': 'left', 'background': 'url(http://wizaz.pl/design/plain_site/images/60fiol.gif) no-repeat', 'position': 'absolute'});
					
				}
            });
        }
		function ImgTextRoll(ItemId){
			TextSlide = true;
			ImgRoll(ItemId);
		}
		
		
		function tabImg(ItemId, sImgsize){
			
			$(document).ready(function(){
				
				var Id = ItemId;
				var tabNumb = $("#" + Id + " .tabscontent li").length;
				
				//Pierwszy zaznaczony jako aktywny
				$("#" + Id + " .tabsnav td:eq(0) span img").before("<img src='http://wizaz.pl/design/plain_site/images/60fiol.gif' class='active' />");
				
				resizeImg();
				chHeight(0);
				
				$("#" + Id + " .tabsnav td").click(function(){
									
					var imgIndex = $("#" + Id + " .tabsnav td").index(this);
					itemClick(imgIndex);
					
					});
				
				function itemClick(imgIndex){
					
					var margin = imgIndex * (-542);
                    $("#" + Id + " .tabscontent").animate({
                        marginLeft: margin
                    }, 500 );
					
					//alert($("#" + Id + " .tabscontent li:eq(" + imgIndex + ")").height());
					
					chHeight(imgIndex);
					
					for(var i=0; i<tabNumb ;i++){
						if($("#" + Id + " .tabsnav td:eq(" + i + ") span img").length == 2){
							$("#" + Id + " .tabsnav td:eq(" + i + ") span img:eq(0)").remove();
						}
					}
					
					$("#" + Id + " .tabsnav td:eq(" + imgIndex + ") span img").before("<img src='http://wizaz.pl/design/plain_site/images/60fiol.gif' class='active' />");
					resizeImg();
				}
				
				function resizeImg(){
					//Ustawnienie wielkosci malych zdjec
					$("#" + Id + " .tabsnav td span img").css("width", sImgsize);
					$("#" + Id + " .tabsnav td span").css("width", sImgsize);
				}
				
				function chHeight(imgIndex){
					$("#" + Id + " .tabscontener").css(
													  "height", $("#" + Id + " .tabscontent li:eq(" + imgIndex + ")").height() + 40,
													  "overflow", "hidden"
													  );
				}
				
			});
			
		}
		
		function tnpolecamy(){
			
			$(document).ready(function(){
					
				$("#tn_polecamy #tabsname li").fadeTo(0, 0.33);
				$("#tn_polecamy #tabsname li:eq(0)").fadeTo(0, 1);

					
				$("#tn_polecamy #tabsname li").click(function(){
					
					var imgIndex = $("#tn_polecamy #tabsname li").index(this);
					nameClick(imgIndex);
					
					});
				
				function nameClick(imgIndex){
					
					$("#tn_polecamy #tabsname li:eq(" + imgIndex + ") p").addClass("active");
					
					$("#tn_polecamy #tabsname li").fadeTo(0, 0.33);
					$("#tn_polecamy #tabsname li:eq(" + imgIndex + ")").fadeTo("slow", 1);
					
					var margin = imgIndex * (-205);
                    $("#tn_polecamy #tabscontent").animate({
                        marginTop: margin
                    }, 300 );
					
				}
				
			});
			
		}
		
		function newtabs(Tchange){
			
			//var intId;
			//intId = setInterval(slideShow, 5000);
			
			$(document).ready(function(){
			
				var n = $("#newtabs .tabs li").length;
				var nextab = 0;
				var intId;
				$("#newtabs .tabscontent li").css("display", "none");
				
				inter();
				showtab();
				
				$("#newtabs .tabs li").click(function(){
					
					var tabIndex = $("#newtabs .tabs li").index(this);
					nextab = tabIndex;
					showtab();
					
				});
				
				$("#newtabs").mouseover(function(){
					clearInterval(intId);
				});
				
				$("#newtabs").mouseout(function(){
					inter();
				});
				
				function inter(){
					intId = setInterval(showtab, 5000);
				}
				
				function showtab(){
					
					
					for(var i=0; i<n; i++){
						if(i != nextab){
							$("#newtabs .tabscontent li:eq(" + i + ")").fadeOut("slow");
						}
							$("#newtabs .tabscontent li:eq(" + nextab + ")").fadeIn("slow");
							
							$("#newtabs .tabs li").removeClass("active");
							$("#newtabs .tabs li:eq(" + nextab + ")").addClass("active");
					}
					if(Tchange){
						nextab = nextab + 1;
						if(nextab == n){nextab = 0;}
					}
					
				}
			
			});
			
		}