// make sure the optional variables are set (FIX: add all variables to this
// with reasonable defaults?)
if ( aa_new_window == null ) {
 var aa_new_window = false;
}

// which browser are we: netscape 4 dies with
// in-line styles and javascript combined
var aa_not_nscape = navigator.appName.indexOf("Netscape") == -1;

//
// fill the array 
//
var list = new Array();
list[0] =
  { url:'http://allafrica.com/stories/200912100685.html',
    slug:'Uganda:',
    headline:'Civil Society Condemns Anti-Gay Bill'
  };
list[1] =
  { url:'http://allafrica.com/stories/200912101004.html',
    slug:'Kenya:',
    headline:'3.8 Million Starve as Famine Persists'
  };
list[2] =
  { url:'http://allafrica.com/stories/200912100954.html',
    slug:'Western Sahara:',
    headline:'Ban Intervenes With Spain and Morocco Over Saharawi Activist on Hunger Strike'
  };
list[3] =
  { url:'http://allafrica.com/stories/200912100896.html',
    slug:'Zimbabwe:',
    headline:'Advocacy Group Claims Enough Evidence to Prosecute Mugabe'
  };
list[4] =
  { url:'http://allafrica.com/stories/200912100833.html',
    slug:'Egypt:',
    headline:'Darkness At Noon Clouds Cairo Skies'
  };
list[5] =
  { url:'http://allafrica.com/stories/200912100768.html',
    slug:'Africa:',
    headline:'Electricity Access Projected to Worsen'
  };
list[6] =
  { url:'http://allafrica.com/stories/200912100719.html',
    slug:'Somalia:',
    headline:'Medical School Bombing Prompts Backlash'
  };
list[7] =
  { url:'http://allafrica.com/stories/200912100667.html',
    slug:'South Africa:',
    headline:'Mother-Child HIV Infection Cut'
  };
list[8] =
  { url:'http://allafrica.com/stories/200912100300.html',
    slug:'Africa:',
    headline:'Walkout Threat Over \'Danish Text\''
  };
list[9] =
  { url:'http://allafrica.com/stories/200912100032.html',
    slug:'Nigeria:',
    headline:'Rights Group Accuses Police of Unlawful Killings'
  };
list[10] =
  { url:'http://allafrica.com/stories/200912101019.html',
    slug:'Somalia:',
    headline:'Fighting Starts in North Mogadishu, Islamists Claim Victory'
  };
list[11] =
  { url:'http://allafrica.com/stories/200912101012.html',
    slug:'Africa:',
    headline:'Poor Countries Could Be Paid to Plant Trees'
  };
list[12] =
  { url:'http://allafrica.com/stories/200912101003.html',
    slug:'Zimbabwe:',
    headline:'Mugabe Party Official Quits'
  };
list[13] =
  { url:'http://allafrica.com/stories/200912100895.html',
    slug:'Africa:',
    headline:'A Dow Jones Index for Climate Change'
  };
list[14] =
  { url:'http://allafrica.com/stories/200912100836.html',
    slug:'Zimbabwe:',
    headline:'New Paper to Debut Online Before Print'
  };
list[15] =
  { url:'http://allafrica.com/stories/200912100749.html',
    slug:'Africa:',
    headline:'U.S. Environment Agency Chief Urges Action Now On Climate Change'
  };
list[16] =
  { url:'http://allafrica.com/stories/200912100056.html',
    slug:'Nigeria:',
    headline:'Police Illegally Kill Hundreds Yearly - Amnesty'
  };
list[17] =
  { url:'http://allafrica.com/stories/200912100018.html',
    slug:'Africa:',
    headline:'States, Partners Agree to Support Agriculture Programme'
  };
list[18] =
  { url:'http://allafrica.com/stories/200912100017.html',
    slug:'Zimbabwe:',
    headline:'Zanu-PF Chairman Quits'
  };
list[19] =
  { url:'http://allafrica.com/stories/200912100016.html',
    slug:'Rwanda:',
    headline:'Only 2,261 Gacaca Cases Remain'
  };
list[20] =
  { url:'http://allafrica.com/stories/200912101018.html',
    slug:'Somalia:',
    headline:'Car Accident Kills 2 Islamist Fighters, Injures 6 Others in Central Somalia'
  };
list[21] =
  { url:'http://allafrica.com/stories/200912101000.html',
    slug:'Kenya:',
    headline:'Alarm as Half of Women With HIV Abused'
  };
list[22] =
  { url:'http://allafrica.com/stories/200912100996.html',
    slug:'Kenya:',
    headline:'Sexual Content Unfair'
  };
