// JavaScript Document
// AJUSTAR TAMAŅO DE LA IMAGEN DE PORTADA COMO MAXIMO 480  DE ANCHO Y 360 DE ALTO
function tamano()
{
	if (navigator.appName == "Microsoft Internet Explorer"){
		try{
				var ancho = document.images.imagenportada.width;
				var alto = document.images.imagenportada.height;
		
					if(alto > 360){
						
						if(ancho > 460){
								document.images.imagenportada.width=460;
						}else{
						document.images.imagenportada.height=360;								
						}
					}else{
						if(ancho > 460){
							document.images.imagenportada.width=460;
					
						}	
					}
			// ancho publicidad
				var anchopub = document.images.imagenpublicidad.width;
				if(anchopub > 468){
					document.images.imagenpublicidad.width=468;
				}
		}catch(e){
		}

	}else{
		//alert("entro firefox");
		try{
			var ancho = document.imagenportada.width;
			var alto = document.imagenportada.height;
	
				if(alto > 360){
					if(ancho > 460){
						document.imagenportada.width=460;
						}else{
						document.imagenportada.height=360;								
						}					
				}else{
					if(ancho > 460){
						document.imagenportada.width=460;
					}	
				}
				var anchopub = document.imagenpublicidad.width;
				if(anchopub > 468){
					document.imagenpublicidad.width=468;
				}
		}catch(e){
		}
	}
}

// AJUSTO EL TAMAŅO DE TODAS LAS IMAGENES A 460 DE ANCHO Y 360 DE ALTO
function tamanoimagenes(){
//--------------------------------------
	if (navigator.appName == "Microsoft Internet Explorer"){
		numero = document.images.length;
		for (i=0;i<numero;i++){
			var ancho = document.images[i].width;
			var alto = document.images[i].height;
				if(alto > 360){
					document.images[i].height=360;
				}else{
					if(ancho > 460){
						document.images[i].width=480;
					}	
				}
		}
	}else{
		numero = document.images.length;
		for (i=0;i<numero;i++){
			var ancho = document.images[i].width;
			var alto = document.images[i].height;
				if(alto > 360){
					document.images[i].height=360;
				}else{
					if(ancho > 460){
						document.images[i].width=480;
					}	
				}			
		}	
	}
//--------------------------------------
}
