// JavaScript Document
//ovslider
function muestrafoto( tag ){
	if ( $("#" + tag).css( "display" ) == "block" ){
		$("#" + tag).fadeOut();
	}else{
		$(".removertodo").fadeOut();	
		$("#" + tag).fadeIn();
	}
}

function planmaster( tag ){
	if ( $("#" + tag).css( "display" ) == "block" ){
		$("#" + tag).fadeOut();
	}else{
		$(".removertodo").fadeOut();	
		$("#" + tag).fadeIn();
	}
}


// initialise plugins
jQuery(function(){
	jQuery('ul.sf-menu').superfish();
});
$(window).load(function() {
	$('.slideportada').nivoSlider({
		effect:'fold', //Specify sets like: 'fold,fade,sliceDown'
		slices:15,
		animSpeed:500,
		pauseTime:4000,
		startSlide:0, //Set starting Slide (0 index)
		directionNav:false, //Next & Prev
		directionNavHide:false, //Only show on hover
		controlNav:false, //1,2,3...
		pauseOnHover:true, //Stop animation while hovering
		captionOpacity:0.8, //Universal caption opacity
		beforeChange: function(){},
		afterChange: function(){},
		slideshowEnd: function(){} //Triggers after all slides have been shown
	});
});
$(window).load(function() {
	$('.slidepaisajes').nivoSlider({
		effect:'fold', //Specify sets like: 'fold,fade,sliceDown'
		slices:15,
		animSpeed:500,
		pauseTime:10000,
		startSlide:0, //Set starting Slide (0 index)
		directionNav:true, //Next & Prev
		directionNavHide:true, //Only show on hover
		controlNav:false, //1,2,3...
		controlNavThumbs:false, //Use thumbnails for Control Nav
      controlNavThumbsFromRel:false, //Use image rel for thumbs
		controlNavThumbsSearch: '.jpg', //Replace this with...
		controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
		pauseOnHover:true, //Stop animation while hovering
		captionOpacity:0.8, //Universal caption opacity
		beforeChange: function(){},
		afterChange: function(){},
		slideshowEnd: function(){} //Triggers after all slides have been shown
	});
});

