ï»¿/* if desktop/server/movile no longer support...put a place holder '99' or '9999' in front*/

selectArrLine = new Array();

selectArrLine[0] = "1000#$100#$Procesadores para PCs"
selectArrLine[1] = "1000#$101#$Desktop Boards"
selectArrLine[2] = "1000#$102#$Adaptadores de PCs"
selectArrLine[3] = "2000#$200#$Procesadores para Laptops"
selectArrLine[4] = "2000#$201#$Plataformas mÃ³viles"
selectArrLine[5] = "2000#$202#$Chipsets mÃ³viles"
selectArrLine[6] = "2000#$203#$Adaptadores mÃ³viles"
selectArrLine[7] = "3000#$300#$Procesadores para Servidores"
selectArrLine[8] = "3000#$301#$Placas para servidor"
selectArrLine[9] = "3000#$302#$Sistemas para servidores"
selectArrLine[10] = "3000#$303#$Chasis para servidores"
selectArrLine[11] = "3000#$304#$Controladoras RAID"
selectArrLine[12] = "3000#$305#$IntelÂ® Modular Server"
selectArrLine[13] = "3000#$306#$Sistemas de almacenamiento"


selectArrProduct = new Array();

/*New list*/
/* Desktop Processors */
selectArrProduct[0] = "100#$49#$Procesador IntelÂ® CeleronÂ® D"
selectArrProduct[1] = "100#$2841#$Procesador IntelÂ® PentiumÂ®"
selectArrProduct[2] = "100#$2308#$Procesador IntelÂ® Coreâ„¢2 Duo"
selectArrProduct[3] = "100#$2578#$Procesador IntelÂ® Coreâ„¢2 Quad"
selectArrProduct[4] = "100#$2309#$Procesador IntelÂ® Coreâ„¢2 Extreme"
selectArrProduct[5] = "100#$3059#$Procesador IntelÂ® Coreâ„¢ i7 Extreme Edition"
selectArrProduct[6] = "100#$3052#$Procesador IntelÂ® Coreâ„¢ i7"

/* Desktop Boards */
selectArrProduct[7] = "101#$2926#$Desktop Board IntelÂ® D945GCLF2"
selectArrProduct[8] = "101#$2916#$Desktop Board IntelÂ® D945GCLF"
selectArrProduct[9] = "101#$2837#$Desktop Board IntelÂ® D945GCNL"
selectArrProduct[10] = "101#$2372#$Desktop Board IntelÂ® DQ965GF"
selectArrProduct[11] = "101#$2966#$Desktop Board IntelÂ® DG31GL"
selectArrProduct[12] = "101#$2839#$Desktop Board IntelÂ® DG31PR"
selectArrProduct[13] = "101#$3058#$Desktop Board IntelÂ® DG41RQ"
selectArrProduct[14] = "101#$3030#$Desktop Board IntelÂ® DG41TY"
selectArrProduct[15] = "101#$2780#$Desktop Board IntelÂ® DG33BU"
selectArrProduct[16] = "101#$2781#$Desktop Board IntelÂ® DG33FB"
selectArrProduct[17] = "101#$2929#$Desktop Board IntelÂ® DG35EC"
selectArrProduct[18] = "101#$2784#$Desktop Board IntelÂ® DQ35MP"
selectArrProduct[19] = "101#$2783#$Desktop Board IntelÂ® DQ35JO"
selectArrProduct[20] = "101#$2782#$Desktop Board IntelÂ® DP35DP"
selectArrProduct[21] = "101#$2934#$Desktop Board IntelÂ® DQ45EK"
selectArrProduct[22] = "101#$2933#$Desktop Board IntelÂ® DQ45CB"
selectArrProduct[23] = "101#$2979#$Desktop Board IntelÂ® DG43NB"
selectArrProduct[24] = "101#$2930#$Desktop Board IntelÂ® DG45FC"
selectArrProduct[25] = "101#$2931#$Desktop Board IntelÂ® DG45ID"
selectArrProduct[26] = "101#$2980#$Desktop Board IntelÂ® DP43TF"
selectArrProduct[27] = "101#$2932#$Desktop Board IntelÂ® DP45SG"
selectArrProduct[28] = "101#$2912#$Desktop Board IntelÂ® DX48BT2"
selectArrProduct[29] = "101#$2864#$Desktop Board IntelÂ® D5400XS"
selectArrProduct[30] = "101#$3018#$Desktop Board IntelÂ® DX58SO"

/* Storage Systems */
selectArrProduct[31] = "306#$2816#$Sistema IntelÂ® de almacenamiento SSR212MC2"

/* Server chasis */
selectArrProduct[32] = "303#$2135#$Chasis de servidor de entrada SC5295-E"
selectArrProduct[33] = "303#$2486#$Chasis de servidor de entrada SC5299-E"
selectArrProduct[34] = "303#$2414#$Chasis de servidor IntelÂ® SC5400"

