$(document).ready(function(){
						   
	$(function(){
		$('.slide1').anythingSlider({
			// Appearance
			width               : 960,      // Override the default CSS width
			height              : 550,      // Override the default CSS height
			resizeContents      : false,      // If true, solitary images/objects in the panel will expand to fit the viewport
			
			// Navigation
			startPanel          : 1,         // This sets the initial panel
			hashTags            : false,      // Should links change the hashtag in the URL?
			buildArrows         : false,      // If true, builds the forwards and backwards buttons
			buildNavigation     : false,      // If true, buildsa list of anchor links to link to each panel
			navigationFormatter : null,      // Details at the top of the file on this use (advanced use)
			forwardText         : "&raquo;", // Link text used to move the slider forward (hidden by CSS, replaced with arrow image)
			backText            : "&laquo;", // Link text used to move the slider back (hidden by CSS, replace with arrow image)
			
			showMultiple		: 4,
			
			// Slideshow options
			autoPlay            : true,      // This turns off the entire slideshow FUNCTIONALY, not just if it starts running or not
			startStopped        : false,     // If autoPlay is on, this can force it to start stopped
			pauseOnHover        : true,      // If true & the slideshow is active, the slideshow will pause on hover
			resumeOnVideoEnd    : true,      // If true & the slideshow is active & a youtube video is playing, it will pause the autoplay until the video has completed
			stopAtEnd           : false,     // If true & the slideshow is active, the slideshow will stop on the last page
			playRtl             : false,     // If true, the slideshow will move right-to-left
			startText           : "Play",   // Start button text
			stopText            : "Stop",    // Stop button text
			delay               : 4000,      // How long between slideshow transitions in AutoPlay mode (in milliseconds)
			animationTime       : 1000,       // How long the slideshow transition takes (in milliseconds)
			easing              : "easeInOutCubic"    // Anything other than "linear" or "swing" requires the easing plugin
		})
		.find('.modulo')
			.find('div[class*=caption]').css({ position: 'absolute' }).end()
			.hover(function(){ showCaptions( $(this) ) }, function(){ hideCaptions( $(this) );
		});
	
		showCaptions = function(el){
			var $this = el;
			if ($this.find('.caption').length) { $this.find('.caption').show().animate({ opacity: 1 }, 200); }
		};
		hideCaptions = function(el){
			var $this = el;
			if ($this.find('.caption').length) { $this.find('.caption').stop().animate({ opacity: 0 }, 200, function(){ $this.find('.caption').hide(); }); }
		};
		hideCaptions( $('.slide1 .modulo') );
		
		$(".modulo").click(function(){
			 window.location=$(this).find("a").attr("href");
		});
	
	
	
		$('.slide2').anythingSlider({
			// Appearance
			width               : 960,      // Override the default CSS width
			height              : 500,      // Override the default CSS height
			resizeContents      : false,      // If true, solitary images/objects in the panel will expand to fit the viewport
			
			// Navigation
			startPanel          : 1,         // This sets the initial panel
			hashTags            : false,      // Should links change the hashtag in the URL?
			buildArrows         : false,      // If true, builds the forwards and backwards buttons
			buildNavigation     : false,      // If true, buildsa list of anchor links to link to each panel
			navigationFormatter : null,      // Details at the top of the file on this use (advanced use)
			forwardText         : "&raquo;", // Link text used to move the slider forward (hidden by CSS, replaced with arrow image)
			backText            : "&laquo;", // Link text used to move the slider back (hidden by CSS, replace with arrow image)
			
			showMultiple		: 4,
			
			// Slideshow options
			autoPlay            : true,      // This turns off the entire slideshow FUNCTIONALY, not just if it starts running or not
			startStopped        : false,     // If autoPlay is on, this can force it to start stopped
			pauseOnHover        : true,      // If true & the slideshow is active, the slideshow will pause on hover
			resumeOnVideoEnd    : true,      // If true & the slideshow is active & a youtube video is playing, it will pause the autoplay until the video has completed
			stopAtEnd           : false,     // If true & the slideshow is active, the slideshow will stop on the last page
			playRtl             : false,     // If true, the slideshow will move right-to-left
			startText           : "Play",   // Start button text
			stopText            : "Stop",    // Stop button text
			delay               : 9200,      // How long between slideshow transitions in AutoPlay mode (in milliseconds)
			animationTime       : 1200,       // How long the slideshow transition takes (in milliseconds)
			easing              : "easeInOutSine"    // Anything other than "linear" or "swing" requires the easing plugin
		})
		.find('.modulo')
			.find('div[class*=caption]').css({ position: 'absolute' }).end()
			.hover(function(){ showCaptions( $(this) ) }, function(){ hideCaptions( $(this) );
		});
	
		showCaptions = function(el){
			var $this = el;
			if ($this.find('.caption').length) { $this.find('.caption').show().animate({ opacity: 1 }, 200); }
		};
		hideCaptions = function(el){
			var $this = el;
			if ($this.find('.caption').length) { $this.find('.caption').stop().animate({ opacity: 0 }, 200, function(){ $this.find('.caption').hide(); }); }
		};
		hideCaptions( $('.slide2 .modulo') );
		
		$(".modulo").click(function(){
			 window.location=$(this).find("a").attr("href");
		});
		
	
	
		$('.slide3').anythingSlider({
			// Appearance
			width               : 960,      // Override the default CSS width
			height              : 500,      // Override the default CSS height
			resizeContents      : false,      // If true, solitary images/objects in the panel will expand to fit the viewport
			
			// Navigation
			startPanel          : 1,         // This sets the initial panel
			hashTags            : false,      // Should links change the hashtag in the URL?
			buildArrows         : false,      // If true, builds the forwards and backwards buttons
			buildNavigation     : false,      // If true, buildsa list of anchor links to link to each panel
			navigationFormatter : null,      // Details at the top of the file on this use (advanced use)
			forwardText         : "&raquo;", // Link text used to move the slider forward (hidden by CSS, replaced with arrow image)
			backText            : "&laquo;", // Link text used to move the slider back (hidden by CSS, replace with arrow image)
			
			showMultiple		: 4,
			
			// Slideshow options
			autoPlay            : true,      // This turns off the entire slideshow FUNCTIONALY, not just if it starts running or not
			startStopped        : false,     // If autoPlay is on, this can force it to start stopped
			pauseOnHover        : true,      // If true & the slideshow is active, the slideshow will pause on hover
			resumeOnVideoEnd    : true,      // If true & the slideshow is active & a youtube video is playing, it will pause the autoplay until the video has completed
			stopAtEnd           : false,     // If true & the slideshow is active, the slideshow will stop on the last page
			playRtl             : false,     // If true, the slideshow will move right-to-left
			startText           : "Play",   // Start button text
			stopText            : "Stop",    // Stop button text
			delay               : 6500,      // How long between slideshow transitions in AutoPlay mode (in milliseconds)
			animationTime       : 1000,       // How long the slideshow transition takes (in milliseconds)
			easing              : "easeInOutCubic"    // Anything other than "linear" or "swing" requires the easing plugin
		})
		.find('.modulo')
			.find('div[class*=caption]').css({ position: 'absolute' }).end()
			.hover(function(){ showCaptions( $(this) ) }, function(){ hideCaptions( $(this) );
		});
	
		showCaptions = function(el){
			var $this = el;
			if ($this.find('.caption').length) { $this.find('.caption').show().animate({ opacity: 1 }, 200); }
		};
		hideCaptions = function(el){
			var $this = el;
			if ($this.find('.caption').length) { $this.find('.caption').stop().animate({ opacity: 0 }, 200, function(){ $this.find('.caption').hide(); }); }
		};
		hideCaptions( $('.slide3 .modulo') );
		
		$(".modulo").click(function(){
			 window.location=$(this).find("a").attr("href");
		});
		
	
	
	
		/* Slider Seccion Casos ---------------------------------------------- */
		
		$('.slide_caso').anythingSlider({
			// Appearance
			width               : 580,      // Override the default CSS width
			height              : 415,      // Override the default CSS height
			resizeContents      : false,      // If true, solitary images/objects in the panel will expand to fit the viewport
			
			showMultiple        : false,     // Set this value to a number and it will show that many slides at once
			
			buildArrows         : false,      // If true, builds the forwards and backwards buttons
			buildNavigation     : true,      // If true, builds a list of anchor links to link to each panel
			buildStartStop      : false,      // If true, builds the start/stop button
			
			// Navigation
			startPanel          : 1,         // This sets the initial panel
			hashTags            : false,      // Should links change the hashtag in the URL?
			buildArrows         : false,      // If true, builds the forwards and backwards buttons
			buildNavigation     : true,      // If true, buildsa list of anchor links to link to each panel
			navigationFormatter : null,      // Details at the top of the file on this use (advanced use)
			forwardText         : "&raquo;", // Link text used to move the slider forward (hidden by CSS, replaced with arrow image)
			backText            : "&laquo;", // Link text used to move the slider back (hidden by CSS, replace with arrow image)
			
			// Slideshow options
			autoPlay            : true,      // This turns off the entire slideshow FUNCTIONALY, not just if it starts running or not
			startStopped        : false,     // If autoPlay is on, this can force it to start stopped
			pauseOnHover        : true,      // If true & the slideshow is active, the slideshow will pause on hover
			resumeOnVideoEnd    : true,      // If true & the slideshow is active & a youtube video is playing, it will pause the autoplay until the video has completed
			stopAtEnd           : false,     // If true & the slideshow is active, the slideshow will stop on the last page
			playRtl             : false,     // If true, the slideshow will move right-to-left
			startText           : "Play",   // Start button text
			stopText            : "Stop",    // Stop button text
			delay               : 6000,      // How long between slideshow transitions in AutoPlay mode (in milliseconds)
			animationTime       : 1000,       // How long the slideshow transition takes (in milliseconds)
			easing              : "easeInOutCubic"    // Anything other than "linear" or "swing" requires the easing plugin
		});
		
		
		$('#slide_portfolio').anythingSlider({
			// Appearance
			width               : 960,      // Override the default CSS width
			height              : 420,      // Override the default CSS height
			resizeContents      : false,      // If true, solitary images/objects in the panel will expand to fit the viewport
			
			// Navigation
			startPanel          : 1,         // This sets the initial panel
			hashTags            : false,      // Should links change the hashtag in the URL?
			buildArrows         : false,      // If true, builds the forwards and backwards buttons
			buildNavigation     : false,      // If true, buildsa list of anchor links to link to each panel
			navigationFormatter : null,      // Details at the top of the file on this use (advanced use)
			forwardText         : "&raquo;", // Link text used to move the slider forward (hidden by CSS, replaced with arrow image)
			backText            : "&laquo;", // Link text used to move the slider back (hidden by CSS, replace with arrow image)
			
			showMultiple		: 4,
			
			// Slideshow options
			autoPlay            : true,      // This turns off the entire slideshow FUNCTIONALY, not just if it starts running or not
			startStopped        : false,     // If autoPlay is on, this can force it to start stopped
			pauseOnHover        : true,      // If true & the slideshow is active, the slideshow will pause on hover
			resumeOnVideoEnd    : true,      // If true & the slideshow is active & a youtube video is playing, it will pause the autoplay until the video has completed
			stopAtEnd           : false,     // If true & the slideshow is active, the slideshow will stop on the last page
			playRtl             : false,     // If true, the slideshow will move right-to-left
			startText           : "Play",   // Start button text
			stopText            : "Stop",    // Stop button text
			delay               : 3500,      // How long between slideshow transitions in AutoPlay mode (in milliseconds)
			animationTime       : 1000,       // How long the slideshow transition takes (in milliseconds)
			easing              : "easeInOutCubic"    // Anything other than "linear" or "swing" requires the easing plugin
		});	
		
		
		$('#slide_estudio').anythingSlider({
			// Appearance
			width               : 240,      // Override the default CSS width
			height              : 400,      // Override the default CSS height
			resizeContents      : false,      // If true, solitary images/objects in the panel will expand to fit the viewport
			
			// Navigation
			startPanel          : 1,         // This sets the initial panel
			hashTags            : false,      // Should links change the hashtag in the URL?
			buildArrows         : false,      // If true, builds the forwards and backwards buttons
			buildNavigation     : false,      // If true, buildsa list of anchor links to link to each panel
			navigationFormatter : null,      // Details at the top of the file on this use (advanced use)
			forwardText         : "&raquo;", // Link text used to move the slider forward (hidden by CSS, replaced with arrow image)
			backText            : "&laquo;", // Link text used to move the slider back (hidden by CSS, replace with arrow image)
			
			showMultiple		: 1,
			
			// Slideshow options
			autoPlay            : true,      // This turns off the entire slideshow FUNCTIONALY, not just if it starts running or not
			startStopped        : false,     // If autoPlay is on, this can force it to start stopped
			pauseOnHover        : true,      // If true & the slideshow is active, the slideshow will pause on hover
			resumeOnVideoEnd    : true,      // If true & the slideshow is active & a youtube video is playing, it will pause the autoplay until the video has completed
			stopAtEnd           : false,     // If true & the slideshow is active, the slideshow will stop on the last page
			playRtl             : false,     // If true, the slideshow will move right-to-left
			startText           : "Play",   // Start button text
			stopText            : "Stop",    // Stop button text
			delay               : 4000,      // How long between slideshow transitions in AutoPlay mode (in milliseconds)
			animationTime       : 1000,       // How long the slideshow transition takes (in milliseconds)
			easing              : "easeInOutCubic"    // Anything other than "linear" or "swing" requires the easing plugin
		});	
		
	});
	
	
});
