/* author: I.C.A. Informática y Comunicaciones Avan */
/* Creation date: 05/07/2004 */

function cabeceraLogos(strSpan)
{
	document.write("<tr>");
	document.write("<td colSpan="+strSpan+">");
	document.write("<TABLE WIDTH=750 BORDER=0 CELLPADDING=0 CELLSPACING=0>"); 
		document.write("<tr>");
			document.write("<td>");
    			document.write("<IMG SRC='images/cabecera_01.gif' WIDTH=129 HEIGHT=55 ALT=''>");
			document.write("</td>");
			
    		document.write("<TD WIDTH=119 HEIGHT=55 background='images/cabecera_02.gif'>");
			document.write("</TD>"); 
    		document.write("<TD>");		
				document.write("<IMG SRC='images/cabecera_03_2.gif' WIDTH=99 HEIGHT=55 ALT=''>");
			document.write("</TD>");
			 
    		document.write("<TD WIDTH=266 HEIGHT=55 background='images/cabecera_04.gif'>");
			document.write("</TD>"); 
    		document.write("<TD>");
				document.write("<IMG SRC='images/cabecera_05.gif' WIDTH=137 HEIGHT=55 ALT=''>");
			document.write("</TD>"); 
		document.write("</tr>");
	document.write("</table>");
	document.write("</TD>"); 
	document.write("</tr>");
};

function cabeceraLogosPeq(strSpan)
{
	document.write("<TABLE ALIGN='CENTER' WIDTH=365 BORDER=0 CELLPADDING=0 CELLSPACING=0>"); 
		document.write("<tr>");
			document.write("<td>");
    			document.write("<IMG SRC='cabecera_01.gif' WIDTH=129 HEIGHT=55 ALT=''>");
			document.write("</td>");
			
    		//document.write("<TD WIDTH=50 HEIGHT=55 background='images/cabecera_02.gif'>");
			//document.write("</TD>"); 
    		document.write("<TD>");		
				document.write("<IMG SRC='cabecera_03_2.gif' WIDTH=99 HEIGHT=55 ALT=''>");
			document.write("</TD>");
			 
    		//document.write("<TD WIDTH=50 HEIGHT=55 background='images/cabecera_04.gif'>");
			//document.write("</TD>"); 
    		document.write("<TD>");
				document.write("<IMG SRC='cabecera_05.gif' WIDTH=137 HEIGHT=55 ALT=''>");
			document.write("</TD>"); 
		document.write("</tr>");
	document.write("</table>");
};


