$(document).ready(
	function(){
		$('ul#banner').innerfade({
		speed: 2000,
		timeout: 6000,
		type: 'random_start',
		containerheight: '300px'
	});					
});

$(document).ready(
	function(){
		$('ul#sponsors').innerfade({
		speed: 1000,
		timeout: 7000,
		type: 'sequence',
		containerheight: '60px'
	});					
});


$(document).ready(function() {
			/*
			*   Examples - images
			*   Para todas las imágenes que estén en la web
			*/

			$("a[href$=.jpg],a[href$=.png],a[href$=.gif]").fancybox();
});


jQuery(document).ready(function() {
	$(".video").click(function() {
		$.fancybox({
			'padding'		: 0,
			'autoScale'		: false,
			'transitionIn'	: 'none',
			'transitionOut'	: 'none',
			'title'			: this.title,
			'width'			: 640,
			'height'		: 385,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'			: 'swf',
			'swf'			: {
			'wmode'				: 'transparent',
			'allowfullscreen'	: 'true'
			}
		});
		return false;
	});
});


$(document).ready(function() {

	var total_letras = 500;

	$('#mensaje').keydown(function() {
    	var longitud = $(this).val().length;
    	var resto = total_letras - longitud;
    	$('#numero').html(resto);
    	if(resto <= 0){
        	$('#mensaje').attr("maxlength", 500);
    	}
	});

});


function initMenu() {
  $('#menu-faq ul').hide();
  $('#menu-faq li a').click(
    function() {
        $(this).next().slideToggle('normal');       	
      }
    );
  }
$(document).ready(function() {initMenu();});

/*Boton derecho*/
/*$(document).ready(function(){
    $(document).bind("contextmenu",function(e){
        return false;
    });
});*/


