
function outageMessage(siteName){
   var startDate = 1265900400;
   var expDate   = 1266375600;

   fetch_unix_timestamp = function() {
      return parseInt(new Date().getTime().toString().substring(0, 10));
   }
   var currenttimestamp = fetch_unix_timestamp();

   if (startDate < currenttimestamp &&  currenttimestamp < expDate) {
      document.write ("   <div id='outage_notification'>   ");
      document.write ("      <h2 id='headline'>Scheduled maintenance for Tuesday February 16th, 2009 (5:00pm Pacific time)</h2>   ");
      document.write ("      <p>The " + siteName + " system will be undergoing general maintenance from Tuesday, Februrary 16th, 5:00pm Pacific time to Wednesday, February 17th, 5:00am. During this maintenance period, only our website will be unavailable. We apologize for any   inconvenience.</p>   ");
      document.write ("   </div>   ");
   }
}

function brbMessage(siteName) {
	document.write("   <div id='message'>   ");
	document.write("   <h1> " + siteName + " is temporarily unavailable due to scheduled maintenance.</h1>   ");
	document.write("   <p>We are currently undergoing a scheduled maintenance on the website. Ad servers are not effected and your ads are still being served. </p>   ");
	document.write("   <p>We will be back by 5:00am Pacific time on Wednesday, February 17th. </p>   ");
	document.write("   <p>Thank you for your patience and understanding. </p>   ");
	document.write("   <p>- The " + siteName + " team </p>   ");
	document.write("   </div>   ");
}