list[23] =
  { url:'http://allafrica.com/stories/200912100995.html',
    slug:'Kenya:',
    headline:'We Are Still in a Fix on Food Security'
  };
list[24] =
  { url:'http://allafrica.com/stories/200912100975.html',
    slug:'Nigeria:',
    headline:'Unep Begins Assessment of Oil-Contaminated Sites in Ogoniland'
  };
list[25] =
  { url:'http://allafrica.com/stories/200912100970.html',
    slug:'Nigeria:',
    headline:'Dubai Debt May Drive Investment to Country, Others - Experts'
  };
list[26] =
  { url:'http://allafrica.com/stories/200912100960.html',
    slug:'East Africa:',
    headline:'EAC Teacher Deal Noble'
  };
list[27] =
  { url:'http://allafrica.com/stories/200912100945.html',
    slug:'Africa:',
    headline:'Obama Moves Ahead With Africom'
  };
list[28] =
  { url:'http://allafrica.com/stories/200912100943.html',
    slug:'Chad:',
    headline:'A Failure but the Oil Keeps Flowing'
  };
list[29] =
  { url:'http://allafrica.com/stories/200912100936.html',
    slug:'South Africa:',
    headline:'Country May Miss One Percent Science Spend Goal'
  };

// open the table
document.write ( '<table bgcolor="' );
document.write ( aa_outside_color );
document.write ( '" ' );
if ( aa_width != null ) {
  document.write ( 'width="' + aa_width + '" ' );
}
document.write ( 'cellspacing="0" cellpadding="1" border="0"><tr><td>' );

document.write ( '<table width="100%" bgcolor="' );
document.write ( aa_stripe_color_1 );
document.write ( '" cellspacing="0" cellpadding="0" border="0">' );
document.write ( "\n" );

// header ifdefing for netscape idiocy to do font stuff
document.write ( '<tr><td><table width="100%" bgcolor="' );
document.write ( aa_outside_color );
document.write ( '" cellspacing="0" cellpadding="4" border="0"><tr><td align="center">' );
if ( aa_not_nscape ) {
document.write ( '<span style="font-family:arial,sans-serif;font-size:12pt;font-weight:bold;color=' + aa_header_color + '">' );
} else {
document.write ( '<font face="arial,sans-serif" point-size="12" color="' + aa_header_color + '"><strong>' );
}
if ( aa_header == null ) {
document.write ( 'Latest' );
} else {
  document.write ( aa_header );
}
if ( aa_not_nscape ) {
document.write ( '</span>' );
} else {
document.write ( '</strong></font>' );
}
document.write ( '</td></tr></table></td></tr>' );
document.write ( "\n" );

// interior table
document.write ( '<tr><td><table width="100%" cellspacing="0" cellpadding="3" border="0">' );

// javascript loop
for ( var i=0; i<aa_how_many; i++ ) {
if ( list[i] == null ) { break; }
document.write ( '<tr><td bgcolor="' );
if ( i%2 != 0 ) {
document.write ( aa_stripe_color_2 );
} else {
document.write ( aa_stripe_color_1 );
}
document.write ( '"><a ' );
if ( aa_not_nscape ) {
  document.write ( 'style="font-family:arial,sans-serif;font-size:11pt;text-decoration:none;" ' );
}
document.write ( 'href="' );
document.write ( list[i].url );
document.write ( '"' );
if ( aa_new_window ) {
  document.write ( ' target="_blank"' );
}
document.write ( '"><font face="arial,sans-serif" point-size="11">' );
if ( aa_display_category ) {
document.write ( '<u><strong>' );
document.write ( list[i].slug );
document.write ( '</strong></u> ' );
}
document.write ( list[i].headline );
document.write ( '</font></a> </td></tr>');
document.write ( "\n" );
}

// powered-by text at bottom
document.write ( '<tr><td align="right">');
if ( aa_not_nscape ) {
  document.write ( '<span style="font-family:arial,sans-serif;font-size:9pt;text-decoration:none;">' );
} else {
  document.write ( '<font face="arial,sans-serif" point-size="9">' );
}
document.write ( 'powered by allAfrica.com <br />' );
document.write ( '<a href="http://allafrica.com/latest/" target="_blank">more news</a> &gt;&gt; ' );
if ( aa_not_nscape ) {
  document.write ( '</span>' ); 
} else {
  document.write ( '</font>' );
}
document.write ( '</td></tr>' );

// close up the tables
document.write ( '</table></td></tr>' );
document.write ( '</table>' );
document.write ( '</td></tr></table>' );






