// printerFriendly.js
// this code writes the printer-friendly version link to the page
// the functions for this feature are contained in commonscripts.js
/*
if (document.getElementById){
	document.write("<a href='javascript:printFriendly();' class='print-friendly-link'>print version</a>");
}
*/

// Exclusions - this array contains the URLs of all pages excluded from writing the print-friendly link (for whatever reason)
var aExcludedURLs = new Array("/web/giving/cancer_walk");

var excluded = false;
if (document.getElementById){
	// check exclusions
	for (var i=0;i<aExcludedURLs.length;i++) {
		if (document.location == siteRoot + aExcludedURLs[i]){
			excluded = true;
		}
	}
	if (excluded) {
		// write nothing if this is an excluded page
		document.write("");
	} else {
		// otherwise write the link
		document.write("<div class='print-friendly-link'><a href='" + siteRoot + "/tools/printFriendly.htm' target='_blank'>print version</a></div>");
	}
}


/*
files needed for this change:

/common/javascript/printerFriendly.js
/common/javascript/commonscripts.js
/common/styles/nsmcprintfriendly.css
/tools/printFriendly.htm
/common/styles/nsmcstyles.css

*/
