/*
 * Catalogo inicializacion
 * 
 * Version: 	$Revision: 1.0 $
 * Author:  Antonio Hernández Ritoré 
 */
var tienda = new Tienda();

// definicion de colores
tienda.colores = new Array(2);
tienda.colores[0] = ["f3f6e3","blanco"];
tienda.colores[1] = ["423d3e","negro"];
tienda.colores[2] = ["206599","azul"];
tienda.colores[3] = ["67862b","verde"];
tienda.colores[4] = ["cf2715","rojo"];
tienda.colores[5] = ["ebdb8c","beige"];
tienda.colores[6] = ["c0a5c9","violeta"];
tienda.colores[7] = ["ffa301","naranja"];
tienda.colores[8] = ["fff100","amarillo"];
tienda.colores[9] = ["9c9a9a","gris"];
tienda.colores[10] = ["37bfef","celeste"];
tienda.colores[11] = ["cc9900","marron"];
tienda.colores[12] = ["999900","kaki"];
tienda.colores[13] = ["cccccc","combinado"];
tienda.colores[14] = ["eeeeee","estampado"];
tienda.colores[15] = ["ff99ff","rosa"];
tienda.colores[16] = ["99ff99","lima"];

tienda.designs = new Array(2);
tienda.designs[0] = ["guau! force","dis0.gif"];
tienda.designs[1] = ["guau! liquid","dis1.gif"];
tienda.designs[2] = ["guau! kite","dis2.gif"];
tienda.designs[3] = ["guau! cargo","dis3.gif"];
tienda.designs[4] = ["guau! university","dis4.gif"];
tienda.designs[5] = ["guau! sheriff","dis5.gif"];
tienda.designs[6] = ["guau! love","dis6.gif"];
tienda.designs[7] = ["guau! shine","dis7.gif"];
tienda.designs[8] = ["guau! summer","dis8.gif"];

designs = ["guau! force","guau! liquid","guau! kite","guau! cargo","guau! university","guau! sheriff"];

// ????????    1010401 PANTALON HOM.PANA PIRATA 36,00 

// definicion del stock
tienda.stock = new Array();

// HOMBRES pantalones
tallas = ["S","M","L","XL"];
colores = ["423d3e","206599","67862b","ebdb8c"];
modelos = ["cintura fija","cintura elastica"];
tienda.stock[0] = new Articulo("REF.1010101", "Pantalon pirata microfibra",tallas,colores,36.00,null,modelos);
tienda.stock[1] = new Articulo("REF.1010201", "Pantalon bermuda microfibra",tallas,colores,33.00,null,modelos);
tienda.stock[2] = new Articulo("REF.1010301", "Pantalon largo microfibra",tallas,colores,39.00,null,modelos);	
tienda.stock[3] = new Articulo("REF.1010501", "Pantalon bermuda pana",tallas,colores,33.00,null,null);
tallas = ["S","M","L"];
tienda.stock[4] = new Articulo("REF.1010601", "Pantalon largo pana",tallas,colores,39.00,null,null);	

// HOMBRES camisetas
tallas = ["S","M","L","XL"];
colores = ["f3f6e3","423d3e","206599","999900","cc9900","fff100","ffa301"];
tienda.stock[5] = new Articulo("REF.1020101","Camiseta manga corta algodon",tallas,colores,18.00,designs,null);
colores = ["f3f6e3","423d3e","999900","cc9900"];
tienda.stock[6] = new Articulo("REF.1020201","Camiseta manga larga algodon",tallas,colores,20.00,designs,null);	
colores = ["f3f6e3","423d3e","206599","999900","cc9900","ffa301"];
tienda.stock[7] = new Articulo("REF.1020301","Camiseta sin manga algodon",tallas,colores,16.00,designs,null);	

// HOMBRES polos sudaderas
colores = ["423d3e","206599","999900","cc9900","fff100","ffa301"];
tienda.stock[8] = new Articulo("REF.1030101","Polo manga corta algodon",tallas,colores,30.00,null,null);
colores = ["206599","999900","ebdb8c","ffa301"];
tienda.stock[9] = new Articulo("REF.1040101","Sudadera manga larga felpa",tallas,colores,36.00,designs,null);	
colores = ["206599","67862b","cc9900","ffa301"];
tienda.stock[10] = new Articulo("REF.1040401","sudadera cremallera y capucha felpa",tallas,colores,39.00,designs,null);	

// HOMBRES bañadores
colores = ["cccccc","eeeeee"];
tienda.stock[11] = new Articulo("REF.1060101","Bañador largo microfibra",tallas,colores,30.00,null,null);	
tienda.stock[12] = new Articulo("REF.1060201","Bañador medio microfibra",tallas,colores,30.00,null,null);	
tienda.stock[13] = new Articulo("REF.1060301","Bañador corto microfibra",tallas,colores,30.00,null,null);	

