<!--

/*FILES :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: */

var abierto = 0;
var AbiertoLayer;
var LayerDNI;

function mostrar(LayerID) {
	if (abierto == 1 && LayerDNI != LayerID) {
		AbiertoLayer.style.display = "none";
	}
	var SelectedLayer = document.getElementById(LayerID);
	
	if (SelectedLayer.style.display == "none") {
		SelectedLayer.style.display = "";
		if (LayerID == "layercrearsubdirectorio") {
			document.crearsubcarpeta.nuevasubcarpeta.value = '';
			document.crearsubcarpeta.nuevasubcarpeta.focus();
		}
	} else {
		SelectedLayer.style.display = "none";
	}
	AbiertoLayer = SelectedLayer;
	LayerDNI = LayerID;
	abierto = 1;
}


function mostrarhora(LayerIDhora) {
	var HoraSeccionSola = document.getElementById('contenedorhoraseccionsola');
	var HoraSeccion = document.getElementById('contenedorhoraseccion');
	
	if (HoraSeccion.style.display == "none") {
		HoraSeccion.style.display = "";
		HoraSeccionSola.style.display = "none";
	} else {
		HoraSeccion.style.display = "none";
		HoraSeccionSola.style.display = "";
	}
}



function cerrar(LayerCloseID) {
	var CloseLayer = document.getElementById(LayerCloseID);
	CloseLayer.style.display = "none";
}


function borrarmostrar(LayerID) {
	if (abierto == 1 && LayerDNI != LayerID) {
		AbiertoLayer.style.display = "none";
	}
	var SelectedLayer = document.getElementById(LayerID);
	
	if (SelectedLayer.style.display == "none") {
		SelectedLayer.style.display = "";
	} else {
		SelectedLayer.style.display = "none";
	}
	AbiertoLayer = SelectedLayer;
	LayerDNI = LayerID;
	abierto = 1;
}


/*FIN FILES :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: */



/*LOADING :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: */

function JSFLASH_loading() {
	var xnumero = "0001";
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="172" height="172">\n');
	document.write('<param name="movie" value="system/img/loading.swf?'+xnumero+'">\n');
	document.write('<param name="quality" value="high">\n');
	document.write('<param name="menu" value="false">\n');
	document.write('<param name=bgcolor value=#000000>\n');
	document.write('<embed src="system/img/loading.swf?'+xnumero+'" quality="high" bgcolor="#000000" menu="false" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="172" height="172"></embed>\n');
	document.write('</object>\n');
}

/*FIN LOADING :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: */



function iluminar(src,color_entrada) {
    src.bgColor=color_entrada;
}


function apagar(src,color_default) {
    src.bgColor=color_default;
} 


function AllMessages() /* function to make all selectboxes selected by one click */
{
	for (var x = 0; x < document.upf.elements.length; x++)
	{
	var y = document.upf.elements[x];
	if (y.name != 'selectall') y.checked = document.upf.selectall.checked;
	}
}


function navegarthumb(linkthumb) {
	window.location.href=linkthumb;
}



function ventanaesta(url, ventana) {
var miPopup
w = 400;
h = 400;
x4 = screen.width/2 - (w/2);
y4 = screen.height/2 - (h/2);
miPopup = window.open(url, ventana, 'height='+h+',width='+w+',scrollbars=1,resizable=1,menubar=0,toolbar=0,status=0,location=0,directories=0,left=' + x4 + ',top=0');
miPopup.focus()
}

// -->