function download(foldername) {
	var platform = "";
	var bName = "";
	//
	var message = "";
	var mouseaction = "";
	var applocation = "";
	var menutext = "";
	var fileaction = "";
	//
	if(navigator.userAgent.indexOf("Opera") != -1)
	{
		bName = "Opera";
	} else if(navigator.userAgent.indexOf("MSIE") != -1) {
		bName = "Microsoft Internet Explorer";
	} else if(navigator.userAgent.indexOf("Netscape") != -1) {
		bName = "Netscape";
	} else if(navigator.userAgent.indexOf("Firefox") != -1) {
		bName = "Firefox";
	} else if(navigator.userAgent.indexOf("Camino") != -1) {
		bName = "Camino";
	} else if(navigator.userAgent.indexOf("Safari") != -1) {
		bName = "Safari";
	} else if(navigator.userAgent.indexOf("Mozilla") != -1) {
		bName = "Mozilla";
	}
	//
	if(navigator.platform.indexOf("Mac") != -1)
	  {
		platform = "Mac";
	  }
	  else
	  {
		platform = "PC";
	}
	if(foldername == "Filters")
	  {
		enurl = "http://www.endnote.com/support/enfilters.asp";
	  }
	  else if(foldername == "Styles")
	  {
		enurl = "http://www.endnote.com/support/enstyles.asp";
	  }
	  else if(foldername == "Connections")
	  {
		enurl = "http://www.endnote.com/support/enconnections.asp";
	}
	//
	// now we've got all the preliminaries out of the way, lets set up the different browser/platform stuff
	//
	if(platform == "Mac")
	  {
		mouseaction= "<strong>Control-click<\/strong>";
		applocation= "typically inside the Endnote folder in your Applications folder";
	  }
	  else
	  {
		mouseaction= "Right-Click";
		applocation= "<strong>C:\\Program Files\\EndNote\\"+foldername+"<\/strong>";
	}
	if(bName == "Netscape")
		{
			menutext= "Save Link Target As...";
			fileaction= "save to ";
		}
		else if((bName == "Microsoft Internet Explorer") && (platform == "Mac")) { menutext= "Download Link to Disk"; }
		else if((bName == "Microsoft Internet Explorer") && (platform == "PC")) { menutext= "Save Target As..."; }
		else if(bName == "Camino") { menutext= "Download Link Target..."; }
		else if(bName == "Firefox") { menutext= "Save Link as..."; }
		else if(bName == "Opera") { menutext= "Save target as..."; }
		else if(bName == "Safari") { menutext= "Download Link to Disk"; }
		else { menutext= "Save Link Target As..."; } // this last one is the catch all, but also for Mozilla
	//
	//
	document.write("<p><small>Customised for "+bName+" on a "+platform+"<\/small><\/p>");
	//
	document.write("<ul>");
	document.write("<li>Quit EndNote before installing new items.<\/li>");
	document.write("<li>Browse table below, or <a href=\""+enurl+"\">this list on the EndNote website<\/a>, for the file you require.<\/li>");
	document.write("<li><strong>"+mouseaction+"<\/strong> on the link below and choose <strong>&quot;"+menutext+"&quot;<\/strong><\/li>");
	document.write("<li>Follow any prompts to save file to disk.<\/li>");
	document.write("<li>Save the file in your Endnote <strong>"+foldername+"<\/strong> folder, "+applocation+"<\/li>");
	document.write("<\/ul>");
	//
}
