monthNames = new MakeArray(12)
monthNames[1] = "Janeiro"
monthNames[2] = "Fevereiro"
monthNames[3] = "Março"
monthNames[4] = "Abril"
monthNames[5] = "Maio"
monthNames[6] = "Junho"
monthNames[7] = "Julho"
monthNames[8] = "Agosto"
monthNames[9] = "Setembro"
monthNames[10] = "Outubro"
monthNames[11] = "Novembro"
monthNames[12] = "Dezembro"

function data () {
msg = customDateSpring(new Date())
msg += " " + showtime() + " "
msg = " " + msg;
scrollMe()
}
function scrollMe(){
 document.write(msg);
msg = msg.substring(1, msg.length) + msg.substring(0,1);
}

function showtime (){
var now = new Date();
var months= now.getMonth();
var dates= now.getDate();
var years= now.getFullYear();
var timeValue = ""
timeValue += ((months >9) ? "" : " ")
timeValue += ((dates >9) ? "" : " ")
timeValue = ( months +1)
timeValue +="/"+ dates
timeValue +="/"+  years

var timeValue2 = " " + years
return timeValue2;
}

function MakeArray(n) {
this.length = n
return this
}


function customDateSpring(oneDate) {
var theDate =oneDate.getDate()
var theMonth = monthNames[oneDate.getMonth() +1]
return theDate + " de " + theMonth +   " de "
}
data()
