
/* config.js */

/* 1   */ /**
/* 2   *|  * combinacionganadora.com constantes
/* 3   *|  */
/* 4   */ 	MAX_SINGLE_BETS = [];//apuestas simples por boleto, se inicializa en cada seccion aqui abajo
/* 5   */ 
/* 6   */ 	//EUROMILLONES game 4
/* 7   */ 	EUROMILLIONS_MIN_NUMBER = 1;//numeros del 1 al 50
/* 8   */ 	EUROMILLIONS_MAX_NUMBER = 50;
/* 9   */ 	EUROMILLIONS_MIN_STAR = 1;//estrellas del 1 al 11
/* 10  */ 	EUROMILLIONS_MAX_STAR = 11;
/* 11  */ 	EUROMILLIONS_MIN_NUMBERS_COUNT = 5;//apuesta simple como minimo 5 numeros y 2 estrellas
/* 12  */ 	EUROMILLIONS_MIN_STARS_COUNT = 2;
/* 13  */ 	EUROMILLIONS_MAX_NUMBERS_COUNT = 10;//apuesta multiple como maximo 10 numeros y 5 estrellas
/* 14  */ 	EUROMILLIONS_MAX_STARS_COUNT = 5;
/* 15  */ 	EUROMILLIONS_PRIZES = [];//tabla de categorias de premios
/* 16  */ 	EUROMILLIONS_PRIZES['5+2'] = 1;
/* 17  */ 	EUROMILLIONS_PRIZES['5+1'] = 2;
/* 18  */ 	EUROMILLIONS_PRIZES['5+0'] = 3;
/* 19  */ 	EUROMILLIONS_PRIZES['4+2'] = 4;
/* 20  */ 	EUROMILLIONS_PRIZES['4+1'] = 5;
/* 21  */ 	EUROMILLIONS_PRIZES['4+0'] = 6;
/* 22  */ 	EUROMILLIONS_PRIZES['3+2'] = 7;
/* 23  */ 	EUROMILLIONS_PRIZES['2+2'] = 8;
/* 24  */ 	EUROMILLIONS_PRIZES['3+1'] = 9;
/* 25  */ 	EUROMILLIONS_PRIZES['3+0'] = 10;
/* 26  */ 	EUROMILLIONS_PRIZES['1+2'] = 11;
/* 27  */ 	EUROMILLIONS_PRIZES['2+1'] = 12;
/* 28  */ 	EUROMILLIONS_PRIZES['2+0'] = 13;
/* 29  */ 	EUROMILLIONS_PRIZES_NAMES = [];//tabla de nombres de categorias
/* 30  */ 	EUROMILLIONS_PRIZES_NAMES['1'] = ['5+2'];
/* 31  */ 	EUROMILLIONS_PRIZES_NAMES['2'] = ['5+1'];
/* 32  */ 	EUROMILLIONS_PRIZES_NAMES['3'] = ['5+0'];
/* 33  */ 	EUROMILLIONS_PRIZES_NAMES['4'] = ['4+2'];
/* 34  */ 	EUROMILLIONS_PRIZES_NAMES['5'] = ['4+1'];
/* 35  */ 	EUROMILLIONS_PRIZES_NAMES['6'] = ['4+0'];
/* 36  */ 	EUROMILLIONS_PRIZES_NAMES['7'] = ['3+2'];
/* 37  */ 	EUROMILLIONS_PRIZES_NAMES['8'] = ['2+2'];
/* 38  */ 	EUROMILLIONS_PRIZES_NAMES['9'] = ['3+1'];
/* 39  */ 	EUROMILLIONS_PRIZES_NAMES['10'] = ['3+0'];
/* 40  */ 	EUROMILLIONS_PRIZES_NAMES['11'] = ['1+2'];
/* 41  */ 	EUROMILLIONS_PRIZES_NAMES['12'] = ['2+1'];
/* 42  */ 	EUROMILLIONS_PRIZES_NAMES['13'] = ['2+0'];
/* 43  */ 	MAX_SINGLE_BETS[4] = 5;	
/* 44  */ 	//DESARROLLO DE APUESTAS MULTIPLES
/* 45  */ 	EUROMILLIONS_MULTIPLE_DEV=
/* 46  */ 	[0,0,0,0,0,
/* 47  */ 		  [0,0,[1,								// COMBINACIÓN DE 5 NÚMEROS + 2 ESTRELLAS
/* 48  */ 					[1,0,0,0,0,0,0,0,0,0,0,0,0], 			// Categoría acertada: 1
/* 49  */ 					[0,1,0,0,0,0,0,0,0,0,0,0,0], 			// Categoría acertada: 2
/* 50  */ 					[0,0,1,0,0,0,0,0,0,0,0,0,0], 			// Categoría acertada: 3

/* config.js */

/* 51  */ 					[0,0,0,1,0,0,0,0,0,0,0,0,0], 			// Categoría acertada: 4
/* 52  */ 					[0,0,0,0,1,0,0,0,0,0,0,0,0], 			// Categoría acertada: 5
/* 53  */ 					[0,0,0,0,0,1,0,0,0,0,0,0,0], 			// Categoría acertada: 6
/* 54  */ 					[0,0,0,0,0,0,1,0,0,0,0,0,0], 			// Categoría acertada: 7
/* 55  */ 					[0,0,0,0,0,0,0,1,0,0,0,0,0], 			// Categoría acertada: 8
/* 56  */ 					[0,0,0,0,0,0,0,0,1,0,0,0,0], 			// Categoría acertada: 9
/* 57  */ 					[0,0,0,0,0,0,0,0,0,1,0,0,0], 			// Categoría acertada: 10
/* 58  */ 					[0,0,0,0,0,0,0,0,0,0,1,0,0], 			// Categoría acertada: 11
/* 59  */ 					[0,0,0,0,0,0,0,0,0,0,0,1,0],			// Categoría acertada: 12
/* 60  */ 					[0,0,0,0,0,0,0,0,0,0,0,0,1]],			// Categoría acertada: 13
/* 61  */ 				[3,							// COMBINACIÓN DE 5 NÚMEROS + 3 ESTRELLAS
/* 62  */ 					[1,2,0,0,0,0,0,0,0,0,0,0,0], 			// Categoría acertada: 1
/* 63  */ 					[0,2,1,0,0,0,0,0,0,0,0,0,0], 			// Categoría acertada: 2
/* 64  */ 					[0,0,3,0,0,0,0,0,0,0,0,0,0], 			// Categoría acertada: 3
/* 65  */ 					[0,0,0,1,2,0,0,0,0,0,0,0,0], 			// Categoría acertada: 4
/* 66  */ 					[0,0,0,0,2,1,0,0,0,0,0,0,0], 			// Categoría acertada: 5
/* 67  */ 					[0,0,0,0,0,3,0,0,0,0,0,0,0], 			// Categoría acertada: 6
/* 68  */ 					[0,0,0,0,0,0,1,0,2,0,0,0,0], 			// Categoría acertada: 7
/* 69  */ 					[0,0,0,0,0,0,0,1,0,0,0,2,0], 			// Categoría acertada: 8
/* 70  */ 					[0,0,0,0,0,0,0,0,2,1,0,0,0], 			// Categoría acertada: 9
/* 71  */ 					[0,0,0,0,0,0,0,0,0,3,0,0,0], 			// Categoría acertada: 10
/* 72  */ 					[0,0,0,0,0,0,0,0,0,0,1,0,0], 			// Categoría acertada: 11
/* 73  */ 					[0,0,0,0,0,0,0,0,0,0,0,2,1],			// Categoría acertada: 12
/* 74  */ 					[0,0,0,0,0,0,0,0,0,0,0,0,3]],			// Categoría acertada: 13
/* 75  */ 				[6,							// COMBINACIÓN DE 5 NÚMEROS + 4 ESTRELLAS
/* 76  */ 					[1,4,1,0,0,0,0,0,0,0,0,0,0], 			// Categoría acertada: 1
/* 77  */ 					[0,3,3,0,0,0,0,0,0,0,0,0,0], 			// Categoría acertada: 2
/* 78  */ 					[0,0,6,0,0,0,0,0,0,0,0,0,0], 			// Categoría acertada: 3
/* 79  */ 					[0,0,0,1,4,1,0,0,0,0,0,0,0], 			// Categoría acertada: 4
/* 80  */ 					[0,0,0,0,3,3,0,0,0,0,0,0,0], 			// Categoría acertada: 5
/* 81  */ 					[0,0,0,0,0,6,0,0,0,0,0,0,0], 			// Categoría acertada: 6
/* 82  */ 					[0,0,0,0,0,0,1,0,4,1,0,0,0], 			// Categoría acertada: 7
/* 83  */ 					[0,0,0,0,0,0,0,1,0,0,0,4,1], 			// Categoría acertada: 8
/* 84  */ 					[0,0,0,0,0,0,0,0,3,3,0,0,0], 			// Categoría acertada: 9
/* 85  */ 					[0,0,0,0,0,0,0,0,0,6,0,0,0], 			// Categoría acertada: 10
/* 86  */ 					[0,0,0,0,0,0,0,0,0,0,1,0,0], 			// Categoría acertada: 11
/* 87  */ 					[0,0,0,0,0,0,0,0,0,0,0,3,3],			// Categoría acertada: 12
/* 88  */ 					[0,0,0,0,0,0,0,0,0,0,0,0,6]],			// Categoría acertada: 13
/* 89  */ 				[10,							// COMBINACIÓN DE 5 NÚMEROS + 5 ESTRELLAS
/* 90  */ 					[1,6,3,0,0,0,0,0,0,0,0,0,0], 			// Categoría acertada: 1
/* 91  */ 					[0,4,6,0,0,0,0,0,0,0,0,0,0], 			// Categoría acertada: 2
/* 92  */ 					[0,0,10,0,0,0,0,0,0,0,0,0,0], 			// Categoría acertada: 3
/* 93  */ 					[0,0,0,1,6,3,0,0,0,0,0,0,0], 			// Categoría acertada: 4
/* 94  */ 					[0,0,0,0,4,6,0,0,0,0,0,0,0], 			// Categoría acertada: 5
/* 95  */ 					[0,0,0,0,0,10,0,0,0,0,0,0,0], 			// Categoría acertada: 6
/* 96  */ 					[0,0,0,0,0,0,1,0,6,3,0,0,0], 			// Categoría acertada: 7
/* 97  */ 					[0,0,0,0,0,0,0,1,0,0,0,6,3], 			// Categoría acertada: 8
/* 98  */ 					[0,0,0,0,0,0,0,0,4,6,0,0,0], 			// Categoría acertada: 9
/* 99  */ 					[0,0,0,0,0,0,0,0,0,10,0,0,0], 			// Categoría acertada: 10
/* 100 */ 					[0,0,0,0,0,0,0,0,0,0,1,0,0], 			// Categoría acertada: 11

/* config.js */

/* 101 */ 					[0,0,0,0,0,0,0,0,0,0,0,4,6], 			// Categoría acertada: 12
/* 102 */ 					[0,0,0,0,0,0,0,0,0,0,0,0,10]]], 			// Categoría acertada: 13
/* 103 */ 		  [0,0,[6,								// COMBINACIÓN DE 6 NÚMEROS + 2 ESTRELLAS
/* 104 */ 					[1,0,0,5,0,0,0,0,0,0,0,0,0],			// Categoría acertada: 1
/* 105 */ 					[0,1,0,0,5,0,0,0,0,0,0,0,0], 			// Categoría acertada: 2
/* 106 */ 					[0,0,1,0,0,5,0,0,0,0,0,0,0], 			// Categoría acertada: 3
/* 107 */ 					[0,0,0,2,0,0,4,0,0,0,0,0,0], 			// Categoría acertada: 4
/* 108 */ 					[0,0,0,0,2,0,0,0,4,0,0,0,0], 			// Categoría acertada: 5
/* 109 */ 					[0,0,0,0,0,2,0,0,0,4,0,0,0], 			// Categoría acertada: 6
/* 110 */ 					[0,0,0,0,0,0,3,3,0,0,0,0,0], 			// Categoría acertada: 7
/* 111 */ 					[0,0,0,0,0,0,0,4,0,0,2,0,0], 			// Categoría acertada: 8
/* 112 */ 					[0,0,0,0,0,0,0,0,3,0,0,3,0], 			// Categoría acertada: 9
/* 113 */ 					[0,0,0,0,0,0,0,0,0,3,0,0,3], 			// Categoría acertada: 10
/* 114 */ 					[0,0,0,0,0,0,0,0,0,0,5,0,0], 			// Categoría acertada: 11
/* 115 */ 					[0,0,0,0,0,0,0,0,0,0,0,4,0],			// Categoría acertada: 12
/* 116 */ 					[0,0,0,0,0,0,0,0,0,0,0,0,4]],			// Categoría acertada: 13
/* 117 */ 				[18,							// COMBINACIÓN DE 6 NÚMEROS + 3 ESTRELLAS
/* 118 */ 					[1,2,0,5,10,0,0,0,0,0,0,0,0], 			// Categoría acertada: 1
/* 119 */ 					[0,2,1,0,10,5,0,0,0,0,0,0,0], 			// Categoría acertada: 2
/* 120 */ 					[0,0,3,0,0,15,0,0,0,0,0,0,0], 			// Categoría acertada: 3
/* 121 */ 					[0,0,0,2,4,0,4,0,8,0,0,0,0], 			// Categoría acertada: 4
/* 122 */ 					[0,0,0,0,4,2,0,0,8,4,0,0,0], 			// Categoría acertada: 5
/* 123 */ 					[0,0,0,0,0,6,0,0,0,12,0,0,0], 			// Categoría acertada: 6
/* 124 */ 					[0,0,0,0,0,0,3,3,6,0,0,6,0], 			// Categoría acertada: 7
/* 125 */ 					[0,0,0,0,0,0,0,4,0,0,2,8,0], 			// Categoría acertada: 8
/* 126 */ 					[0,0,0,0,0,0,0,0,6,3,0,6,3], 			// Categoría acertada: 9
/* 127 */ 					[0,0,0,0,0,0,0,0,0,9,0,0,9], 			// Categoría acertada: 10
/* 128 */ 					[0,0,0,0,0,0,0,0,0,0,5,0,0], 			// Categoría acertada: 11
/* 129 */ 					[0,0,0,0,0,0,0,0,0,0,0,8,4],			// Categoría acertada: 12
/* 130 */ 					[0,0,0,0,0,0,0,0,0,0,0,0,12]],			// Categoría acertada: 13
/* 131 */ 				[36,							// COMBINACIÓN DE 6 NÚMEROS + 4 ESTRELLAS
/* 132 */ 					[1,4,1,5,20,5,0,0,0,0,0,0,0],			// Categoría acertada: 1
/* 133 */ 					[0,3,3,0,15,15,0,0,0,0,0,0,0], 			// Categoría acertada: 2
/* 134 */ 					[0,0,6,0,0,30,0,0,0,0,0,0,0], 			// Categoría acertada: 3
/* 135 */ 					[0,0,0,2,8,2,4,0,16,4,0,0,0], 			// Categoría acertada: 4
/* 136 */ 					[0,0,0,0,6,6,0,0,12,12,0,0,0], 			// Categoría acertada: 5
/* 137 */ 					[0,0,0,0,0,12,0,0,0,24,0,0,0], 			// Categoría acertada: 6
/* 138 */ 					[0,0,0,0,0,0,3,3,12,3,0,12,3], 			// Categoría acertada: 7
/* 139 */ 					[0,0,0,0,0,0,0,4,0,0,2,16,4], 			// Categoría acertada: 8
/* 140 */ 					[0,0,0,0,0,0,0,0,9,9,0,9,9], 			// Categoría acertada: 9
/* 141 */ 					[0,0,0,0,0,0,0,0,0,18,0,0,18], 			// Categoría acertada: 10
/* 142 */ 					[0,0,0,0,0,0,0,0,0,0,5,0,0], 			// Categoría acertada: 11
/* 143 */ 					[0,0,0,0,0,0,0,0,0,0,0,12,12],			// Categoría acertada: 12
/* 144 */ 					[0,0,0,0,0,0,0,0,0,0,0,0,24]],			// Categoría acertada: 13
/* 145 */ 				[60,							// COMBINACIÓN DE 6 NÚMEROS + 5 ESTRELLAS
/* 146 */ 					[1,6,3,5,30,15,0,0,0,0,0,0,0], 			// Categoría acertada: 1
/* 147 */ 					[0,4,6,0,20,30,0,0,0,0,0,0,0], 			// Categoría acertada: 2
/* 148 */ 					[0,0,10,0,0,50,0,0,0,0,0,0,0], 			// Categoría acertada: 3
/* 149 */ 					[0,0,0,2,12,6,4,0,24,12,0,0,0],	 		// Categoría acertada: 4
/* 150 */ 					[0,0,0,0,8,12,0,0,16,24,0,0,0],	 		// Categoría acertada: 5

/* config.js */

/* 151 */ 					[0,0,0,0,0,20,0,0,0,40,0,0,0], 			// Categoría acertada: 6
/* 152 */ 					[0,0,0,0,0,0,3,3,18,9,0,18,9], 			// Categoría acertada: 7
/* 153 */ 					[0,0,0,0,0,0,0,4,0,0,2,24,12], 			// Categoría acertada: 8
/* 154 */ 					[0,0,0,0,0,0,0,0,12,18,0,12,18], 			// Categoría acertada: 9
/* 155 */ 					[0,0,0,0,0,0,0,0,0,30,0,0,30], 			// Categoría acertada: 10
/* 156 */ 					[0,0,0,0,0,0,0,0,0,0,5,0,0], 			// Categoría acertada: 11
/* 157 */ 					[0,0,0,0,0,0,0,0,0,0,0,16,24],			// Categoría acertada: 12
/* 158 */ 					[0,0,0,0,0,0,0,0,0,0,0,0,40]]],			// Categoría acertada: 13
/* 159 */ 		  [0,0,[21,								// COMBINACIÓN DE 7 NÚMEROS + 2 ESTRELLAS
/* 160 */ 					[1,0,0,10,0,0,10,0,0,0,0,0,0], 			// Categoría acertada: 1
/* 161 */ 					[0,1,0,0,10,0,0,0,10,0,0,0,0], 			// Categoría acertada: 2
/* 162 */ 					[0,0,1,0,0,10,0,0,0,10,0,0,0], 			// Categoría acertada: 3
/* 163 */ 					[0,0,0,3,0,0,12,6,0,0,0,0,0], 			// Categoría acertada: 4
/* 164 */ 					[0,0,0,0,3,0,0,0,12,0,0,6,0], 			// Categoría acertada: 5
/* 165 */ 					[0,0,0,0,0,3,0,0,0,12,0,0,6], 			// Categoría acertada: 6
/* 166 */ 					[0,0,0,0,0,0,6,12,0,0,3,0,0], 			// Categoría acertada: 7
/* 167 */ 					[0,0,0,0,0,0,0,10,0,0,10,0,0], 			// Categoría acertada: 8
/* 168 */ 					[0,0,0,0,0,0,0,0,6,0,0,12,0], 			// Categoría acertada: 9
/* 169 */ 					[0,0,0,0,0,0,0,0,0,6,0,0,12], 			// Categoría acertada: 10
/* 170 */ 					[0,0,0,0,0,0,0,0,0,0,15,0,0], 			// Categoría acertada: 11
/* 171 */ 					[0,0,0,0,0,0,0,0,0,0,0,10,0], 			// Categoría acertada: 12
/* 172 */ 					[0,0,0,0,0,0,0,0,0,0,0,0,10]],			// Categoría acertada: 13
/* 173 */ 				[63,							// COMBINACIÓN DE 7 NÚMEROS + 3 ESTRELLAS
/* 174 */ 					[1,2,0,10,20,0,10,0,20,0,0,0,0],			// Categoría acertada: 1
/* 175 */ 					[0,2,1,0,20,10,0,0,20,10,0,0,0], 			// Categoría acertada: 2
/* 176 */ 					[0,0,3,0,0,30,0,0,0,30,0,0,0], 	  		// Categoría acertada: 3
/* 177 */ 					[0,0,0,3,6,0,12,6,24,0,0,12,0],  			// Categoría acertada: 4
/* 178 */ 					[0,0,0,0,6,3,0,0,24,12,0,12,6],  			// Categoría acertada: 5
/* 179 */ 					[0,0,0,0,0,9,0,0,0,36,0,0,18], 	 		// Categoría acertada: 6
/* 180 */ 					[0,0,0,0,0,0,6,12,12,0,3,24,0], 			// Categoría acertada: 7
/* 181 */ 					[0,0,0,0,0,0,0,10,0,0,10,20,0], 			// Categoría acertada: 8
/* 182 */ 					[0,0,0,0,0,0,0,0,12,6,0,24,12], 			// Categoría acertada: 9
/* 183 */ 					[0,0,0,0,0,0,0,0,0,18,0,0,36], 			// Categoría acertada: 10
/* 184 */ 					[0,0,0,0,0,0,0,0,0,0,15,0,0], 			// Categoría acertada: 11
/* 185 */ 					[0,0,0,0,0,0,0,0,0,0,0,20,10], 			// Categoría acertada: 12
/* 186 */ 					[0,0,0,0,0,0,0,0,0,0,0,0,30]],			// Categoría acertada: 13
/* 187 */ 				[126,							// COMBINACIÓN DE 7 NÚMEROS + 4 ESTRELLAS
/* 188 */ 					[1,4,1,10,40,10,10,0,40,10,0,0,0], 		// Categoría acertada: 1
/* 189 */ 					[0,3,3,0,30,30,0,0,30,30,0,0,0], 			// Categoría acertada: 2
/* 190 */ 					[0,0,6,0,0,60,0,0,0,60,0,0,0], 			// Categoría acertada: 3
/* 191 */ 					[0,0,0,3,12,3,12,6,48,12,0,24,6], 			// Categoría acertada: 4
/* 192 */ 					[0,0,0,0,9,9,0,0,36,36,0,18,18], 			// Categoría acertada: 5
/* 193 */ 					[0,0,0,0,0,18,0,0,0,72,0,0,36], 			// Categoría acertada: 6
/* 194 */ 					[0,0,0,0,0,0,6,12,24,6,3,48,12], 			// Categoría acertada: 7
/* 195 */ 					[0,0,0,0,0,0,0,10,0,0,10,40,10], 			// Categoría acertada: 8
/* 196 */ 					[0,0,0,0,0,0,0,0,18,18,0,36,36], 			// Categoría acertada: 9
/* 197 */ 					[0,0,0,0,0,0,0,0,0,36,0,0,72], 			// Categoría acertada: 10
/* 198 */ 					[0,0,0,0,0,0,0,0,0,0,15,0,0], 			// Categoría acertada: 11
/* 199 */ 					[0,0,0,0,0,0,0,0,0,0,0,30,30], 			// Categoría acertada: 12
/* 200 */ 					[0,0,0,0,0,0,0,0,0,0,0,0,60]],			// Categoría acertada: 13

/* config.js */

/* 201 */ 				[210,							// COMBINACIÓN DE 7 NÚMEROS + 5 ESTRELLAS
/* 202 */ 					[1,6,3,10,60,30,10,0,60,30,0,0,0], 		// Categoría acertada: 1
/* 203 */ 					[0,4,6,0,40,60,0,0,40,60,0,0,0], 			// Categoría acertada: 2
/* 204 */ 					[0,0,10,0,0,100,0,0,0,100,0,0,0], 			// Categoría acertada: 3
/* 205 */ 					[0,0,0,3,18,9,12,6,72,36,0,36,18], 		// Categoría acertada: 4
/* 206 */ 					[0,0,0,0,12,18,0,0,48,72,0,24,36], 		// Categoría acertada: 5
/* 207 */ 					[0,0,0,0,0,30,0,0,0,120,0,0,60], 			// Categoría acertada: 6
/* 208 */ 					[0,0,0,0,0,0,6,12,36,18,3,72,36], 			// Categoría acertada: 7
/* 209 */ 					[0,0,0,0,0,0,0,10,0,0,10,60,30], 			// Categoría acertada: 8
/* 210 */ 					[0,0,0,0,0,0,0,0,24,36,0,48,72], 			// Categoría acertada: 9
/* 211 */ 					[0,0,0,0,0,0,0,0,0,60,0,0,120], 			// Categoría acertada: 10
/* 212 */ 					[0,0,0,0,0,0,0,0,0,0,15,0,0], 			// Categoría acertada: 11
/* 213 */ 					[0,0,0,0,0,0,0,0,0,0,0,40,60], 			// Categoría acertada: 12
/* 214 */ 					[0,0,0,0,0,0,0,0,0,0,0,0,100]]], 			// Categoría acertada: 13	
/* 215 */ 		  [0,0,[56,								// COMBINACIÓN DE 8 NÚMEROS + 2 ESTRELLAS
/* 216 */ 					[1,0,0,15,0,0,30,10,0,0,0,0,0], 			// Categoría acertada: 1
/* 217 */ 					[0,1,0,0,15,0,0,0,30,0,0,10,0], 			// Categoría acertada: 2
/* 218 */ 					[0,0,1,0,0,15,0,0,0,30,0,0,10], 			// Categoría acertada: 3
/* 219 */ 					[0,0,0,4,0,0,24,24,0,0,4,0,0], 			// Categoría acertada: 4
/* 220 */ 					[0,0,0,0,4,0,0,0,24,0,0,24,0], 			// Categoría acertada: 5
/* 221 */ 					[0,0,0,0,0,4,0,0,0,24,0,0,24], 			// Categoría acertada: 6
/* 222 */ 					[0,0,0,0,0,0,10,30,0,0,15,0,0], 			// Categoría acertada: 7
/* 223 */ 					[0,0,0,0,0,0,0,20,0,0,30,0,0], 			// Categoría acertada: 8
/* 224 */ 					[0,0,0,0,0,0,0,0,10,0,0,30,0], 			// Categoría acertada: 9
/* 225 */ 					[0,0,0,0,0,0,0,0,0,10,0,0,30], 			// Categoría acertada: 10
/* 226 */ 					[0,0,0,0,0,0,0,0,0,0,35,0,0], 			// Categoría acertada: 11
/* 227 */ 					[0,0,0,0,0,0,0,0,0,0,0,20,0], 			// Categoría acertada: 12
/* 228 */ 					[0,0,0,0,0,0,0,0,0,0,0,0,20]],			// Categoría acertada: 13
/* 229 */ 				[168,							// COMBINACIÓN DE 8 NÚMEROS  + 3 ESTRELLAS
/* 230 */ 					[1,2,0,15,30,0,30,10,60,0,0,20,0], 		// Categoría acertada: 1
/* 231 */ 					[0,2,1,0,30,15,0,0,60,30,0,20,10], 		// Categoría acertada: 2
/* 232 */ 					[0,0,3,0,0,45,0,0,0,90,0,0,30], 			// Categoría acertada: 3
/* 233 */ 					[0,0,0,4,8,0,24,24,48,0,4,48,0], 			// Categoría acertada: 4
/* 234 */ 					[0,0,0,0,8,4,0,0,48,24,0,48,24], 			// Categoría acertada: 5
/* 235 */ 					[0,0,0,0,0,12,0,0,0,72,0,0,72], 			// Categoría acertada: 6
/* 236 */ 					[0,0,0,0,0,0,10,30,20,0,15,60,0], 			// Categoría acertada: 7
/* 237 */ 					[0,0,0,0,0,0,0,20,0,0,30,40,0], 			// Categoría acertada: 8
/* 238 */ 					[0,0,0,0,0,0,0,0,20,10,0,60,30], 			// Categoría acertada: 9
/* 239 */ 					[0,0,0,0,0,0,0,0,0,30,0,0,90], 			// Categoría acertada: 10
/* 240 */ 					[0,0,0,0,0,0,0,0,0,0,35,0,0], 			// Categoría acertada: 11
/* 241 */ 					[0,0,0,0,0,0,0,0,0,0,0,40,20], 			// Categoría acertada: 12
/* 242 */ 					[0,0,0,0,0,0,0,0,0,0,0,0,60]],			// Categoría acertada: 13
/* 243 */ 				[336,							// COMBINACIÓN DE 8 NÚMEROS  + 4 ESTRELLAS
/* 244 */ 					[1,4,1,15,60,15,30,10,120,30,0,40,10], 		// Categoría acertada: 1
/* 245 */ 					[0,3,3,0,45,45,0,0,90,90,0,30,30], 		// Categoría acertada: 2
/* 246 */ 					[0,0,6,0,0,90,0,0,0,180,0,0,60], 			// Categoría acertada: 3
/* 247 */ 					[0,0,0,4,16,4,24,24,96,24,4,96,24], 		// Categoría acertada: 4
/* 248 */ 					[0,0,0,0,12,12,0,0,72,72,0,72,72], 		// Categoría acertada: 5
/* 249 */ 					[0,0,0,0,0,24,0,0,0,144,0,0,144], 			// Categoría acertada: 6
/* 250 */ 					[0,0,0,0,0,0,10,30,40,10,15,120,30], 		// Categoría acertada: 7

/* config.js */

/* 251 */ 					[0,0,0,0,0,0,0,20,0,0,30,80,20], 			// Categoría acertada: 8
/* 252 */ 					[0,0,0,0,0,0,0,0,30,30,0,90,90], 			// Categoría acertada: 9
/* 253 */ 					[0,0,0,0,0,0,0,0,0,60,0,0,180], 			// Categoría acertada: 10
/* 254 */ 					[0,0,0,0,0,0,0,0,0,0,35,0,0], 			// Categoría acertada: 11
/* 255 */ 					[0,0,0,0,0,0,0,0,0,0,0,60,60], 			// Categoría acertada: 12
/* 256 */ 					[0,0,0,0,0,0,0,0,0,0,0,0,120]],			// Categoría acertada: 13
/* 257 */ 				[560,							// COMBINACIÓN DE 8 NÚMEROS  + 5 ESTRELLAS
/* 258 */ 					[1,6,3,15,90,45,30,10,180,90,0,60,30], 		// Categoría acertada: 1
/* 259 */ 					[0,4,6,0,60,90,0,0,120,180,0,40,60], 		// Categoría acertada: 2
/* 260 */ 					[0,0,10,0,0,150,0,0,0,300,0,0,100], 		// Categoría acertada: 3
/* 261 */ 					[0,0,0,4,24,12,24,24,144,72,4,144,72], 		// Categoría acertada: 4
/* 262 */ 					[0,0,0,0,16,24,0,0,96,144,0,96,144], 		// Categoría acertada: 5
/* 263 */ 					[0,0,0,0,0,40,0,0,0,240,0,0,240], 			// Categoría acertada: 6
/* 264 */ 					[0,0,0,0,0,0,10,30,60,30,15,180,90], 		// Categoría acertada: 7
/* 265 */ 					[0,0,0,0,0,0,0,20,0,0,30,120,60], 			// Categoría acertada: 8
/* 266 */ 					[0,0,0,0,0,0,0,0,40,60,0,120,180], 		// Categoría acertada: 9
/* 267 */ 					[0,0,0,0,0,0,0,0,0,100,0,0,300], 			// Categoría acertada: 10
/* 268 */ 					[0,0,0,0,0,0,0,0,0,0,35,0,0], 			// Categoría acertada: 11
/* 269 */ 					[0,0,0,0,0,0,0,0,0,0,0,80,120], 			// Categoría acertada: 12
/* 270 */ 					[0,0,0,0,0,0,0,0,0,0,0,0,200]]],			// Categoría acertada: 13
/* 271 */ 		  [0,0,[126,								// COMBINACIÓN DE 9 NÚMEROS + 2 ESTRELLAS
/* 272 */ 					[1,0,0,20,0,0,60,40,0,0,5,0,0], 			// Categoría acertada: 1
/* 273 */ 					[0,1,0,0,20,0,0,0,60,0,0,40,0], 			// Categoría acertada: 2
/* 274 */ 					[0,0,1,0,0,20,0,0,0,60,0,0,40], 			// Categoría acertada: 3
/* 275 */ 					[0,0,0,5,0,0,40,60,0,0,20,0,0], 			// Categoría acertada: 4
/* 276 */ 					[0,0,0,0,5,0,0,0,40,0,0,60,0], 			// Categoría acertada: 5
/* 277 */ 					[0,0,0,0,0,5,0,0,0,40,0,0,60], 			// Categoría acertada: 6
/* 278 */ 					[0,0,0,0,0,0,15,60,0,0,45,0,0], 			// Categoría acertada: 7
/* 279 */ 					[0,0,0,0,0,0,0,35,0,0,70,0,0], 			// Categoría acertada: 8
/* 280 */ 					[0,0,0,0,0,0,0,0,15,0,0,60,0], 			// Categoría acertada: 9
/* 281 */ 					[0,0,0,0,0,0,0,0,0,15,0,0,60], 			// Categoría acertada: 10
/* 282 */ 					[0,0,0,0,0,0,0,0,0,0,70,0,0], 			// Categoría acertada: 11
/* 283 */ 					[0,0,0,0,0,0,0,0,0,0,0,35,0], 			// Categoría acertada: 12
/* 284 */ 					[0,0,0,0,0,0,0,0,0,0,0,0,35]],			// Categoría acertada: 13
/* 285 */ 				[378,							// COMBINACIÓN DE 9 NÚMEROS + 3 ESTRELLAS
/* 286 */ 					[1,2,0,20,40,0,60,40,120,0,5,80,0], 		// Categoría acertada: 1
/* 287 */ 					[0,2,1,0,40,20,0,0,120,60,0,80,40], 		// Categoría acertada: 2
/* 288 */ 					[0,0,3,0,0,60,0,0,0,180,0,0,120], 			// Categoría acertada: 3
/* 289 */ 					[0,0,0,5,10,0,40,60,80,0,20,120,0], 		// Categoría acertada: 4
/* 290 */ 					[0,0,0,0,10,5,0,0,80,40,0,120,60], 		// Categoría acertada: 5
/* 291 */ 					[0,0,0,0,0,15,0,0,0,120,0,0,180], 			// Categoría acertada: 6
/* 292 */ 					[0,0,0,0,0,0,15,60,30,0,45,120,0], 		// Categoría acertada: 7
/* 293 */ 					[0,0,0,0,0,0,0,35,0,0,70,70,0], 			// Categoría acertada: 8
/* 294 */ 					[0,0,0,0,0,0,0,0,30,15,0,120,60], 			// Categoría acertada: 9
/* 295 */ 					[0,0,0,0,0,0,0,0,0,45,0,0,180], 			// Categoría acertada: 10
/* 296 */ 					[0,0,0,0,0,0,0,0,0,0,70,0,0], 			// Categoría acertada: 11
/* 297 */ 					[0,0,0,0,0,0,0,0,0,0,0,70,35], 			// Categoría acertada: 12
/* 298 */ 					[0,0,0,0,0,0,0,0,0,0,0,0,105]],			// Categoría acertada: 13
/* 299 */ 				[756,							// COMBINACIÓN DE 9 NÚMEROS + 4 ESTRELLAS
/* 300 */ 					[1,4,1,20,80,20,60,40,240,60,5,160,40], 		// Categoría acertada: 1

/* config.js */

/* 301 */ 					[0,3,3,0,60,60,0,0,180,180,0,120,120], 		// Categoría acertada: 2
/* 302 */ 					[0,0,6,0,0,120,0,0,0,360,0,0,240], 		// Categoría acertada: 3
/* 303 */ 					[0,0,0,5,20,5,40,60,160,40,20,240,60], 		// Categoría acertada: 4
/* 304 */ 					[0,0,0,0,15,15,0,0,120,120,0,180,180], 		// Categoría acertada: 5
/* 305 */ 					[0,0,0,0,0,30,0,0,0,240,0,0,360], 			// Categoría acertada: 6
/* 306 */ 					[0,0,0,0,0,0,15,60,60,15,45,240,60], 		// Categoría acertada: 7
/* 307 */ 					[0,0,0,0,0,0,0,35,0,0,70,140,35], 			// Categoría acertada: 8
/* 308 */ 					[0,0,0,0,0,0,0,0,45,45,0,180,180], 		// Categoría acertada: 9
/* 309 */ 					[0,0,0,0,0,0,0,0,0,90,0,0,360], 			// Categoría acertada: 10
/* 310 */ 					[0,0,0,0,0,0,0,0,0,0,70,0,0], 			// Categoría acertada: 11
/* 311 */ 					[0,0,0,0,0,0,0,0,0,0,0,105,105], 			// Categoría acertada: 12
/* 312 */ 					[0,0,0,0,0,0,0,0,0,0,0,0,210]],			// Categoría acertada: 13
/* 313 */ 				[1260,							// COMBINACIÓN DE 9 NÚMEROS + 5 ESTRELLAS
/* 314 */ 					[1,6,3,20,120,60,60,40,360,180,5,240,120], 	// Categoría acertada: 1
/* 315 */ 					[0,4,6,0,80,120,0,0,240,360,0,160,240], 		// Categoría acertada: 2
/* 316 */ 					[0,0,10,0,0,200,0,0,0,600,0,0,400], 		// Categoría acertada: 3
/* 317 */ 					[0,0,0,5,30,15,40,60,240,120,20,360,180], 		// Categoría acertada: 4
/* 318 */ 					[0,0,0,0,20,30,0,0,160,240,0,240,360], 		// Categoría acertada: 5
/* 319 */ 					[0,0,0,0,0,50,0,0,0,400,0,0,600], 			// Categoría acertada: 6
/* 320 */ 					[0,0,0,0,0,0,15,60,90,45,45,360,180], 		// Categoría acertada: 7
/* 321 */ 					[0,0,0,0,0,0,0,35,0,0,70,210,105], 		// Categoría acertada: 8
/* 322 */ 					[0,0,0,0,0,0,0,0,60,90,0,240,360], 		// Categoría acertada: 9
/* 323 */ 					[0,0,0,0,0,0,0,0,0,150,0,0,600], 			// Categoría acertada: 10
/* 324 */ 					[0,0,0,0,0,0,0,0,0,0,70,0,0], 			// Categoría acertada: 11
/* 325 */ 					[0,0,0,0,0,0,0,0,0,0,0,140,210], 			// Categoría acertada: 12
/* 326 */ 					[0,0,0,0,0,0,0,0,0,0,0,0,350]]],			// Categoría acertada: 13
/* 327 */ 		  [0,0,[252,								// COMBINACIÓN DE 10 NÚMEROS + 2 ESTRELLAS
/* 328 */ 					[1,0,0,25,0,0,100,100,0,0,25,0,0], 		// Categoría acertada: 1
/* 329 */ 					[0,1,0,0,25,0,0,0,100,0,0,100,0], 			// Categoría acertada: 2
/* 330 */ 					[0,0,1,0,0,25,0,0,0,100,0,0,100], 			// Categoría acertada: 3
/* 331 */ 					[0,0,0,6,0,0,60,120,0,0,60,0,0], 			// Categoría acertada: 4
/* 332 */ 					[0,0,0,0,6,0,0,0,60,0,0,120,0], 			// Categoría acertada: 5
/* 333 */ 					[0,0,0,0,0,6,0,0,0,60,0,0,120], 			// Categoría acertada: 6
/* 334 */ 					[0,0,0,0,0,0,21,105,0,0,105,0,0], 			// Categoría acertada: 7
/* 335 */ 					[0,0,0,0,0,0,0,56,0,0,140,0,0], 			// Categoría acertada: 8
/* 336 */ 					[0,0,0,0,0,0,0,0,21,0,0,105,0], 			// Categoría acertada: 9
/* 337 */ 					[0,0,0,0,0,0,0,0,0,21,0,0,105], 			// Categoría acertada: 10
/* 338 */ 					[0,0,0,0,0,0,0,0,0,0,126,0,0], 			// Categoría acertada: 11
/* 339 */ 					[0,0,0,0,0,0,0,0,0,0,0,56,0], 			// Categoría acertada: 12
/* 340 */ 					[0,0,0,0,0,0,0,0,0,0,0,0,56]], 			// Categoría acertada: 13
/* 341 */ 				[756,							// COMBINACIÓN DE 10 NÚMEROS + 3 ESTRELLAS
/* 342 */ 					[1,2,0,25,50,0,100,100,200,0,25,200,0], 		// Categoría acertada: 1
/* 343 */ 					[0,2,1,0,50,25,0,0,200,100,0,200,100], 		// Categoría acertada: 2
/* 344 */ 					[0,0,3,0,0,75,0,0,0,300,0,0,300], 			// Categoría acertada: 3
/* 345 */ 					[0,0,0,6,12,0,60,120,120,0,60,240,0], 		// Categoría acertada: 4
/* 346 */ 					[0,0,0,0,12,6,0,0,120,60,0,240,120], 		// Categoría acertada: 5
/* 347 */ 					[0,0,0,0,0,18,0,0,0,180,0,0,360], 			// Categoría acertada: 6
/* 348 */ 					[0,0,0,0,0,0,21,105,42,0,105,210,0], 		// Categoría acertada: 7
/* 349 */ 					[0,0,0,0,0,0,0,56,0,0,140,112,0], 			// Categoría acertada: 8
/* 350 */ 					[0,0,0,0,0,0,0,0,42,21,0,210,105], 		// Categoría acertada: 9

/* config.js */

/* 351 */ 					[0,0,0,0,0,0,0,0,0,63,0,0,315], 			// Categoría acertada: 10
/* 352 */ 					[0,0,0,0,0,0,0,0,0,0,126,0,0], 			// Categoría acertada: 11
/* 353 */ 					[0,0,0,0,0,0,0,0,0,0,0,112,56], 			// Categoría acertada: 12
/* 354 */ 					[0,0,0,0,0,0,0,0,0,0,0,0,168]], 			// Categoría acertada: 13
/* 355 */ 				[1512,							// COMBINACIÓN DE 10 NÚMEROS + 4 ESTRELLAS
/* 356 */ 					[1,4,1,25,100,25,100,100,400,100,25,400,100], 	// Categoría acertada: 1
/* 357 */ 					[0,3,3,0,75,75,0,0,300,300,0,300,300], 		// Categoría acertada: 2
/* 358 */ 					[0,0,6,0,0,150,0,0,0,600,0,0,600], 		// Categoría acertada: 3
/* 359 */ 					[0,0,0,6,24,6,60,120,240,60,60,480,120], 		// Categoría acertada: 4
/* 360 */ 					[0,0,0,0,18,18,0,0,180,180,0,360,360], 		// Categoría acertada: 5
/* 361 */ 					[0,0,0,0,0,36,0,0,0,360,0,0,720], 			// Categoría acertada: 6
/* 362 */ 					[0,0,0,0,0,0,21,105,84,21,105,420,105], 		// Categoría acertada: 7
/* 363 */ 					[0,0,0,0,0,0,0,56,0,0,140,224,56], 		// Categoría acertada: 8
/* 364 */ 					[0,0,0,0,0,0,0,0,63,63,0,315,315], 		// Categoría acertada: 9
/* 365 */ 					[0,0,0,0,0,0,0,0,0,126,0,0,630], 			// Categoría acertada: 10
/* 366 */ 					[0,0,0,0,0,0,0,0,0,0,126,0,0], 			// Categoría acertada: 11
/* 367 */ 					[0,0,0,0,0,0,0,0,0,0,0,168,168], 			// Categoría acertada: 12
/* 368 */ 					[0,0,0,0,0,0,0,0,0,0,0,0,336]], 			// Categoría acertada: 13
/* 369 */ 				[2520,							// COMBINACIÓN DE 10 NÚMEROS + 5 ESTRELLAS
/* 370 */ 					[1,6,3,25,150,75,100,100,600,300,25,600,300], 	// Categoría acertada: 1
/* 371 */ 					[0,4,6,0,100,150,0,0,400,600,0,400,600], 		// Categoría acertada: 2
/* 372 */ 					[0,0,10,0,0,250,0,0,0,1000,0,0,1000], 		// Categoría acertada: 3
/* 373 */ 					[0,0,0,6,36,18,60,120,360,180,60,720,360], 	// Categoría acertada: 4
/* 374 */ 					[0,0,0,0,24,36,0,0,240,360,0,480,720], 		// Categoría acertada: 5
/* 375 */ 					[0,0,0,0,0,60,0,0,0,600,0,0,1200], 		// Categoría acertada: 6
/* 376 */ 					[0,0,0,0,0,0,21,105,126,63,105,630,315], 		// Categoría acertada: 7
/* 377 */ 					[0,0,0,0,0,0,0,56,0,0,140,336,168], 		// Categoría acertada: 8
/* 378 */ 					[0,0,0,0,0,0,0,0,84,126,0,420,630], 		// Categoría acertada: 9
/* 379 */ 					[0,0,0,0,0,0,0,0,0,210,0,0,1050], 			// Categoría acertada: 10
/* 380 */ 					[0,0,0,0,0,0,0,0,0,0,126,0,0], 			// Categoría acertada: 11
/* 381 */ 					[0,0,0,0,0,0,0,0,0,0,0,224,336], 			// Categoría acertada: 12
/* 382 */ 					[0,0,0,0,0,0,0,0,0,0,0,0,560]]] 			// Categoría acertada: 13
/* 383 */ 
/* 384 */ 	];
/* 385 */ 	
/* 386 */ 	

