                         
                         
                         
                         
  /* 	Calculate Philly Image Name    */

function phillyview(){
    var OFFSET = 1
    var now   = new Date()
    var year  = now.getYear()
    var month = now.getMonth()
    month     = month + 1
    var day   = now.getDate()
    var hours = now.getHours()
    var minutes = now.getMinutes()
/*  What if we have to switch sense of offset?
    hours     = ((minutes < OFFSET) ? hours-1 : hours) 
    minutes   = ((minutes < OFFSET) ? minutes+60-OFFSET : minutes-OFFSET)*/
    hours     = ((minutes < OFFSET) ? hours-1 : hours) 
    minutes   = ((minutes < OFFSET) ? minutes+60-OFFSET : minutes-OFFSET)
    var timeValue = "http://192.35.37.25/philaview/" 
    timeValue  += ((month < 10) ? "0" : "") + month
    timeValue  += ((day < 10) ? "0" : "") + day 
    timeValue  +=  year + "-" 
    timeValue  +=  ((hours < 10) ? "0" : "") + hours
    timeValue  += ((minutes < 10) ? "0" : "") + minutes  
    timeValue  +=  "_small.jpg"
    document.philly.src = timeValue
}
/* Call

       <IMG NAME="philly" SRC="clear.gif" onLoad="phillyview()" ALT = "Current View of Philly from Lockheed Martin" WIDTH=160 HEIGHT=120 BORDER=0></a><BR>

*/

                       
                       
                       
                       
