			// *** Opciones de HM4 *** (m2) UK

var mm="© The Gateway to Internet";  
function cc(e) {
if (document.all) {
if (event.button == 2) {
alert(mm);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(mm);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=cc;
				
	if (navigator.appName == 'Netscape') {
		mostrar='show'
		ocultar='hide'
		ddoc='document'
		estilo=''
	}
	else {
		mostrar='visible'
		ocultar='hidden'
		ddoc='document.all'
		estilo='style.'

	}

				function HM_param() {
				
				if (window.screen) {
				  texto=screen.width + "x" + screen.height + "x" + Math.pow(2,screen.colorDepth) + " colores.";
				  a_pant=screen.width

						switch (a_pant) {

							case (1280): 
								fondo="LPI-fondo1280960.jpg"
								HM_PG_MenuWidth = 240;
								HM_PG_FontSize = 8;
                            	HM_left = 1150
								bant = 80
								banl = 350
								aui = 220
							 break
				
							case (1152): 
								fondo="LPI-fondo1152864.jpg"
								HM_PG_MenuWidth = 240;
								HM_PG_FontSize = 8;
                            	HM_left = 1010
								bant = 80
								banl = 350
								aui = 200
							 break
							
							case (1024):
								fondo="LPI-fondo1024768.jpg"
								HM_PG_MenuWidth = 240;
								HM_PG_FontSize = 8;
                            	HM_left = 880
								bant = 80
								banl = 300
								aui = 150 // 180
							  break

							case (800):
								fondo="LPI-fondo800600.jpg"
								HM_PG_MenuWidth = 182;
								HM_PG_FontSize = 7;
                            	HM_left = 660
								bant = 85 
								banl = 185
								aui = 120 // 160
							 break

							case (640):
								fondo="LPI-fondo640480.jpg"
								HM_PG_MenuWidth = 182;
								HM_PG_FontSize = 7;
                            	HM_left = 500
								bant = 150
								banl = 150
								aui = 80 // 100
							 break
						}

// 1152, 1280

				 }
				else  {
  					window.alert("You will need to upgrade your browser")
				  }

				b="javascript:"
				c=",1,0,0"

//				HM_PG_MenuWidth = 240;
				HM_PG_FontFamily = "Verdana"					//"Arial,sans-serif";
//				HM_PG_FontSize = 9;
				HM_PG_FontBold = 1;
				HM_PG_FontItalic = 0;
				HM_PG_FontColor = "blue";
				HM_PG_FontColorOver = "white";
				HM_PG_BGColor = "menu"; //"#DDDDDD";
				HM_PG_BGColorOver = "highlight"; // "#FFCCCC";
				HM_PG_ItemPadding = 3;

				HM_PG_BorderWidth = 3;
				HM_PG_BorderColor = "threedhighlight"; // "black";
				HM_PG_BorderStyle = "groove";  // solid
				HM_PG_SeparatorSize = 1;
				HM_PG_SeparatorColor = "#d0ff00";

				HM_PG_ImageSrc = "tri.gif";
				HM_PG_ImageSrcLeft = "triL.gif";
				HM_PG_ImageSrcOver = null; 			// 4.1
				HM_PG_ImageSrcLeftOver = null;		// 4.1


				HM_PG_ImageSize = 5;
				HM_PG_ImageHorizSpace = 0;
				HM_PG_ImageVertSpace = 7;

				HM_PG_KeepHilite = true; 
				HM_PG_ClickStart = 0;
				HM_PG_ClickKill = 1; 
				HM_PG_ChildOverlap = -3;
				HM_PG_ChildOffset = 0;
				HM_PG_ChildPerCentOver = null;
				HM_PG_TopSecondsVisible = 0.5;
				HM_PG_StatusDisplayBuild =0;
				HM_PG_StatusDisplayLink = 0;
				HM_PG_UponDisplay = null;
				HM_PG_UponHide = null;
				HM_PG_RightToLeft = false;

				HM_PG_CreateTopOnly = 1;
				HM_PG_ShowLinkCursor = 1;
				HM_PG_NSFontOver = true;

				// HM_a_TreesToBuild =[1,31] //[1,31];
	
				}
				// ---  Fin opciones HM4 ---



				// *** función aafav (m2)
				function aafav() {
					if (navigator.appName == 'Netscape')  {
					window.alert("If you are using Netscape Navigator press Ctrl+D to bookmark this site")
					}
				    else {
					window.external.AddFavorite('http://www.thegatewaytointernet.com','The Gateway to Internet')					 
					}
                }

				// *** función arriba (m2)
				function arriba() {
				    if (navigator.appName == 'Netscape')  {
					}
				    else {
					 document.all.arriba.focus()
					}
                }
                
                // fin arriba


				// ***** a ***** (ms2)			
				function a(ns) {

				ej="parent.ms2.window.open('am.asp?ns="+ns+"','ms2')"
				eval(ej)

				}


				//****** am ***** (m2)

				function am(theURL, destino, alturl, nm) {

					showURL = theURL


				 if (alturl != '') {
					// showURL = theURL
					theURL = alturl
					}
				 else {
					// showURL = theURL
				 }
				

				if (navigator.appName == 'Netscape') 
				{
				window.open(theURL, destino)
				}
				else 
				{


                if (nm=="no") {
                }
                else {
		        }
                
                 
				
				// navegar en la URL seleccionada	
                 /*
                  if (destino=='mi') {
                     features=""
                   }
                  else {
                      destino='blank'
                      features="toolbar='yes' status='yes' menubar='yes' scrollbars='yes' resizable='yes'"
                   }
                  */

	 			    window.open(theURL,destino)
			      
		    
				}    


				}
			
				// *** Fin am ***

				//****** am2 ***** (m2)

				function am2(theURL, destino, alturl, nm) {
					window.open(theURL,destino)
					window.open('m2b.asp','mi')
				}

				// *** buscar ***
				  function buscar() {
				   am('buscar.asp','mi','','no')
				  }


				function camp() {
	 			comun="<table><td  width='468' align='center'><a href='ban.asp?l=principal' onmouseover="+'\"'+"window.status='Visita Recomendada';return true;"+'\"'+" target='blank'> <img src='ban.asp?lugar=principal' border='0' alt='Click for details ...'></a></td></table>"
							 document.write("<div id='camp01' STYLE="+'\"'+"position:absolute;top:"+bant+"px; left:"+banl+"px;"+"filter:alpha(Opacity=30);-moz.opacity:0.30;"+'\"'+" onmouseover="+'\"'+"camp01.style.filter=false"+'\"'+ " onmouseout="+'\"'+"camp01.style.filter="+"\'"+"alpha(Opacity=30)"+"\'" +'\"'+ "></div>")					 
							 setTimeout("document.getElementById('camp01').innerHTML=comun;fdia()",1700)
                 }


				function paui() {
	 			comun2="<table><td  width='468' align='center'><a href='ban.asp?l=derecha' onmouseover="+'\"'+"window.status='';return true;"+'\"'+" target='blank'> <img src='ban.asp?lugar=derecha' border='0' alt='Click for details ...'></a></td></table>"
					 document.write("<div id='derecha' STYLE="+'\"'+"position:absolute;top:"+(bant+aui)+"px; left:"+(HM_left-7)+"px;"+"filter:alpha(Opacity=30);-moz.opacity:0.30;"+'\"'+" onmouseover="+'\"'+"derecha.style.filter=false"+'\"'+ " onmouseout="+'\"'+"derecha.style.filter="+"\'"+"alpha(Opacity=30)"+"\'" +'\"'+ "></div>")					 
					 setTimeout("document.getElementById('derecha').innerHTML=comun2",2000)
                }

				function oculta(seccion) {
					codigog=ddoc+"."+seccion+"."+estilo+"visibility="+'\"'+ocultar+'\"'
					// alert(codigog)
					eval(codigog)
				}

				function muestra(seccion) {
					codigog=ddoc+"."+seccion+"."+estilo+"visibility="+'\"'+mostrar+'\"'
					// alert(codigog)
					eval(codigog)
				}



				// *** función ebody (m2)
				function ebody() {
				 HM_param()
					document.write("<BODY bgcolor='#0080FF' background=global/"+fondo+" Bgproperties=fixed topMargin=0 onload='ini_m2()'>");
				 }
				
				// fin de ebody

				// *** función ebody2 (m2)
				function ebody2() {
				 HM_param()
					document.write("<BODY bgcolor='#0080FF' background=global/"+fondo+" Bgproperties=fixed topMargin=0 >");
			    }
				// fin de ebody2

				function ebody3() {
				 HM_param()
					document.write("<BODY bgcolor='#0080FF' background=global/"+fondo+" Bgproperties=fixed topMargin=0 onload='vernot();' >");
			    }

				// *** función ggoogle (m2)
				function ggoogle() {
				    if (navigator.appName == 'Netscape')  {
					}
				    else {
					 document.all.ilogo.focus()
					 // document.all.b02.focus()
					}
                }


                // *** inicio (ms1) ***
                  function inicio() {
				    if (navigator.appName == 'Netscape')  {
                     window.open("m2.asp","mi")
					 window.open('ms2.asp','ms2')                
                    }
                    else {    
                     window.open("m2.asp","mi",true);
                     parent.ms2.document.write("<body bgcolor='66ccff'>")
                    }        
				  }				


				// *** función ini_m2 (m2)
				function ini_m2() {
				// bgoogle()
				window.defaultStatus="The Gateway to Internet - The reference site on the web";
				parent.ms2.location = "ms2.asp"
//				arriba()
				}


				// *** función nv (m) ***

				function nv() {
				if( top.frames.length > 0 )
				top.location.href = location.href
				}


		
				// *** función cpais (m2)
				function cpais(pais) {
							var x = new Date(2004,12,31)

					switch (pais) {
						case ("España"): 
							top.location.href = "http://www.lapuertadeinternet.com"
						 break
						case ("Francia"):
							top.location.href = "http://www.laportedinternet.com"
						 break
					 	case ("Italia"):
							top.location.href = "http://www.laportadinternet.com"
						 break
					 	case ("Alemania"):
							top.location.href = "http://www.dastorzuminternet.com"
						 break
						case ("Brasil"):
							top.location.href = "http://www.aportadainternet.com"
						 break
						case ("Usa"):
							var x = new Date(2004,12,31)
							mG('aps','Usa', x)
							top.location.href = "http://www.thegatewaytointernet.com/usa"
						 break
						case ("Uk"):
							mG('aps','Uk', x)
							top.location.href = "http://www.thegatewaytointernet.com/uk"
						 break
					}		
				}


	
				// Prueba
			
                function Prueba(msg)
                {
                        window.alert("La función prueba ha sido llamada." + msg);
                } // Fin de funcion
				

			    // *** función enfoque (m2)
				function enfoque() {
					if (parent.mi) {
//						parent.mi.focus();
					}
					else {
						top.location.href = "http://www.thegatewaytointernet.com/uk"
					}
				}
	


                // *** nnvv ***
                function nnvv() {
                laurl = parent.mi.location.href
                } 

               
				// ** nvent ***
				function nvent(donde) {
					switch (donde) {
						case "blanco":
							window.open("")
							break
						case "lpi":
							window.open("http://www.thegatewaytointernet.com/")
							break
						default:							
							window.open("http://www.thegatewaytointernet.com/")
					}
				 }
				// fin nvent



				// *** función pinicio()
				function pinicio() {
				  if (navigator.appName == 'Netscape') {
			 		window.alert("In Netscape select Edit from the toolbar bar and click on Preferences. In the Navigator starts with section, select the Home Page radio button. In the Home page section click the Use current page button. By Clicking OK at the bottom of the page The Gateway to Internet will be your home page.")
					}
				  else {
					am('pginicio.htm','mi','','no')
					}
				}

				// *** función atrás (ms1)
				function atras() {
				  if (navigator.appName == 'Netscape') {
			 		parent.mi.history.back(-1);
					}
				  else {
						window.history.back(-1);
						// parent.ms2.document.write("<body bgcolor='00ffff'>")
 				  }
				}


				// *** función plpi2 (m2) ***
				function plpi2() {
				setup='toolbar=no,location=no,directories=no,status=no,menubar=no,width=450,height=300'  
				setup += 'scrollbars=no,resizable=no' 
				pop = window.open ("","pop",setup) 
				pop.document.write('<head>'); 
				pop.document.write('<Title>');
				pop.document.write('La Puerta de Internet'); 
				pop.document.write('</Title>'); 
				pop.document.write('<script language="javascript">'); 
				pop.document.write('setTimeout('); 
				pop.document.write('"self.close()'); 
                                pop.document.write(';",8000)'); 
				pop.document.write('</'); 
				pop.document.write('script>'); 
				pop.document.write('</head>'); 
				pop.document.write('<body bgcolor="#cccccc">'); 
				pop.document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="lpi" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH=100% HEIGHT=100%> <PARAM NAME=movie VALUE="global/LPI-Flash00.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="global/LPI-Flash00.swf" quality=high bgcolor=#FFFFFF  WIDTH=550 HEIGHT=400 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED> </OBJECT> ')
				pop.document.write('</body>');  
				}


				// *** mispini
				function mispini() {
				setup='toolbar=no,location=no,directories=no,status=no,menubar=no,width=510,height=450'  
				setup += 'scrollbars=no,resizable=no' 
				pop = window.open ("pinicio00.asp","pop", setup)
				}

				// ** apin
				function apin(){
				activ = consG("lpi_ini_uk") 
				 if (activ =="si") {
					mispini()
					}
				 else {
					// enfoque()
					 parent.mi.focus();
				 }
				}

				// ** aps
				function aps(){
				activ = consG("aps") 
				switch (aps) {
						case ("UK"): 
							cpais(Uk);
						 break
						case ("USA"): 
							cpais(Usa);
						 break
			 }
				}




				function consG(nombre) {
				  var buscamos = nombre + "=";
				  if (document.cookie.length > 0) {
    				i = document.cookie.indexOf(buscamos);
    				if (i != -1) {
    				  i += buscamos.length;
      				  j = document.cookie.indexOf(";", i);
      				  if (j == -1)
        				j = document.cookie.length;
					   return unescape(document.cookie.substring(i,j));
    				 }
  					}
				   }

				function mG(nom, val, cad) {
  					document.cookie = nom + "=" + escape(val)
				    + ((cad == null) ? "" : ("; expires=" + cad.toGMTString()))
				}




				// ** ssant
				function sant(){
						ej="parent.ms2.window.open('nsant.asp','ms2')"
						eval(ej)
				}

				// ** ssig
				function ssig(){
						ej="parent.ms2.window.open('nssig.asp','ms2')"
						eval(ej)
				}



				// *** scrollarr ***
				function scrollarr() {
					altura = document.body.scrollTop
					anueva = altura - 310  
					if (anueva < 50) {
						anueva = 50
						  cod1=ddoc+".sarr.style.top = anueva"
						  eval(cod1)
     					  cod2=ddoc+".sabj.style.top = anueva + 15"
						  eval(cod2)

						document.all.arriba.focus()  
					
					}
					 else {
					  document.body.scrollTop = anueva
					  cod1=ddoc+".sarr.style.top = anueva"
					  eval(cod1)
					  cod2=ddoc+".sabj.style.top = anueva + 15"
					  eval(cod2)

					  enfoque()				   
					  
                	}
				}



				// *** scrollabj ***
				function scrollabj(tope) {
	        		altura = document.body.scrollTop
					anueva = altura + 310
					if (anueva >= tope) {
						anueva = tope 
					//	document.all.sabj.src = 'global/abjdes.gif'
						}
					 else {
				    	// 
                	}
					  document.body.scrollTop = anueva
					  cod1=ddoc+".sarr.style.top = anueva"
					  eval(cod1)
					  cod2=ddoc+".sabj.style.top = anueva + 15"
					  eval(cod2)

					  enfoque()
				}
			

				// ** va
				function va() {
				var pista = 1081  // 1142 // 1047 // 959 //1144
				var randomnumber = Math.random() ;
				var rand1 = Math.round( (pista-1) * randomnumber) + 1 ;
				a(rand1)
				}		