
var html=""
	html += "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr bgcolor=\"#000000\"><td style=\"height: 32px; border-top: 3px solid #555555;\">&nbsp;</td></tr></table>"

	html += "<div style=\"background: url(http://www.outstandingamarillo.org/images/mainheader.jpg) no-repeat #000000; position: absolute; top: 32px; left: 0px; width: 100%; height: 88px; border-top: 3px solid #555555; border-bottom: 3px solid #555555;\"><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td width=\"35%\">&nbsp;</td><td  style=\"padding-top:8px; padding-right:20px; color:white\" align=\"right\" class=\"mainsm\">"

	 var theRandomQ = getRandomQuote()
	html += theRandomQ
	
	html += "</td></tr></table></div><table style=\"position: absolute; top: 128px; \" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td width=\"15%\" align=\"center\" valign=\"top\" style=\"background: #CCCCCC; border-right: 3px solid #555555; padding: 10px;\"><!-- a href=\"http://www.mpowerment.outstandingamarillo.org\"><img src=\"http://www.outstandingamarillo.org/images/mpowerment_logo.jpg\" alt=\"MPowerment\" width=\"175\" border=\"0\"></a --><br><br><a href=\"http://www.outstandingamarillo.org/harassment.html\"><img src=\"http://www.outstandingamarillo.org/images/stopharassment.jpg\" alt=\"Stop Harrassment Report\"></a><br><a href=\"http://www.volunteers.outstandingamarillo.org\"><img src=\"http://www.outstandingamarillo.org/images/volunteers.gif\" border=\"0\" alt=\"Volunteer Signup\"></a><br><br><a href=\"http://www.outstandingamarillo.org/donationpaypal.html\"><img  src=\"https://www.paypal.com/en_US/i/bnr/bnr_nowAccepting_150x60.gif\" alt=\"Donate Now\" border=\"0\"></a><br><br><img src=\"http://www.outstandingamarillo.org/images/proudmember.gif\" alt=\"Member of Interpride\" border=\"0\"><br><img src=\"http://www.outstandingamarillo.org/images/interpride_logo.gif\" alt=\"Interpride Logo\" border=\"0\"><br><a href=\"http://www.lgbtcenters.org\"><h3 style=\"color: black;\">NALGBTCC Member</h3></a><span style=\"font-size: 50pt; border-style: solid; border-width: 3px; border-color: black;\" id=\"days\"></span><br><br>day<span id=\"plural\">s</span> <span id=\"happenedspan\">until</span> <span id=\"gevent\"></span><br><span id=\"hours\"></span>:<span id=\"minutes\"></span>:<span id=\"seconds\"></span></td><td valign=\"top\" style=\"padding: 10px;\">"

document.writeln(html)

fevent = "Pride"
emonth = 06
edate = 25
eyear = 2009

document.getElementById("gevent").innerHTML = fevent
daysin = new Array(31,28,31,30,31,30,31,31,30,31,30,31)
totdays = new Array()
totdays[0] = 0
for (i = 1; i < 12; i++){
	totdays[i] = totdays[i-1] + daysin[i-1]
}
edayspastnew = totdays[emonth - 1] + edate


function updatetimer(){
	today=new Date()
	happened=false
	dayspastnew=totdays[today.getMonth()]+today.getDate()
	daystill2=((eyear-today.getFullYear())*365+(edayspastnew-dayspastnew))
	if (daystill2<=0) {
		happened=true
	}
	todayseconds=(60-today.getSeconds()).toString()
	if (happened==true) {
		todayseconds=today.getSeconds().toString()
	}
	if (todayseconds.length!=2) {
		todayseconds="0"+todayseconds
	}
	todayminutes=(60-today.getMinutes()).toString()
	if (happened==true) {
		todayminutes=today.getMinutes().toString()
	}
	if (todayminutes.length!=2) {
		todayminutes="0"+todayminutes
	}
	dayspastnew=totdays[today.getMonth()]+today.getDate()
	daystill=((eyear-today.getFullYear())*365+(edayspastnew-dayspastnew))
	todayhours=(-today.getHours()+daystill*24-1)
	if(happened==true){
		daystill=((today.getFullYear()-eyear)*365+(dayspastnew-edayspastnew))
		todayhours=(today.getHours()+daystill*24)
	}
	document.getElementById("seconds").innerHTML=todayseconds
	document.getElementById("minutes").innerHTML=todayminutes
	document.getElementById("hours").innerHTML=todayhours
	document.getElementById("days").innerHTML=daystill
	document.getElementById("happenedspan").innerHTML= (happened?"since":"until")
	if (daystill==1){
		document.getElementById("plural").innerHTML=""
	}else{
		document.getElementById("plural").innerHTML="s"
	}
	setTimeout("updatetimer()", 1000)
}

updatetimer()

function footer(){
	html=""
	html+="</td></tr><tr><td align=\"center\" colspan=\"2\"><br><br><table width=\"100%\" class=\"footer\"><tr><td style=\"border-top: 3px solid #555555;\" align=\"center\"><a href=\"http://www.outstandingamarillo.org/index.html\" class=\"footer\">HOME</a>&nbsp;&nbsp;/&nbsp;&nbsp;<a href=\"http://www.outstandingamarillo.org/tmpcal.html\" class=\"footer\">CALENDAR</a>&nbsp;&nbsp;/&nbsp;&nbsp;<a href=\"http://www.outstandingamarillo.org/newmsg.html\" class=\"footer\">MESSAGE BOARD</a>&nbsp;&nbsp;/&nbsp;&nbsp;<a href=\"http://www.outstandingamarillo.org/nl2006.html\" class=\"footer\">NEWSLETTERS</a>&nbsp;&nbsp;/ <a href=\"http://www.outstandingamarillo.org/cgi-bin/catlisting.cgi\?type=Bars\" class=\"footer\">DIRECTORY</a>&nbsp;&nbsp;/&nbsp;&nbsp;<a href=\"http://www.outstandingamarillo.org/pride2006.html\" class=\"footer\">PRIDE</a>&nbsp;&nbsp; / &nbsp;&nbsp;<a href=\"http://www.outstandingamarillo.org/findus.html\" class=\"footer\">FIND US</a>&nbsp;&nbsp;/&nbsp;&nbsp;<a href=\"http://www.outstandingamarillo.org/signup.html\" class=\"footer\">CONTACT US</a>&nbsp;&nbsp;/&nbsp;&nbsp;<a href=\"http://www.outstandingamarillo.org/aboutus.html\" class=\"footer\">ABOUT US</a><br><br><b>PHONE : (806) 337-1688 (337-1OUT)</b></td></tr></table></td></tr></table>"
	html+="<script src=\"http://www.google-analytics.com/urchin.js\" type=\"text/javascript\"></script><script type=\"text/javascript\">_uacct = \"UA-593696-1\";urchinTracker();</script>"
	html+="</body></html>"	
	document.writeln(html)
}
