<!--



<!--

// for all date displays

//by Bill Sanders. billsanders@yahoo.com

//submitted and displayed at www.a1javascripts.com

today = new Date();

year = (today.getFullYear) ? today.getFullYear() : today.getYear();

month = today.getMonth();

switch (month) {

			 case 0 : month = ", Janeiro"; break;

			 case 1 : month = ", Fevereiro"; break;

			 case 2 : month = ", Mar&ccedil;o"; break;

             case 3 : month = ", Abril"; break;

			 case 4 : month = ", Maio"; break;

			 case 5 : month = ", Junho"; break;

			 case 6 : month = ", Julho"; break;

			 case 7 : month = ", Agosto"; break;

			 case 8 : month = ", Setembro"; break;

			 case 9 : month = ", Outubro"; break;

			 case 10 : month = ", Novembro"; break;

			 case 11 : month = ", Dezembro"; break;

			 }

date = today.getDate();

day = today.getDay();  

switch (day) {

			 case 0 : day =  "Domingo"; break;

			 case 1 : day = "Segunda"; break;

			 case 2 : day =  "Ter&ccedil;a"; break;

			 case 3 : day = "Quarta"; break;

			 case 4 : day = "Quinta"; break;

			 case 5 : day = "Sexta"; break;

			 case 6 : day =  "S&aacute;bado"; break;

			 }

hours = today.getHours();

  if (hours<12)  greeting = 'Bom Dia.';

	if (hours<18 && hours>11)  greeting = 'Boa Tarde.';

	if (hours<20 && hours>17)  greeting = 'Boa Noite.';

	if (hours>19)  greeting = 'Boa Noite.';

hour = (hours>12) ? (hours-12) : hours;

halfDay = (hours>11 && hours<24) ? '-' : '-';

minutes = today.getMinutes();

dayStr =  day+ '&nbsp;-&nbsp;' +date+ '' +month+ '&nbsp;de&nbsp;' +year;

timeStr = (minutes<10) ? hour+ ':0' +minutes+ ' ' +halfDay : hour+ ':' +minutes+ ' ' +halfDay;



// -->

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
