



// 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 ] = 'Nicotine Patch - Nicotine Lozenge Combination Works Best For Smoking Cessation';
  syndicate.article_url[ syndicate.index ] = 'http://www.american-cancer-center.org/cancer-news/publish/Nicotine_Patch_-_Nicotine_Lozenge_Combination_Works_Best_For_Smoking_Cessation.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 24, 2009';
  syndicate.article_summary[ syndicate.index ] = 'In the largest study to date comparing smoking cessation therapies, the use of the nicotine lozenge in combination with the nicotine patch provided the greatest benefit for smokers trying to quit';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'FDA Will Regulate Tobacco Under New Law';
  syndicate.article_url[ syndicate.index ] = 'http://www.american-cancer-center.org/cancer-news/publish/FDA_Will_Regulate_Tobacco_Under_New_Law.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jul  2, 2009';
  syndicate.article_summary[ syndicate.index ] = 'President Barack Obama signed into law the Family Smoking Prevention and Tobacco Control Act, which grants the Food and Drug Administration (FDA) the authority to regulate tobacco products.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Number of Adult U.S. Smokers Drops, But So Do Quit Attempts';
  syndicate.article_url[ syndicate.index ] = 'http://www.american-cancer-center.org/cancer-news/publish/Number-of_Adult-US-Smokers-Drops-But-So-Do-Quit-Attempts.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 21, 2008';
  syndicate.article_summary[ syndicate.index ] = 'A new report released by the CDC shows that, for the first time in 3 years, the prevalence of cigarette smoking among adults in the United States fell significantly, from 20.8 percent in 2006 to 19.8 percent in 2007.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Billionaires Boost Global Fight Against Tobacco';
  syndicate.article_url[ syndicate.index ] = 'http://www.american-cancer-center.org/cancer-news/publish/Billionaires-Boost-Global-Fight-Against-Tobacco.shtml';
  syndicate.article_date[ syndicate.index ] = 'Aug 12, 2008';
  syndicate.article_summary[ syndicate.index ] = 'The Bill and Melinda Gates Foundation funds will be used to build economic evidence to support tobacco control and to educate the public about the harmful effects of tobacco.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Fewer Americans Exposed to Secondhand Smoke';
  syndicate.article_url[ syndicate.index ] = 'http://www.american-cancer-center.org/cancer-news/publish/Fewer-Americans-Exposed-to-Secondhand-Smoke.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jul 24, 2008';
  syndicate.article_summary[ syndicate.index ] = 'The prevalence of self-reported secondhand smoke (SHS) exposure at home and changes in any exposure declined significantly in nonsmoking children, adolescents, and adults in recent years. ';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Smoking\'s Effects on Genes May Play a Role in Lung Cancer Development and Survival';
  syndicate.article_url[ syndicate.index ] = 'http://www.american-cancer-center.org/cancer-news/publish/Smokings-Effects-on-Genes-May-Play-a-Role-in-Lung-Cancer-Development-and-Survival.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 25, 2008';
  syndicate.article_summary[ syndicate.index ] = 'Smoking plays a role in lung cancer development and now scientists have shown that smoking also affects the way genes are expressed, leading to alterations in cell division and regulation of immune response. ';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Intensive Quitline Counseling, Free NRT Help More Quit Smoking';
  syndicate.article_url[ syndicate.index ] = 'http://www.american-cancer-center.org/cancer-news/publish/Intensive_Quitline_Counseling_Free_NRT_Help_More_Quit_Smoking.shtml';
  syndicate.article_date[ syndicate.index ] = 'Dec  7, 2007';
  syndicate.article_summary[ syndicate.index ] = 'The largest randomized trial of its kind has shown that offering more intensive tobacco quitline services, including longer phone counseling sessions and free nicotine replacement therapy (NRT), is a highly effective - and cost-effective - way to help smokers quit.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Increasing Evidence Points to Link Between Youth Smoking and Exposure to Smoking in Movies';
  syndicate.article_url[ syndicate.index ] = 'http://www.american-cancer-center.org/cancer-news/publish/Link_Between_Youth_Smoking_and_Exposure_to_Smoking_in_Movies.shtml';
  syndicate.article_date[ syndicate.index ] = 'Sep  7, 2007';
  syndicate.article_summary[ syndicate.index ] = 'Adolescents who see smoking depicted in movies are more likely to become established smokers, according to a study funded by the National Cancer Institute.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Immunosuppressant Drug Prevents Tobacco-induced Lung Cancer in Mice';
  syndicate.article_url[ syndicate.index ] = 'http://www.american-cancer-center.org/cancer-news/publish/Immunosuppressant_Drug_Prevents_Tobacco-induced_Lung_Cancer_in_Mice.shtml';
  syndicate.article_date[ syndicate.index ] = 'Apr  6, 2007';
  syndicate.article_summary[ syndicate.index ] = 'Rapamycin, an FDA-approved drug normally used to help prevent the body from rejecting organ and bone marrow transplants and also used to coat cardiac stents, was highly effective in preventing the development of tobacco-related lung tumors in mice.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'A New Tobacco Threat? ';
  syndicate.article_url[ syndicate.index ] = 'http://www.american-cancer-center.org/cancer-news/publish/a-new-tobacco-threat.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 23, 2007';
  syndicate.article_summary[ syndicate.index ] = 'In addition to periodontal problems and cardiovascular disease, smokeless tobacco has been most closely associated with increased risks of oral and pancreatic cancer, so any increase in its use is concerning. That concern is compounded by the results of a new study demonstrating that ST use is strongly associated with smoking initiation.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Brain Region Involved in Smoking Addiction Identified';
  syndicate.article_url[ syndicate.index ] = 'http://www.american-cancer-center.org/cancer-news/publish/brain-region-smoking-addiction-identified.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  8, 2007';
  syndicate.article_summary[ syndicate.index ] = 'A new study has identified a region of the brain that may play an important role in the conscious urge to smoke and provide a potential target for new antismoking therapies.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Smoking Cessation Web Sites\' Usage and Quality Studied';
  syndicate.article_url[ syndicate.index ] = 'http://www.american-cancer-center.org/cancer-news/publish/smoking-cessation-web-sites-usage.shtml';
  syndicate.article_date[ syndicate.index ] = 'Dec 11, 2006';
  syndicate.article_summary[ syndicate.index ] = 'Internet-connected smokers also reported less psychological distress, fewer barriers to health care, and a greater interest in quitting smoking.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Smoking Cessation – A Personal Experience';
  syndicate.article_url[ syndicate.index ] = 'http://www.american-cancer-center.org/cancer-news/publish/smoking-cessation-personal-experience.shtml';
  syndicate.article_date[ syndicate.index ] = 'Oct 11, 2006';
  syndicate.article_summary[ syndicate.index ] = 'Whatever your reason for wanting to give up smoking, it is a good reason. My reason was that my cousin contracted lung cancer from smoking and died at the age of 40. When it happens to someone close to you, you realise that it is real, these things do happen and the suffering is unbearable to watch.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Quitting Smoking : Why Women’s Health May Benefit More';
  syndicate.article_url[ syndicate.index ] = 'http://www.american-cancer-center.org/cancer-news/publish/quit-smoking-benefit-women.shtml';
  syndicate.article_date[ syndicate.index ] = 'Oct 11, 2006';
  syndicate.article_summary[ syndicate.index ] = 'Women especially are susceptible to some of the more hidden dangers of smoking, and may actually benefit in different ways than men when it comes to smoking cessation.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Smoking Cessation Questions and Answers';
  syndicate.article_url[ syndicate.index ] = 'http://www.american-cancer-center.org/cancer-news/publish/smoking-cessation-questions-and-answers.shtml';
  syndicate.article_date[ syndicate.index ] = 'Sep 24, 2006';
  syndicate.article_summary[ syndicate.index ] = 'Smoking is the most common risk factor for the development of lung cancer, which is the leading cause of cancer death. It is also associated with many other types of cancer, including cancers of the esophagus, larynx, kidney, pancreas, and cervix.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Handling Cravings Without Smoking';
  syndicate.article_url[ syndicate.index ] = 'http://www.american-cancer-center.org/cancer-news/publish/quit-smoking-handling-cravings.shtml';
  syndicate.article_date[ syndicate.index ] = 'Sep 24, 2006';
  syndicate.article_summary[ syndicate.index ] = 'Your cravings will be strongest in the first week after you quit using tobacco. Cravings usually last only a very brief period of time.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Varenicline Helps More Smokers Quit for Longer with Fewer Side Effects';
  syndicate.article_url[ syndicate.index ] = 'http://www.american-cancer-center.org/cancer-news/publish/varenicline-helps-more-smokers-quit.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jul 11, 2006';
  syndicate.article_summary[ syndicate.index ] = 'Several articles published in the July 5, 2006, issue of the Journal of the American Medical Association discuss the safety, efficacy, and side effects of a smoking cessation drug, varenicline (Chantix®), which was approved by the FDA in May of this year.';
  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="_self">');
  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="#" target="_blank">');
//document.write('<font color="' + syndicate.title_fontcolor + '" face="Verdana, Arial, Helvetica, sans-serif" size="1">');
//document.write('<b>Powered by SITENAME.com</b></font></a>');
//document.write('<br><br></b></font></td></tr>\n');