/* Intel® Modular Server (formely Blade Servers) */
selectArrProduct[35] = "305#$2860#$IntelÂ® Compute Module MFS5000SI"
selectArrProduct[36] = "305#$2861#$IntelÂ® Modular Server systems MFSYS25 y MFSYS35"

/* RAID Server */
selectArrProduct[37] = "304#$2501#$Controlador RAID IntelÂ® SRCSAS144E"
selectArrProduct[38] = "304#$3054#$Controlador RAID IntelÂ® SASWT4I"
selectArrProduct[39] = "304#$3053#$Controlador RAID IntelÂ® SASUC8I"
selectArrProduct[40] = "304#$2972#$Controlador RAID IntelÂ® SASMF8I"
selectArrProduct[41] = "304#$2858#$Controlador RAID IntelÂ® SRCSATAWB"
selectArrProduct[42] = "304#$2970#$Controlador RAID IntelÂ® SRCSASLS4I"
selectArrProduct[43] = "304#$2857#$Controlador RAID IntelÂ® SRCSASRB"
selectArrProduct[44] = "304#$2969#$Controlador RAID IntelÂ® SRCSASBB8I"
selectArrProduct[45] = "304#$2856#$Controlador RAID IntelÂ® SRCSASJV"
selectArrProduct[46] = "304#$2971#$Controlador RAID IntelÂ® SRCSASPH16I"

/* Server Systems */
selectArrProduct[47] = "302#$2867#$IntelÂ® 4-Processor Server System S7000FC4UR"
selectArrProduct[48] = "302#$2872#$Sistema para servidor IntelÂ® SR1520ML"
selectArrProduct[49] = "302#$2487#$Sistema para servidores IntelÂ® SR2520SAF, SR2520SAS y SR2520SASX"
selectArrProduct[50] = "302#$2801#$Sistema para servidores IntelÂ® SR1530CL, SR1530HCL, y SR1530HCLS"
selectArrProduct[51] = "302#$2834#$Sistema para servidores IntelÂ® SR1530AH, SR1530AHLX, y SR1530HAHLX"
selectArrProduct[52] = "302#$2850#$Sistema para servidor IntelÂ® SR1560SF"

/* Server Boards */
selectArrProduct[53] = "301#$2869#$IntelÂ® Entry Server Boards S3200SHV, S3210SHLC, y S3210SHLX"
selectArrProduct[54] = "301#$2871#$Placa para servidor IntelÂ® X38ML"
selectArrProduct[55] = "301#$2451#$Placa para servidor IntelÂ® S5000PAL"
selectArrProduct[56] = "301#$2487#$Placa para servidor IntelÂ® S5000VSA"
selectArrProduct[57] = "301#$2308#$Placa IntelÂ® para estaciones de trabajo S5000XVN"
selectArrProduct[58] = "301#$2305#$Placa para servidor IntelÂ® S5000PSL"
selectArrProduct[59] = "301#$2859#$Placa para servidor IntelÂ® S5400SF"

/* Server Processors */
selectArrProduct[60] = "300#$2676#Procesador IntelÂ® XeonÂ® secuencia 7000"
selectArrProduct[61] = "300#$2371#$Procesador IntelÂ® XeonÂ® secuencia 5000"
selectArrProduct[62] = "300#$528#$Procesador IntelÂ® XeonÂ® secuencia 3000"
/*End new list*/

