// JavaScript Document
var verfoto="Fotos/verfoto.html"
var colorentra="#DEE3E4"
var grosorentra=2
var colorsale="#F2F2FF"
var grosorsale=grosorentra

function abreventana(file,ancho,alto,window,sc,izq,arriba) {  // file, ancho, alto obligatorios, resto opcional
	if ( window == undefined )  window="WDEF"
	if ( sc == undefined ) sc=0
	if ( izq == undefined )  izq=0
	if ( arriba == undefined ) arriba=0
	parametros="left=" + izq +",top=" +arriba +",toolbar=0,directories=0,scrollbars=" + sc +",status=0,width=" +ancho +",height=" +alto
	msgWindow=open(file,window,parametros);
	if (msgWindow.opener == null) msgWindow.opener = self;
}

function Inicio() {
NombreNav=null
if (navigator.appVersion.indexOf("MSIE")!=-1) NombreNav="Microsoft"  //Comprueba si es IE
}

function Visufoto(foto) {
ventanafoto=window.open(verfoto,'VERFOTO','left=40,top=0,toolbar=0,directories=0,status=0,width=655,height=516');
ventanafoto.imagen=foto
}

function Entra(efecto,campo) {
var elemento = document.getElementById(campo)
argentra=grosorentra + "px outset " + colorentra
elemento.style.border = argentra;
if ( efecto == 1 ) {
	if ( NombreNav == "Microsoft" ) elemento.style.filter='Alpha(Opacity=100, FinishOpacity=50, Style=2, StartX=0, StartY=0, FinishX=320, FinishY=240)'
	else  elemento.style.opacity=0.7
	}
}

function Sale(efecto,campo) {
var elemento = document.getElementById(campo)
argsale=grosorsale + "px solid " + colorsale
elemento.style.border = '3px solid #F2F2FF'
if ( efecto == 1 ) {
	if ( NombreNav == "Microsoft" ) elemento.style.filter='alpha(opacity=100)'
	else  elemento.style.opacity=1
	}
}

function Efecto(id,campo) {
//var elemento = document.getElementById(campo)
//var elemento = document.getElementById("Marco-gral")
//elemento.style.border = "3px solid green";
NombreNav=null
if (navigator.appVersion.indexOf("MSIE")!=-1) NombreNav="Microsoft"  //Comprueba si es IE
if (  NombreNav == "Microsoft" ) 
	{
	if ( id == 1 ) {
		//document.getElementById(campo).style.filter='alpha(opacity=35)'
		//document.getElementById(campo).style.filter='Alpha(Opacity=100, FinishOpacity=0, Style=3, StartX=5, StartY=5, FinishX=0, FinishY=0)'
		document.getElementById(campo).style.filter='Alpha(Opacity=100, FinishOpacity=50, Style=2, StartX=0, StartY=0, FinishX=320, FinishY=240)'
		}
	else {
		document.getElementById(campo).style.filter='alpha(opacity=100)'

		}
	}
		var elemento = document.getElementById(campo)

elemento.style.border = "3px outset black";
}
