function Nws(year, month, title, lnk){
	this.year = year;
	this.month = month;
	this.title = title;
	this.lnk = lnk;
}

function setNws(year, month, title, lnk) {
    NwsArray[NwsArrayIndex++] = new Nws(year, month, title, lnk);
}

function setYear(i){
	window.location.replace('newsletters.html#' + i);
	d = document.getElementById("headit");
	d.innerHTML = "&nbsp;" + i + " Newsletters<br>";
    
	var fred = "<table width=\"100%\" border=\"0\" class=\"tables\" cellspacing=\"0\" cellpadding=\"3\" >\n<tr style=\"background-color:#CCCCCC\"><td valign=\"top\" align=\"left\"><strong>&nbsp;&nbsp;Issue</td><td valign=\"top\"><strong>Month</strong></td><td><strong>Title</strong></td>\n";
  	for(x=0; x < NwsArrayIndex; x++){
			if (NwsArray[x].year == i){
				if (x < 9){wipe = x +1;}else{wipe = x;}
				if (wipe % 2){fred += "<tr style=\"background-color:#FFFFFF\">\n";}else{fred += "<tr style=\"background-color:#CCCCCC\">\n";}
		    fred += "<td valign=\"top\" align=\"left\"><strong>&nbsp;&nbsp;" + (x+1) + "</strong></td>\n";
		    fred += "<td valign=\"top\">" + NwsArray[x].month + "</td>\n<td><a href=\"content/News_Letters/" + NwsArray[x].lnk + "\"><strong>" + NwsArray[x].title + "</strong></a></td></tr>";
		  }
  	}
    fred += "</table>\n";
    if (i < 2010){ fred+= "<p align=\"right\"><a href=\"#2010\" onClick=\"setYear(2010);\">Return to Current Year</a><p>"};
    d = document.getElementById("container");
    d.innerHTML = fred;	
} 
function init(){
	var url = window.location.href;
	var qparts = url.split("#");
	//alert(qparts.length);
	if ((qparts.length < 2)||(qparts[1].length < 1)){
		setYear(2010);
		}
	else{
		setYear(eval(qparts[1]));
		}	
}

var NwsArrayIndex = 0;
var NwsArray = new Array();

setNws(1997, "February", "New Software", "news001.htm");
setNws(1997, "March", "The Prehistoric Collection", "news002.htm");
setNws(1997, "April", "Abram", "news003.htm");
setNws(1997, "May", "Road To Roman Wigan", "news004.htm");
setNws(1997, "July", "Saxon Helmet", "news005.htm");
setNws(1997, "September", "Second Mill At Arley", "news006.htm");
setNws(1997, "October", "Occupation In The Arley Valley", "news007.htm");
setNws(1997, "November", "Treasure Act", "news008.htm");
setNws(1997, "December", "Stanton Drew", "news009.htm");

setNws(1998, "February", "Luxor", "news010.htm");
setNws(1998, "March", "Egyptian Splendour", "news011.htm");
setNws(1998, "April", "Kagemi", "news012.htm");
setNws(1998, "May", "Bleach Works", "news013.htm");
setNws(1998, "June", "Roman Arley", "news014.htm");
setNws(1998, "July", "Wigan: What's in a Name?", "news015.htm");
setNws(1998, "September", "King Arthur", "news016.htm");
setNws(1998, "October", "Doughty Mill", "news017.htm");
setNws(1998, "November", "Thebes Revisited", "news018.htm");
setNws(1998, "December", "Standish Well", "news019.htm");

setNws(1999, "February", "Oldest Football Game", "news020.htm");
setNws(1999, "March", "A Dowsing Success", "news021.htm");
setNws(1999, "April", "Prehistoric Finds in Wigan", "news022.htm");
setNws(1999, "May", "Arley Grows Up", "news023.htm");
setNws(1999, "June", "Mary Rose Medicines", "news024.htm");
setNws(1999, "July", "Miles Standish", "news025.htm");
setNws(1999, "September", "Tribute to a Gentleman", "news026.htm");
setNws(1999, "October", "Britain's Bloodiest Battle", "news027.htm");
setNws(1999, "November", "Sea Henge Preserved", "news028.htm");
setNws(1999, "December", "Low-cost Geophys", "news029.htm");

