			// *** Opciones de HM4 *** (m2) ES

var mm="© La Puerta de 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
								fdl = 550
								fda = 350
							 break
				
							case (1152): 
								fondo="LPI-fondo1152864.jpg"
								HM_PG_MenuWidth = 240;
								HM_PG_FontSize = 8;
                            	HM_left = 1010
								bant = 80
								banl = 350
								aui = 200
								fdl = 550
								fda = 320
							 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
								fdl = 550 
								fda = 300  
							  break

							case (800):
								fondo="LPI-fondo800600.jpg"
								HM_PG_MenuWidth = 182;
								HM_PG_FontSize = 7;
                            	HM_left = 680
								bant = 85 
								banl = 185
								aui = 100 // 160
								fdl = 550
								fda = 30
							 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
								fdl = 280
								fda = 30
							 break
						}

				 }
				else  {
  					window.alert("Necesita actualizar el navegador")
				  }


				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,3] //[1,31];

				}
				// ---  Fin opciones HM4 ---

				
				function aafav() {
					if (navigator.appName == 'Netscape')  {
					window.alert("en NetScape pulse Ctrl+D para añadir a favoritos")
					}
				    else {
					window.external.AddFavorite('http://www.lapuertadeinternet.com','La Puerta de Internet')					 
					}
                }

				function arriba() {
				    if (navigator.appName == 'Netscape')  {
					}
				    else {
					 document.all.arriba.focus()
					}
                }
                
                // fin arriba


				function a(ns) {
				ini_ref()
				ej="parent.ms2.window.open('am.asp?ns="+ns+"','ms2')"
				eval(ej)

				}


				function am(theURL, destino, alturl, nm) {

				 if (alturl != '') {
					theURL = alturl
					}
				 else {
				 }
	 			    window.open(theURL,destino)


				}    

				
				function am2(theURL, destino, alturl, nm) {
					window.open(theURL,destino)
					window.open('m2b.asp','mi')
				}


				  function buscar() {
				   am('buscar.asp','mi','','no')
				  }

				
			function fdia() {
	 			comun="<scri"+"pt language='JavaScript' src='http://www.proverbia.net/webmaster/frase.asp?op=0&ref=admin@lapuertadeinternet.com'></scr"+"ipt>"

					if (navigator.appName == 'Netscape')  {
						document.fd.style.left = fdl
						document.fd.style.left = fda
					}
				    else {
							  document.all.fd.style.left = fdl
							  document.all.fd.style.width = fda

					}
                 }


				function camp() {
	 			comun="<table><td  width='468' align='center'><a href='ban.asp?l=principal' onmouseover="+'\"'+"window.status='Clic para detalles ...';return true;"+'\"'+" target='_blank'> <img src='ban.asp?lugar=principal' border='0' alt='PUBLICIDAD seleccionada para ti que compras por Internet'></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><tr><td  width='468' align='center'><a href='ban.asp?l=derecha' onmouseover="+'\"'+"window.status='Clic para detalles ...';return true;"+'\"'+" target='_blank'> <img src='ban.asp?lugar=derecha' border='0' alt='PUBLICIDAD seleccionada para ti que compras por Internet'></a></td></tr></table>"
					 document.write("<div id='derecha' STYLE="+'\"'+"position:absolute;top:"+(bant+aui-50)+"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)
				}


				function ocnot() {
					oculta('noticias');oculta('cnot')
					document.getElementById('munot').innerHTML= "<font color=#00ffff><b>Puede&nbsp;mostrar&nbsp;las&nbsp;noticias&nbsp;de&nbsp;nuevo,&nbsp;desde&nbsp;el&nbsp;menú: Mi&nbsp;Puerta&nbsp;de&nbsp;Internet&nbsp;/&nbsp;Noticias</font></b>"
					setTimeout("oculta('munot')",5000)

				 }

	
				function munot() {
					muestra('noticias');muestra('cnot');
				}

			
				function vernot(){
				act = consG("noticias") 
				 if (act =="no") {
					//
					}
				 else {
					munot();
				  }
				}


				function notsi(){
				// mG(nom, val, cad)
				var fecha=new Date (2020, 12, 31);
				mG("noticias","si",fecha);
				munot();
				}
			

				function notno(){
				var fecha=new Date (2020, 12, 31);
				mG("noticias","no",fecha);
				ocnot();
				}

				// *** (m2)
				function ebody() {
				 HM_param()
					document.write("<BODY bgcolor='#0080FF' background=global/"+fondo+" Bgproperties=fixed topMargin=0 onload='ini_m2();vernot();'>");
				 }
				
				// *** opm2
				function ebody2() {
				 HM_param()
					document.write("<BODY bgcolor='#0080FF' background=global/"+fondo+" Bgproperties=fixed topMargin=0>");
					// paui();
				 }

				// *** (m2b)
				function ebody3() {
				 HM_param()
					document.write("<BODY bgcolor='#0080FF' background=global/"+fondo+" Bgproperties=fixed topMargin=0 onload='vernot();' >");
			    }



                // *** (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'>")
                    }        
				  }				


				// *** (m2)
				function ini_m2() {
					ini_ref()
					parent.ms2.location = "ms2.asp"
//				arriba()
				}

				
				function ini_ref() {
					parent.mi.defaultStatus="La Puerta de Internet - Lo mejor de la web a un clic.";
				}


				// *** función nv (m) ***

				function nv() {
				if( top.frames.length > 0 )
				top.location.href = location.href
				}


			    // *** función enfoque (m2)
				function enfoque() {
					if (parent.mi) {
//						parent.mi.focus();
					}
					else {
						top.location.href = "http://www.lapuertadeinternet.com"
					}
				}
	


                // *** nnvv ***
                function nnvv() {
					if (parent.mi) {
					}
					else {
						dest=document.location
						top.location.href = "../vi.asp?"+dest
					}
                } 

               
				// ** nvent ***
				function nvent(donde) {
					switch (donde) {
						case "blanco":
							window.open("")
							break
						case "lpi":
							window.open("http://www.lapuertadeinternet.com/")
							break
						default:							
							window.open("http://www.lapuertadeinternet.com/")
					}
				 }


				// *** función pinicio()
				function pinicio() {
				  if (navigator.appName == 'Netscape') {
			 		window.alert("En Netscape debe abrir el menú Edición / Preferencias y pulsar el botón "+'"'+'Utilizar página actual'+'"'+ " que en hay en el recuadro de Página de Inicio. Cerrando esta ventana con el botón Aceptar tendrá configurada La Puerta de Internet como página de inicio.")
					}
				  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'>")
 				  }
				}


				// *** (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>');  
				}


				function mispini(pag) {
				setup='toolbar=no,location=no,directories=no,status=no,menubar=no,width=510,height=450'  
				setup += 'scrollbars=no,resizable=no' 
				pop = window.open (pag,"pop", setup)
				}


				function pop(pag) {
				setup='toolbar=no,location=no,directories=no,status=no,menubar=no,width=300,height=350'  
				setup += 'scrollbars=no,resizable=no' 
				pop1 = window.open (pag,"pop1", setup)
				}

				// ** apin
				function apin(){
				activ = consG("lpi_ini") 
				 if (activ =="si") {
					mispini("pinicio00.asp")
					}
				 else {
					// enfoque()
//					 parent.mi.focus();
				 }
				}

				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()))
				}




				function sant(){
						ej="parent.ms2.window.open('nsant.asp','ms2')"
						eval(ej)
				}

				function ssig(){
						ej="parent.ms2.window.open('nssig.asp','ms2')"
						eval(ej)
				}



				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()				   
					  
                	}
				}


				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()
				}
			
				function z() {
				alert(itemid)
				}


				function va() {
				var pista = 1194
				var randomnumber = Math.random() ;
				var rand1 = Math.round( (pista-1) * randomnumber) + 1 ;
				a(rand1)
				}	
	