/* Popups */
function AbrirPopUp (iNumero, fltCodigo, idOferta) {
	var sNombre = '';
	var sScroll = 'no';
	var sWidth = '450';
	var sHeight= '340';
	switch (iNumero) {
		  case 1:
			sNombre = 'autodromo/01.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		  case 2:
			sNombre = 'autodromo/02.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		 case 3:
			sNombre = 'autodromo/03.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 4:
			sNombre = 'autodromo/04.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 5:
			sNombre = 'autodromo/05.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 6:
			sNombre = 'autodromo/06.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 7:
			sNombre = 'autodromo/07.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 8:
			sNombre = 'autodromo/08.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;						
		case 9:
			sNombre = 'autodromo/09.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 10:
			sNombre = 'autodromo/10.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 17:
			sNombre = 'autodromo/17.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 18:
			sNombre = 'autodromo/18.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 19:
			sNombre = 'autodromo/19.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 20:
			sNombre = 'autodromo/20.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 21:
			sNombre = 'autodromo/21.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 22:
			sNombre = 'autodromo/22.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
	    case 23:
			sNombre = 'autodromo/23.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 24:
			sNombre = 'autodromo/24.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 25:
			sNombre = 'autodromo/25.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 26:
			sNombre = 'autodromo/26.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 27:
			sNombre = 'autodromo/27.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 28:
			sNombre = 'autodromo/28.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 29:
			sNombre = 'autodromo/29.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 30:
			sNombre = 'autodromo/30.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 31:
			sNombre = 'autodromo/31.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;		
		case 32:
			sNombre = 'autodromo/32.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;		
		case 33:
			sNombre = 'autodromo/33.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;		
		case 34:
			sNombre = 'autodromo/34.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 35:
			sNombre = 'autodromo/35.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;		
		case 36:
			sNombre = 'autodromo/36.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;		
		case 37:
			sNombre = 'autodromo/37.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;		
		case 38:
			sNombre = 'autodromo/38.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;		
		case 39:
			sNombre = 'autodromo/39.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;		
		case 40:
			sNombre = 'autodromo/40.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 41:
			sNombre = 'autodromo/41.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 42:
			sNombre = 'autodromo/42.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 43:
			sNombre = 'autodromo/43.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 44:
			sNombre = 'autodromo/44.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 45:
			sNombre = 'autodromo/45.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 46:
			sNombre = 'autodromo/46.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 47:
			sNombre = 'autodromo/47.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 48:
			sNombre = 'autodromo/48.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 49:
			sNombre = 'autodromo/49.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 50:
			sNombre = 'autodromo/50.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 51:
			sNombre = 'autodromo/51.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 52:
			sNombre = 'autodromo/52.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 53:
			sNombre = 'autodromo/53.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 54:
			sNombre = 'autodromo/54.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 55:
			sNombre = 'autodromo/55.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 56:
			sNombre = 'autodromo/56.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 57:
			sNombre = 'autodromo/57.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 58:
			sNombre = 'autodromo/58.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 59:
			sNombre = 'autodromo/59.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 60:
			sNombre = 'autodromo/60.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 61:
			sNombre = 'autodromo/61.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 62:
			sNombre = 'autodromo/62.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 63:
			sNombre = 'autodromo/63.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 64:
			sNombre = 'autodromo/64.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 65:
			sNombre = 'autodromo/65.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 66:
			sNombre = 'autodromo/66.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 67:
			sNombre = 'autodromo/67.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 68:
			sNombre = 'autodromo/68.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 69:
			sNombre = 'autodromo/69.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 70:
			sNombre = 'autodromo/70.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 71:
			sNombre = 'autodromo/71.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 72:
			sNombre = 'autodromo/72.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 73:
			sNombre = 'autodromo/73.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 74:
			sNombre = 'autodromo/74.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 75:
			sNombre = 'autodromo/75.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 76:
			sNombre = 'autodromo/76.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 77:
			sNombre = 'autodromo/77.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 78:
			sNombre = 'autodromo/78.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 79:
			sNombre = 'autodromo/79.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 80:
			sNombre = 'autodromo/80.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 81:
			sNombre = 'autodromo/81.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 82:
			sNombre = 'autodromo/82.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 83:
			sNombre = 'autodromo/83.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 84:
			sNombre = 'autodromo/84.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 85:
			sNombre = 'autodromo/85.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 86:
			sNombre = 'autodromo/86.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 87:
			sNombre = 'autodromo/87.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 88:
			sNombre = 'autodromo/88.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 89:
			sNombre = 'autodromo/89.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 90:
			sNombre = 'autodromo/90.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 91:
			sNombre = 'autodromo/91.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 92:
			sNombre = 'autodromo/92.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 93:
			sNombre = 'autodromo/93.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 94:
			sNombre = 'autodromo/94.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 95:
			sNombre = 'autodromo/95.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 96:
			sNombre = 'autodromo/96.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 97:
			sNombre = 'autodromo/97.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 98:
			sNombre = 'autodromo/98.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 99:
			sNombre = 'autodromo/99.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 102:
			sNombre = 'autodromo/102.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 103:
			sNombre = 'autodromo/103.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 104:
			sNombre = 'autodromo/104.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 105:
			sNombre = 'autodromo/105.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 106:
			sNombre = 'autodromo/106.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 107:
			sNombre = 'autodromo/107.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 108:
			sNombre = 'autodromo/108.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 109:
			sNombre = 'autodromo/109.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 110:
			sNombre = 'autodromo/110.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 111:
			sNombre = 'autodromo/111.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 112:
			sNombre = 'autodromo/112.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 113:
			sNombre = 'autodromo/113.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 114:
			sNombre = 'autodromo/114.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 115:
			sNombre = 'autodromo/115.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 116:
			sNombre = 'autodromo/116.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 117:
			sNombre = 'autodromo/117.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 118:
			sNombre = 'autodromo/118.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 119:
			sNombre = 'autodromo/119.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 120:
			sNombre = 'autodromo/120.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 121:
			sNombre = 'autodromo/121.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 122:
			sNombre = 'autodromo/122.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 123:
			sNombre = 'autodromo/123.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 124:
			sNombre = 'autodromo/124.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 125:
			sNombre = 'autodromo/125.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 126:
			sNombre = 'autodromo/126.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 127:
			sNombre = 'autodromo/127.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 128:
			sNombre = 'autodromo/128.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 129:
			sNombre = 'autodromo/129.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 130:
			sNombre = 'autodromo/130.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 131:
			sNombre = 'autodromo/131.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 132:
			sNombre = 'autodromo/132.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 133:
			sNombre = 'autodromo/133.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 134:
			sNombre = 'autodromo/134.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 135:
			sNombre = 'autodromo/135.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 136:
			sNombre = 'autodromo/136.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 137:
			sNombre = 'autodromo/137.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 138:
			sNombre = 'autodromo/138.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 139:
			sNombre = 'autodromo/139.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 140:
			sNombre = 'autodromo/140.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 141:
			sNombre = 'autodromo/141.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 142:
			sNombre = 'autodromo/142.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 143:
			sNombre = 'autodromo/143.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 144:
			sNombre = 'autodromo/144.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 145:
			sNombre = 'autodromo/145.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 146:
			sNombre = 'autodromo/146.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 147:
			sNombre = 'autodromo/147.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 148:
			sNombre = 'autodromo/148.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 149:
			sNombre = 'autodromo/149.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 150:
			sNombre = 'autodromo/150.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 151:
			sNombre = 'autodromo/151.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 152:
			sNombre = 'autodromo/152.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 153:
			sNombre = 'autodromo/153.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 154:
			sNombre = 'autodromo/154.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 155:
			sNombre = 'autodromo/155.htm';
			sScroll = 'no';
			sWidth = '300';
			sHeight = '400';
		    break;
		case 156:
			sNombre = 'promo.htm';
			sScroll = 'no';
			sWidth = '250';
			sHeight = '250';
		    break;
		case 157:
			sNombre = 'promo_bases.htm';
			sScroll = 'yes';
			sWidth = '500';
			sHeight = '450';
		    break;
		case 158:
			sNombre = 'promo_g.htm';
			sWidth = '600';
			sHeight = '406';
		    break;
}
	window.open (sNombre, 'ventana'+iNumero, 'toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars=' + sScroll + ',width=' + sWidth + ',height=' + sHeight + ',' + 'left=' + (screen.availWidth - sWidth) / 2 + ',top=' + (screen.availHeight - sHeight) / 2 + '');
}

function randomLayer(iCantidadLayers) {
	var iRandomNumber;
	var iIndex;
	var sEstadoLayer;
	
	iRandomNumber = Math.floor(Math.random()*iCantidadLayers) + 1;
	iCantidadLayers ++;
	
	setPosition(getDivStyle('nece' + iRandomNumber), 'imgpercurva',30,0);
	
	for (iIndex = 1; iIndex < iCantidadLayers; iIndex ++) {
		if (iIndex == iRandomNumber) sEstadoLayer = 'show';
		else sEstadoLayer = 'hide';
		MM_showHideLayers('nece' + iIndex,'', sEstadoLayer);
	}
}