setNws(2000, "February", "AGM 2000 Resistivity Meter", "news030.htm");
setNws(2000, "March", "WAS Online", "news031.htm");
setNws(2000, "April", "Angers Special", "news032.htm");
setNws(2000, "May", "Pipeline Opportunity", "news033.htm");
setNws(2000, "June", "Roman Road Relocated", "news034.htm");
setNws(2000, "July", "Geophys Success", "news035.htm");
setNws(2000, "September", "Medieval Standish", "news036.htm");
setNws(2000, "October", "Internet Success", "news037.htm");
setNws(2000, "November", "Arley Golf Course", "news038.htm");
setNws(2000, "December", "Spanish Delights", "news039.htm");

setNws(2001, "February", "French Trip", "news040.htm");
setNws(2001, "March", "Megaliths", "news041.htm");
setNws(2001, "April", "New Discoveries", "news042.htm");
setNws(2001, "May", "Roman Armoury", "news043.htm");
setNws(2001, "June", "Silbury Hill", "news044.htm");
setNws(2001, "July", "Sunken Treasure", "news045.htm");
setNws(2001, "September", "&quot;Licensed to Dig&quot;", "news046.htm");
setNws(2001, "October", "Look Back in Angers", "news047.htm");
setNws(2001, "November", "High Legh Successful", "news048.htm");
setNws(2001, "December", "Three-way Collaboration", "news049.htm");

setNws(2002, "February", "Research Framework", "news050.htm");
setNws(2002, "March", "&quot;Booze Cruise&quot;", "news051.htm");
setNws(2002, "April", "Grand Arcade", "news052.htm");
setNws(2002, "May", "Winstanley Hall", "news053.htm");
setNws(2002, "June", "Resitivity Meter", "news054.htm");
setNws(2002, "July", "Neanderthals in Norfolk", "news055.htm");
setNws(2002, "September", "Searching for Romans", "news056.htm");
setNws(2002, "October", "Small Brook Resistivity", "news057.htm");
setNws(2002, "November", "Romano-British Lancs", "news058.htm");
setNws(2002, "December", "Chester Amphitheatre", "news059.htm");

setNws(2003, "February", "The Gask Frontier", "news060.htm");
setNws(2003, "March", "Roman Road Atherton", "news061.htm");
setNws(2003, "April", "Time Team's Test Pit Challenge", "news062.htm");
setNws(2003, "May", "Hatton Fold Excavation", "news063.htm");
setNws(2003, "June", "In search of &quot;Coccium Way&quot;", "news064.htm");
setNws(2003, "July", "A Local Dig for Local People", "news065.htm");
setNws(2003, "September", "Prehistoric Atherton", "news066.htm");
setNws(2003, "October", "WAS  Goes Underground (in France)", "news067.htm");
setNws(2003, "November", "Friends of Thornborough", "news068.htm");
setNws(2003, "December", "Lancashire Archaeology in Crisis", "news069.htm");

setNws(2004, "February", "Chorley's Jubilee", "news070.htm");
setNws(2004, "March", "Viking Boat Burial", "news071.htm");
setNws(2004, "April", "Museum of the Year Award", "news072.htm");
setNws(2004, "May", "Chester's Amphitheatre", "news073.htm");
setNws(2004, "June", "Return of the Kings", "news074.htm");
setNws(2004, "July", "Roman Road to Wigan", "news075.htm");
setNws(2004, "September", "Hidden Treasures of North Wales", "news076.htm");
setNws(2004, "October", "Dog Kennel in Haigh Hall", "news077.htm");
setNws(2004, "November", "End of the Road for Wigan's Pier", "news078.htm");
setNws(2004, "December", "Grand Arcade Wigan ", "news079.htm");

