var lng = (sitelng && sitelng=='it')? 0 : 1;

function changeKeeper(spn){	
	if (spn && spn.innerHTML){
		var msg = (lng==1)?"This will assign a random colour to Hera the site-keeper. Note that this is not just your personal preference but it's a 'global' setting (quite bizarre for a website... isn't it?). All visitors will see that colour and obviously they can change it as well.\nOK?"
							:"Questo assegnera' un colore casuale a Hera, la guardiana del sito. Nota che non e' solo una impostazione personale ma 'globale' (bizzarro da parte di un sito, non trovi?). Tutti i visitatori vedranno il colore da te impostato ma possono anche cambiarlo, ovviamente.\nOK?";
		var cnf = confirm (msg);
		if (cnf){
			var nwspn = '<iframe src="/res/upkeep.php" width="1" height="10" frameborder="no" scrolling="no"></iframe>';
			spn.innerHTML = nwspn;
		}
	}
}

function setOpacity(objid, opacity){
	if(!document.getElementById)
		return;
	var obj = document.getElementById(objid);
	if(opacity>=100)
		opacity=99.999;
	else if(opacity<0)
		opacity=0;
//	if (obj.style.filter)
		obj.style.filter = "alpha(opacity:"+opacity+")";  // IE/Win
//	if (obj.style.KHTMLOpacity)
		obj.style.KHTMLOpacity = opacity/100; // Safari<1.2, Konqueror
//	if (obj.style.MozOpacity)
		obj.style.MozOpacity = opacity/100;   // Older Mozilla and Firefox
//	if (obj.style.opacity)
		obj.style.opacity = opacity/100;      // Safari 1.2, newer Firefox and Mozilla, CSS3
}