/** * Effetto fade in/out. * @param obj * @return null */function tstopFade(obj) {	if ($(obj)) {		$(obj).fade({ duration: 0.5, from: 1, to: 0.5 });		window.setTimeout("$('" + obj.id + "').fade({ duration: 0.4, from: 0.6, to: 1 })", 500);	}}/** * Effetto tstopFade sulle scritte del banner della home. * @param count * @return null */function tstopDynamicBar(count) {	if (count < 8) {		if (count == 0) {			//non portare il fade fino a 0 altrimenti non si visualizza piu'			$('barratesto').fade({ duration: 1, from: 1, to: 0.1 });			window.setTimeout("$('barratesto').hide()", 1000);			window.setTimeout("$('barratesti').show()", 1000);		}		tstopFade($("barrat" + Math.floor(Math.random()*11)));		window.setTimeout('tstopDynamicBar(' + ++count + ')', 1500);	} else {		$('barratesti').hide();		$('barratesto').show();		$('barratesto').fade({ duration: 1, from: 0.1, to: 1 });		window.setTimeout('tstopDynamicBar(0)', 3000);	}}
