



// Create arrays of articles
syndicate.article_title = new Array;
syndicate.article_url = new Array;
syndicate.article_date = new Array;
syndicate.article_summary = new Array;
syndicate.article_content = new Array;

// This section of the script is published by the software
syndicate.index = 0;
  syndicate.article_title[ syndicate.index ] = 'H&HN Report - Reducing Hospital Admissions';
  syndicate.article_url[ syndicate.index ] = 'http://www.emsnetwork.org/artman2/publish/article_47481.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 3, 2012 - 5:27:28 AM';
  syndicate.article_summary[ syndicate.index ] = 'A key concept as the EMS profession seeks to partner with healthcare organizations to improve and revolutionize our healthcare roles.&nbsp; Reports such as this, combined with programs such as the CMS Innovation Challenge Grant, help us make our case to local hospitals, regulators and professional organizations that EMS can significantly enhance individual care, community health AND reduce costs!';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Adding Clinical Oomph to the C-Suite\'s Supporting Cast ';
  syndicate.article_url[ syndicate.index ] = 'http://www.emsnetwork.org/artman2/publish/article_47433.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jan 19, 2012 - 3:54:24 AM';
  syndicate.article_summary[ syndicate.index ] = 'Has applicability to EMS as our industry leadership wrestles with the balance between operations and clinical while we find our true home in the health care world...';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Pharmaceutical Backorder Report - UPDATE 3';
  syndicate.article_url[ syndicate.index ] = 'http://www.emsnetwork.org/artman2/publish/article_47351.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jan 9, 2012 - 12:46:25 PM';
  syndicate.article_summary[ syndicate.index ] = 'Attached please find this week’s Pharmaceutical Backorder Report. Things to note on this week’s report:<br />\n\n<br />\n\nMorphine 10mg, 1ml carpujects- This item was the only available 10mg Morphine and it is now on backorder, manufacturer ETA is not until March. At this time there is no available substitute. I will update as soon as information is available.<br />\n\n<br />\n\nNitro Tabs- Pfizer has both the 25 and 100 count bottles on backorder. It is expected to be a short term backorder with more inventory expected in<br />\n\nwithin 1-2 weeks.&nbsp;\n\n<p style=\"text-indent: 0.5in; margin: 0in 0in 0pt;\" class=\"MsoNormal\"><br />\n	\n	\n	\n	\n	</p>\n\n\n\n\n<p style=\"text-indent: 0.5in; margin: 0in 0in 0pt;\" class=\"MsoNormal\">\n	\n	<a href=\"http://www.emsnetwork.org/artman2/uploads/1/pharmupdate3.pdf\">\n		\n		\n		<span style=\"font-weight: bold; text-decoration: underline;\">Backorder Report #3</span></a> (pdf)<br />\n	\n	\n	\n	\n	\n	\n	\n	\n	\n	<span style=\"font-family: Calibri; font-size: 12pt;\">\n		\n		\n		\n		\n		<o:p></o:p></span></p>';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Pharmaceutical Backorder Report - UPDATE 2';
  syndicate.article_url[ syndicate.index ] = 'http://www.emsnetwork.org/artman2/publish/article_47350.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jan 3, 2012 - 11:59:29 AM';
  syndicate.article_summary[ syndicate.index ] = '\n\n\n\n\n\n<span style=\"font-family: \'Verdana\',\'sans-serif\'; font-size: 9pt;\">Many EMS and other healthcare agencies are struggling with an increasing prevalence of pharmaceutical back orders.&nbsp; This report just received from one of the industry\'s largest suppliers of these pharmaceuticals will help keep everyone up to date on the happenings in this regard.<br />\n	\n	\n	\n	\n	<br />\n	\n	\n	\n	\n	\n	\n	\n	\n	\n	<span style=\"font-weight: bold;\"><a target=\"_blank\" href=\"http://www.emsnetwork.org/artman2/uploads/1/Jan_2_2012_Pharmaceutical_BO_report.pdf\">BACKORDER REPORT</a> </span>(pdf) <br />\n	\n	\n	\n	\n	\n	<br />\n	\n	\n	\n	\n	\n	</span>';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'AAA Government Affairs E-Update 12-28-11';
  syndicate.article_url[ syndicate.index ] = 'http://www.emsnetwork.org/artman2/publish/article_47305.shtml';
  syndicate.article_date[ syndicate.index ] = 'Dec 29, 2011 - 6:12:28 AM';
  syndicate.article_summary[ syndicate.index ] = '';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Hospitals, insurers would bear brunt of automatic Medicare cuts';
  syndicate.article_url[ syndicate.index ] = 'http://www.emsnetwork.org/artman2/publish/article_47130.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 23, 2011 - 8:21:37 AM';
  syndicate.article_summary[ syndicate.index ] = '\n\n<span style=\"font-size: 12pt;\"></span>';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Pharmaceutical Backorder Report - UPDATE';
  syndicate.article_url[ syndicate.index ] = 'http://www.emsnetwork.org/artman2/publish/article_47076.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 15, 2011 - 2:37:21 PM';
  syndicate.article_summary[ syndicate.index ] = 'Here\'s an update to the current status of the pharmaceutical backorder report from Boundtree medical.<br />\n\n\n<br />\n\n\n<a href=\"http://www.emsnetwork.org/artman2/uploads/1/Nov_14_2011_Pharmaceutical_Backorder_Report_2.pdf\">\n	\n	\n	<span style=\"font-weight: bold; text-decoration: underline;\">REPORT</span></a><br />\n\n\n';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'AAA Government Affairs E-Update 11-3-11';
  syndicate.article_url[ syndicate.index ] = 'http://www.emsnetwork.org/artman2/publish/article_47002.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 3, 2011 - 3:13:14 PM';
  syndicate.article_summary[ syndicate.index ] = '';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Pharmaceutical Backorders Report';
  syndicate.article_url[ syndicate.index ] = 'http://www.emsnetwork.org/artman2/publish/article_46987.shtml';
  syndicate.article_date[ syndicate.index ] = 'Oct 31, 2011 - 7:33:16 AM';
  syndicate.article_summary[ syndicate.index ] = '\n\n\n\n\n<p class=\"MsoNormal\" style=\"margin: 0in 0in 0pt;\">\n	\n	\n	\n	<span style=\"font-family: \'Verdana\',\'sans-serif\'; font-size: 9pt;\">Many EMS and other healthcare agencies are struggling with an increasing prevalence of pharmaceutical back orders.&nbsp; This report just received from one of the industry\'s largest suppliers of these pharmaceuticals will help keep everyone up to date on the happenings in this regard.<br />\n		\n		\n		<br />\n		\n		\n		</span></p>\n\n\n<p class=\"MsoNormal\" style=\"margin: 0in 0in 0pt;\">\n	\n	\n	<span style=\"font-family: \'Verdana\',\'sans-serif\'; font-size: 9pt;\"><a href=\"http://www.emsnetwork.org/artman2/uploads/1/Oct_28_2011_Pharmaceutical_Backorder_Report_4.pdf\">\n			\n			\n			<span style=\"font-weight: bold; text-decoration: underline;\">REPORT</span></a> (pdf)</span><br />\n	\n	\n	\n	\n	\n	<span style=\"font-family: \'Verdana\',\'sans-serif\'; font-size: 9pt;\"></span>\n	\n	\n	\n	<o:p></o:p></p>';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'HHS Releases Final Regulations For ACOs ';
  syndicate.article_url[ syndicate.index ] = 'http://www.emsnetwork.org/artman2/publish/article_46962.shtml';
  syndicate.article_date[ syndicate.index ] = 'Oct 27, 2011 - 3:15:44 PM';
  syndicate.article_summary[ syndicate.index ] = '';
  syndicate.index++;




