<!-- begin countdown script 
/*
(ADAPTED FROM:)
Dynamic countdown Script- © Dynamic Drive (www.dynamicdrive.com)
For full source code, 100's more DHTML scripts, and TOS, visit http://www.dynamicdrive.com
(TOM FRANCZAK 02-15-01)
*/
function setcountdown(theyear,themonth,theday){
yr=theyear;mo=themonth;da=theday
}

////////// CONFIGURE THE COUNTDOWN SCRIPT HERE //////////////////

// the event is scheduled for April 27, 2007 through April 29, 2007
// pls. account for DST before reporting a discrepancy in hours heheheheh

//STEP 1: Configure the countdown-to date, in the format year, month, day:
setcountdown(2007,4,27)

//STEP 2:  The three texts below pertain to before, during, and after the event
var occasion="the<br>Spring MAOC Orchid Show and Gala!  April 27-29, 2007"
var message_on_occasion="Our Spring MAOC Orchid Show and Gala is Open!  Party On!!"
var aftermath="Look for pictures from our recently concluded Spring MAOC Orchid Show and Gala inside!"

//STEP 3: The next 5 variables set the width, height, background color, and text style of the countdown area
var countdownwidth='410px';var countdownheight='40px'
//var countdownbgcolor='#CCCCFF'
var countdownbgcolor='lavender'
var opentags='<font face="Arial"><small>'
var closetags='</small></font>'

var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
var crosscount=''

// heavy lifting next

function start_countdown(){
if (document.layers)
document.countdownnsmain.visibility="show"
else if (document.all||document.getElementById)
crosscount=document.getElementById&&!document.all?document.getElementById("countdownie") : countdownie
countdown()
}

if (document.all||document.getElementById)
document.write('<span id="countdownie" style="width:'+countdownwidth+'; background-color:'+countdownbgcolor+'"></span>')

function countdown(){
var today=new Date()
var todayy=today.getFullYear()
var todaym=today.getMonth()
var todayd=today.getDate()
var todayh=today.getHours()
var todaymin=today.getMinutes()
var todaysec=today.getSeconds()
var todaystring=montharray[todaym]+" "+todayd+", "+todayy+" "+todayh+":"+todaymin+":"+todaysec
futurestring=montharray[mo-1]+" "+da+", "+yr
dd=Date.parse(futurestring)-Date.parse(todaystring)
//
ddrem=Math.floor(dd/86400000)
dd-=(ddrem*86400000)
hhrem=Math.floor(dd/3600000)
dd-=(hhrem*3600000)
mmrem=Math.floor(dd/60000)
dd-=(mmrem*60000)
ssrem=Math.floor(dd/1000)
//
// if the event is in progress
//
if(ddrem<=-1&&ddrem>-4){
if (document.layers){
document.countdownnsmain.document.countdownnssub.document.write(opentags+message_on_occasion+closetags)
document.countdownnsmain.document.countdownnssub.document.close()
}
else if (document.all||document.getElementById)
crosscount.innerHTML=opentags+message_on_occasion+closetags
return
}
//
// if the event is over
//
else if (ddrem<=-4){
if (document.layers){
document.countdownnsmain.document.countdownnssub.document.write(opentags+aftermath+closetags)
document.countdownnsmain.document.countdownnssub.document.close()
}
else if (document.all||document.getElementById)
crosscount.innerHTML=opentags+aftermath+closetags
return
}
//
// if not yet
//
else{
if (document.layers){
document.countdownnsmain.document.countdownnssub.document.write(opentags+"Only "+ddrem+ " days, "+hhrem+" hours, "+mmrem+" minutes, and "+ssrem+" seconds until "+occasion+closetags)
document.countdownnsmain.document.countdownnssub.document.close()
}
else if (document.all||document.getElementById){
crosscount.innerHTML=opentags+"Only "+ddrem+ " days, "+hhrem+" hours, "+mmrem+" minutes, and "+ssrem+" seconds until "+occasion+closetags
}
}
setTimeout("countdown()",1000)
}

//-->
