
function Navigation() {
	this.pantallas = new Array(4); //de pantallas con parametros
	this.pos = -1;
}

function Pantalla() {
	this.nombre = null;
	this.params = new Array();
}

function User() {
    this.username = null;
    this.nombre = null;
    this.apellidos = null;
    this.email = null;
    this.provincia = null;
    this.telefono = null;
    this.comercio = null;
    this.codigo = null ;
    this.password = null ;
}

function Products() {
    this.productos = new Array();
}

function Product(nombre, fabricante) {
    this.nombre = nombre;
    this.fabricante = fabricante;
    this.exclusivo = null ;
    this.imagenes = new Array();
    this.numImagenSeleccionada = 0;
    this.referencias = new Array();
    this.nombreDestino = null;
    this.imagenDestino = null;

    this.imagenSeleccionada = null;
    this.verNombre = verNom; // Nueva función miembro
}

function verNom() {
	alert('El nombre del producto es: ' + this.nombre) ;
}

function Imagen() {
    this.fichero = null;
    this.escena = null;
    this.referenciasEnEscena = new Array(); //array de String
    this.notas = null;
    this.revestible = false;
}

function Categories() {
    this.categorias = new Array();
}

function Category(nombre) {
    this.nombre = nombre;
    this.texturas = new Array();
}

function Texture() {
    this.codigo = null;
    this.fichero = null;
    this.fabricante = null;
    this.categoria = null;
    this.ancho = null;
    this.alto = null;
    this.descripcion = null;

    /* solo ACABADO */
    this.incremento = null ;
    this.tipoacabado = null;

    /* solo TELA  */
    this.serie = null;
    this.lavado = null;
    this.lejia = null;
    this.secadora = null;
    this.lavadoseco = null;
    this.planchado = null;
    this.composicion = null;
    this.peso = null;
    this.precioReftelacab = null;
}

function Reference() {
    this.codigo = null;
    this.nombreTipo = null;
    this.imagenTipo = null;
    this.grafico = null;
    this.descripcion = null;
    this.ancho = null;
    this.fondo = null;
    this.alto = null;
    this.precio = null;
    this.nombreEstilo = null;
    this.imagenEstilo = null;
}

function Families() {
    this.familias = new Array();
}

function Family(nombre) {
    this.nombre = nombre;
    this.fichero = null;
    this.productos = new Array();
}

function Styles() {
    this.estilos = new Array();
}

function Style(nombre) {
    this.nombre = nombre;
    this.fichero = null;
    this.productos = new Array();
}

function Ambients() {
    this.ambientes = new Array();
}

function Ambient(nombre) {
    this.nombre = nombre;
    this.fichero = null;
    //this.productos = new Array();
    this.familias = new Array();
    this.estilos = new Array();
}

/******* PRESUPUESTO ***********/

function Comerce(id) {
    this.id = id;
    this.nombre = null;
    this.direccion = null;
    this.poblacion = null;
    this.cif = null;
    this.descripcion = null;
    this.code = null;
    this.municipio = null;
    this.pais = null;
    this.ciudad = null;
    this.isocountrycode = null;
    this.telefono = null;
    this.fax = null;
    this.email = null;
    this.mailserver = null;
    this.www = null;
    this.provincia = null;
}

function Provinces() {
    this.provincias = new Array();
}

function Province(nombre) {
    this.comercios = new Array();

    this.nombre = nombre;
    this.codigo = null;
    this.pais = null;
}

function Configurations() {
    this.configuraciones = new Array();
}

function Configuration() {
    this.producto = null;
    this.id = null;
    this.cantidad = 1;
}


function Ref_parts_textures() {
    this.referencias_PT = new Array() ;
}

function Referencia_PT() {
    this.codigo = null;
    this.fabricante = null;

    this.partes = new Array();
}

function Part_PT() {
    this.numero = null;
    this.nombre = null;

    this.seriestela = new Array();
    this.tiposacabado = new Array();
}

function Cadena_Ctp() {
    this.referencia = null;
    this.ocurrencia = null;
    this.id_zona = null;
    this.nom_zona= null ;
}

function Cart() {
    this.configuraciones = new Array();
}
