function Ver(FOTO)
{ventana=window.open("foto.asp?foto="+FOTO,"window","toolbars=0,scrollbars=0,location=0,statusbars=0,menubars=0,resizable=0,width=10,height=10,left=100,top=55");
  ventana.moveTo(((screen.width/2)-(150)),((screen.height/2)-(150)));
}

if (document.getElementById){ //DynamicDrive.com change
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('</style>\n')
}

function SwitchMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("masterdiv").getElementsByTagName("span"); //DynamicDrive.com change
		if(el.style.display != "block"){ //DynamicDrive.com change
			for (var i=0; i<ar.length; i++){
				if (ar[i].className=="submenu") //DynamicDrive.com change
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
}



//ABRE VENTANA
function PopUp(URL,ancho,alto,scroll) {
if (ancho==null){
	ancho=750;
	alto=300;
}
if (scroll==null){
scroll=1
}
  var remote
  remote = window.open(URL,"Ventana","toolbars=0,scrollbars="+scroll+",location=0,statusbars=0,menubars=0,resizable=no,width="+ancho+",height="+alto+",left=25,top=50");
  remote.location.href = URL;
    if (remote.opener == null) remote.opener = window;
      remote.opener.name = "principal";
}

//ABRE VENTANA
function admin(PAGINA) {
window.open(PAGINA,"Admin","toolbars=0,scrollbars="+scroll+",location=0,statusbars=0,menubars=0,resizable=no,width=300,height=100,left=300,top=300");
}

function get(url) {
  opener.location = url;
  self.close()
}