setNws(2005, "February", "Roman Remains Found", "news080.htm");
setNws(2005, "March", "Roman Ditch in Ship Yard", "news081.htm");
setNws(2005, "April", "Hypocaust Found in Wigan", "news082.htm");
setNws(2005, "May", "Ellesmere Park Success", "news083.htm");
setNws(2005, "June", "Wigan 'Excavation Special'", "news084.htm");
setNws(2005, "July", "Roman Road Eccles", "news085.htm");
setNws(2005, "September", "Ancient Chester Revealed", "news086.htm");
setNws(2005, "October", "French Foray", "news087.htm");
setNws(2005, "November", "Roman Bath House", "news088.htm");
setNws(2005, "December", "Thornborough - Decision Delay", "news089.htm");

setNws(2006, "February", "Roman Tombstone in Lancaster", "news090.htm");
setNws(2006, "March", "Thornborough Success", "news091.htm");
setNws(2006, "April", "Blacking Mill at the Pier", "news092.htm");
setNws(2006, "May", "Haigh Dog Kennel Revealed", "news093.htm");
setNws(2006, "June", "Community Archaeology at its Best", "news094.htm");
setNws(2006, "July", "Roman Warriors in Wigan", "news095.htm");
setNws(2006, "September", "Vindolanda and Hadrian's Wall", "news096.htm");
setNws(2006, "October", "Doughty Mill, Proof at Last", "news097.htm");
setNws(2006, "November", "Chorlton Fold Excavation", "news098.htm");
setNws(2006, "December", "WAS Goes Technical", "news099.htm");

setNws(2007, "February", "One Hundredth Edition", "news100.htm");
setNws(2007, "March", "Higher Ince Land Remediation", "news101.htm");
setNws(2007, "April", "Survey Success at St William's School", "news102.htm");
setNws(2007, "May", "The Lady Hill Project", "news103.htm");
setNws(2007, "June", "Walmesley Park Go-Ahead", "news104.htm");
setNws(2007, "July", "Lady Hill Excavation", "news105.htm");
setNws(2007, "September", "Ribblehead Viaduct", "news106.htm");
setNws(2007, "October", "Leaway Excavation", "news107.htm");
setNws(2007, "November", "Grant Awarded", "news108.htm");
setNws(2007, "December", "Memorial Survey Success", "news109.htm");

setNws(2008, "February", "St Williams Excavation", "news110.htm");
setNws(2008, "March", "Potential for Wigan's Northern Crescent", "news111.htm");
setNws(2008, "April", "Presbytery Garden Dig", "news112.htm");
setNws(2008, "May", "Ince C of E Primary School Dig", "news113.htm");
setNws(2008, "June", "Joint Service Centre Potential", "news114.htm");
setNws(2008, "July", "Moore’s Yard Excavation", "news115.htm");
setNws(2008, "August", "Heber Street Rescue", "news116.htm");
setNws(2008, "October", "Sutton Mill Investigation", "news117.htm");
setNws(2008, "November", "Wigan Hall (Rectory) DBA", "news118.htm");
setNws(2008, "December", "Return of the Federation", "news119.htm");

setNws(2009, "February", "Ancient Bridge found in Golborne", "news120.htm");
setNws(2009, "March", "The Ainsbrook Hoard", "news121.htm");
setNws(2009, "April", "Roman Fort in Wigan – New Evidence", "news122.htm");
setNws(2009, "May", "Demise of the UMAU", "news123.htm");
setNws(2009, "June", "The Dinner Hour, Wigan", "news124.htm");
setNws(2009, "July", "In Search of Old Frog Lane", "news125.htm");
setNws(2009, "August", "New Equipment", "news126.htm");
setNws(2009, "September", "Rectory Geophys Results", "news127.htm");
setNws(2009, "October", "Rectory Excavation Underway", "news128.htm");
setNws(2009, "November", "Church Yard Watching Brief", "news129.htm");
setNws(2009, "December", "Winstanley College at the Rectory", "news130.htm");

setNws(2010, "February", "Museum of Wigan Life", "news131.htm");
setNws(2010, "March", "New Flood Defence for Wigan", "news132.htm");
setNws(2010, "April", "Wigan's New Museum Opens", "news133.htm");
setNws(2010, "May", "Bottling Wood Excavations", "news134.htm");
setNws(2010, "June", "Rectory Update", "news135.htm");
