// Warning "jump page"  
var pURL = new Array(); 
pURL[0] = "http://feeds.feedburner.com/NwsWestCoast/alaskaTsunamiCenterProductsexperimentalRssFeed";  
function oWin(nURL) {   alert("Warning: You are now leaving the National Weather Service\n"+         
"destination web site :- \n" + pURL[nURL] + "\n\n" +         
"This link does not constitute an endorsement by the NWS of any information, products or services on this site.\n\n");     
window.open (pURL[nURL]); }  
// PopQuake  
var newwindow;  
function popQuake(url)
 { 	newwindow=window.open(url,'Quake','height=166,width=200,resizable=true'); 	
if (window.focus)            newwindow.focus(); }  // ++++++++++
 
// Display the Time on the main banner page
function showDateTime()
{
 var date = new Date();
 var hours = date.getHours();
 var milhrs = hours;
 if(milhrs < 10)
   {
   milhrs = "0" + milhrs;
   }

 if(hours > 12)
   {
   hours = hours - 12;
   }

 var mins = date.getMinutes();
 if (mins < 10)
   {
   mins = "0" + mins;
   }
	
 var utc = date.getUTCHours();

 document.write("<p class=\"grayTime\">Your local time is: " + hours + ":" + mins);
 document.write(" / UTC is: " + utc + ":" + mins + "</p>");
}

var tEvents = new Array();

// Always include the width and height for any images)
var closeimg =
  '<img src="../images/exit.gif" alt="Click here to Close" '
  +'width="12" height="11" border="0">';

function events(bulletin, nr, day, URI)
{
  this.bulletin = bulletin; 
  this.nr = nr;
  this.day = day;
  this.URI = URI;
} 

function showEvents(inDay)
{
     for (i=0; i<tEvents.length; i++)
       {
         if (tEvents[i].day == inDay)
           window.open(tEvents[i].URI,'events'+i);
       }

}
 