// the number of seconds between status image refreshes
var seconds = 60;

// the emergency information URL
var lnkURL = 'http://blink.ucsd.edu/go/emergency';

// the status icon URL
var imgURL = 'http://blink.ucsd.edu/Blink/Images/Status/campus_status.gif?';

// write the anchor tag for the hyper-link
document.write('<a noparse href="'+lnkURL+'">');

// write the image tag (and the anchor close)
document.write('<img id="statusImg0912865671289" src="'+imgURL+'0912865671289" alt="Emergency Status" border="0"/></a>');

// periodically relaod the image (appending a random number query string to the URL to spoof the web browser caching)
setInterval('document.images.statusImg0912865671289.src="'+imgURL+'"+(Math.random()*100000);',(seconds*1000));