function vhdaystart() {
return '<div style="float: right; width: 261px; margin: 0px 0px 5px 5px; background-image: url(\'http://webpages.charter.net/madeinamerica/liberalutopia/amerflagbg1_.jpg\'); border-width: 1px 2px 2px 1px; border-style: solid; border-color: #c00000 #000080 #000080 #c00000; padding: 3px; font-family: verdana, arial; font-size: .83em; text-align: center;"><b style="color: #c00000; font-size: 1.776em;">Victory 2006</b><br /><span style="color: #000080; font-weight: bold;">Both At Home <span style="font-variant: small-caps;">and</span> Abroad</span><table cellspacing="0"><tr><td></td></tr></table><i style="font-size: 76%;">re-election campaigns\' Web logs listed first</i>';
}

function vhdayend() {
return '&nbsp; <span style="border-top: 1px solid #e0c0c0; border-bottom: 2px solid #c0a0a0; padding-right: 5px; padding-left: 5px; font-size: 84%; font-variant: small-caps; line-height: 94%; background-color: #d0b0b0; color: white; font-weight: bold;">over <u>all</u> enemies of greater freedom!</span><table cellspacing="1"><tr><td></td></tr></table><table width="261" cellpadding="0" cellspacing="0" border="0" style="margin-top: 3px; border-width: 1px 2px 2px 1px; border-style: solid; border-color: #9090c0 #e09090 #e09090 #9090c0; background-color: #fff; background-image: url(\'http://webpages.charter.net/madeinamerica/liberalutopia/amerflagbg2_.jpg\'); font-family: georgia, arial, verdana; font-size: .76em; color: #707030; font-weight: bold; text-align: center;"><tr><td style="padding: 3px;"><i>Please post additional links in the comments.</i><br /><a href="http://webpages.charter.net/madeinamerica/liberalutopia/br_Election2006.opml">OPML file</a> (right-click to save)</td></tr></table></div>';
}

function electionday2006(csdval) {
cstoday = new Date(csdval);
cselect = new Date("November 7, 2006");
csey = cselect.getYear();
csem = cselect.getMonth();
csed = cselect.getDate();
csfnlmo = new Date(csey,csem,1);
csprvmo = new Date(csey,(csem-1),1);
cstmtot = Math.floor((csfnlmo-csprvmo)/1000/3600/24+.5);
csty = cstoday.getYear();
cstm = cstoday.getMonth();
cstd = cstoday.getDate();
csddays = Math.floor((cselect-cstoday)/1000/3600/24+.5);
csddaysw = ( csddays > 1 ) ? csddays + ' days' : csddays + ' day';
csdweek = csddays/7;
csdwwhl = Math.floor(csdweek);
csdwrem = Math.floor(7*(csdweek-csdwwhl)+.5);
csdweekp = ( csdwwhl > 1 ) ? 's' : '';
csdwremp = ( csdwrem > 1 ) ? 's' : '';
csdweekw = ( csdwwhl > 0 ) ? csdwwhl + ' week' + csdweekp : '';
csdwremw = ( csdwrem > 0 ) ? csdwrem + ' day' + csdwremp : '';
csdwrdw = ( ( csdwwhl > 0 ) && ( csdwrem > 0 ) ) ? csdweekw + ' &amp; ' + csdwremw : csdweekw + csdwremw;
csdd = ( csed >= cstd ) ? csed - cstd : csed - cstd + cstmtot;
csdm = ( csed >= cstd ) ? csem - cstm : csem - cstm - 1;
csddp = ( csdd > 1 ) ? 's' : '';
csdmp = ( csdm > 1 ) ? 's' : '';
csddw = ( csdd > 0 ) ? csdd + ' day' + csddp : '';
csdmw = ( csdm > 0 ) ? csdm + ' month' + csdmp : '';
csdmdw = ( ( csdd > 0 ) && ( csdm > 0 ) ) ? csdmw + ' &amp; ' + csddw : csdmw + csddw;
if ( csddays >= cstmtot ) {
	var csdall = csdmdw + ' (' + csdwrdw + '; ' + csddaysw + ' total)';
}
else {
	if ( csddays >= 7 ) {
		var csdall = csdwrdw + ' (' + csddaysw + ' total)';
	}
	else {
		var csdall = csddaysw;
	}
}
csdall = ( csddays > 0 ) ? 'With only ' + csdall + ' remaining until Election Day...' : 'Vote today!';
csdall = '<div class="startLetter">' + csdall.substring(0,1) + '</div>' + csdall.substring(1);
return csdall + '<br />';
}
