tTransition=1500;
tPause=3000;	
		 	
		 	function startSlide(){ 
				
				var nFoto =  $('.slideshow img').length;
				if(nFoto > 1){				
					if(!$('.slideshow img').is(".active")){
							$(".slideshow img:first-child").addClass("active")
						}
						
					$(".slideshow img.active").fadeIn(tTransition);
					setInterval("slideShow()", tPause);
				} else{
					$(".slideshow img").fadeIn(tTransition)
				}
		 	}
		
	
		 	
			function slideShow(){	
				if($(".slideshow img.active").is(":last-child")){
					$(".slideshow img.active").removeClass("active").fadeOut(tTransition);
					$(".slideshow img:first-child").addClass("active").fadeIn(tTransition);
				
				}else{
					$(".slideshow img.active").fadeOut(tTransition).removeClass("active").next("img").addClass("active");
					$(".slideshow img.active").fadeIn(tTransition);
				}

			}

