var homeShowYear=2010 //this guarantees that nothing will show up in 2010, unless I change it here. if (homeShowYear) { var today = new Date(); var jEnd = new Date(); //end of show var jWebEnd = new Date(); //end of Online //Feb. 15 is last day of show jEnd.setMonth(1); //month field is 0-based! jEnd.setDate(14); jEnd.setYear(homeShowYear); //Feb. 26 is last day of online pres. jWebEnd.setMonth(1); //month field is 0-based! jWebEnd.setDate(26); jWebEnd.setYear(homeShowYear); if (today.getTime()<=jWebEnd.getTime()) { document.write('
'); document.write( '

2010 Home & Garden Show

'); document.write( 'Feb. 11-14 (Thur-Sun)
Lancaster Event Center

 
'); if (today.getTime()<=jEnd.getTime()) { document.write( 'Come visit us at the Home Show, Booths 345 & 346.'); } else {//show over but still online document.write( 'The show may be over, but you can still review the exhibitors at NebHomeShow.com.'); } document.write('

'); } }