



// 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 ] = 'NEW ADDRESS FOR AMBULANCE CRASH NEWS';
//  syndicate.article_url[ syndicate.index ] = 'http://www.emsnetwork.org/artman/publish/ambulance-crashes.shtml';
  syndicate.article_url[ syndicate.index ] = 'http://www.emsnetwork.org/artman/publish/ambulance-crashes.shtml#25849';
  syndicate.article_date[ syndicate.index ] = 'Mar 18, 2007';
  syndicate.article_summary[ syndicate.index ] = '<p>Please note that with our upgrade, all news is now posted at a new location. While some articles may appear at the old location, when we upgraded not all were converted properly and are not always properly linked. </p>\n<p>News can be found by using the links on the Front Page (<a href="http://www.emsnetwork.org">www.emsnetwork.org</a>)</p>\n<p>Ambulance crash information must now be submitted by email.</p>\n<p></p>';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Two Die in Ambulance Crash - Skandia Township, Michigan';
  syndicate.article_url[ syndicate.index ] = 'http://www.emsnetwork.org/artman/publish/article_25690.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar  6, 2007';
  syndicate.article_summary[ syndicate.index ] = 'The patient, Carrie Roberts, 38 of Escanaba, and crewmember Lisa Hansen, 32, of Cornell, died at the scene. (w/video)<BR><IMG height=33 alt="" hspace=0 src="http://www.emsnetwork.org/artman/uploads/rampart-mi-ems-03-06-07.jpg" width=42 align=baseline border=0> ';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Ambulance Goes Over Embankment Near Hoosier Pass, Fairplay, Colorado';
  syndicate.article_url[ syndicate.index ] = 'http://www.emsnetwork.org/artman/publish/article_25644.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar  2, 2007';
  syndicate.article_summary[ syndicate.index ] = 'The patient, ambulance driver and attending paramedic were injured ';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Man Charged With Manslaughter After Crashing Into Ambulance - Florida';
  syndicate.article_url[ syndicate.index ] = 'http://www.emsnetwork.org/artman/publish/article_25557.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 25, 2007';
  syndicate.article_summary[ syndicate.index ] = 'Police upgraded the charge after autopsy reports showed the crash killed the patient in the ambulance, Alice "Dee" Ferriell, 77.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Crash kills patient in ambulance - Florida';
  syndicate.article_url[ syndicate.index ] = 'http://www.emsnetwork.org/artman/publish/article_25532.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 24, 2007';
  syndicate.article_summary[ syndicate.index ] = 'A 77-year-old woman was killed Friday when a Lady Lake man suspected of driving drunk slammed into the ambulance she was riding, police said. ';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Drunken driver hits ambulance at Stafford hospital - New Jersey';
//  syndicate.article_url[ syndicate.index ] = 'http://www.pressofatlanticcity.com/news/local/ocean/story/7218356p-7071536c.html';
  syndicate.article_url[ syndicate.index ] = 'http://www.emsnetwork.org/artman/publish/ambulance-crashes.shtml#25462';
  syndicate.article_date[ syndicate.index ] = 'Feb 19, 2007';
  syndicate.article_summary[ syndicate.index ] = 'An alleged drunken driver struck an ambulance that had recently dropped off a patient';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Ambulance, minivan collide - Billings, Montana';
  syndicate.article_url[ syndicate.index ] = 'http://www.emsnetwork.org/artman/publish/article_25441.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 18, 2007';
  syndicate.article_summary[ syndicate.index ] = 'The ambulance hit the driver\'s side of the minivan.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Preliminary report on Mercy Flight crash offers few answers - Great Falls, Montana';