function cargaMenu()
{
stm_bm(["menu68e1",400,"","blank.gif",1,"180","55",2,0,250,0,440,1,0,0,""],this);
stm_bp("p0",[0,4,0,0,0,0,0,0,100,"",-2,"",-2,50,0,0,"#fffff7","transparent","",0,0,0,"#000000"]);
stm_ai("p0i0",[6,1,"transparent","images/barra_menu_02.gif",24,17,0]);
stm_ai("p0i1",[0,"Consultas","","",-1,-1,0,"emergencia.htm","_self","","","","",0,0,0,"","",0,0,0,0,2,"#fffff7",1,"#b5bed6",1,"images/fondo_barra_menu.gif","images/fondo_barra_menu.gif",1,1,0,0,"#fffff7","#000000","#000000","#000000","8pt Verdana","8pt Verdana",0,0]);
stm_aix("p0i2","p0i0",[6,1,"transparent","images/barra_menu_04.gif"]);
stm_aix("p0i3","p0i1",[0,"Instrucciones","","",-1,-1,0,"general.htm?Documento=7.instrucciones.htm&altura=1150"]);
stm_aix("p0i4","p0i2",[]);
stm_aix("p0i5","p0i1",[0,"Señalización y Etiquetado","","",-1,-1,0,"","_self","","","","",0,0,0,"","",0,0,0,0,2,"#ffffff",1,"#b5bed6",0]);
stm_bp("p1",[1,4,-15,1,0,0,0,0,100,"progid:DXImageTransform.Microsoft.Wipe(GradientSize=1.0,wipeStyle=1,motion=forward,enabled=0,Duration=0.49)",5,"progid:DXImageTransform.Microsoft.Wipe(GradientSize=1.0,wipeStyle=1,motion=reverse,enabled=0,Duration=0.49)",4,61,0,0,"#fffff7","transparent","",0,0,0,"#d4d0c8"]);

stm_aix("p1i0","p0i1",[1,"<TD WIDTH=13 HEIGHT=6 background=\"images/persiana_01.gif\"></TD><TD WIDTH=143 HEIGHT=6 background=\"images/persiana_02.gif\"></TD><TD WIDTH=13 HEIGHT=6 background=\"images/persiana_03.gif\"></TD>","","",-1,-1,0,"","_self","","","","",0,0,0,"","",0,0,0,0,2,"#fffff7",1,"#b5bed6",1,"","",1,0]);
stm_aix("p1i1","p0i1",[1,"<TD WIDTH=13 HEIGHT=17 background=\"images/persiana_04.gif\"></TD><TD class=\"textos_menu\" WIDTH=143 HEIGHT=17 bgcolor=\"ffffff\">Etiquetas de Peligro ADR</TD><TD WIDTH=13 HEIGHT=17 background=\"images/persiana_06.gif\"></TD>","","",-1,-1,0,"general.htm?Documento=2.Etiquetas.htm&altura=4800","_self","","","","",0,0,0,"","",0,0,0,0,2,"#fffff7",1,"#ffffff",1,"","",1,1,0,0,"#fffff7 #ffffff #fffff7 #fffff7","#ffffff","#000000","#000000","9pt Arial","9pt Arial"]);

stm_aix("p1i0","p0i1",[1,"<TD WIDTH=13 HEIGHT=6 background=\"images/persiana_01.gif\"></TD><TD WIDTH=143 HEIGHT=6 background=\"images/persiana_02.gif\"></TD><TD WIDTH=13 HEIGHT=6 background=\"images/persiana_03.gif\"></TD>","","",-1,-1,0,"","_self","","","","",0,0,0,"","",0,0,0,0,2,"#fffff7",1,"#b5bed6",1,"","",1,0]);
stm_aix("p1i1","p0i1",[1,"<TD WIDTH=13 HEIGHT=17 background=\"images/persiana_04.gif\"></TD><TD class=\"textos_menu\" WIDTH=143 HEIGHT=17 bgcolor=\"ffffff\">Placas-Etiquetas ADR</TD><TD WIDTH=13 HEIGHT=17 background=\"images/persiana_06.gif\"></TD>","","",-1,-1,0,"general.htm?Documento=3.placasEtiquetas.htm&altura=1000","_self","","","","",0,0,0,"","",0,0,0,0,2,"#fffff7",1,"#ffffff",1,"","",1,1,0,0,"#fffff7 #ffffff #fffff7 #fffff7","#ffffff","#000000","#000000","9pt Arial","9pt Arial"]);

stm_aix("p1i2","p1i1",[1,"<TD WIDTH=13 HEIGHT=1 background=\"images/persiana_07.gif\"></TD><TD WIDTH=143 HEIGHT=1 background=\"images/persiana_08.gif\"></TD><TD WIDTH=13 HEIGHT=1 background=\"images/persiana_09.gif\"></TD>","","",-1,-1,0,""]);
stm_aix("p1i3","p1i1",[1,"<TD WIDTH=13 HEIGHT=17 background=\"images/persiana_04.gif\"></TD><TD class=\"textos_menu\" WIDTH=143 HEIGHT=17 bgcolor=\"ffffff\">Marcas y Señales ADR</TD><TD WIDTH=13 HEIGHT=17 background=\"images/persiana_06.gif\"></TD>","","",-1,-1,0,"general.htm?Documento=5.marcassenales.htm&altura=1000"]);
stm_aix("p1i4","p1i2",[]);

stm_aix("p1i5","p1i1",[1,"<TD WIDTH=13 HEIGHT=17 background=\"images/persiana_04.gif\"></TD><TD class=\"textos_menu\" WIDTH=143 HEIGHT=17 bgcolor=\"ffffff\">Paneles Naranjas ADR</TD><TD WIDTH=13 HEIGHT=17 background=\"images/persiana_06.gif\"></TD>","","",-1,-1,0,"general.htm?Documento=4.panelNaranja.htm&altura=4600"]);
stm_aix("p1i6","p1i2",[1,"<table cellpadding=0 cellspacing=0><tr><TD  WIDTH=13 HEIGHT=13 background=\"images/persiana_19.gif\"></TD><TD WIDTH=143 HEIGHT=13 background=\"images/persiana_20.gif\"></TD><TD WIDTH=13 HEIGHT=13 background=\"images/persiana_21.gif\"></TD></tr></table>"]);

stm_ep();
stm_aix("p0i6","p0i0",[6,1,"transparent","images/barra_menu_04.gif"]);
stm_aix("p0i7","p0i1",[0,"Información Complementaria","","",-1,-1,0,"terminos.htm"]);
stm_aix("p0i8","p0i0",[6,1,"transparent","images/barra_menu_12.gif",15]);
stm_ep();
stm_em();
};