// MUJER pantalones
tallas = ["S","M","L"];
colores = ["eeeeee","206599","ff99ff","ebdb8c","fff100","ffa301"];
tienda.stock[14] = new Articulo("REF.2010301","Pantalon short microfibra",tallas,colores,16.00,null,null);	
tienda.stock[15] = new Articulo("REF.2010401","Pantalon bermuda microfibra",tallas,colores,16.00,null,null);	
tienda.stock[16] = new Articulo("REF.2010501","Pantalon pirata microfibra",tallas,colores,16.00,null,null);	
	
// MUJER faldas
colores = ["eeeeee","206599","ff99ff","ebdb8c","fff100","ffa301"];
tienda.stock[17] = new Articulo("REF.2100201","Falda mini microfibra",tallas,colores,16.00,null,null);	

// MUJER camisetas

// MUJER tops
designs = ["guau! love", "guau! shine", "guau! summer"];
colores = ["f3f6e3","ff99ff","99ff99","ffa301"];
tienda.stock[18] = new Articulo("REF.2080501","Top lycra 2005-1",tallas,colores,18.00,designs,null);	
tienda.stock[19] = new Articulo("REF.2080601","Top lycra 2005-2",tallas,colores,18.00,designs,null);	
tienda.stock[20] = new Articulo("REF.2080701","Top lycra 2005-3",tallas,colores,18.00,designs,null);	
tienda.stock[21] = new Articulo("REF.2080901","Top lycra 2005-4",tallas,colores,18.00,designs,null);	

// MUJER sudaderas
colores = ["f3f6e3","423d3e","999900","ffa301"];
tienda.stock[22] = new Articulo("REF.2040101","Sudadera cremallera felpa",tallas,colores,36.00,designs,null);	
tienda.stock[23] = new Articulo("REF.2040201","Sudadera capucha felpa",tallas,colores,36.00,designs,null);	
	



// NIÑOS camisetas, sudaderas
designs = ["guau! force","guau! liquid","guau! kite","guau! cargo","guau! university","guau! sheriff"];
tallas = ["S","M","L","XL"];
colores = ["206599","999900","fff100","ffa301"];
tienda.stock[24] = new Articulo("REF.3020101","Camiseta manga corta algodon",tallas,colores,15.00,designs,null);	
colores = ["206599","999900","ebdb8c","ffa301"];
tienda.stock[25] = new Articulo("REF.3040101","Sudadera manga larga felpa",tallas,colores,20.00,designs,null);

// COMPLEMENTOS
tallas = ["Única"];
colores = ["f3f6e3","423d3e","206599","cf2715","ebdb8c","fff100","ffa301"];
tienda.stock[26] = new Articulo("REF.4140101","Gorra",tallas,colores,10.00);
colores = ["eeeeee"];		
tienda.stock[27] = new Articulo("REF.4140201","Bandana",tallas,colores,6.00);	
colores = ["f3f6e3","423d3e","206599","cf2715","cc9900","fff100","ffa301"];
tienda.stock[28] = new Articulo("REF.4150101","Gorro",tallas,colores,12.00);

colores = [""];
tienda.stock[29] = new Articulo("REF.4170201","Llavero metacrilato",tallas,colores,3.00);
colores = ["f3f6e3","423d3e"];
tienda.stock[30] = new Articulo("REF.4170301","Llavero cinta",tallas,colores,5.00);

colores = ["eeeeee"];		
tienda.stock[31] = new Articulo("REF.4180101","Pareo",tallas,colores,10.00);
tienda.stock[32] = new Articulo("REF.4190101","Pañuelo",tallas,colores,3.00);
	
tallas = ["Única"];
colores = [""];		
tienda.stock[33] = new Articulo("REF.4210101","Pegatina pequeña",tallas,colores,0.50);		
tienda.stock[34] = new Articulo("REF.4210201","Pegatina mediana",tallas,colores,1.00);	
tienda.stock[35] = new Articulo("REF.4210301","Pegatina grande",tallas,colores,3.00);		
tienda.stock[36] = new Articulo("REF.4210501","Pegatina teléfono móvil",tallas,colores,0.50);	


// inicializacion del carro
tienda.carro = new Array();
tienda.carroOf0 = new Array();
tienda.carroOf1 = new Array();
tienda.carroOf2 = new Array();

// inicializacion de las ofertas
tienda.ofertas = new Array();
refs = ["REF.1010101","REF.1010201","REF.1010301","REF.1010501","REF.1010601"];
tienda.ofertas[0] = new Oferta(0,"3 pantalones de hombre por 60 euros",3,refs,60);

refs = ["REF.1060101","REF.1060201","REF.1060301"];
tienda.ofertas[1] = new Oferta(1,"3 bañadores de hombre por 60 euros",3,refs,60);

refs = ["REF.2010301","REF.2010401","REF.2010501","REF.2100201"];
tienda.ofertas[2] = new Oferta(2,"3 piratas y/o bermudas y/o shorts y/o minifalda de mujer por 32 euros",3,refs,32);