;
/* core.js */

/* 1   */ /**
/* 2   *|  * combinacionganadora Javascript Source Code
/* 3   *|  */
/* 4   */ 
/* 5   */ //función getElement, devuelve un objeto de jquery que representa el elemento html, tanto si recibe su id como el objeto en sí
/* 6   */ function getElement(element){
/* 7   */ 	if((typeof(element)).toLowerCase() == 'string')//elemento o id del elemento
/* 8   */ 		element = $('#'+element);
/* 9   */ 	return element;
/* 10  */ }
/* 11  */ function msgAlertUser(text){
/* 12  */ 	alert(text);
/* 13  */ }
/* 14  */ //gestion de cookies
/* 15  */ function getCookie(c_name){
/* 16  */ 	if (document.cookie.length>0){
/* 17  */ 		var c_start = document.cookie.indexOf(c_name + "=");
/* 18  */ 		if (c_start != -1){
/* 19  */ 			c_start = c_start + c_name.length + 1;
/* 20  */ 			var c_end = document.cookie.indexOf(";",c_start);
/* 21  */ 			if(c_end == -1) c_end=document.cookie.length;
/* 22  */ 			return unescape(document.cookie.substring(c_start,c_end));
/* 23  */ 		}
/* 24  */ 	}
/* 25  */ 	return "";
/* 26  */ }
/* 27  */ 
/* 28  */ function setCookie(c_name,value,expiredays){
/* 29  */ 	var exdate = new Date();
/* 30  */ 	exdate.setDate(exdate.getDate()+expiredays);
/* 31  */ 	document.cookie = c_name + "=" + escape(value) + ((expiredays == null) ? "" : ";expires=" + exdate.toUTCString() + ";path=/;domain=.combinacionganadora.com");
/* 32  */ }
/* 33  */ 
/* 34  */ function eraseCookie(c_name) {
/* 35  */ 	setCookie(c_name,"",-1);
/* 36  */ }
/* 37  */ //esta funcion hace que los textareas y otros elementos, crezcan dinÃ¡micamente conforme se les escribe contenido. Acepta un array de elementos o un elemento solo
/* 38  */ function dynaHeight(element,options){
/* 39  */ 	element = getElement(element);
/* 40  */ 	var fitOnInit = (options && options.fitOnInit==true) ? true : false;//false por defecto, si true: pone un alto en px en el momento de inicializarse
/* 41  */ 	$(element).each(function(index,elem){
/* 42  */ 		$(elem).keyup(function(){
/* 43  */ 			if(!isIE)
/* 44  */ 				$(this).css({'height':'auto'});
/* 45  */ 			$(this).css({'height':this.scrollHeight+'px'});
/* 46  */ 			//ie8RefeshHack();
/* 47  */ 		});
/* 48  */ 		if(fitOnInit)
/* 49  */ 			$(elem).keyup();
/* 50  */ 	});

/* core.js */

/* 51  */ }
/* 52  */ //cuando hace focus, si tiene la clase inputPending, limpia lo que hay y le quita la clase
/* 53  */ function checkFocus(element,clean){
/* 54  */ 	if($(element).hasClass('inputPending')){
/* 55  */ 		$(element).removeClass("inputPending");
/* 56  */ 		if(clean) {
/* 57  */ 			$(element).val("");
/* 58  */ 		}
/* 59  */ 	}
/* 60  */ 	$(element).removeClass('critical');
/* 61  */ }
/* 62  */ //cambia type text por type password
/* 63  */ function changeType(field){
/* 64  */ 	if(field.type!='password'){
/* 65  */ 		var input=field;
/* 66  */ 		var input2=input.cloneNode(false);
/* 67  */ 	
/* 68  */ 		input2.value="";
/* 69  */ 		input2.type='password';
/* 70  */ 		input.parentNode.replaceChild(input2,input);
/* 71  */ 
/* 72  */ 		$(input2).focus();
/* 73  */ 		$(input2).focus();
/* 74  */ 		$(input2).css('zoom','1');//evitamos que en IE pegue salto
/* 75  */ 	}
/* 76  */ }
/* 77  */ //recibe inputs, si alguno esta checked desactiva todos, sino activa todos
/* 78  */ function checkUncheckAll(inputs){
/* 79  */ 	if($(inputs).is(':checked')){
/* 80  */ 		//alguno checked
/* 81  */ 		$(inputs).removeAttr('checked');
/* 82  */ 	}else{
/* 83  */ 		//ninguno checked
/* 84  */ 		$(inputs).attr('checked','checked');
/* 85  */ 	}
/* 86  */ }
/* 87  */ //hace submit al form si es intro
/* 88  */ function submitForm(event,form){
/* 89  */ 	if (event.keyCode) 
/* 90  */ 	    key = event.keyCode; 
/* 91  */ 	else if (event.which) 
/* 92  */ 	    key = event.which; 
/* 93  */ 	else 
/* 94  */ 	    return false; 
/* 95  */ 	
/* 96  */ 	if (key == 13){
/* 97  */ 		$(form).submit();
/* 98  */ 	}
/* 99  */ 	return true;
/* 100 */ 		

/* core.js */

/* 101 */ }
/* 102 */ //funcion que extrae los parametros get de la url
/* 103 */ function getGET(){
/* 104 */ 	   var loc = document.location.href;
/* 105 */ 	   var getString = loc.split('?')[1];
/* 106 */ 	   if(!getString) return false;
/* 107 */ 	   var GET = getString.split('&');
/* 108 */ 	   var get = {};//this object will be filled with the key-value pairs and returned.
/* 109 */ 
/* 110 */ 	   for(var i = 0, l = GET.length; i < l; i++){
/* 111 */ 	      var tmp = GET[i].split('=');
/* 112 */ 	      get[tmp[0]] = unescape(decodeURI(tmp[1]));
/* 113 */ 	   }
/* 114 */ 	   return get;
/* 115 */ 	}
/* 116 */ //funcion que comprueba si se ha clicado fuera del elemento o no
/* 117 */ function clickedOutside(e,element){ 
/* 118 */ 	var target = (e && e.target) || (e && e.srcElement); 
/* 119 */ 
/* 120 */ 	if($(target).parents('body').length == 0)//evitamos cerrar cuando el elemento no pertenece a body, pasa cuando insertamos un datePicker en un infoBalloon
/* 121 */ 		return false;
/* 122 */ 	//checkParent(target,element)?obj.style.display='none':null; 
/* 123 */ 	while(target.parentNode){
/* 124 */ 		if(target==element)
/* 125 */ 			return false;
/* 126 */ 		target=target.parentNode;
/* 127 */ 	}
/* 128 */ 	return target==element ? false : true; 
/* 129 */ }
/* 130 */ function array_search(needle, haystack) {
/* 131 */     var key = '';
/* 132 */     for (key in haystack) {
/* 133 */         if (haystack[key] == needle) {
/* 134 */             return key;
/* 135 */         }
/* 136 */     }
/* 137 */     return false;
/* 138 */ }
/* 139 */ 
/* 140 */ //funcion que coge un numero y lo parsea a euros
/* 141 */ function parseEuro(int){
/* 142 */ 	var parsed = parseFloat(int).toFixed(2);
/* 143 */ 	var intLength = parsed.substring(0,parsed.indexOf('.')).length;
/* 144 */ 	for(var i=1;i<intLength/3;i++){
/* 145 */ 		var firstSeparator = (parsed.indexOf('.') > 0) ? parsed.indexOf('.') : parsed.lastIndexOf('.');
/* 146 */ 		parsed = parsed.substring(0,firstSeparator-3)+'.'+parsed.substring(firstSeparator-3);
/* 147 */ 	}
/* 148 */ 	parsed=parsed.substring(0,parsed.lastIndexOf('.'))+','+parsed.substring(parsed.lastIndexOf('.')+1);
/* 149 */ 	return parsed;
/* 150 */ }

