
function outageMessage(siteName){
   var startDate = "1235608200";
	var expDate = "1235703600";

   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 Thursday February  26th, 2009 (5:00pm Pacific time)</h2>   ");
		document.write ("      <p>The " + siteName + " system will be undergoing general maintenance from Thursday, February 26th, 5:00pm Pacific time to Friday, February 27th, 1: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 1:00am Pacific time on Friday, February 27th. </p>   ");
	document.write("   <p>Thank you for your patience and understanding. </p>   ");
	document.write("   <p>- The " + siteName + " team </p>   ");
	document.write("   </div>   ");
}
