	function novercapa(idCapa){
		$('#'+idCapa).hide();	
	}
	function vercapa(idCapa){
		$('#'+idCapa).show();	
	}
	
	var num = 1;
	function cambiarimagen(foto, maximo) {
		if (!num) { num = 1; } else { num = num + 1; }
		if (num > maximo) { num = 1; }
		document.images['fotoproducto'].src= '/imagenes/catalogo/'+foto+'_'+num+'.jpg';
	}
	

	$(function() { //menu horizontal
		$("#menuhorizontal").lavaLamp({
			fx: "backout",
			speed: 700
		});
	});
	
	$(function() {
		$("#carrusel_lite").jCarouselLite({
			auto: 4000,
			speed: 300,
			btnNext: ".next",
			btnPrev: ".prev"
		});
	});


	$(function() { //lightBox
		$('#seccion a').lightBox({fixedNavigation:true});
	});
	$(function() { //lightBox
		$('.lightbox').lightBox({fixedNavigation:true});
	});

	$(document).ready(function(){  //jquery para envio formulario
        $('#MyForm').ajaxForm(function(data) {
            if (data==1) {
				$('#badserver').fadeOut("fast");
				$('#bademail').fadeOut("fast");
				$('#badcomment').fadeOut("fast");
				$('#badbot').fadeOut("fast");

                $('#success').fadeIn("slow");
                $('#MyForm').resetForm();
				setTimeout(function(){$('#success').fadeOut("slow");}, 15000);
            } else if (data==2) {
				$('#bademail').fadeOut("fast");
				$('#badcomment').fadeOut("fast");
				$('#badbot').fadeOut("fast");
				$('#badserver').fadeIn("slow");
            } else if (data==3) {	
				$('#badserver').fadeOut("fast");
				$('#bademail').fadeOut("fast");
				$('#badcomment').fadeOut("fast");
				$('#badbot').fadeIn("slow");
            } else if (data==4) {	
				$('#badserver').fadeOut("fast");
				$('#badcomment').fadeOut("fast");
				$('#badbot').fadeOut("fast");
				$('#bademail').fadeIn("slow");
            } else if (data==5) {	
				$('#badserver').fadeOut("fast");
				$('#bademail').fadeOut("fast");
				$('#badbot').fadeOut("fast");
				$('#badcomment').fadeIn("slow");
           }
        });
    });


	//sifr
	 /*
	$(document).ready(function(){
		$.sifr({
			path: '/js',
			save: true
		});
	
		$('#contacto').sifr({ font: 'goudyhvyface_bt_full', Size: 30});
		$('h1').sifr({ font: 'goudyhvyface_bt_full'});
	});
	*/
	 /*
	$(document).ready(function() {
		 
		  $('#imagenmenu').fadeIn(500);
		 // shows the slickbox on clicking the noted link  
		  $('a#slick-show').click(function() {
			$('#lineanegocio').show('slow');
			return false;
		  });
		 // hides the slickbox on clicking the noted link  
		  $('a#slick-hide').click(function() {
			$('#imagenmenu').hide('fast');
			return false;
		  });
		 // toggles the slickbox on clicking the noted link  
		  $('a#slick-toggle').click(function() {
			$('#lineanegocio').toggle(400);
			return false;
		  });
		  $('a#slick-down').click(function() {
			$('#lineanegocio').slideDown(400);
			return false;
		  });
			
		  $('a#slick-prueba').click(function() {
		  	
		  	//alert(document.getElementById("imagenmenu").height);
			//document.getElementById("imagenmenu").height = 40%
			  $("#imagenmenu")
			  	.animate( { height:"130px", width:"100%"}, { queue:false, duration:1500 } )
				.animate( { fontSize:"24px" }, 1500 )
				.animate( { borderRightWidth:"15px" }, 1500);
			  //$("#contenido").css({ height:"40%"});
		  });
		
	});  */