// JavaScript Document
function userolvido() {
TheNewWin =window.open('http://www.sanjuandelurigancho.com/usuarios/userolvido.asp','usernew','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=420,height=600'); 
}

function OcultarWinHits()
{
   hitsfotos.style.display="none";
   hitsvideos.style.display="none";
}

function opm(op)
{
   OcultarSubMenus();
   switch (op)
   {
   case 1:
	   fotos.style.display="";
	   break;
   case 2:
	   videos.style.display="";
	   break;
   case 3:
	   mensajes.style.display="";
	   break;
   }
}

function OcultarSubMenus()
{
   fotos.style.display="none";
   videos.style.display="none";
   mensajes.style.display="none";
}

function MostrarWinHits(op)
{
   OcultarWinHits();
   switch (op)
   {
   case 1:
	   hitsfotos.style.display="";
	   break;
   case 2:
	   hitsvideos.style.display="";
	   break;
   }
}

function changeframefotoview(id,op) {
	frames['fotoview'].location.href ="fotos.asp?id="+id+"&index="+op;
}
function changeframevideoview(id,op) {
	frames['videoview'].location.href ="videos.asp?id="+id+"&index="+op;
}

function loadFotoHits(id) {	
	frames['divfotos'].location.href ="fotohits.asp?id="+id;
}

function loadgrupofotos(id) {
	desceve.style.display="none";
	maindiv.style.display="";
	frames['showobj'].location.href ="fotogrupo.asp?id="+id;	
}

function loadgrupovideos(id) {
	desceve.style.display="none";
	maindiv.style.display="";
	frames['showobj'].location.href ="videogrupo.asp?id="+id;	
}

function MostrarSubMenu(objeto)
{
		var myWidth = 0, myHeight = 0;
		  if( typeof( window.innerWidth ) == 'number' ) {
			//Non-IE
			myWidth = window.innerWidth;
			myHeight = window.innerHeight;
		  } else {
			if( document.documentElement &&
				( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
			  //IE 6+ in 'standards compliant mode'
			  myWidth = document.documentElement.clientWidth;
			  myHeight = document.documentElement.clientHeight;
			} else {
			  if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
				//IE 4 compatible
				myWidth = document.body.clientWidth;
				myHeight = document.body.clientHeight;
			  }
			}
			}
	
	if (myWidth>700)
	{
		objeto.style.left = (myWidth-700)/2+500;
	}
	else
	{
		objeto.style.left = 500;
	}
   objeto.style.visibility = "visible";
   document.forminit.txtuser.focus();
}

function OcultarSubMenu()
{
   access.style.visibility = "hidden";
}