// JavaScript Document
function solapas_complementos (sec) {
	switch (sec) {
		case "imagenes":
			imagenes.style.display='block';
			videos.style.display='none';
			audios.style.display='none';
			break;
		case "videos":
			imagenes.style.display='none';
			videos.style.display='block';
			audios.style.display='none';
			break;
		case "audios":
			imagenes.style.display='none';
			videos.style.display='none';
			audios.style.display='block';
			break;
	}
}

function solapas_panel (sec) {
	switch (sec) {
		case "avi":
			avi.style.display='block';
			est.style.display='none';
			ima.style.display='none';
			dat.style.display='none';
			pas.style.display='none';
			document.Form1.pnl.value='avi';
			break;
		case "est":
			avi.style.display='none';
			est.style.display='block';
			ima.style.display='none';
			dat.style.display='none';
			pas.style.display='none';
			document.Form1.pnl.value='est';			
			break;
		case "ima":
			avi.style.display='none';
			est.style.display='none';
			ima.style.display='block';
			dat.style.display='none';
			pas.style.display='none';
			document.Form1.pnl.value='ima';
			break;
		case "dat":
			avi.style.display='none';
			est.style.display='none';
			ima.style.display='none';
			dat.style.display='block';
			pas.style.display='none';
			document.Form1.pnl.value='dat';			
			break
		case "pas":
			avi.style.display='none';
			est.style.display='none';
			ima.style.display='none';
			dat.style.display='none';
			pas.style.display='block';
			document.Form1.pnl.value='pas';			
			break;
	}
}

function Pop_Up(file, ancho, alto) {
	var ventana, txtBody;
	
	var leftPos= (screen.width)?parseInt((screen.width-ancho)/2):100;
	var topPos= (screen.height)?parseInt((screen.height-alto)/2):100;

	ventana=window.open(file,'ventana1','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,width='+ancho+',height='+alto+',top='+topPos+',left='+leftPos);

	if(ventana.focus)
		ventana.focus();
}

function Pop_Up_S(file, ancho, alto) {
	var ventana, txtBody;
	
	var leftPos= (screen.width)?parseInt((screen.width-ancho)/2):100;
	var topPos= (screen.height)?parseInt((screen.height-alto)/2):100;

	ventana=window.open(file,'ventana1','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,width='+ancho+',height='+alto+',top='+topPos+',left='+leftPos);

	if(ventana.focus)
		ventana.focus();
}

function openIMG(path){
	var path = path;
	Pop_Up("pop_imagen.aspx?img="+path, 800, 530);
}

function POPHTMRADIO() {
	var ventana, txtBody;
	ancho=273;
	alto=280;

	var leftPos= (screen.width)?parseInt((screen.width-ancho)/2):100;
	var topPos= (screen.height)?parseInt((screen.height-alto)/2):100;

	ventana=window.open('http://www.rosario3.com/radios/radio2.html','ventana9','toolbar=no,location=no,directories=no,status=no,menubar=no,width='+ancho+',height='+alto+',top='+topPos+',left='+leftPos);

	if(ventana.focus)
		ventana.focus();
}
