function lang(q){
	if(typeof _LANG[q] != "undefined"){
		if(arguments.length==1)return _LANG[q];
		else{
			var r=_LANG[q],re;
			for(var i=1;i<arguments.length;i++){
				re=new RegExp("%"+i,"g");
				r=r.replace(re,arguments[i]);
			}
			return r;
		}
	}
}

function cambiaLingua(q){
	location.href=location.href.replace(/\/\w{2}\//,"/"+q+"/");
}

function hsOver(q){
	$("hs-0").addClassName("none");
	$("hs-"+q).removeClassName("none");
}
function hsOut(q){
	$("hs-"+q).addClassName("none");
	$("hs-0").removeClassName("none");
}
