function formatText(index, panel) {
		  return index + "";
	    }
    
        $(function () {
        
            $('.anythingSlider').anythingSlider({
                easing: "easeInOutExpo",        // Anything other than "linear" or "swing" requires the easing plugin
                autoPlay: false,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not.
                delay: 3000,                    // How long between slide transitions in AutoPlay mode
                startStopped: true,            // If autoPlay is on, this can force it to start stopped
                animationTime: 2000,             // How long the slide transition takes
                hashTags: true,                 // Should links change the hashtag in the URL?
                buildNavigation: false,          // If true, builds and list of anchor links to link to each slide
        		pauseOnHover: true,             // If true, and autoPlay is enabled, the show will pause on hover
        		startText: "",             // Start text
		        stopText: "",               // Stop text
		        navigationFormatter: formatText       // Details at the top of the file on this use (advanced use)
            });
            
			$("#home").click(function(){
                $('.anythingSlider').anythingSlider(1);
            });
			$("#directores").click(function(){
                $('.anythingSlider').anythingSlider(2);
            });
			$("#servicios").click(function(){
                $('.anythingSlider').anythingSlider(3);
            });
			$("#producciones").click(function(){
                $('.anythingSlider').anythingSlider(4);
            });
			$("#contacto").click(function(){
                $('.anythingSlider').anythingSlider(5);
            });
			
        });
(function($) {
  var cache = [];
  $.preLoadImages = function() {
    var args_len = arguments.length;
    for (var i = args_len; i--;) {
      var cacheImage = document.createElement('img');
      cacheImage.src = arguments[i];
      cache.push(cacheImage);
    }
  }
})(jQuery)
jQuery.preLoadImages("site/img/pg1.jpg", "site/img/pg2.jpg", "site/img/pg3.jpg", "site/img/pg4.jpg", "site/img/pg5.jpg");

function vplayer(vid) 
{
	$('<a />').colorbox({innerWidth:540, innerHeight:440, iframe:true, href:'player/?v='+vid+'', bgOpacity:0, open:true});
}

function kit() 
{
	$('<a />').colorbox({innerWidth:850, innerHeight:670, iframe:true, href:'kit/', bgOpacity:0, open:true});
}
