var marcas = new Array();var preloadFlag = false;
function SearchNews() {var lSelectedIndex,oSelChannel;oSelChannel = document.getElementById('selChannel');lSelectedIndex = oSelChannel.selectedIndex;if (lSelectedIndex != -1) document.location.href = oSelChannel[lSelectedIndex].value;}
function abreForm(url) {window.open(url);window.close();}
function abreForm2(url) {window.opener.location.href = url;window.close();}
function RS_findObj(n, d) {var p,i,x;if(!d) d=document;if((p=n.indexOf("?"))>0&&parent.frames.length) {d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}if(!(x=d[n])&&d.all) x=d.all[n]; 
    for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=RS_findObj(n,d.layers[i].document); return x;}
function ajustar(formu){var oSelect=RS_findObj("divisiones");var pos=oSelect.options[oSelect.selectedIndex].value;oSelect.options[0].selected = true;window.location.href="#"+pos;}
function newImage(arg) {if (document.images) {rslt = new Image();rslt.src = arg;return rslt;}}
function changeImages() {if (document.images && (preloadFlag == true)) {for (var i=0; i<changeImages.arguments.length; i+=2) {document[changeImages.arguments[i]].src = changeImages.arguments[i+1];}}}
function preloadImages() {var glascomur_09_glascomur_03_over,glascomur_10_glascomur_05_over,glascomur_11_glascomur_07_over;if (document.images) {glascomur_09_glascomur_03_over = newImage("/NR/Uralita/img/popup_aislamiento/glascomur_09-glascomur_03_o.gif");glascomur_10_glascomur_05_over = newImage("/NR/Uralita/img/popup_aislamiento/glascomur_10-glascomur_05_o.gif");glascomur_11_glascomur_07_over = newImage("/NR/Uralita/img/popup_aislamiento/glascomur_11-glascomur_07_o.gif");preloadFlag = true;}}
function menu_video(){window.open("asl_video.htm","","width=600,height=300,scrollbars=yes,resizable=yes");window.close();}
function noticias() {window.opener.location.href="/Uralita/Divisiones/AislamientoEIluminacionNatural/Servicio+al+Cliente/026_ServicioAlCliente_AislamientoeIluminacionNatural.htm?NRMODE=Published&DivID=ASL&NRORIGINALURL=%2fUralita%2fDivisiones%2fAislamientoEIluminacionNatural%2fServicio%2bal%2bCliente%2f%3fDivID%3dASL&NRNODEGUID=%7b991E7371-ABD3-4BAC-975E-0A19C1C70D60%7d&NRQUERYTERMINATOR=1";window.close();}
function abreDistribuidor(strURLPosting){window.document.location.href = strURLPosting;}
function ventana(region){alert ("Si usted quiere información sobre los distribuidores/instaladores\nde " +  region + " contacte con Uralita. ");}
function mostrar(n){quitar();switch (n){case 1:document.getElementById('capa1').style.visibility = "visible";break;case 2:document.getElementById('capa2').style.visibility = "visible";break;case 3:document.getElementById('capa3').style.visibility = "visible";break;case 4:document.getElementById('capa4').style.visibility = "visible";break;}}
function quitar(){document.getElementById('capa1').style.visibility = "hidden";document.getElementById('capa2').style.visibility = "hidden";document.getElementById('capa3').style.visibility = "hidden";document.getElementById('capa4').style.visibility = "hidden";}
function muestraMapa(idDistribuidor,strPath){window.open(strPath + '/muestra_mapa.asp?id=' + idDistribuidor ,'mapa','width=500, height=390,directories=no,location=no,menubar=no,resizable=no,scrollbars=no,status=no, left=50, top=50');}
function FillTable(){var e, rspw ;for(e=0;e<marcas.length;e++){rspw=marcas[e].length-3;
		if(rspw>1)document.write("<tr><td valign='top' align='center' rowspan='" + rspw + "'><a name='" + marcas[e][1] + "'></a><p style='border-color : white; border-style : solid; border-width : 20px;'>" + marcas[e][2] + "</p></td>");
		else document.write("<tr><td valign='top' align='center'><a name='" + marcas[e][1] + "'></a><p style='border-color : white; border-style : solid; border-width : 20px;'>" + marcas[e][2] + "</td>");																		
		document.write("<td valign='top' align='center'><p style='border-color : white; border-style : solid; border-width : 20px;'>" + marcas[e][3] + "</td></tr>");
		for(i=4;i<marcas[e].length;i++)document.write("<tr><td valign='top' align='center'><p style='border-color : white; border-style : solid; border-width : 20px;'>" + marcas[e][i] + "</td></tr>");document.write("<tr><td colspan=2 bgcolor='#336699'></td></tr>");}}
function FillCombo(){var a;for(a=0;a<marcas.length;a++)document.write("<option value='" + marcas[a][1] + "'>" + marcas[a][0] + "</option>");}