function icon(){
date=new Date();
if (date.getDate()%2==0)document.write("<link rel='shortcut icon' href='icon/t2.ico' />");
else document.write("<link rel='shortcut icon' href='icon/t1.ico'>");
}
function isExplorer(){
	var browser=navigator.appName
  var b_version=navigator.appVersion
  if (browser=="Microsoft Internet Explorer"){
		 alert("This web page is optimized to be visualized whit FIREFOX browsers, now you'll be redirected to mozillaitalia site where you'll be able to download it..."); 
		 window.open("http://www.mozillaitalia.it/archive/index.html#p1","","parent,height=300,scrollbars=yes");
	}
}
function montre(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=10; i++) {
		if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
	}
if (d) {d.style.display='block';}
}
function focusM(id,focused){
var menu = document.getElementById(id);
  if (focused){
  	 menu.style.backgroundImage="url(index_files/buttonOff.png)";
		 menu.style.color="white";
  }else{
  	  menu.style.backgroundImage="url(index_files/buttonOn.png)";
  }
}
function emailFocus(focused){
var email = document.getElementById("email");
  if (focused){
  	 email.src="index_files/emailOff.png";
  }else{
  	 email.src="index_files/emailOn.png";
  }
}
function preferiti(){
  var url="http://xoomer.virgilio.it/tcube/"
  var title="TCUBE Web site";
  if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
  	 window.external.AddFavorite(url,title);
  } else if (navigator.appName == "Netscape") {
  window.sidebar.addPanel(title,url,"");
  }else{
  	 alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark");
  }
}
function openPopUp(ind){
var stile = "top=100, left=100, width=450, height=400, status=no, menubar=no, toolbar=no scrollbar=no";
window.open(ind, "", stile);
}
function getBanns(id){
var list=document.getElementById(id);
var ind=list.options[list.selectedIndex].text;
var src="";
  if (ind!='select research'){
    src='banns_files/'+id+'/'+ind+'.pdf';
    window.open(src);
  }
}
function changeArticle(){
var combo=document.getElementById("choice");
var ind=combo.options[combo.selectedIndex].text;
var mon=document.getElementById("monitor");
mon.style.display="block";
mon.src="http://xoomer.alice.it/t-3/laVoce_files/articoli/"+ind+".html";
}
function changeParty(id){
var iframe=document.getElementById("monitor");
iframe.style.display="block";
if (id!='')iframe.src="http://xoomer.alice.it/t-3/parties_files/desc/"+id+".html"
}
