function abreAviso(n){
	window.open("aviso/aviso2.php?marco="+n, "AvisoLegal", "width=370,height=398,resizable=no");
}
function popap(url, w, h, alt){
	finestra=window.open('popap.php?url='+url+'&alt='+alt,"pop", "width="+w+",height="+h+",resizable=no");
	finestra.focus();
}
function popup(url, w, h, alt){
	pooop=window.open(url+'&alt='+alt,"pop", "width="+w+",height="+h+",resizable=no");
	pooop.focus();
}
function Item(){
	this.length = Item.arguments.length;
	for (var i=0; i<this.length; i++) this[i]=Item.arguments[i];
}
function Data() {
	var ndia  = new Item('Domingo', 'Lunes', 'Martes', 'Miércoles', 'Jueves', 'Viernes', 'Sábado');
	var nmes  = new Item('de Enero de', 'de Febrero de', 'de Marzo de', 'de Abril de', 'de Mayo de', 'de Junio de', 'de Julio de', 'de Agosto de', 'de Septiembre de', 'de Octubre de', 'de Noviembre de', 'de Diciembre de');
	var ara;
	var data = new Date();
	var any   = data.getYear();
	var mes   = data.getMonth();
	var dia   = data.getDay();
	var aux   = "" + data;
	if (any<10) {
		any2 = "200" + eval(any);
	}
	else if (any<80) {
		any2 = "20" + any;
	} 
	else if (any<=99) {
		any2 = "19" + any;
	}
	else if (any<1000) {
		any2 = eval(any) + eval(1900);
	}
	else {
		any2 = any;
	}
	ara = ndia[dia] + ", " + eval(aux.substring(7, 10)) + " " + nmes[mes] + " " + any2
	return ara
}
function diapositivas(ref){
	if (ref!=actual){
		document.getElementById('foto'+actual).style.display="none";
		document.getElementById('foto'+ref).style.display="";
		document.getElementById('foto_pie'+actual).style.display="none";
		document.getElementById('foto_pie'+ref).style.display="";
		actual=ref;
	}
}
var sRepeat=null;

function doScroller(src, amount) {
	if (amount==null) amount=10;
	document.getElementById(src).scrollLeft-=amount;
	if (sRepeat==null)
		sRepeat=setInterval("doScroller('"+src+"',"+amount+")",100);
	return false
}

// Used to end repeating scrolling
window.document.onmouseout = new Function("clearInterval(sRepeat);sRepeat=null");
window.document.ondragstart = new Function("return false");
