			// *** Opciones de HM4 *** (m2)  FR

var mm="© La Porte d'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 = 380
								fda = 450
							 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 = 380
								fda = 450
							 break
							
							case (1024):
								fondo="LPI-fondo1024768.jpg"
								HM_PG_MenuWidth = 240;
								HM_PG_FontSize = 8;
                            	HM_left = 880
								bant = 80
								banl = 300
								aui = 150
								fdl = 380
								fda = 450
							  break

							case (800):
								fondo="LPI-fondo800600.jpg"
								HM_PG_MenuWidth = 182;
								HM_PG_FontSize = 7;
                            	HM_left = 660
								bant = 85 
								banl = 185
								aui = 120
								fdl = 350
								fda = 300
							 break

							case (640):
								fondo="LPI-fondo640480.jpg"
								HM_PG_MenuWidth = 182;
								HM_PG_FontSize = 7;
                            	HM_left = 500
								bant = 150
								banl = 150
								aui = 100
								fdl = 320
								fda = 300
							 break
	 					}
// 1152, 1280

				 }
				else  {
  					window.alert("Vous devez actualiser le navigateur")
				  }

				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_a_TreesToBuild =[1,31] //[1,31];

				}
				// ---  Fin opciones HM4 ---

				// *** función aafav (m2)
				function aafav() {
					if (navigator.appName == 'Netscape')  {
					window.alert("Dans NetScape poussez Ctrl.+D afin de l'ajouter à favoris.")
					}
				    else {
					window.external.AddFavorite('http://www.laportedinternet.com',"La Porte d'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 
				{

				// borrar ms2

                if (nm=="no") {
                }
                else {
		        }
                
                 
				
				// navegar en la URL seleccionada	
					// window.navigate(theURL);
					// window.write("<iframe name=mi src ="+ theURL +"> </iframe>")
                 /*
                  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 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.all.fd.style.left = banl+100
//						document.write(comun)
//					}
//				    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='Cliquez pour plus de détails';return true;"+'\"'+" target='blank'> <img src='ban.asp?lugar=principal' border='0' alt='Cliquez pour plus de détails'></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='Cliquez pour plus de détails';return true;"+'\"'+" target='blank'> <img src='ban.asp?lugar=derecha' border='0' alt='Cliquez pour plus de détails'></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)
				}


				// *** ocnot
				function ocnot() {
					oculta('noticias');oculta('cnot')
					document.getElementById('munot').innerHTML= "<font color=#00ffff><b>Vous&nbsp;Pouvez&nbsp;faire&nbsp;réapparaître&nbsp;les&nbsp;actualités&nbsp;depuis&nbsp;le&nbsp;menu:<br>Ma&nbsp;Porte&nbsp;d'Internet/Actualités</font></b>"
					setTimeout("oculta('munot')",5000)
 				  }
		
				// *** munot
				function munot() {
					muestra('noticias');muestra('cnot');
				}

			
				// ** vernot
				function vernot(){
				act = consG("not_fr") 
				 if (act =="no") {
					//
					}
				 else {
					if (document.all) {
					document.all.noticias.style.visibility= 'visible'
					document.all.cnot.style.visibility= 'visible'
					}
					else {
					document.Nnoticias.visibility="show"
					document.Ncnot.visiblity="show"
					}
				 }	
				}


				// ** notsi
				function notsi(){
				// mG(nom, val, cad)
				var fecha=new Date (2020, 12, 31);
				mG("not_fr","si",fecha);
				munot();
				}
			
				// ** notno
				function notno(){
				var fecha=new Date (2020, 12, 31);
				mG("not_fr","no",fecha);
				ocnot();
				}
 
 


					// *** función cpais (m2)
				function cpais(pais) {
					var x = new Date(2020,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 ("Uk"):
							mG('aps','Uk', x)
							top.location.href = "http://www.thegatewaytointernet.com/uk"
						 break
					}		
				}

 

				// *** función ebody (m2)
				function ebody() {
				 HM_param()
					document.write("<BODY bgcolor='#0080FF' background=global/"+fondo+" Bgproperties=fixed topMargin=0 onload='ini_m2(); vernot();'>");
				 }
				
				// fin de ebody

				// *** función ebody2 (m2)
				function ebody2() {
				 HM_param()
					document.write("<BODY bgcolor='#0080FF' background=global/"+fondo+" Bgproperties=fixed topMargin=0>");
			    }

				// *** (m2b)
				function ebody3() {
				 HM_param()
					document.write("<BODY bgcolor='#0080FF' background=global/"+fondo+" Bgproperties=fixed topMargin=0 onload='vernot();' >");
			    }

	
                // *** 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="La Porte d'Internet - Le meilleur du web à un clic";
				parent.ms2.location = "ms2.asp"
//				arriba()
 			
                // marco01()
				}


				// *** función nv (m) ***

				function nv() {
				if( top.frames.length > 0 )
				top.location.href = location.href
				}

	
				// Prueba
			
                function Prueba()
                {
                        window.alert("La función prueba ha sido llamada");
                } // Fin de funcion
				

			    // *** función enfoque (m2)
				function enfoque() {
					if (parent.mi) {
			//			parent.mi.focus();
					}
					else {
						top.location.href = "http://www.laportedinternet.com"
					}
				}
	


                // *** nnvv ***
                function nnvv() {
                } 

               
				// ** nvent ***
				function nvent(donde) {
					switch (donde) {
						case "blanco":
							window.open("")
							break
						case "lpi":
							window.open("http://www.laportedinternet.com/")
							break
						default:							
							window.open("http://www.laportedinternet.com/")
					}
				 }
				// fin nvent



				// *** función pinicio()
				function pinicio() {
				  if (navigator.appName == 'Netscape') {
			 		window.alert("Dans Netscape vous devez ouvrir le menu Édition / Préférences et appuyer sur le bouton -Utilisez page actuelle- qui se trouve dans le cadre de Page d'Accueil. En fermant cette fenêtre avec le bouton -Acceptez-, vous aurez configuré La Porte d'Internet comme page d'Accueil.")
					}
				  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 Porte d"+"'"+"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)
				}

				function mispini2() {
				setup='toolbar=no,location=no,directories=no,status=no,menubar=no,width=510,height=450'  
				setup += 'scrollbars=no,resizable=no' 
				pop = window.open ("pinicio04.asp","pop", setup)
				}
 


				// ** apin
				function apin(){
				activ = consG("lpi_inifr") 
				 if (activ =="si") {
					mispini()
					}
				 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()))
				}




				// ** 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 = 872
				var randomnumber = Math.random() ;
				var rand1 = Math.round( (pista-1) * randomnumber) + 1 ;
				a(rand1)
				}						