tID = 0;
y = 0;
spd  = 100;
var fecha= new Date();
var diames=fecha.getDate();
var diasemana=fecha.getDay();
var mes=fecha.getMonth() +1 ;
var ano=fecha.getFullYear();

str= "Hoy "+diames+" / "+mes+" / "+ano+" | Año de la Consolidación Económica y Social del Perú."
function typeLayer() {
	 if(y >  str.length){
		//clearTimeout(tID);
		y=0;
		//$('#texto_din').html('');
		tID = setTimeout("typeLayer()",'1000');
	 } 
	 else {
		msg = str.substring(0,y);	  
		$('#texto_din').html(msg);	  
		y++;
		tID = setTimeout("typeLayer()",spd);
	 }
	 
}