function ffirst() {

	wtimerclock = window.setInterval ("mclock()", 1000) ;

}

function mclock() {

	var mdate = new Date() ;
	var mdatestring = "" ;
	
	mdatestring += (mdate.getHours() > 9) ? mdate.getHours() : "0"+mdate.getHours() ;
	mdatestring += "." ;
	mdatestring += (mdate.getMinutes() > 9) ? mdate.getMinutes() : "0"+mdate.getMinutes() ;
	mdatestring += "." ;
	mdatestring += (mdate.getSeconds() > 9) ? mdate.getSeconds() : "0"+mdate.getSeconds() ;
	
	document.getElementById ("mclock").innerHTML = mdatestring ;
	
}


function mtopev(imgnum,imgstate) {

	var tempimg = new Image() ;
	tempimg.src = (imgstate==1) ? "imgs/nnm"+imgnum+"r.jpg" : "imgs/nnm"+imgnum+"t.jpg" ;
	
	if (document.all) {
	
		document.images["mtop"+imgnum].filters.blendTrans.apply();
		document.images["mtop"+imgnum].filters.blendTrans.play();
	
	}

	document.images["mtop"+imgnum].src = tempimg.src ;

}


// DAL VECCHIO SITO
function nospam (user) {
	location.href = "mailto:"+user+"@ubiemme.it"
}

function a2(row) {
	row.className="a2";
}

function a1(row) {
	row.className="a1";
}


function apriform(filewithoutext) {
	
		var filetopen =	'form'+filewithoutext + ".php";
		finform = window.open(filetopen,"finform","width=640,height=480,toolbar=0,statusbar=0,resizable=1,scrollbars=1");
		finform.focus();
}

function vplayer(nome) {
	switch (nome) {
	
		case 'high' :
			var url = 'interviste/player.html' ;
			var w0 = 360 ;
			var h0 = 310 ;
		break ;
		default :
			var url = 'interviste/player_180.html';
			var w0 = 200 ;
			var h0 = 180 ;
		break ;
	}
	var url = (nome == 'high') ? 'interviste/player.html' : 'interviste/player_180.html'; 
	
	var x0 = Math.round((parseInt(screen.width,10)-w0) / 2) ;
	var y0 = Math.round((parseInt(screen.height,10)-h0) / 2) ;
	sfin = 'width='+w0+',height='+h0+',top='+x0+',left='+y0+',resizable=0,scrollbars=0' ;
	wref = window.open(url,nome,sfin);
	wref.focus();
	
}


function zoomCms(id,seq) {

	wpop = window.open ("dinis/pop.php?id="+id+"&s="+seq, "wpop", "resizable=1,scrollbars=0")  ;

}

