
var Announcement =
"Our Houston offices were only slightly damaged by Hurricane Ike and power has been restored. There " +
"is a city-wide curfew in effect this week that will shorten our hours of operation to 7am-10pm, CDT " +
"(8am-8pm on Saturday). We will expand to regular hours effective Sunday, Sept 21. The 500 Houston-area " +
"employees of Vacations To Go appreciate your patience during this emergency.";

if( document.getElementById("AnnouncementLink") ) {
  document.getElementById("AnnouncementLink").innerHTML = "We are Open!";
}

function closeAnnouncement() {
  var obj = document.getElementById("AnnouncementContainer");

  if( obj ) {
    obj.style.visibility = "hidden";
    
    if( window.ActiveXObject )
      obj.removeChild( obj.firstChild );
  }
}

function showAnnouncement() {
  var obj = document.getElementById("AnnouncementContainer");

  if( obj ) {
    // Patch for IE6/5.x-Select-Ignore-zIndex-Problem
    if ( window.ActiveXObject ) {
      var ieMat = document.createElement("iframe");
    
      ieMat.style.width = obj.offsetWidth + "px";
      ieMat.style.height = obj.offsetHeight + "px";  
      ieMat.style.zIndex = -1;
      ieMat.style.position = "absolute";
      ieMat.style.top = "-10";  // accounts for border-top, which is defined in css
      ieMat.style.left = "-10";  // accounts for border-left, which is defined in css
      ieMat.style.filter = "progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)";

      obj.insertBefore( ieMat, obj.firstChild );
      obj.style.zIndex = "100";
    }
    
    obj.style.visibility = "visible";
  }
}

document.write( "<DIV ID=\"AnnouncementContainer\">" +
                "  <DIV ID=\"AnnouncementCloseBtn\"><A HREF=\"javascript:closeAnnouncement();\"><B>Close Announcement</B></A></DIV>" +
                "  <DIV ID=\"AnnouncementContent\">" +
                     Announcement +
                "  </DIV>" +
                "</DIV>" );