//  syndicate.article_url[ syndicate.index ] = 'http://www.greatfallstribune.com/apps/pbcs.dll/article?AID=/20070216/NEWS01/702160316/1002';
  syndicate.article_url[ syndicate.index ] = 'http://www.emsnetwork.org/artman/publish/ambulance-crashes.shtml#25424';
  syndicate.article_date[ syndicate.index ] = 'Feb 16, 2007';
  syndicate.article_summary[ syndicate.index ] = 'Great Falls residents wonder what went wrong to cause the plane to plow into rugged terrain a few miles short of its destination';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'EMT Sauder dies in crash - Leola, Pennsylvania';
  syndicate.article_url[ syndicate.index ] = 'http://www.emsnetwork.org/artman/publish/article_25431.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 16, 2007';
  syndicate.article_summary[ syndicate.index ] = 'Members of the victim\'s ambulance crew came upon the crash within minutes, police said, and tried to help David Sauder,who was&nbsp;an EMT for Leola Ambulance and Bareville Fire Company for 13 years. ';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Answers Stemming From Ambulance Crash Could Take a While - Wisconsin';
  syndicate.article_url[ syndicate.index ] = 'http://www.emsnetwork.org/artman/publish/article_25379.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 14, 2007';
  syndicate.article_summary[ syndicate.index ] = 'It could be a month before a cause is known involving an ambulance crashing into the Stevens Point Fire Department ';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Teen hurt as car, ambulance collide - Bremerton, Washintgon';
  syndicate.article_url[ syndicate.index ] = 'http://www.emsnetwork.org/artman/publish/article_25348.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 13, 2007';
  syndicate.article_summary[ syndicate.index ] = 'A 17-year-old driver was airlifted to Harborview Medical Center in Seattle Sunday evening after his car rear-ended a Bremerton Fire Department ambulance';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Ambulance Crashes into Stevens Point Fire Station - Wisconsin';
  syndicate.article_url[ syndicate.index ] = 'http://www.emsnetwork.org/artman/publish/article_25365.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 13, 2007';
  syndicate.article_summary[ syndicate.index ] = 'Stevens Point\'s Fire Chief says a mechanical failure appears to be responsible for an ambulance crashing into a fire station. <BR><IMG height=24 alt="" hspace=0 src="http://www.emsnetwork.org/artman/uploads/stevens_point-wi-02107.jpg" width=41 align=baseline border=0>';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Ambulance crash kills Santa Ana patient - California';
  syndicate.article_url[ syndicate.index ] = 'http://www.emsnetwork.org/artman/publish/article_25307.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  9, 2007';
  syndicate.article_summary[ syndicate.index ] = 'An 87-year-old Santa Ana man died Thursday after the ambulance in which he was \nbeing transported collided with a car in Fountain Valley.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Car hits ambulance carrying patient - Chicago, Illinois';
  syndicate.article_url[ syndicate.index ] = 'http://www.emsnetwork.org/artman/publish/article_25306.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  9, 2007';
  syndicate.article_summary[ syndicate.index ] = 'An ambulance carrying a patient was hit by a car that ran through a red light in North Riverside this morning, leaving the patient and the driver of the car injured. ';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Tragedy weighs heavily on many  - Montana';
//  syndicate.article_url[ syndicate.index ] = 'http://www.greatfallstribune.com/apps/pbcs.dll/article?AID=/20070208/NEWS01/702080302';
  syndicate.article_url[ syndicate.index ] = 'http://www.emsnetwork.org/artman/publish/ambulance-crashes.shtml#25288';
  syndicate.article_date[ syndicate.index ] = 'Feb  8, 2007';
  syndicate.article_summary[ syndicate.index ] = 'Paramedic Erickson and his wife Rachelle were coming up on their second wedding anniversary. They were busy with their jobs, a new house and a 7-month-old son';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Friends, co-workers mourn flight crew - Montana';
//  syndicate.article_url[ syndicate.index ] = 'http://www.greatfallstribune.com/apps/pbcs.dll/article?AID=/20070207/NEWS01/70207015/1002';
  syndicate.article_url[ syndicate.index ] = 'http://www.emsnetwork.org/artman/publish/ambulance-crashes.shtml#25264';
  syndicate.article_date[ syndicate.index ] = 'Feb  7, 2007';
  syndicate.article_summary[ syndicate.index ] = 'As word spread of Tuesday night’s crash of a Benefis Healthcare Mercy Flight \nplane, tributes were being paid to the three crew members who died.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Victims of Mercy Flight crash identified - Montana';
  syndicate.article_url[ syndicate.index ] = 'http://www.emsnetwork.org/artman/publish/article_25260.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  7, 2007';
  syndicate.article_summary[ syndicate.index ] = 'Benefis Healthcare has released the names of the Mercy Flight crew members who \ndied in Tuesday night’s crash en route to Bozeman to pick up a patient.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = '3 Dead in Medical Plane Crash - Bozeman, Montana';
  syndicate.article_url[ syndicate.index ] = 'http://www.emsnetwork.org/artman/publish/article_25244.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  7, 2007';
  syndicate.article_summary[ syndicate.index ] = 'A&nbsp;pilot, a registered nurse and a paramedic were killed in the crash. (w/video) ';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Lifeline Ambulance crash kills patient - Cheltenham, Pennsylvania';
  syndicate.article_url[ syndicate.index ] = 'http://www.emsnetwork.org/artman/publish/article_25247.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  7, 2007';
  syndicate.article_summary[ syndicate.index ] = 'According to the Cheltenham Highway Safety Unit, it is not certain which vehicle ran the traffic light. ';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Marlborough ambulance crash sends one to hospital - Massachusetts';
  syndicate.article_url[ syndicate.index ] = 'http://www.emsnetwork.org/artman/publish/article_25186.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  4, 2007';
  syndicate.article_summary[ syndicate.index ] = 'An ambulance en route to a medical emergency crashed into a car on Elm Street near Frye Street';
  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/">');
//document.write('<font color="' + syndicate.title_fontcolor + '" face="Verdana, Arial, Helvetica, sans-serif" size="1">');
//document.write('more news</font></a>');
//document.write('<br><br></b></font></td></tr>\n');

}