eventdate = new Array(3)
eventtitle = new Array(3)
eventlink = new Array(3)

eventdate[0]="4/8/2006"
eventtitle[0]="River Ride"
eventlink[0]=""

eventdate[1]="4/15/06"
eventtitle[1]="Ride Coordinator Day"
eventlink[1]=""

eventdate[2]="4/29/2006"
eventtitle[2]="Parker's Ride"
eventlink[2]=""


pdate="5/13/2007"
ptitle="Cornerstone Blessing"
pfolder="89"


linkname=new Array(4)
linkdescription=new Array(4)
discount4members=new Array(4)
linkurl=new Array(4)

linkname[0]="WomanBiker.Com"
linkdescription[0]="Motorcycle apparel and accessory store in Concord, NH focusing on clothing for Women. Style, Safety, comfort Clothing that fits!."
discount4members[0]="N"
linkurl[0]="http://www.womanbiker.com"
                    
linkname[1]="RJ's Motorsport"
linkdescription[1]="New Hampshire's Premier Independent Motorsport Dealer. Pre-owned bikes and Accessories."
discount4members[1]="Y"
linkurl[1]="http://www.rjsmotorsport.com/"

linkname[2]="The Pickle Song"
linkdescription[2]="Something to entertain you as we wait for riding season!"
discount4members[2]="N"
linkurl[2]="http://www.hallcross.co.uk/pickleSong/picklesong.html"

linkname[3]="The Penguin Game"
linkdescription[3]="More stuff to pass time - Take a whack at the penguin and try to beat my best of 315ft"
discount4members[3]="N"
linkurl[3]="http://n.ethz.ch/student/mkos/pinguin.swf"



lastnewsdate="5/2/2006"


function sectionheader(sectitle,sectht)
{
document.write('<table border=2 cellpadding=5 bgcolor="#F8F8FF" bordercolor="#F8F8FF" width ="207" height="'+sectht+'">');
document.write('<tr height="15"><td align="left" bgcolor="#6699CC"><h3>'+sectitle+'</td></tr>');
document.write('<tr><td align="center">');
}

function writephotosection()
{
sectionheader("Recent Photos","250");
	document.write('<table bgcolor="#F8F8FF" width="250"');
	document.write('<tr align="center"><td align="center"><h5>'+ptitle+'<td></tr>');
	document.write('<tr align="center"><td><a href="photos/displayphotos.php?id=87"><img height="95" src="photos/2007/89/photo001.JPG"></td>');
	document.write('<tr align="center"><td align="center"><h5>'+pdate+'</td></tr></table>');
document.write('</td></tr>');
document.write('<tr height="30"><td align="right">');
	document.write('<table><tr><td><img src="plainbuttons/mc-ured.bmp" height="30"></td>');
	document.write('<td align="right" bgcolor="#F8F8FF"><b><h5><a href="photos/photo2007.php">View All Photos</a></td>');
	document.write('</tr></table>');
document.write('</td></tr></table>');
}


function writelinksection()
{
sectionheader("Favorite Links","250");
	i=Math.round(Math.random()*3);
	document.write('<table width="232"><tr><td height="25"><h5><a target="_blank" href="'+linkurl[i]+'">'+linkname[i]+'</a></td></tr>');
	document.write('<tr><td height=2></td></tr>');
	document.write('<tr><td><h5><b>&nbsp&nbsp&nbsp&nbsp&nbsp'+linkdescription[i]+'</td></tr>');
	document.write('<tr><td height="25"><font color="red" face="MS Sans Serif" size=1>');
	if (discount4members[i]=="Y") 
	   document.write("Show your club ID to receive a 10% discount.");
	document.write('</td></tr></table>');
document.write('</td></tr>');
document.write('<tr><td align="right">');
	document.write('<table><tr><td><img src="plainbuttons/mc-ubs.bmp" height="30"></td>');
	document.write('<td><h5><a href="links.html">View All Links</a></td>');
	document.write('</tr></table>');
document.write('</td></tr></table>');
}



function eventcounter()
{
var today = new Date;
var Future0 = new Date;
ThisYear = 2006;
FutureMonth = 4;
FutureDate = 6;
faraevent = "Kick-Off Cookout";
Future0.setMonth(FutureMonth, FutureDate);
Future0.setFullYear(ThisYear);
today1 = Date.parse(today);
future1 = Date.parse(Future0);
secleft = future1 - today1;
miliday = 24 * 60 * 60 * 1000;
daysleft = secleft/miliday;
daysleftint = Math.round(daysleft);
if (daysleftint > 1)
   document.write('There are only<br><br><font color="red" face="MS Sans Serif" size=3>', daysleftint, ' days<br><br><h6>left until the<br><br><font color="red" face="MS Sans Serif" size=3>', faraevent , '! ');
else if (daysleftint == 1)
   document.write(faraevent, " is tomorrow! ");
else if (today1 == future1)
   document.write(faraevent, " is today! ");	
}

function writeanouncement()
{
document.write('<table border=2 cellpadding=5 bgcolor="#F8F8FF" bordercolor="#F8F8FF" width ="207" height="180">');
document.write('<tr height="15">');
document.write('<td align="left"bgcolor="#333399"><h5><b>Anouncements');
document.write('</td></tr><tr align="left"><td height="90" width="190" align="center"><h6><b>');
eventcounter();
document.write('</td></tr></table>');
}


function writenewletterdate()
{
document.write(lastnewsdate);
}

