//Añadir a Favoritos, Establecer Pagina de Inicio, Indicar Fecha y Hora
	
	function UltimaModificacion()
	{
		//de esto ni caso...
		//document.write("Última modificació: " & formatdatetime(cdate(document.lastmodified),0));
		//document.write("Última modificació: " & formatdatetime(document.lastmodified,0));
		//cdate.date+"-"+cdate.month+"-" + cdate.year)
	}

	function ClarorFavoritos()
	{
//		if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4))
//		{
			var url = "http://www.claror.org"; 
			var titulo = "Web de la Fundació Claror - www.claror.org";
			window.external.AddFavorite(url,titulo);
/*
		}
		else
		{ 
			if(navigator.appName == "Netscape") 
			{
				alert("Presione Crtl+D para agregar este sitio en sus Favoritos");
			}
		}
*/
	}
	
	function ClarorInicio()
	{
		inicio.style.behavior = 'url(#default#homepage)';
		inicio.setHomePage('http://www.claror.org');
	}
	
	function Item()
	{
		this.length = Item.arguments.length 
		for (var i = 0; i < this.length; i++)
		this[i] = Item.arguments[i]
	}
	
	function Fecha()
	{
		var ndia  = new Item('Diumenge', 'Dilluns', 'Dimarts', 'Dimecres', 'Dijous', 'Divendres', 'Dissabte')
		var nmes  = new Item('de Gener de', 'de Febrer de', 'de Març de', 'd´Abril de', 'de Maig de', 'de Juny de', 
		'de Juliol de', 'de Agost de', 'de Setembre de', 'd´Octubre de', 'de Novembre de', 'de Desembre de')
		var ahora
		var fecha = new Date()
		var ano   = fecha.getYear()
		var mes   = fecha.getMonth()
		var dia   = fecha.getDay()
		var hora  = fecha.getHours()
		var minut = fecha.getMinutes()
		var segon = fecha.getSeconds()
		var aux   = "" + fecha
		if (ano<10)
		{
			ano2 = "200" + eval(ano)
		}
		else if (ano<80)
		{
			// ano tiene 2 dígitos 19xx (más de 80)
			ano2 = "20" + ano
		} 
		else if (ano<=99)
		{
			// ano tiene 2 dígitos 20xx (menor de 80)
			ano2 = "19" + ano
		}
		else if (ano<1000)
		{
			// ano tiene 3 dígitos (100 es 2000)
			ano2 = eval(ano) + eval(1900)
		}
		else
		{
			ano2 = ano
			// ano tiene 4 dígitos
		}
		if (hora == 0) horas = 12;
		// minutos y segundos con dos dígitos
		if (minut <= 9) minut = "0" + minut;
		if (segon <= 9) segon = "0" + segon;
		//generar data
		ahora = ndia[dia] + ", " + eval(aux.substring(7, 10)) + " " + nmes[mes] + " " + ano2 + " " + hora + ":" + minut + ":" + segon
		if (document.layers)
		{
			document.layers.data.document.write(ahora);
			document.layers.data.document.close();
		}
		else if (document.all) data.innerHTML = ahora;
		else if (document.getElementById) document.getElementById("data").innerHTML = ahora;
		// Ejecuto la función con un intervalo de un segundo
		setTimeout("Fecha()", 1000);
	}
//by Flicy
	
	
