// 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/200911200902.html',
    slug:'South Africa:',
    headline:'Xenophobic Attacks Draw Condemnation From UN Agency'
  };
list[1] =
  { url:'http://allafrica.com/stories/200911201046.html',
    slug:'Zimbabwe:',
    headline:'South African Refugee Group Slams Political Leaders Over Xenophobia'
  };
list[2] =
  { url:'http://allafrica.com/stories/200911200925.html',
    slug:'South Africa:',
    headline:'Farmers Responsible for Attacks?'
  };
list[3] =
  { url:'http://allafrica.com/stories/200911200747.html',
    slug:'South Africa:',
    headline:'Committee Positive of 2010 Preparations'
  };
list[4] =
  { url:'http://allafrica.com/stories/200911200143.html',
    slug:'South Africa:',
    headline:'Soldiers\' Time-Bomb Report Needs Action, Says Opposition'
  };
list[5] =
  { url:'http://allafrica.com/stories/200911200142.html',
    slug:'South Africa:',
    headline:'OECD Predicts Economy to Grow 2,7 Percent Next Year'
  };
list[6] =
  { url:'http://allafrica.com/stories/200911200078.html',
    slug:'South Africa:',
    headline:'\'Worst Three Months for Newspapers\' As Circulation Dives'
  };
list[7] =
  { url:'http://allafrica.com/stories/200911200077.html',
    slug:'South Africa:',
    headline:'Defiant Armscor CEO Suspended On Full Pay'
  };
list[8] =
  { url:'http://allafrica.com/stories/200911200045.html',
    slug:'South Africa:',
    headline:'Govt Will Not Tolerate Attacks on Foreign Nationals - Gigaba'
  };
list[9] =
  { url:'http://allafrica.com/stories/200911200042.html',
    slug:'South Africa:',
    headline:'Semenya\'s Tests to Be Kept Private'
  };
list[10] =
  { url:'http://allafrica.com/stories/200911200039.html',
    slug:'South Africa:',
    headline:'Men Must Stand Up, Fight Women and Children Abuse'
  };
list[11] =
  { url:'http://allafrica.com/stories/200911200037.html',
    slug:'South Africa:',
    headline:'Nqakula to Table Report on Burundi Peace Process'
  };
list[12] =
  { url:'http://allafrica.com/stories/200911191114.html',
    slug:'Zimbabwe:',
    headline:'Refugee Agency Clarifies Repatriation Plan'
  };
list[13] =
  { url:'http://allafrica.com/stories/200911190936.html',
    slug:'South Africa:',
    headline:'Zimbabweans Chased From Homes Total 3,000'
  };
list[14] =
  { url:'http://allafrica.com/stories/200911190244.html',
    slug:'South Africa:',
    headline:'Zuma Cracks Down on Corruption'
  };
list[15] =
  { url:'http://allafrica.com/stories/200911200148.html',
    slug:'South Africa:',
    headline:'Pienaar\'s Sterling Performances Earn Him Bafana Player of the Year Award'
  };
list[16] =
  { url:'http://allafrica.com/stories/200911190931.html',
    slug:'Africa:',
    headline:'SA Honours 32 Nations Participating in 2010'
  };
list[17] =
  { url:'http://allafrica.com/stories/200911190249.html',
    slug:'South Africa:',
    headline:'No Place for \'Trigger-Happy\' Police'
  };
list[18] =
  { url:'http://allafrica.com/stories/200911190240.html',
    slug:'South Africa:',
    headline:'Should Mbeki be Prosecuted Over Aids Deaths?'
  };
list[19] =
  { url:'http://allafrica.com/stories/200911190232.html',
    slug:'South Africa:',
    headline:'Two-Thirds of Firms in Report Fraud'
  };
list[20] =
  { url:'http://allafrica.com/stories/200911190078.html',
    slug:'South Africa:',
    headline:'Locals Jeer, Swear at Zimbabweans'
  };
list[21] =
  { url:'http://allafrica.com/stories/200911190037.html',
    slug:'South Africa:',
    headline:'New Committee Helps Govt Fight Corruption'
  };
list[22] =
  { url:'http://allafrica.com/stories/200911180600.html',
    slug:'Guinea:',
    headline:'South African Govt Probes Mercenary Reports'
  };
list[23] =
  { url:'http://allafrica.com/stories/200911201045.html',
    slug:'Zimbabwe:',
    headline:'South Africa Farming Union Insists Land Grab Victims Be Protected'
  };
list[24] =
  { url:'http://allafrica.com/stories/200911200965.html',
    slug:'South Africa:',
    headline:'Miss World Contestants Can Change the World - Zuma'
  };
list[25] =
  { url:'http://allafrica.com/stories/200911200927.html',
    slug:'South Africa:',
    headline:'\'Beaches Are a Privilege\''
  };
list[26] =
  { url:'http://allafrica.com/stories/200911200926.html',
    slug:'South Africa:',
    headline:'\'He Brought Her Naked to Me\''
  };
list[27] =
  { url:'http://allafrica.com/stories/200911200787.html',
    slug:'Uganda:',
    headline:'Juba - Building Market Not Way Out for Country'
  };
list[28] =
  { url:'http://allafrica.com/stories/200911200754.html',
    slug:'South Africa:',
    headline:'Thousands Scramble as Tax Deadline Looms'
  };
list[29] =
  { url:'http://allafrica.com/stories/200911200755.html',
    slug:'South Africa:',
    headline:'Piennar Voted Bafana Bafana Player of the Year'
  };

// 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 ( 'South Africa' );
} 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/southafrica/" 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>' );