/* core.js */

/* 151 */ function showModal(refElement,html,options){
/* 152 */ 	refElement = getElement(refElement);
/* 153 */ 	
/* 154 */ 	var customClass = (options && options.customClass) ? options.customClass : '';
/* 155 */ 	var customId = (options && options.customId) ? options.customId : 'floatingModalContainer';
/* 156 */ 	var customInnerId = (options && options.customInnerId) ? 'id='+options.customInnerId : '';
/* 157 */ 	$('.modalOuter').remove();//eliminamos modal anterior si ya existe en pantalla
/* 158 */ 	
/* 159 */ 	var container = document.createElement('div');
/* 160 */ 	$(container).attr('id',customId)
/* 161 */ 		.addClass('modalOuter')
/* 162 */ 		.append('<div '+customInnerId+' class="modalInner '+customClass+'">'+html+'</div>')
/* 163 */ 		.append('<a href="javascript:void(null)" class="closeBt" onclick="closeInfoBalloon($(this).closest(\'.modalOuter\'));"><span class="icons_set1 icons_set1_item11"></span></a>');
/* 164 */ 	$('body').append(container);
/* 165 */ 
/* 166 */ 	if(refElement){
/* 167 */ 		var left = $(refElement).offset().left+$(refElement).innerWidth()+'px';
/* 168 */ 		var top = $(refElement).offset().top+'px';
/* 169 */ 		$(container).css({"top":top,"left":left});
/* 170 */ 	}else{
/* 171 */ 		$(container).css({
/* 172 */ 			'left':'50%',
/* 173 */ 			'margin-left':"-"+($(container).width())/2+"px",
/* 174 */ 			'top':parseInt($(window).scrollTop())+'px',
/* 175 */ 			'margin-top':($(window).height() - $(container).height())/2+"px"
/* 176 */ 		});
/* 177 */ 	}	
/* 178 */ 	if($('.overlayCurtain').length==0){
/* 179 */ 		$(document.createElement("DIV")).addClass('overlayCurtain').css('height',$(document).height()+'px').prependTo('body');
/* 180 */ 	}
/* 181 */ 	$('.ad').css({visibility:'hidden'});
/* 182 */ }
/* 183 */ 
/* 184 */ function showInfoBalloon(refElement, html, options){
/* 185 */ 	refElement = getElement(refElement);
/* 186 */ 	var alreadyExists = false;
/* 187 */ 	//si ya existe el modal asociado a ese refElement, no hacemos nada
/* 188 */ 	$('.infoBalloon').each(function(index,infoBalloon){
/* 189 */ 		if($(infoBalloon).data('refElement')==refElement ||
/* 190 */ 				($(refElement).attr('id') && $(refElement).attr('id') != "" && $(refElement).attr('id') == $($(infoBalloon).data('refElement')).attr('id'))){
/* 191 */ 			alreadyExists = true;
/* 192 */ 		}
/* 193 */ 	});
/* 194 */ 	if(!alreadyExists){
/* 195 */ 		var closeClickOutside = (options && options.closeClickOutside==false) ? false : true;
/* 196 */ 		var effectIn = (options && options.effectIn && typeof(options.effectIn)=="function") ? options.effectIn : null;
/* 197 */ 		var effectOut = (options && options.effectOut && typeof(options.effectOut)=="function") ? options.effectOut : null;
/* 198 */ 		var staticRefElement = (options && options.staticRefElement) ? options.staticRefElement : null;
/* 199 */ 		var mainClass = (options && options.balloonMainClass) ? options.balloonMainClass : "";
/* 200 */ 		var style = (options && options.balloonStyle) ? options.balloonStyle : "";		

/* core.js */

/* 201 */ 		var peakPosition = 'top';//por defecto
/* 202 */ 
/* 203 */ 		if(options && options.peakPosition=='none')
/* 204 */ 			peakPosition = 'none';
/* 205 */ 		if(options && options.peakPosition=='bottom')
/* 206 */ 			peakPosition = 'bottom';
/* 207 */ 		if(options && options.peakPosition=='right')
/* 208 */ 			peakPosition = 'right';
/* 209 */ 		if(options && options.peakPosition=='left')
/* 210 */ 			peakPosition = 'left';	
/* 211 */ 			
/* 212 */ 		if($('#floatingInfoBalloon').length > 0){
/* 213 */ 			closeInfoBalloon();//eliminamos modal anterior si ya existe en pantalla, si no tenía closeClickOutside false
/* 214 */ 		}
/* 215 */ 		var container = document.createElement('div');
/* 216 */ 		$(container)
/* 217 */ 			.addClass('infoBalloon')
/* 218 */ 			.addClass(mainClass)
/* 219 */ 			.css({
/* 220 */ 					'display':'none'//para que no se vea movimiento al colocarse horizontalmente
/* 221 */ 				})
/* 222 */ 			.append('<DIV class="infoBalloonData '+style+'"></UL>')
/* 223 */ 			.append('<span class="infoBalloonPeak '+peakPosition+'"></span>')
/* 224 */ 			.data('refElement',refElement)
/* 225 */ 			.data('closeClickOutside',closeClickOutside)
/* 226 */ 			.data('effectOut',effectOut);
/* 227 */ 		//si no se debe cerrar cuando se clique fuera, no usamos id
/* 228 */ 		if(closeClickOutside)
/* 229 */ 			$(container).attr('id','floatingInfoBalloon');
/* 230 */ 		if(html == 'static' || staticRefElement){
/* 231 */ 			//si es static se mira si existe el .infoBalloonStaticSource justo después, si no, miramos recursivamente en los padres.next()
/* 232 */ 			var temp = (staticRefElement) ? getElement(staticRefElement) : getElement(refElement);//es posible pasar como parametro el refElement del codigo 'static', para cuando se cierre el infoBalloon que vuelva al sitio original
/* 233 */ 			while($(temp).next('.infoBalloonStaticSource').length == 0 && $(temp).parent().length > 0){
/* 234 */ 				temp = $(temp).parent();
/* 235 */ 			}
/* 236 */ 			$(temp).next('.infoBalloonStaticSource').appendTo($(container).children('.infoBalloonData'));
/* 237 */ 			$(container).data('staticSourceDOMLevel',temp);
/* 238 */ 		}
/* 239 */ 		else
/* 240 */ 			$(container).children('.infoBalloonData').append(html);
/* 241 */ 		$('body').append(container);
/* 242 */ 		//place the modal
/* 243 */ 		placeInfoBalloon(refElement,container,effectIn);
/* 244 */ 		//dynaheight de contentsEditables dentro del infoballoon
/* 245 */ 		dynaHeight($(container).find('textarea.contentEditable'));
/* 246 */ 		//controlar cierre si se pasa parÃ¡metro lifeTime
/* 247 */ 		if(options && options.lifeTime){
/* 248 */ 			setTimeout(function(){closeInfoBalloon(container)},options.lifeTime);
/* 249 */ 		}
/* 250 */ 		//controlar cierre cuando se clica fuera

/* core.js */

/* 251 */ 		if(closeClickOutside){
/* 252 */ 			$('body').unbind('mousedown');
/* 253 */ 			$('body').mousedown(function(event){
/* 254 */ 				if(clickedOutside(event,refElement) && clickedOutside(event,container))
/* 255 */ 					closeInfoBalloon();
/* 256 */ 			});
/* 257 */ 		}
/* 258 */ 		//controlar resize de la ventana
/* 259 */ 		$(window).resize(function(){
/* 260 */ 			placeInfoBalloon(refElement,container,effectIn);
/* 261 */ 		});
/* 262 */ 		//evento pÃºblico refreshInfoBalloon
/* 263 */ 		$(refElement).bind('refreshInfoBalloon',function(){
/* 264 */ 			placeInfoBalloon(refElement,container,effectIn);
/* 265 */ 		});
/* 266 */ 	}
/* 267 */ }
/* 268 */ 
/* 269 */ function placeInfoBalloon(refElement,container,effectIn){
/* 270 */ 	refElement = getElement(refElement);
/* 271 */ 	var peak = $(container).find('.infoBalloonPeak');
/* 272 */ 	//una vez que sabemos el ancho del infoBalloon, lo colocamos en la pantalla
/* 273 */ 	var containerWidth=$(container).width();
/* 274 */ 	var containerHeight=$(container).height();
/* 275 */ 	if(!refElement){
/* 276 */ 		//si no tiene elemento de referencia, position fixed y centrado
/* 277 */ 		$(container).css({
/* 278 */ 			'position':'fixed',
/* 279 */ 			'top':'50%',
/* 280 */ 			'left':'50%',
/* 281 */ 			'margin-left':'-'+parseInt(containerHeight/2)+'px',
/* 282 */ 			'margin-left':'-'+parseInt(containerWidth/2)+'px'
/* 283 */ 		});
/* 284 */ 	}else{
/* 285 */ 		//colocamos
/* 286 */ 		if($(peak).hasClass('top') || $(peak).hasClass('bottom')){
/* 287 */ 			//pico arriba o abajo
/* 288 */ 			if($(peak).hasClass('top')){
/* 289 */ 				//pico arriba
/* 290 */ 				var top = $(refElement).offset().top+$(refElement).innerHeight()+20+'px';
/* 291 */ 			}else{
/* 292 */ 				//pico abajo
/* 293 */ 				var top = $(refElement).offset().top-$(refElement).innerHeight()-containerHeight-15+'px';
/* 294 */ 				if(parseInt(top) < 0){
/* 295 */ 					//queda por arriba de la pantalla, cambiamos por pico arriba
/* 296 */ 					$(peak).removeClass('bottom').addClass('top');
/* 297 */ 					top = $(refElement).offset().top+$(refElement).innerHeight()+20+'px';
/* 298 */ 				}
/* 299 */ 			}
/* 300 */ 			//dentro de ser pico top o bottom, controlamos que no salga por los lados debido al ancho del infoBalloon, usando margenes y moviendo el pico con respecto al infoBalloon

/* core.js */

/* 301 */ 			var right="";
/* 302 */ 			var left = $(refElement).offset().left+parseInt($(refElement).innerWidth()/2)+'px';
/* 303 */ 			var marginLeft='-'+parseInt(parseInt(containerWidth/2)+6)+'px';
/* 304 */ 			var peakLeft="50%";
/* 305 */ 			var peakRight="auto";
/* 306 */ 			var peakTop="";
/* 307 */ 			//comprobamos izquierda
/* 308 */ 			if(parseInt(left)-parseInt(containerWidth/2) < 5){
/* 309 */ 				marginLeft = '-'+parseInt(parseInt(left)-5)+'px';
/* 310 */ 				peakLeft=parseInt(left)+'px';
/* 311 */ 			}
/* 312 */ 			//comprobamos derecha
/* 313 */ 			if(parseInt(left)+containerWidth+parseInt(marginLeft) > window.innerWidth){
/* 314 */ 				right="5px";
/* 315 */ 				left="auto";
/* 316 */ 				marginLeft="0px";
/* 317 */ 				peakRight=window.innerWidth-($(refElement).offset().left+$(refElement).innerWidth())+25+'px';
/* 318 */ 				peakLeft="auto";
/* 319 */ 			}
/* 320 */ 		}else{
/* 321 */ 			//pico a la derecha o izquierda
/* 322 */ 			if($(peak).hasClass('right')){
/* 323 */ 				//pico a la derecha
/* 324 */ 				var left=$(refElement).offset().left - containerWidth - 30;
/* 325 */ 				if(left<0){
/* 326 */ 					//queda por la izquierda de la pantalla, cambiamos por pico a la izquierda
/* 327 */ 					$(peak).removeClass('right').addClass('left');
/* 328 */ 					left=$(refElement).offset().left + $(refElement).innerWidth() + 15;
/* 329 */ 				}
/* 330 */ 			}else{
/* 331 */ 				if($(peak).hasClass('left')){
/* 332 */ 					//pico a la izquierda
/* 333 */ 					var left=$(refElement).offset().left + $(refElement).innerWidth() + 15;
/* 334 */ 					if(left+20 > window.innerWidth){
/* 335 */ 						//queda por la derecha de la pantalla, cambiamos por pico a la derecha
/* 336 */ 						$(peak).removeClass('left').addClass('right');
/* 337 */ 						left=$(refElement).offset().left - containerWidth - 30;
/* 338 */ 					}
/* 339 */ 				}
/* 340 */ 			}
/* 341 */ 			//dentro de ser pico right o left, controlamos que no salga por arriba debido al alto del infoBalloon, usando margenes y moviendo el pico con respecto al infoBalloon
/* 342 */ 			var right="";
/* 343 */ 			var top=$(refElement).offset().top + parseInt($(refElement).height()/2) - parseInt(parseInt(containerHeight)/2);
/* 344 */ 			var marginLeft="0px";
/* 345 */ 			var peakLeft="";
/* 346 */ 			var peakRight="";
/* 347 */ 			var peakTop="";
/* 348 */ 			//comprobamos arriba
/* 349 */ 			if(parseInt(top) < 5){
/* 350 */ 				top="5px";

/* core.js */

/* 351 */ 				peakTop=$(refElement).offset().top+parseInt($(refElement).innerHeight()/2)-6+'px';
/* 352 */ 			}
/* 353 */ 		}
/* 354 */ 		//aplicamos estilos calculados
/* 355 */ 		//Si estamos dentro de una ventana modal, calculamos el offset que se desplazar al usar fixed
/* 356 */ 		$(container).css({
/* 357 */ 			'margin-left':marginLeft,
/* 358 */ 			'left':left,
/* 359 */ 			'right':right,
/* 360 */ 			'top':top
/* 361 */ 		});
/* 362 */ 		$(peak).css({
/* 363 */ 			'left':peakLeft,
/* 364 */ 			'right':peakRight,
/* 365 */ 			'top':peakTop
/* 366 */ 		});
/* 367 */ 	}
/* 368 */ 	//efecto de apariciÃ³n
/* 369 */ 	if(effectIn){
/* 370 */ 		effectIn(container);
/* 371 */ 	}else{
/* 372 */ 		$(container).show();
/* 373 */ 	}
/* 374 */ }
/* 375 */ 
/* 376 */ function closeInfoBalloon(element){
/* 377 */ 	if(element){
/* 378 */ 		var element = getElement(element);//elemento a cerrar pasado explícitamente
/* 379 */ 		if(!$(element).hasClass('infoBalloon')){
/* 380 */ 			//si el elemento pasado no es un infoBalloon, suponemos que es el refElement sobre el que se situa en pantalla
/* 381 */ 			$('.infoBalloon').each(function(index,infoBalloon){
/* 382 */ 				if($(infoBalloon).data('refElement')[0] == element[0])
/* 383 */ 					element = infoBalloon;
/* 384 */ 			});
/* 385 */ 		}
/* 386 */ 	}else
/* 387 */ 		var element = $('#floatingInfoBalloon');//cerramos elemento con id generico de infoBalloon
/* 388 */ 	var refElement = $(element).data('refElement');
/* 389 */ 	//lanzamos evento de cierre beforeClosed
/* 390 */ 	$('body').trigger('infoBalloonBeforeClosed',refElement);
/* 391 */ 	//si está definido efecto para la eliminación, lo ejecutamos
/* 392 */ 	if($(element).data('effectOut') && $(element).data('effectOut')!=null){
/* 393 */ 		$(element).data('effectOut')(element);//ejecutamos
/* 394 */ 		$(element).queue(function(){
/* 395 */ 			if($(element).find('.infoBalloonStaticSource').length > 0){
/* 396 */ 				//contenido provenía de static option, restauramos ese static donde estaba
/* 397 */ 				var staticSourceDOMLevel = $(element).data('staticSourceDOMLevel');
/* 398 */ 				if($(staticSourceDOMLevel).next('.infoBalloonStaticSource').length == 0)
/* 399 */ 					$(element).find('.infoBalloonStaticSource').insertAfter(staticSourceDOMLevel);
/* 400 */ 			}

/* core.js */

/* 401 */ 			$(element).remove();//eliminamos modal despues del efecto
/* 402 */ 			if($('.modalOuter').length == 0)
/* 403 */ 				$('.overlayCurtain').remove();
/* 404 */ 			$(this).dequeue();
/* 405 */ 			$('.ad').css({visibility:'visible'});
/* 406 */ 		});
/* 407 */ 	}else{
/* 408 */ 		$(element).fadeOut(500,function(){
/* 409 */ 			if($(element).find('.infoBalloonStaticSource').length > 0){
/* 410 */ 				//contenido provenía de static option, restauramos ese static donde estaba
/* 411 */ 				var staticSourceDOMLevel = $(element).data('staticSourceDOMLevel');
/* 412 */ 				if($(staticSourceDOMLevel).next('.infoBalloonStaticSource').length == 0)
/* 413 */ 					$(element).find('.infoBalloonStaticSource').insertAfter(staticSourceDOMLevel);
/* 414 */ 			}
/* 415 */ 			$(element).remove();//eliminamos modal despues del efecto
/* 416 */ 			if($('.modalOuter').length == 0)
/* 417 */ 				$('.overlayCurtain').remove();
/* 418 */ 			$('.ad').css({visibility:'visible'});
/* 419 */ 		});
/* 420 */ 	}
/* 421 */ 	//lanzamos evento de cierre
/* 422 */ 	$('body').trigger('infoBalloonClosed',refElement);
/* 423 */ 	//dejamos de escuchar evento refreshInfoBalloon
/* 424 */ 	$(refElement).unbind('refreshInfoBalloon');
/* 425 */ }
/* 426 */ 
/* 427 */ //funcion que elimina todos los elementos flotantes: infoBalloon y modal
/* 428 */ function closeFloatings(){
/* 429 */ 	$('.infoBalloon').add('.modalOuter').each(function(index,element){
/* 430 */ 		closeInfoBalloon(element);
/* 431 */ 	});
/* 432 */ }
/* 433 */ //inicialización de datas en inputs segun juego
/* 434 */ function initInputsData(container,game){
/* 435 */ 	container = getElement(container);
/* 436 */ 	$(container).data('game',game);
/* 437 */ 	//euromillones
/* 438 */ 	$(container).find('input').data('game',4);
/* 439 */ 	$(container).find('input:not(.star)')
/* 440 */ 		.data('maxnumber',EUROMILLIONS_MAX_NUMBER)
/* 441 */ 		.data('minnumber',EUROMILLIONS_MIN_NUMBER)
/* 442 */ 		.data('maxLikeThisSelector','input.dev_multiple:not(.star)')
/* 443 */ 		.data('maxLikeThisCount',EUROMILLIONS_MAX_NUMBERS_COUNT)
/* 444 */ 		.data('minLikeThisSelector','input.dev_multiple:not(.star)')
/* 445 */ 		.data('minLikeThisCount',EUROMILLIONS_MIN_NUMBERS_COUNT);
/* 446 */ 	$(container).find('input.star')
/* 447 */ 		.data('maxnumber',EUROMILLIONS_MAX_STAR)
/* 448 */ 		.data('minnumber',EUROMILLIONS_MIN_STAR)
/* 449 */ 		.data('maxLikeThisSelector','input.dev_multiple.star')
/* 450 */ 		.data('maxLikeThisCount',EUROMILLIONS_MAX_STARS_COUNT)

/* core.js */

/* 451 */ 		.data('minLikeThisSelector','input.dev_multiple.star')
/* 452 */ 		.data('minLikeThisCount',EUROMILLIONS_MIN_STARS_COUNT);
/* 453 */ 	$('#playTheseNumbersButton').addClass('disabled');
/* 454 */ }
/* 455 */ //muestra modal para comprobar numeros, dado un sorteo
/* 456 */ function showCheckNumbersModal(game,json){
/* 457 */ 	var refreshForPrizes = false;
/* 458 */ 	if(!json){
/* 459 */ 		//primera llamada, obtenemos datos de variable de template
/* 460 */ 		json = $('#main').data('json'+game);
/* 461 */ 		refreshForPrizes = true;
/* 462 */ 	}else{
/* 463 */ 		//llamada de refresco, leemos escrutinio para posterior uso
/* 464 */ 		$('#main').data('prizes'+game,json.escrutinio);
/* 465 */ 		$('#main').data('json'+game,json);
/* 466 */ 	}
/* 467 */ 	var customInnerId = null;
/* 468 */ 	var combinacion = json.combinacion;
/* 469 */ 	showModal(null,f_modalCheckNumbers(game,{prev:json.fechaf_ant,current:json.fechastr_corta,next:json.fechaf_pos,temporada:json.temporada,jornada:json.jornada},combinacion),{customId:'modalCheckBet',customInnerId:customInnerId});				
/* 470 */ 	$('.dev_myBetsContainer').append(f_modalNewLine(game,'single',1));
/* 471 */ 	initInputsData($('#myBetsPane'),game);
/* 472 */ 	if(refreshForPrizes){
/* 473 */ 		//si es primera llamada, necesitamos refrescar una vez para obtener escrutinio, pues sería muy pesado tenerlos todos al principio
/* 474 */ 		$('#main').data('prizes'+game,false);
/* 475 */ 		var param = '&fecha='+json.fechaf;
/* 476 */ 		refreshCheckNumbers(game,param,false);
/* 477 */ 	}
/* 478 */ }
/* 479 */ //actualiza el modal de check numbers con una fecha dada
/* 480 */ function refreshCheckNumbers(game,dateParam,showLoading){
/* 481 */ 	if(showLoading){
/* 482 */ 		var height = $('#modalCheckBet .panelsContainer').height()+'px';
/* 483 */ 		$('#modalCheckBet .panelsContainer').height(height).html('Cargando...');
/* 484 */ 	}
/* 485 */ 	$.ajax({
/* 486 */         url: "http://www.combinacionganadora.com/data/?tipo="+game+dateParam,
/* 487 */         dataType: 'jsonp',
/* 488 */         success: function(data) {
/* 489 */ 			if(data.status && data.status=='ok'){
/* 490 */ 				showCheckNumbersModal(game,data.data);
/* 491 */ 			}else{
/* 492 */ 				msgAlertUser(data.error);
/* 493 */ 			}
/* 494 */         }
/* 495 */     });
/* 496 */ }
/* 497 */ //dada una combinación, mira en el escrutinio y devuelve premio total
/* 498 */ function checkPrizes(inputElem,game){
/* 499 */ 	//comprobamos si ya tenemos datos de escrutinio
/* 500 */ 	if($('#main').data('prizes'+game)){

/* core.js */

/* 501 */ 		closeInfoBalloon();
/* 502 */ 		var className = ($(inputElem).hasClass('dev_single')) ? 'dev_single' : 'dev_multiple';
/* 503 */ 		var valid = true;
/* 504 */ 		var liContainer = $(inputElem).parent();
/* 505 */ 		$(liContainer).children('.'+className).removeClass('winning');
/* 506 */ 		$('#prizesDetails').hide();
/* 507 */ 		//comprobamos que se ha rellenado lo minimo de una apuesta simple
/* 508 */ 		var numbersCount = $(liContainer).children('.'+className+':not(.star)[value!=""]').length;
/* 509 */ 		if(numbersCount < EUROMILLIONS_MIN_NUMBERS_COUNT){
/* 510 */ 			//no hay suficientes numeros
/* 511 */ 			valid = false;
/* 512 */ 		}else{
/* 513 */ 			//comprobamos estrellas minimas
/* 514 */ 			var starsCount = $(liContainer).children('.'+className+'.star[value!=""]').length;
/* 515 */ 			if(starsCount < EUROMILLIONS_MIN_STARS_COUNT){
/* 516 */ 				//no hay suficientes estrellas
/* 517 */ 				valid = false;
/* 518 */ 			}
/* 519 */ 		}
/* 520 */ 		if(!valid){
/* 521 */ 			//reseteamos EUR
/* 522 */ 			$(inputElem).siblings('.fld_betPrize').removeClass('dev_validBet').html('-.-- <strong>EUR</strong>');
/* 523 */ 			if($('.dev_myBetsContainer .fld_betPrize.dev_validBet').length==0)
/* 524 */ 				$('#playTheseNumbersButton').addClass('disabled');
/* 525 */ 		}else{
/* 526 */ 			//comprobamos con escrutinio
/* 527 */ 			$('#playTheseNumbersButton').removeClass('disabled');
/* 528 */ 			var prizesTable = $('#main').data('prizes'+game);
/* 529 */ 			$(liContainer).children('.'+className+':not(.star)').each(function(index,number){
/* 530 */ 				$('#resultsPanel .numberBox:not(.auxiliaryNumbers) li:not(.star)').each(function(index2,number2){
/* 531 */ 					if($(number).val() == parseInt($(number2).text())){
/* 532 */ 						$(number).addClass('winning');
/* 533 */ 					}
/* 534 */ 				});
/* 535 */ 			});
/* 536 */ 			$(liContainer).children('.'+className+'.star').each(function(index,star){
/* 537 */ 				$('#resultsPanel .numberBox.auxiliaryNumbers .star').each(function(index2,star2){
/* 538 */ 					if($(star).val() == parseInt($(star2).text())){
/* 539 */ 						$(star).addClass('winning');
/* 540 */ 					}
/* 541 */ 				});
/* 542 */ 			});
/* 543 */ 			//comprobamos si hay suficientes numeros y estrellas premiados
/* 544 */ 			var winningNumbers = $(liContainer).children('.'+className+'.winning:not(.star)').length;
/* 545 */ 			var winningStars = $(liContainer).children('.'+className+'.winning.star').length;
/* 546 */ 			if(EUROMILLIONS_PRIZES[winningNumbers+'+'+winningStars]){
/* 547 */ 				//premiado
/* 548 */ 				var prizeCategory = EUROMILLIONS_PRIZES[winningNumbers+'+'+winningStars];
/* 549 */ 				if(className == 'dev_single'){
/* 550 */ 					//apuesta simple, solo mirar en escrutinio							

/* core.js */

/* 551 */ 					var prize = prizesTable['cat_'+prizeCategory];
/* 552 */ 					if(prize.premio)
/* 553 */ 						$(inputElem).siblings('.fld_betPrize').addClass('dev_validBet').html(parseEuro(prize.premio)+' <strong>EUR</strong>');
/* 554 */ 					else
/* 555 */ 						$(inputElem).siblings('.fld_betPrize').addClass('dev_validBet').html('<strong>No hubo acertantes</strong>');
/* 556 */ 				}else{
/* 557 */ 					//apuesta multiple, hay que desarrollar para sumar premios de todas las apuestas simples premiadas
/* 558 */ 					var totalPrize = 0;
/* 559 */ 					$('#prizesDetails tbody').empty();
/* 560 */ 					$('#prizesDetails').css('display','inline-block');
/* 561 */ 					$(EUROMILLIONS_MULTIPLE_DEV[numbersCount][starsCount][prizeCategory]).each(function(index,prizes){
/* 562 */ 						if(prizes && prizes>0){
/* 563 */ 							//ha ganado 'prizes' unidades de la categoria index+1
/* 564 */ 							var prize = prizesTable['cat_'+parseInt(index+1)];
/* 565 */ 							if(prize){
/* 566 */ 								if(prize.premio){
/* 567 */ 									var categoryPrize = prize.premio * prizes;
/* 568 */ 									totalPrize += categoryPrize;
/* 569 */ 									//incluimos en desglose de premios
/* 570 */ 									$('#prizesDetails tbody').append('<tr><td class="col1"><strong>'+parseInt(index+1)+'</strong> ('+EUROMILLIONS_PRIZES_NAMES[parseInt(index+1)]+')</td><td class="col2">'+prizes+'</td><td class="col3">'+parseEuro(categoryPrize)+' EUR</td></tr>');
/* 571 */ 								}else{
/* 572 */ 									$(inputElem).siblings('.fld_betPrize').addClass('dev_validBet').html('<strong>No hubo acertantes</strong>');
/* 573 */ 									return false;
/* 574 */ 								}
/* 575 */ 							}
/* 576 */ 							$(inputElem).siblings('.fld_betPrize').addClass('dev_validBet').html(parseEuro(totalPrize)+' <strong>EUR</strong>');
/* 577 */ 						}
/* 578 */ 					});
/* 579 */ 				}
/* 580 */ 			}else{
/* 581 */ 				//no premiado
/* 582 */ 				$(inputElem).siblings('.fld_betPrize').addClass('dev_validBet').html('0.00 <strong>EUR</strong>');
/* 583 */ 			}
/* 584 */ 		}
/* 585 */ 		//parseamos visualmente tabla de desglose de premios múltiples
/* 586 */ 		$('#prizesDetails tbody tr').each(function(index,tr){
/* 587 */ 			if(index%2)
/* 588 */ 				$(tr).addClass('row1');
/* 589 */ 			else
/* 590 */ 				$(tr).addClass('row0');
/* 591 */ 		});
/* 592 */ 	}else{
/* 593 */ 		//aun no tenemos el escrutinio desde PHP
/* 594 */ 		$(inputElem).siblings('.fld_betPrize').removeClass('dev_validBet').html('<strong>Cargando escrutinio...</strong>');
/* 595 */ 		$('#playTheseNumbersButton').addClass('disabled');
/* 596 */ 	}
/* 597 */ }
/* 598 */ //funcion que manda al carro de compra de hispaloto una combinacion de numeros para jugar
/* 599 */ function playTheseNumbers(){
/* 600 */ 	if($('.dev_myBetsContainer .fld_betPrize.dev_validBet').add('#quinielaLegend .fld_betPrize.dev_validBet').length>0){

/* core.js */

/* 601 */ 		//podemos jugar, hay apuesta valida
/* 602 */ 		var game = $('#myBetsPane').data('game');
/* 603 */ 		var tipo_combinacion = 1;
/* 604 */ 		var allBets='';
/* 605 */ 		$('.dev_myBetsContainer li').each(function(index,bloque){
/* 606 */ 			//ahora iteramos sobre cada input de ese li
/* 607 */ 			var bloqueBets = '';
/* 608 */ 			$(bloque).find('input.dev_single, input.dev_multiple').each(function(index2,input){
/* 609 */ 				if($(input).val()!=''){
/* 610 */ 					var dash = '';
/* 611 */ 					//caso euromillones multiple, hay que poner un guion
/* 612 */ 					if($(input).is('.dev_multiple.star') && $(input).prev('.dev_multiple.star').length == 0){
/* 613 */ 						//guion solo con primera estrella, quitamos ultima coma y añadimos guion
/* 614 */ 						bloqueBets = bloqueBets.substring(0,bloqueBets.lastIndexOf(','));
/* 615 */ 						dash='-';
/* 616 */ 					}
/* 617 */ 					bloqueBets +=dash+$(input).val()+',';
/* 618 */ 					if($(input).hasClass('dev_multiple')){
/* 619 */ 						tipo_combinacion = 2;
/* 620 */ 					}
/* 621 */ 				}
/* 622 */ 			});
/* 623 */ 			//quitamos ultima coma
/* 624 */ 			bloqueBets = bloqueBets.substring(0,bloqueBets.lastIndexOf(','));
/* 625 */ 			if(bloqueBets != ""){
/* 626 */ 				allBets += '&b'+parseInt(index+1)+'='+bloqueBets;
/* 627 */ 			}
/* 628 */ 		});
/* 629 */ 		//numero de participaciones en caso de multiple y otros parametros dependientes del tipo de juego
/* 630 */ 		window.open("https://www.hispaloto.es/euromillones/individual/?r=115&page=cg&tipo_combinacion="+tipo_combinacion+allBets,'_blank');
/* 631 */ 	}
/* 632 */ }