function cabeceraMenu(strSpan)
{
	cargaMenu();
	document.write("<TR>");
	document.write("<TD colspan="+strSpan+" WIDTH=750 HEIGHT=17>");

		document.write("<TABLE WIDTH=750 BORDER=0 CELLPADDING=0 CELLSPACING=0>"); 
    		document.write("<TR>"); 
    			document.write("<TD  WIDTH=243 HEIGHT=17 background='images/barra_menu_01.gif'>");
				document.write("</TD>"); 
    		document.write("</TR>");
    	document.write("</TABLE>");
    document.write("</TD>");
    document.write("</TR>");
	document.write("<TR>");
    	document.write("<TD colspan="+strSpan+"  WIDTH=750 HEIGHT=5 background='images/emergencia_03.jpg'>");
		document.write("</TD>");
	document.write("</TR>");
};

function marcoTexto(strTexto, blnBarraHerramientas)
{
var mrcAncho = 750
var mrcAlto = 447 // 447
var txtAncho = mrcAncho - 123
var margenIzdo = 61
// tabla impresion, enviar
document.write("<TABLE width='750' cellSpacing='0' cellPadding='0'  border='0'>");
document.write("<TR>");
document.write("<TD   height='3'>");
document.write("</TD>");
document.write("</TR>");
if (blnBarraHerramientas)
{
	document.write("<TR >");
}
else
{
	document.write("<TR style='visibility=hidden'>");
}
	document.write("<TD  width='44'>");
	document.write("</TD>");
	document.write("<td  width='300'>");
	document.write("</td>");
	document.write("<TD width='25%' height='20' align='right'>");
	document.write("<IMG  src='images/imprimir.gif' style='CURSOR:hand' onclick='imprimir()'>");
	document.write("<IMG  src='images/enviar.gif' style='CURSOR:hand' onclick='Mail()'>");				
	document.write("</TD>");
	document.write("</TR>");

document.write("</TABLE>");

// tabla 1
document.write("<table WIDTH="+ mrcAncho +" HEIGHT=" + mrcAlto+" BORDER=0 CELLPADDING=0 CELLSPACING=0>");
	document.write("<tr>");
    	document.write("<td WIDTH="+margenIzdo+">");
		document.write("</td>"); 
        
		document.write("<td WIDTH="+txtAncho+">");
		// tabla 2
		document.write("<table WIDTH="+txtAncho+" HEIGHT="+mrcAlto+" BORDER=0 CELLPADDING=0 CELLSPACING=0>"); 
		    document.write("<tr>"); 
          		document.write("<td WIDTH="+txtAncho+" HEIGHT=404>");
				// tabla 3
				document.write("<TABLE WIDTH="+txtAncho+" BORDER=0 CELLPADDING=0 CELLSPACING=0>");
					document.write("<TR>");
						document.write("<TD>");
						// tabla 4
						document.write("<TABLE WIDTH=77 BORDER=0 CELLPADDING=0 CELLSPACING=0>");
							document.write("<TR>");
								document.write("<TD COLSPAN=2>");
								document.write("<IMG SRC='images/estructura_introduccion_01_.gif' WIDTH=77 HEIGHT=13 ALT=''>")
								document.write("</TD>");
							document.write("</TR>");
							document.write("<TR>");
								document.write("<TD COLSPAN=2 WIDTH=77 HEIGHT=368 background='images/estructura_introduccion_-02.gif'>");
								document.write(strTexto);
								document.write("</TD>");
							document.write("</TR>");

							document.write("<TR>");
								document.write("<TD>");
								document.write("<IMG SRC='images/estructura_introduccion_-05.gif' WIDTH=32 HEIGHT=23 ALT=''>");
								document.write("</TD>");
								document.write("<TD>");
								document.write("<IMG SRC='images/estructura_introduccion_-06.gif' WIDTH=45 HEIGHT=23 ALT=''>");
								document.write("</TD>");
							document.write("</TR>");
						document.write("</TABLE>"); // 4
						document.write("</TD>");
						document.write("<TD>");
						// tabla 5
						document.write("<TABLE WIDTH=514 BORDER=0 CELLPADDING=0 CELLSPACING=0>");
							document.write("<TR>");
								document.write("<TD WIDTH=514 HEIGHT=3 background='images/estructura_icentr_01.gif'>");
								document.write("</TD>");
							document.write("</TR>");
							document.write("<TR>");
								document.write("<TD WIDTH=514 HEIGHT=387 >");
								//Scroll
								document.write("<div id=hold><div id=wn><div id=lyr1 class=content></div></div></div>")
								document.write("</TD>");
							document.write("</TR>");
							document.write("<TR>");
								document.write("<TD WIDTH=514 HEIGHT=14 background='images/estructura_icentr_03.gif'>");
								document.write("</TD>");
							document.write("</TR>");
						document.write("</TABLE>"); //5
						document.write("</TD>");
						document.write("<TD >");


						document.write("<TABLE WIDTH=36 BORDER=0 CELLPADDING=0 CELLSPACING=0><TR>");
							document.write("<TD><IMG SRC='images/scroll_home_01.gif' WIDTH=16 HEIGHT=54 ALT=''></TD>");
							document.write("<TD><IMG SRC='images/scroll_home_02.gif' WIDTH=20 HEIGHT=54 ALT=''></TD>");
						document.write("</TR>");
						document.write("<TR><TD><IMG SRC='images/scroll_home_03.gif' WIDTH=16 HEIGHT=298 ALT=''></TD>");
							document.write("<TD><div id='scrollbar'><div id='up'><img onclick='return false' onmouseover=dw_scrollObj.initScroll('wn','up') onmouseout=dw_scrollObj.stopScroll('wn') onmousedown=dw_scrollObj.doubleSpeed('wn') onmouseup=dw_scrollObj.resetSpeed('wn') src='images/flecha_up.gif' alt='' /></div><div id='track'><div id='dragBar'></div></div><div id='down'><img onclick='return false' onmouseover=dw_scrollObj.initScroll('wn','down') onmouseout=dw_scrollObj.stopScroll('wn') onmousedown=dw_scrollObj.doubleSpeed('wn') onmouseup=dw_scrollObj.resetSpeed('wn') src='images/flecha_down.gif' alt='' /></div></div></TD>");
						document.write("</TR>");
						document.write("<TR><TD><IMG SRC='images/scroll_home_05.gif' WIDTH=16 HEIGHT=52 ALT=''></TD>");
							document.write("<TD><IMG SRC='images/scroll_home_06.gif' WIDTH=20 HEIGHT=52 ALT=''></TD></TR>");
						document.write("</TABLE>");
							
						document.write("</TD>");
					document.write("</TR>");
				document.write("</TABLE>"); //3

		document.write("</td>");
		document.write("</tr>");
		document.write("<tr>"); 
        document.write("<td WIDTH="+txtAncho+" HEIGHT=22>");
		document.write("</td>"); 
		document.write("</tr>");
		document.write("</table>"); //2

		document.write("</td>");
        document.write("<td WIDTH=62>");
		document.write("</td>"); 
        document.write("</tr>"); 
      document.write("</table>"); //1

};


		function PageQuery(q) {
			if(q.length > 1) this.q = q.substring(1, q.length);
			else this.q = null;
			this.keyValuePairs = new Array();
			if(q) {
				for(var i=0; i < this.q.split("&").length; i++) {
					this.keyValuePairs[i] = this.q.split("&")[i];
				}
			}
			this.getKeyValuePairs = function() { return this.keyValuePairs; }
			this.getValue = function(s) {
			for(var j=0; j < this.keyValuePairs.length; j++) {
				if(this.keyValuePairs[j].split("=")[0] == s)
					return this.keyValuePairs[j].split("=")[1];
					}
					return false;
					}
				this.getParameters = function() {
				var a = new Array(this.getLength());
				for(var j=0; j < this.keyValuePairs.length; j++) {
					a[j] = this.keyValuePairs[j].split("=")[0];
					}
				return a;
				}
			this.getLength = function() { return this.keyValuePairs.length; } 
		}
		
		function queryString(key){
			var page = new PageQuery(window.location.search); 
			return unescape(page.getValue(key)); 
		}

function preloadImages() { 
  var d=document; if(d.images){ if(!d.p) d.p=new Array();
    var i,j=d.p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}
}

function swapImgRestore() { 
  var i,x,a=document.sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function 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=findObj(n,d.layers[i].document); return x;
}

function swapImage() { 
  var i,j=0,x,a=swapImage.arguments; document.sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=findObj(a[i]))!=null){document.sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.pgW=innerWidth; document.pgH=innerHeight; onresize=reloadPage; }}
  else if (innerWidth!=document.pgW || innerHeight!=document.pgH) location.reload();
}