// Set defaults for arguments if user hasn't set them
if (syndicate.title_fontface == null)    { syndicate.title_fontface = 'Geneva, Arial, sans-serif'; }
if (syndicate.title_fontsize == null)    { syndicate.title_fontsize = '2'; }
if (syndicate.title_fontcolor == null)   { syndicate.title_fontcolor = '#003399'; }
if (syndicate.title_fontbold == null)    { syndicate.title_fontbold = true; }
if (syndicate.title_fontital == null)    { syndicate.title_fontital = false; }
if (syndicate.date_fontface == null)     { syndicate.date_fontface = 'Geneva, Arial, sans-serif'; }
if (syndicate.date_fontsize == null)     { syndicate.date_fontsize = '1'; }
if (syndicate.date_fontcolor == null)    { syndicate.date_fontcolor = '#6699cc'; }
if (syndicate.date_fontbold == null)     { syndicate.date_fontbold = false; }
if (syndicate.date_fontital == null)     { syndicate.date_fontital = false; }
if (syndicate.date_fontunder == null)    { syndicate.date_fontunder = false; }
if (syndicate.summary_fontface == null)  { syndicate.summary_fontface = 'Geneva, Arial, sans-serif'; }
if (syndicate.summary_fontsize == null)  { syndicate.summary_fontsize = '2'; }
if (syndicate.summary_fontcolor == null) { syndicate.summary_fontcolor = '#6699cc'; }
if (syndicate.summary_fontbold == null)  { syndicate.summary_fontbold = false; }
if (syndicate.summary_fontital == null)  { syndicate.summary_fontital = false; }
if (syndicate.summary_fontunder == null) { syndicate.summary_fontunder = false; }

if (syndicate.title_maxlength == null)   { syndicate.title_maxlength = 0; }
if (syndicate.summary_maxlength == null) { syndicate.summary_maxlength = 0; }

