// JavaScript Document
$(document).ready(function(){

	$(".linkVideo").click(function(evento){
  	evento.preventDefault();
		$(".cuerpoInterior").fadeOut();
		$("#cargarProduccion").fadeIn();// Muestra el elemento con id="quienes"
    });
						   
    $("#enlaceInicio").click(function(evento){
  	evento.preventDefault();
  		$(".menuInterior").fadeOut();
		$(".cuerpoInterior").fadeOut();
		$("#inicio").fadeIn();// Muestra el elemento con id="quienes"
    });
    

    $("#enlaceQS").click(function(evento){
  	evento.preventDefault();
  		$(".menuInterior").fadeOut();
		$(".cuerpoInterior").fadeOut();
		$("#quienesSomos").fadeIn();// Muestra el elemento con id="quienes"
    });

    $("#compania").click(function(evento){
    evento.preventDefault();
	$(".cuerpoInterior").fadeOut();
    	$("#cuerpoInteriorPrincipal").load("ajax/compania.php");
		$("#cuerpoInteriorPrincipal").fadeIn();
    });
	
	$("#equipo").click(function(evento){
    evento.preventDefault();
		$(".cuerpoInterior").fadeOut();
		$("#encarnacion").fadeIn();
    });
	
	$(".enlaceEncarnacion").click(function(evento){
    evento.preventDefault();
		$(".cuerpoInterior").fadeOut();
		$("#encarnacion").fadeIn();
    });
	
	$(".enlacePablo").click(function(evento){
    evento.preventDefault();
		$(".cuerpoInterior").fadeOut();
		$("#pablo").fadeIn();
    });
	
	$(".enlaceClaudia").click(function(evento){
    evento.preventDefault();
		$(".cuerpoInterior").fadeOut();
		$("#claudia").fadeIn();
    });
	
	$("#enlaceProducciones").click(function(evento){
  	evento.preventDefault();
  		$(".menuInterior").fadeOut();
		$(".cuerpoInterior").fadeOut();
		$("#producciones").fadeIn();// Muestra el elemento con id="quienes"
    });
	
	
	
	
	
	
	$("#enlaceServicios").click(function(evento){
  	evento.preventDefault();
  		$(".menuInterior").fadeOut();
		$(".cuerpoInterior").fadeOut();
		$("#servicios").fadeIn();// Muestra el elemento con id="quienes"
    });
	
	$("#sCine").click(function(evento){
    evento.preventDefault();
		$(".cuerpoInterior").fadeOut();
    	$("#cuerpoInteriorPrincipal").load("ajax/sCine.php");
		$("#cuerpoInteriorPrincipal").fadeIn();
    });
	
	$("#sTelevision").click(function(evento){
    evento.preventDefault();
		$(".cuerpoInterior").fadeOut();
    	$("#cuerpoInteriorPrincipal").load("ajax/sTelevision.php");
		$("#cuerpoInteriorPrincipal").fadeIn();
    });
	
	$("#sVideo").click(function(evento){
    evento.preventDefault();
		$(".cuerpoInterior").fadeOut();
    	$("#cuerpoInteriorPrincipal").load("ajax/sVideo.php");
		$("#cuerpoInteriorPrincipal").fadeIn();
    });
	
	$("#sConcierto").click(function(evento){
    evento.preventDefault();
		$(".cuerpoInterior").fadeOut();
    	$("#cuerpoInteriorPrincipal").load("ajax/sConcierto.php");
		$("#cuerpoInteriorPrincipal").fadeIn();
    });
	
	$("#sGrabacion").click(function(evento){
    evento.preventDefault();
		$(".cuerpoInterior").fadeOut();
    	$("#cuerpoInteriorPrincipal").load("ajax/sGrabacion.php");
		$("#cuerpoInteriorPrincipal").fadeIn();
    });
	
	$("#sFotografia").click(function(evento){
    evento.preventDefault();
		$(".cuerpoInterior").fadeOut();
    	$("#cuerpoInteriorPrincipal").load("ajax/sFotografia.php");
		$("#cuerpoInteriorPrincipal").fadeIn();
    });
	
	$("#sAlquiler").click(function(evento){
    evento.preventDefault();
		$(".cuerpoInterior").fadeOut();
    	$("#cuerpoInteriorPrincipal").load("ajax/sAlquiler.php");
		$("#cuerpoInteriorPrincipal").fadeIn();
    });
	
	
	$(".noticiaInicio").click(function(evento){
    evento.preventDefault();
    	$(".menuInterior").fadeOut();
	$(".cuerpoInterior").fadeOut();
	$("#noticias").fadeIn();// Muestra el elemento con id="quienes"
	$(".cuerpoInterior").fadeOut();
    	$("#cuerpoInteriorPrincipal").load("ajax/recientes.php");
	$("#cuerpoInteriorPrincipal").fadeIn();
    });
    

	
   $(".fotoProduccionP").click(function(evento){
	var oID = $(this).attr("id");
      evento.preventDefault();
      $(".menuInterior").fadeOut();
	$(".cuerpoInterior").fadeOut();
	$("#producciones").fadeIn();// Muestra el elemento con id="quienes"
	$("#cuerpoInteriorPrincipal").fadeIn();
      $("#cuerpoInteriorPrincipal").load("ajax/muestravideo.php", {id: oID}, function(){
      });
   });
   
   $(".fotoProduccionS").click(function(evento){
	var oID = $(this).attr("id");
      evento.preventDefault();
      $(".menuInterior").fadeOut();
	$(".cuerpoInterior").fadeOut();
	$("#producciones").fadeIn();// Muestra el elemento con id="quienes"
	$("#cuerpoInteriorPrincipal").fadeIn();
      $("#cuerpoInteriorPrincipal").load("ajax/muestrasitio.php", {id: oID}, function(){
      });
   });
   
   $(".link").click(function(evento){
	var oID = $(this).attr("id");
      evento.preventDefault();
	$(".cuerpoInterior").fadeOut();
	$("#cuerpoInteriorPrincipal").fadeIn();
      $("#cuerpoInteriorPrincipal").load("ajax/muestravideo.php", {id: oID}, function(){
      });
   });
   
   $(".sitio").click(function(evento){
	var oID = $(this).attr("id");
      evento.preventDefault();
	$(".cuerpoInterior").fadeOut();
	$("#cuerpoInteriorPrincipal").fadeIn();
      $("#cuerpoInteriorPrincipal").load("ajax/muestrasitio.php", {id: oID}, function(){
      });
   });

	
    
    $(".tituloInicioProduccionP").click(function(evento){
    var oID = $(this).attr("id");
      evento.preventDefault();
      $(".menuInterior").fadeOut();
	$(".cuerpoInterior").fadeOut();
	$("#producciones").fadeIn();// Muestra el elemento con id="quienes"
	$("#cuerpoInteriorPrincipal").fadeIn();
      $("#cuerpoInteriorPrincipal").load("ajax/muestravideo.php", {id: oID}, function(){
      });
    });
    
    $(".tituloInicioProduccionS").click(function(evento){
    var oID = $(this).attr("id");
      evento.preventDefault();
      $(".menuInterior").fadeOut();
	$(".cuerpoInterior").fadeOut();
	$("#producciones").fadeIn();// Muestra el elemento con id="quienes"
	$("#cuerpoInteriorPrincipal").fadeIn();
      $("#cuerpoInteriorPrincipal").load("ajax/muestrasitio.php", {id: oID}, function(){
      });
    });
	
	$("#enlaceNoticias").click(function(evento){
  	evento.preventDefault();
  		$(".menuInterior").fadeOut();
		$(".cuerpoInterior").fadeOut();
		$("#noticias").fadeIn();// Muestra el elemento con id="quienes"
    });
	
	$("#recientes").click(function(evento){
    evento.preventDefault();
		$(".cuerpoInterior").fadeOut();
    	$("#cuerpoInteriorPrincipal").load("ajax/recientes.php");
		$("#cuerpoInteriorPrincipal").fadeIn();
    });
	
	$("#todas").click(function(evento){
    evento.preventDefault();
		$(".cuerpoInterior").fadeOut();
    	$("#cuerpoInteriorPrincipal").load("ajax/todas.php");
		$("#cuerpoInteriorPrincipal").fadeIn();
    });
	
	$("#enlaceContacto").click(function(evento){
  	evento.preventDefault();
  		$(".menuInterior").fadeOut();
		$(".cuerpoInterior").fadeOut();
		$("#cuerpoInteriorContacto").fadeIn();
    });
	
	
	


})
