function EventObj(Title, StartDate, Company, Venue, Price, Link) {
  this.title = Title;
  this.startdate = StartDate;
  this.company = Company;
  this.venue = Venue;
  this.price = Price;
  this.link = Link;
}
document.writeln('<font face="Verdana, Arial" size="2" color="#000000">');document.writeln('<p>Found 12 event/s in York...</p>');
var events = [];
events[0] = new EventObj('Speed Dating', 'Fri 6th August', 'When the Music Stops', 'The Gallery', '16.00', 'http://www.whenthemusicstops.com/speeddating.php?id=4022&aff=datingtrail');
events[1] = new EventObj('Speed Dating', 'Mon 9th August', 'ditch or date?', 'The Living Room', '20.00', 'http://www.ditchordate.com/affiliate-system/affiliate/affiliate.php?group=425&id=5');
events[2] = new EventObj('Speed Dating', 'Tue 24th August', 'Slow Dating', 'Pitcher & Piano', '20.00', 'http://scripts.affiliatefuture.com/AFClick.asp?affiliateID=117114&merchantID=359&programmeID=1267&mediaID=0&tracking=&url=http://www.slowdating.com/speed-dating/York/102583.aspx?external=true');
events[3] = new EventObj('Speed Dating', 'Thu 26th August', 'Fastlove', 'Biltmore Bar and Grill', '15.00', 'http://www.fastlovespeeddating.co.uk/speed-dating.php?city=York');
events[4] = new EventObj('Speed Dating', 'Thu 26th August', 'Fastlove', 'Biltmore Bar and Grill', '15.00', 'http://www.fastlovespeeddating.co.uk/speed-dating.php?city=York');
events[5] = new EventObj('Speed Dating', 'Fri 3rd September', 'When the Music Stops', 'The Gallery', '16.00', 'http://www.whenthemusicstops.com/speeddating.php?id=4023&aff=datingtrail');
events[6] = new EventObj('Speed Dating', 'Sat 25th September', 'When the Music Stops', 'The Gallery', '16.00', 'http://www.whenthemusicstops.com/speeddating.php?id=4024&aff=datingtrail');
events[7] = new EventObj('Speed Dating', 'Tue 28th September', 'Slow Dating', 'Pitcher & Piano', '20.00', 'http://scripts.affiliatefuture.com/AFClick.asp?affiliateID=117114&merchantID=359&programmeID=1267&mediaID=0&tracking=&url=http://www.slowdating.com/speed-dating/York/102723.aspx?external=true');
events[8] = new EventObj('Speed Dating', 'Fri 15th October', 'When the Music Stops', 'The Gallery', '16.00', 'http://www.whenthemusicstops.com/speeddating.php?id=4025&aff=datingtrail');
events[9] = new EventObj('Speed Dating', 'Fri 29th October', 'When the Music Stops', 'The Gallery', '16.00', 'http://www.whenthemusicstops.com/speeddating.php?id=4026&aff=datingtrail');
events[10] = new EventObj('Speed Dating', 'Tue 2nd November', 'Slow Dating', 'Pitcher & Piano', '20.00', 'http://scripts.affiliatefuture.com/AFClick.asp?affiliateID=117114&merchantID=359&programmeID=1267&mediaID=0&tracking=&url=http://www.slowdating.com/speed-dating/York/102724.aspx?external=true');
events[11] = new EventObj('Speed Dating', 'Fri 26th November', 'When the Music Stops', 'The Gallery', '16.00', 'http://www.whenthemusicstops.com/speeddating.php?id=4027&aff=datingtrail');
document.writeln('<table width="100%">');
document.writeln('<thead>');
document.writeln('<tr>');
document.writeln('<th align="left"><font face="Verdana, Arial" size="1" color="#000000">Date</font></td>');
document.writeln('<th align="left"><font face="Verdana, Arial" size="1" color="#000000">Event type</font></td>');
document.writeln('<th align="left"><font face="Verdana, Arial" size="1" color="#000000">Venue</font></td>');
document.writeln('<th align="right"><font face="Verdana, Arial" size="1" color="#000000">Price</font></td>');
document.writeln('<th> </td>');
document.writeln('</tr>');
document.writeln('</thead>');
document.writeln('<tbody>');

for (x=0; x<12; x++) 
{ 


  document.writeln('<tr onMouseOver="style.backgroundColor=\'#C0C0C0\'" onMouseOut="style.backgroundColor=\'\'" style="cursor:hand" onClick="document.location.href=\'' + events[x].link + '\'">');
  document.writeln('<td align="left"><font face="Verdana, Arial" size="2" color="#000000">' + events[x].startdate + '</font></td>');
  document.writeln('<td align="left"><font face="Verdana, Arial" size="2" color="#000000">' + events[x].title + '</font></td>');
  document.writeln('<td align="left"><font face="Verdana, Arial" size="2" color="#000000">' + events[x].venue + '</font></td>');
  document.writeln('<td align="right"><font face="Verdana, Arial" size="2" color="#000000">£' + events[x].price + '</font></td>');
  document.writeln('<td align="right"><font face="Verdana, Arial" size="2" color="blue"><a href="' + events[x].link + '" target="_blank" title="Click here for more information" style="color: #800000"><strong>More Info / Book</strong></a></font></td>');
  document.writeln('</tr>');
} 

document.writeln('</tbody>');
document.writeln('</table>');
document.writeln('</font>');