/* Remainder of Old List */
selectArrProduct[63] = "102#$820#$Adaptador IntelÂ® PRO/100 M para Desktop"	
selectArrProduct[64] = "102#$871#$Adaptador IntelÂ® PRO/1000 MT Desktop "	
selectArrProduct[65] = "102#$1058#$Adaptador IntelÂ® PRO/100 S para Management"	
selectArrProduct[66] = "102#$1878#$Adaptador IntelÂ® PRO/1000 GT para Desktop"		
selectArrProduct[67] = "200#$2277#$Procesador IntelÂ® Coreâ„¢2 Duo"	
selectArrProduct[68] = "201#$955#$TecnologÃ­a de procesador IntelÂ® CentrinoÂ®"
selectArrProduct[69] = "202#$2301#$Mobile IntelÂ® 945GM Express Chipset Family"	
selectArrProduct[70] = "202#$1862#$Mobile IntelÂ® 915GM/GMS 910GML Express Chipset Family"
selectArrProduct[71] = "203#$1637#$ConexiÃ³n de red IntelÂ® PRO/Wireless 2200BG"
selectArrProduct[72] = "203#$1847#$ConexiÃ³n de red IntelÂ® PRO/Wireless 2915ABG"
selectArrProduct[73] = "203#$2259#$ConexiÃ³n de red IntelÂ® PRO/Wireless 3945ABG"
selectArrProduct[74] = "204#$2459#$ASmobile* AS62FP945GM1"
selectArrProduct[75] = "204#$2463#$ASmobile* AS62J945PM1"
selectArrProduct[76] = "204#$2465#$ASmobile* AS96F945GM1"
selectArrProduct[77] = "204#$2466#$ASmobile* AS96J945PM1"
selectArrProduct[78] = "204#$2468#$Compal* CEL80945PM1"
selectArrProduct[79] = "204#$2469#$Compal* CEL81945GM1"
selectArrProduct[80] = "204#$2470#$Compal* CGL30945PM1"
selectArrProduct[81] = "204#$2473#$Compal* CGL31945GM1"
selectArrProduct[82] = "204#$2474#$Quanta* QSW1945GM1"
selectArrProduct[83] = "204#$2475#$Quanta* QTW3A945PM1"
selectArrProduct[84] = "204#$2476#$Quanta* QTW3M945GM1"
selectArrProduct[85] = "201#$3012#$TecnologÃ­a de procesador IntelÂ® CentrinoÂ® 2"	
selectArrProduct[86] = "201#$3013#$Procesador IntelÂ® CentrinoÂ® 2 con tecnologÃ­a vProâ„¢"	
selectArrProduct[87] = "202#$2991#$Familia de Chipset IntelÂ® Express serie 4"	
selectArrProduct[88] = "202#$2300#$Familia de Chipset IntelÂ® 945 Express"	
selectArrProduct[89] = "202#$2800#$Familia de Chipset IntelÂ® 965 Express"
selectArrProduct[90] = "200#$2967#$Procesador IntelÂ® Coreâ„¢2 Extreme"
selectArrProduct[91] = "200#$3040#$Procesador IntelÂ® Coreâ„¢2 Quad"
selectArrProduct[92] = "201#$3012#$TecnologÃ­a de procesador IntelÂ® CentrinoÂ® 2"
selectArrProduct[93] = "201#$3013#$Procesador IntelÂ® CentrinoÂ® 2 con tecnologÃ­a vProâ„¢"
selectArrProduct[94] = "201#$2832#$Procesador IntelÂ® CentrinoÂ® con tecnologÃ­a vProâ„¢"
selectArrProduct[95] = "101#$3057#$Desktop Board IntelÂ® DG41MJ"

/* new */
selectArrProduct[96] = "101#$3060#$Desktop Board IntelÂ® D945GSEJT"
selectArrProduct[97] = "302#$2834#$Sistema servidor IntelÂ® SR1500AL y SR1550AL"
selectArrProduct[98] = "302#$2850#$Sistema servidor IntelÂ® SR1560SF"



selectArrProduct.reverse(); //reverse it 


function UpdateLine() {	// Update Line Dropdown
	var iFirstDash, iSecondDash;
	var iPrdObjIdFamily;
	var famList = document.getElementById("selFamily");
	var lineList = document.getElementById("selLine");
	var prodList = document.getElementById("selProduct");
	//Reset Line dropdown
	lineList.length =  0;
	lineList.options[0] = new Option("Seleccione la lÃ­nea de productos","none");
	if (famList.selectedIndex!=0) {	//A valid family has been selected, so set line
		iPrdObjIdFamily = famList.options[famList.selectedIndex].value;
		for(var i=0;i<selectArrLine.length;i++) {
			strLine = selectArrLine[i];
			iFirstDash = strLine.indexOf("#$");
			if (strLine.substring(0,iFirstDash) == iPrdObjIdFamily) {
				iSecondDash = strLine.indexOf("#$", iFirstDash+2);			
				lineList.options[lineList.options.length] = new Option(strLine.substring(iSecondDash+2),strLine.substring(iFirstDash+2,iSecondDash));				
			}
		}
	}
	if(prodList){
		prodList.length = 0;									
		prodList.options[0] = new Option("Seleccione el producto","none");
	}
}

function UpdateProduct() {	// Update Product Dropdown
	var iFirstDash, iSecondDash;
	var iPrdObjId;
	var famList = document.getElementById("selFamily");
	var lineList = document.getElementById("selLine");
	var prodList = document.getElementById("selProduct");
	var str = "";
	var count = 0;
	//Reset Product dropdown
	prodList.length = 0;		
	prodList.options[0] = new Option("Seleccione el producto","none");
	if (lineList.selectedIndex!=0){	//A valid Line has been selected, so set Prod
		iPrdObjId = lineList.options[lineList.selectedIndex].value;
		for(var i=0;i<selectArrProduct.length;i++) {
			strProduct = selectArrProduct[i];
			iFirstDash = strProduct.indexOf("#$");			
			if (strProduct.substring(0, iFirstDash) == iPrdObjId){
				iSecondDash = strProduct.indexOf("#$", iFirstDash+2);	
				
				//legacy urls	
				if(count==0){
				prodList.options[1] = new Option("Legado Productos","http://downloadcenter.intel.com/Default.aspx")
				}
									
				prodList.options[prodList.options.length] = new Option(strProduct.substring(iSecondDash+2),strProduct.substring(iFirstDash+2,iSecondDash));
				count+=1;
			}
		}
	}
}