if (syndicate.bgcolor == null)           { syndicate.bgcolor = '#ffffff'; }
if (!syndicate.max_articles)             { syndicate.max_articles = syndicate.article_title.length; }  // !syndicate.max_articles catches null and zero
if (syndicate.display_date == null)      { syndicate.display_date = true; }
if (syndicate.display_summaries == null) { syndicate.display_summaries = true; }


// Don't allow user to display too many articles
if (syndicate.max_articles > syndicate.article_title.length) {
  syndicate.max_articles = syndicate.article_title.length;
}

/*
//Function to crop text on word boundaries
function crop_text(text, max_length) {

  // If the string is already small enough, return it unscathed
  if (text.length <= max_length) { return( text ); }

  // If the user has specified a length of 0, it means he wants the whole thing
  if (max_length == 0) { return( text ); }

  // Start looking for a space, leaving space for an elipsis on the end
  var test_length = (max_length - 3);
  if (test_length < 1) { return( '...' ); }   // max_length too small
  while (text.charAt(test_length) != ' ') {
    test_length--;

    // If we didn't find any spaces to break on, return the string broken at max_length
    if (test_length == 0) { return( text.substring(0, max_length - 3) + '...' ); }
  }

  return text.substring(0, test_length) + '...';
}
*/

// List our articles, stopping if the user doesn't want any more
for ( syndicate.index = 0; syndicate.index < syndicate.max_articles ; syndicate.index++ ) {

  /*syndicate.article_title[syndicate.index] = crop_text(syndicate.article_title[syndicate.index], syndicate.title_maxlength);
  syndicate.article_summary[syndicate.index] = crop_text(syndicate.article_summary[syndicate.index], syndicate.summary_maxlength);*/

  document.write('<tr><td bgcolor="' + syndicate.bgcolor + '">');
  document.write('<a href="' + syndicate.article_url[syndicate.index] + '" target="_blank">');
  if (syndicate.title_fontbold)  { document.write('<b>'); }
  if (syndicate.title_fontital)  { document.write('<i>'); }
  document.write('<font color="' + syndicate.title_fontcolor + '" face="' + syndicate.title_fontface + '" size="' + syndicate.title_fontsize + '"');
  if (syndicate.title_style)     { document.write(' style="' + syndicate.title_style + '"'); }
  document.write('>');
  document.write(syndicate.article_title[syndicate.index]);
  document.write('<br></font>');
  if (syndicate.title_fontital)  { document.write('</i>'); }
  if (syndicate.title_fontbold)  { document.write('</b>'); }
  document.write('</a>');

  if (syndicate.display_date) {
    if (syndicate.date_fontbold)  { document.write('<b>'); }
    if (syndicate.date_fontital)  { document.write('<i>'); }
    if (syndicate.date_fontunder) { document.write('<u>'); }
    document.write('<font color="' + syndicate.date_fontcolor + '" face="' + syndicate.date_fontface + '" size="' + syndicate.date_fontsize + '"');
    if (syndicate.date_style)     { document.write(' style="' + syndicate.date_style + '"'); }
    document.write('>');
    document.write(syndicate.article_date[syndicate.index]);
    document.write('<br></font>');
    if (syndicate.date_fontunder) { document.write('</u>'); }
    if (syndicate.date_fontital)  { document.write('</i>'); }
    if (syndicate.date_fontbold)  { document.write('</b>'); }
  }

  if (syndicate.display_summaries) {
    if (syndicate.summary_fontbold)  { document.write('<b>'); }
    if (syndicate.summary_fontital)  { document.write('<i>'); }
    if (syndicate.summary_fontunder) { document.write('<u>'); }
    document.write('<font color="' + syndicate.summary_fontcolor + '" face="' + syndicate.summary_fontface + '" size="' + syndicate.summary_fontsize + '"');
    if (syndicate.summary_style)     { document.write(' style="' + syndicate.summary_style + '"'); }
    document.write('>');
    document.write(syndicate.article_summary[syndicate.index]);
    document.write('<br></font>');
    if (syndicate.summary_fontunder) { document.write('</u>'); }
    if (syndicate.summary_fontital)  { document.write('</i>'); }
    if (syndicate.summary_fontbold)  { document.write('</b>'); }
  }

  document.write('<br></td></tr>\n');
}

// If you want your Webfeeds to be branded, uncomment the following lines.
// To do this, remove the // at the beginning of the next five lines:

document.write('<tr><td bgcolor="' + syndicate.bgcolor + '">');
document.write('<a href="http://www.emsnetwork.org/artman2/publish/index.shtml">');
document.write('<font color="' + syndicate.title_fontcolor + '" face="Verdana, Arial, Helvetica, sans-serif" size="1">');
document.write('<p>[more]</font></a>');
document.write('<br><br></b></font></td></tr>\n');

