



// 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 Treatment Model for Bipolar Disorder Shows Promise';
  syndicate.article_url[ syndicate.index ] = 'http://www.rxpgnews.com/research/psychiatry/psychoses/bipolardisorder/article_4824.shtml';
  syndicate.article_date[ syndicate.index ] = 'Aug 11, 2006';
  syndicate.article_summary[ syndicate.index ] = 'A new care model for bipolar disorder tested in veterans across the nation reduced their manic episodes and improved their quality of life, according to research led by a psychiatrist with the Providence Veterans Affairs Medical Center and Brown Medical School.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Youth with bipolar disorder misread facial expressions as hostile';
  syndicate.article_url[ syndicate.index ] = 'http://www.rxpgnews.com/research/psychiatry/psychoses/bipolardisorder/article_4327.shtml';
  syndicate.article_date[ syndicate.index ] = 'May 30, 2006';
  syndicate.article_summary[ syndicate.index ] = 'Youth with bipolar disorder misread facial expressions as hostile and show heightened neural reactions when they focus on emotional aspects of neutral faces, researchers at the National Institutes of Health\'s (NIH) National Institute of Mental Health (NIMH) have discovered. The study provides some of the first clues to the underlying workings of the episodes of mania and depression that disrupt friendships, school, and family life in up to one percent of children.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Brain Changes Indicating Bipolar Disorder Are Not Prominent Until Adulthood';
  syndicate.article_url[ syndicate.index ] = 'http://www.rxpgnews.com/research/psychiatry/psychoses/bipolardisorder/article_3326.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jan 31, 2006';
  syndicate.article_summary[ syndicate.index ] = 'Changes in the brain that are important indicators of bipolar disorder are not prominent until young adulthood and are reduced in persons taking mood-stabilizing medications, Yale School of Medicine researchers report this month in Biological Psychiatry.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Manic-depressive illness and the FAT gene';
  syndicate.article_url[ syndicate.index ] = 'http://www.rxpgnews.com/research/psychiatry/psychoses/bipolardisorder/article_3115.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jan 13, 2006';
  syndicate.article_summary[ syndicate.index ] = 'A collaboration, led by Sydney scientists at the Garvan Institute of Medical Research and University of New South Wales, has discovered  the first risk gene specifically for bipolar disorder, also known as manic-depressive illness.  This means that people who have a particular form of this gene are twice as likely to develop the disease.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'One in five teens needing inpatient psychiatric care may be manic-depressive';
  syndicate.article_url[ syndicate.index ] = 'http://www.rxpgnews.com/research/psychiatry/psychoses/bipolardisorder/article_3070.shtml';
  syndicate.article_date[ syndicate.index ] = 'Dec 28, 2005';
  syndicate.article_summary[ syndicate.index ] = 'Clinicians at Bradley Hospital, the nation\'s first psychiatric hospital for children and adolescents, have found that bipolar disorder is more common than expected in teens in a psychiatric inpatient setting.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Psychosocial Disability Fluctuates Along with Bipolar Symptoms';
  syndicate.article_url[ syndicate.index ] = 'http://www.rxpgnews.com/research/psychiatry/psychoses/bipolardisorder/article_2978.shtml';
  syndicate.article_date[ syndicate.index ] = 'Dec  8, 2005';
  syndicate.article_summary[ syndicate.index ] = 'With every increase or decrease in depressive symptom severity, there is a corresponding significant and stepwise increase or decrease in psychosocial disability among patients with bipolar disorder, according to a study in the December issue of Archives of General Psychiatry, one of the JAMA/Archives journals. Bipolar disorder is characterized by cycles of depression and abnormal elation, or mania. It has been found to be associated with increased suicidal behavior, increased health care use and costs, higher unemployment, higher dependence on public assistance, lower annual income, increased work absenteeism owing to illness, decreased work productivity, poorer overall functioning, lower quality of life, and decreased life span, according to background information in the article. Bipolar I disorder (BP-I), which includes episodes of mania, and bipolar II disorder (BP-II), which includes less severe episodes of abnormal mood elevation called hypomania, are dimensional illnesses in which patients experience fluctuating levels of severity of manic and depressive symptoms, interspersed with symptom-free periods.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'BOLDER II (BipOLar DEpRession) study - Quetiapine effective in bipolar depression';
  syndicate.article_url[ syndicate.index ] = 'http://www.rxpgnews.com/research/psychiatry/psychoses/bipolardisorder/article_2693.shtml';
  syndicate.article_date[ syndicate.index ] = 'Oct 24, 2005';
  syndicate.article_summary[ syndicate.index ] = 'Newly released top-line results from the BOLDER II (BipOLar DEpRession) study have underlined the potential for SEROQUEL (quetiapine fumarate) in the treatment of patients with major depressive episodes associated with bipolar disorder. In BOLDER II, SEROQUEL 300mg and 600mg doses achieved a statistically significant reduction in levels of bipolar depression compared with placebo (p less than 0.001), as measured by the change from baseline in MADRS* total score.1';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Call for accurate screening of bipolar disorder';
  syndicate.article_url[ syndicate.index ] = 'http://www.rxpgnews.com/research/psychiatry/psychoses/bipolardisorder/article_2201.shtml';
  syndicate.article_date[ syndicate.index ] = 'Sep  2, 2005';
  syndicate.article_summary[ syndicate.index ] = 'The British Journal of General Practice (BJGP) has published an editorial paper highlighting the vital role GPs play in distinguishing between unipolar and bipolar disorder and treating it accordingly.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'First study to test antipsychotic on depressive phase';
  syndicate.article_url[ syndicate.index ] = 'http://www.rxpgnews.com/research/psychiatry/psychoses/bipolardisorder/article_1796.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jul  4, 2005';
  syndicate.article_summary[ syndicate.index ] = 'For the first time, researchers have demonstrated in separate short-term trials that a single drug therapy may be effective in treating both the manic and depressive phases of bipolar disorder. The condition (bipolar I and II) affects approximately 8 million Americans, who have relied on a combination of drugs to manage their symptoms, and who remain at high risk of committing suicide because of the difficulty in treating the disorder.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Research zeros in on bipolar disorder genes';
  syndicate.article_url[ syndicate.index ] = 'http://www.rxpgnews.com/research/psychiatry/psychoses/bipolardisorder/article_1718.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jun 17, 2005';
  syndicate.article_summary[ syndicate.index ] = 'Despite an intensive effort, researchers have yet to identify the genes that cause bipolar disorder, yet the practical benefits of such a discovery could reap rich rewards for those suffering from the mental illness.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'DNA microarrays used to detect Bipolar Genes';
  syndicate.article_url[ syndicate.index ] = 'http://www.rxpgnews.com/research/psychiatry/psychoses/bipolardisorder/article_744.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 24, 2005';
  syndicate.article_summary[ syndicate.index ] = 'While lithium treatment has proven to be a godsend for many of the two million Americans with bipolar disorder, it is not without its downside. People on the drug may develop hypothyroidism, tremors, cognitive impairment, and excessive thirst and urination and gain weight.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'FDA Approves Aripiprazole for Maintaining Efficacy in Bipolar I Disorder';
  syndicate.article_url[ syndicate.index ] = 'http://www.rxpgnews.com/research/psychiatry/psychoses/bipolardisorder/article_616.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 14, 2005';
  syndicate.article_summary[ syndicate.index ] = 'Bristol-Myers Squibb Company and Otsuka Pharmaceutical Co., Ltd. announced that the U.S. Food and Drug Administration (FDA) approved ABILIFYŽ (aripiprazole) Tablets and Oral Solution for maintaining efficacy in patients with Bipolar I Disorder with a recent manic or mixed episode who had been stabilized and then maintained for at least six weeks.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Half of people with Bipolar Disorder experienced abuse in childhood';
  syndicate.article_url[ syndicate.index ] = 'http://www.rxpgnews.com/research/psychiatry/psychoses/bipolardisorder/article_335.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 10, 2005';
  syndicate.article_summary[ syndicate.index ] = 'Childhood abuse has been associated with many different types of adult psychiatric disorder, including suicidality, substance misuse and dependence, and psychosis. This study set out to examine the prevalence and types of childhood abuse reported by adult patients with bipolar disorder, and to relate them to the complexity of the current illness.';
  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="#" 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');
