﻿//Lo que quiero hacer es un cargador que localice los eventos y asigne las cosas.
//pero para simplificar vamos a meter los eventos en las imagenes y punto.



function clMuestra_Series() {
    this.divClasica = null;
    this.divPremier = null;
    this.divTurista = null;
    this.divSeries = null;
    
    this.Inicializa = function() {
        this.divClasica = document.getElementById('panel_des_clasica');
        this.divPremier = document.getElementById('panel_des_premier');
        this.divTurista = document.getElementById('panel_des_turista');
        this.divSeries = document.getElementById('panel_serie_clasica');
        this.divSeries.style.display = "none";
        
    }
    this.Muestra_Mensaje = function(serie) {
        if (!this.divClasica) {
            this.Inicializa();
        }
        if (this.divSeries.style.display == "block" ) {
            this.divClasica.style.display = "none";
            this.divPremier.style.display = "none";
            this.divTurista.style.display = "none";    
        }
        else{

            if (serie == 'clasica') {
                this.divClasica.style.display = "block";
                this.divPremier.style.display = "none";
                this.divTurista.style.display = "none";
            }
            else if (serie == 'premier') {
                this.divClasica.style.display = "none";
                this.divPremier.style.display = "block";
                this.divTurista.style.display = "none";
            }
            else if (serie == 'turista') {
                this.divClasica.style.display = "none";
                this.divPremier.style.display = "none";
                this.divTurista.style.display = "block";
            }
            else {
                this.divClasica.style.display = "none";
                this.divPremier.style.display = "none";
                this.divTurista.style.display = "none";

            }
        }
    }
    this.Muestra_Selectores = function() {
        if (!this.divClasica) {
            this.Inicializa();
        }
        if (this.divSeries.style.display == "block") {
            this.divSeries.style.display = "none";
            this.divClasica.style.display = "block";
            
        }
        else {
            this.divSeries.style.display = "block";
            this.divClasica.style.display = "none";
            
        }
        this.divPremier.style.display = "none";
        this.divTurista.style.display = "none";
    }
    
}


var Muestra = new clMuestra_Series();
