
// This is an array of arrays . You must follow javaScript grammar rules for this to work.
// We have this here so you edit this in one place and it prints out on the cube on every page.


// The for elements in the inner array (Event) are as follows:
// [image in the images directory to show - could be MS Word icon or Adobe icon for exxample]
// [hover text, also known as "alt" text that is the wording that a blind person will hear when their screen reader hits the icon noted above]
// [text that the site visitor will see - keep it short, this fits in a tiny cube]
// [url under the pdf directory for the actual file. many live under /events and you must spell this out.]


// HOW DO DEBUG - What went wrong???
// You cannot skip any of the four elements of the object or this will not work
// You can not miss a comma after each inner array (event) EXCEPTION: Do not put a comma at the end of the last object or this will not work
// You can not miss a quote or put in an extra one or this will not work
// Uncomment the alert statements in "function getFliers()" to run and test to see what is wrong.  The first popup will tell you how many events it thinks it has, the second will tell you the contents of the array as it reads through the events.


                // ["Icon File", "alt text for icon", "Visible text", "directory under pdf and file name"]
var fliersToPrint=[ // Keep this line - it starts the outer array
				   ["Adobe-Reader-File-icon.png", "Adobe Reader File", "Mt Wachusett Monthly Hike", "events/Sweet Surrender HIKING FLYER-CHS.pdf"],  // take out after November
				   ["Adobe-Reader-File-icon.png", "Adobe Reader File", "New Meetings in Leominster", "announcements/NewMeetingsMAC.pdf"], // take out after July or August
				   ["Adobe-Reader-File-icon.png", "Adobe Reader File", "Spooky Skating", "events/SpookySkate.pdf"],
				   ["Adobe-Reader-File-icon.png", "Adobe Reader File", "Narcathons", "events/Narcathon.pdf"]
					// NOTE TO WEBMASTER: no comma on last array or this will not work!!! Javascript rule of arrays.
]; // Keep this line - it ends the outer array

// This is loaded in thetraditions.js file
function getFliers(){
	var flier="";
	//alert(fliersToPrint.length);
	for (i=0; i<=fliersToPrint.length-1; i++){	
	//alert(fliersToPrint[i]);
		var temp = '<div class="padme"><img src="images/' + fliersToPrint[i][0] + '" width="16" height="16" border="0" alt="' + fliersToPrint[i][1] + '"><a class="whitetext" href="pdfs/' + fliersToPrint[i][3] + '" target="_blank">' + fliersToPrint[i][2] + '</a></div>';
		flier = flier.concat(temp);
		} // end for
	document.getElementById('listOfFliers').innerHTML = flier;
} // end getFliers()