;
/* interface.js */

/* 1   */ function menuStates(menuElement){
/* 2   */ 	$('#menu li').removeClass('active');
/* 3   */ 	$(menuElement).addClass('active');
/* 4   */ }
/* 5   */ 
/* 6   */ function f_modalCheckNumbers(game,dates,numbers){
/* 7   */ 	if(dates && dates.prev){
/* 8   */ 		var datePrevHtml = '<a href="javascript:void(null)" onclick="refreshCheckNumbers('+game+',\'&fecha='+dates.prev+'\',true);" class="dateNavigator_btPrev"></a>';
/* 9   */ 	}else{
/* 10  */ 		var datePrevHtml = '';
/* 11  */ 	}
/* 12  */ 	if(dates && dates.current){
/* 13  */ 		var dateCurrentHtml = '<span class="dateNavigator_fldDate">'+dates.current+'</span>';
/* 14  */ 	}else{
/* 15  */ 		var dateCurrentHtml = '';
/* 16  */ 	}
/* 17  */ 	if(dates && dates.next){
/* 18  */ 		var dateNextHtml = '<a href="javascript:void(null)" onclick="refreshCheckNumbers('+game+',\'&fecha='+dates.next+'\',true);" class="dateNavigator_btNext"></a>';
/* 19  */ 	}else{
/* 20  */ 		var dateNextHtml = '';
/* 21  */ 	}
/* 22  */ 	var numbersArray = numbers.split(',');
/* 23  */ 	return '<div class="titleBlock white_30">'+
/* 24  */ 				'<div class="logos_set1 logos_set1_item3"></div>'+
/* 25  */ 				'<div class="floatingPanel left"><span class="icons_games_medium icons_games_medium_item4"></span></div>'+
/* 26  */ 			    '<div class="floatingPanel right">'+
/* 27  */ 					'<H1>Euromillones</H1>'+
/* 28  */ 				'</div>'+
/* 29  */ 			'</div>'+
/* 30  */ 			'<div class="sep_beveled"></div>'+
/* 31  */ 			'<div class="sep_shadowed"></div>'+									
/* 32  */ 			'<div class="panelsContainer">'+	
/* 33  */ 				'<div class="floatingPanel" id="resultsPanel">'+
/* 34  */ 					'<div id="resultsPanelHeader">'+
/* 35  */ 						'<div class="floatingPanel left">'+
/* 36  */ 							'<h1>Resultado del sorteo</h1>'+
/* 37  */ 						'</div>'+
/* 38  */ 						'<div class="dateNavigator">'+
/* 39  */ 							datePrevHtml+
/* 40  */ 							dateCurrentHtml+
/* 41  */ 							dateNextHtml+
/* 42  */ 						'</div>'+
/* 43  */ 					'</div>'+
/* 44  */ 					'<div>'+
/* 45  */ 					    '<ul class="numberBox">'+
/* 46  */ 					    	'<li>'+numbersArray[0]+'</li>'+
/* 47  */ 					    	'<li>'+numbersArray[1]+'</li>'+
/* 48  */ 					    	'<li>'+numbersArray[2]+'</li>'+
/* 49  */ 					    	'<li>'+numbersArray[3]+'</li>'+
/* 50  */ 					    	'<li>'+numbersArray[4]+'</li>'+

/* interface.js */

/* 51  */ 					    '</ul>'+
/* 52  */ 						'<DL class="numberBox auxiliaryNumbers">'+
/* 53  */ 							'<DT>Estrellas</DT>'+
/* 54  */ 							'<DD class="star">'+numbersArray[5]+'</DD>'+
/* 55  */ 							'<DD class="star">'+numbersArray[6]+'</DD>'+
/* 56  */ 						'</DL>'+
/* 57  */ 						'<div class="bottomMenu">'+
/* 58  */ 							'<a target="_blank" href="http://www.hispaloto.es/euromillones/individual/?r=115"><span class="icons_set1 icons_set1_item5"></span><span>Juega <strong>en el próximo sorteo</strong></span></a>'+
/* 59  */ 							'<a target="_blank" href="http://www.hispaloto.es/euromillones/club/?r=115"><span class="icons_set1 icons_set1_item6"></span><span>Juega <strong>en peña</strong></span></a>'+
/* 60  */ 							'<a target="_blank" href="http://www.hispaloto.es/euromillones/comunidad/?r=115"><span class="icons_set1 icons_set1_item7"></span><span>Organiza <strong>propia peña</strong></span></a>'+
/* 61  */ 						'</div>'+
/* 62  */ 					'</div>'+
/* 63  */ 				'</div>'+
/* 64  */ 				'<div class="floatingPanel" id="myBetsPane">'+
/* 65  */ 					'<div id="myBetsPanelHeader">'+
/* 66  */ 						'<h1>Tus combinaciones</h1>'+
/* 67  */ 						'<div class="modeSwitch">'+
/* 68  */ 							'<a class="active" href="javascript:void(null)" onclick="$(\'.dev_myBetsContainer\').html(f_modalNewLine(4,\'single\',1));initInputsData($(\'.myBetsInputBox\'),4);$(\'#prizesDetails\').hide();">Apuestas simples</a> | '+
/* 69  */ 							'<a href="javascript:void(null)" onclick="$(\'.dev_myBetsContainer\').html(f_modalNewLine(4,\'multiple\',1));initInputsData($(\'.myBetsInputBox\'),4);">Apuesta múltiple</a>'+
/* 70  */ 						'</div>'+
/* 71  */ 					'</div>'+
/* 72  */ 					'<ul class="myBetsInputBox dev_myBetsContainer"></ul>'+	
/* 73  */ 					'<div class="checkBetLegend">'+
/* 74  */ 						'<div class="floatingPanel right" id="prizesDetails">'+
/* 75  */ 							'<span class="icons_set1 icons_set1_item22"></span>'+
/* 76  */ 							'<a href="javascript:void(null)" onclick="showInfoBalloon(this,\'static\',{peakPosition:\'left\'})">ver desglose de premios</a>'+
/* 77  */ 								'<div class="infoBalloonStaticSource">'+
/* 78  */ 									'<table class="standardTable" id="prizesTable">'+
/* 79  */ 									     '<thead>'+
/* 80  */ 									     	'<tr><td class="col1">Categoría</td><td class="col2">Mis Premios</td><td class="col3">Importe</td></tr>'+
/* 81  */ 									     '</thead>'+
/* 82  */ 									     '<tbody></tbody>'+
/* 83  */ 									'</table>'+
/* 84  */ 								'</div>'+
/* 85  */ 						'</div>'+
/* 86  */ 					'</div>'+	
/* 87  */ 				'</div>'+
/* 88  */ 			'</div>'+
/* 89  */ 			'<div class="sep_beveled"></div>'+
/* 90  */ 			'<div class="buttonHolder black_30">'+
/* 91  */ 				'<a id="playTheseNumbersButton" onclick="playTheseNumbers();" href="javascript:void(null)" class="button color1 disabled"><span class="icons_set1 icons_set1_item10"></span><span>jugar esta combinación</span><span class="close"></span></a>'+
/* 92  */ 			'</div>';
/* 93  */ }
/* 94  */ function f_modalNewLine(game,type,row){
/* 95  */ 	//euromillones
/* 96  */ 	var betHTML='<LI>'+
/* 97  */ 		'<div class="sep_beveled"></div>'+
/* 98  */ 		'<span class="fld_betNo" id="">'+row+'</span>';
/* 99  */ 	if(type!='multiple'){
/* 100 */ 		//simple

/* interface.js */

/* 101 */ 		for(var i=0;i<EUROMILLIONS_MIN_NUMBERS_COUNT;i++){
/* 102 */ 			betHTML+='<input type="text" maxlength="'+new String(EUROMILLIONS_MAX_NUMBER).length+'" class="dev_single">';
/* 103 */ 		}
/* 104 */ 		for(var i=0;i<EUROMILLIONS_MIN_STARS_COUNT;i++){
/* 105 */ 			betHTML+='<input type="text" maxlength="'+new String(EUROMILLIONS_MAX_STAR).length+'" class="dev_single star">';
/* 106 */ 		}
/* 107 */ 	}else{
/* 108 */ 		//multiple
/* 109 */ 		for(var i=0;i<EUROMILLIONS_MIN_NUMBERS_COUNT;i++){
/* 110 */ 			betHTML+='<input type="text" maxlength="'+new String(EUROMILLIONS_MAX_NUMBER).length+'" class="dev_multiple">';
/* 111 */ 		}
/* 112 */ 		betHTML+='<br>';
/* 113 */ 		for(var i=0;i<EUROMILLIONS_MIN_STARS_COUNT;i++){
/* 114 */ 			betHTML+='<input type="text" maxlength="'+new String(EUROMILLIONS_MAX_STAR).length+'" class="dev_multiple star">';
/* 115 */ 		}
/* 116 */ 	}
/* 117 */ 	betHTML+='<span class="fld_betPrize">-.-- <strong>EUR</strong></span></LI>';
/* 118 */ 
/* 119 */ 	return betHTML;
/* 120 */ }

