// Small, single-line display.

// Variable Declarations

        var f = new Date();           // it begins

        var minutes=f.getMinutes();
        var hours=f.getHours();
        var date=f.getDate();     //nth day of the month - number
        var day=f.getDay();       // nth day of the week - NUMBER
        var month=f.getMonth();   // nth month of the year - NUMBER - remember January is ZERO so fix if displaying numerically
        var year=f.getFullYear();       

        var daysofweek = new Array("Sunday","Monday","Tuesday", "Wednesday","Thursday","Friday", "Saturday");
        var monthsofyear=new Array("January","February","March","April","May","June","July","August", "September","October","November","December");

// Preliminary actions
        if (hours>12){hours=hours-12};
        var wordday=daysofweek[day];        // count off from array for word of day
        var wordmonth=monthsofyear[month] ; // ditto for word of month
                        
//Display Information
        
        document.write(hours + ":");
                if (minutes<10) 
                        {document.write("0"+minutes)}
                else
                        {document.write(minutes)};
                if (f.getHours()>=12) 
                        {document.write(" p.m. ")}
                else
                        {document.write(" a.m. ")};
        
        document.write(" PST "+ wordday + ", ");
        document.write(wordmonth + " " + date);

