// 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/201007300003.html',
    slug:'South Africa:',
    headline:'Ruling Party Intent on Tough Media Watchdog Plan'
  };
list[1] =
  { url:'http://allafrica.com/stories/201007300879.html',
    slug:'Africa:',
    headline:'Distributor of Satellite TV in Africa Wants to Improve Services'
  };
list[2] =
  { url:'http://allafrica.com/stories/201007300868.html',
    slug:'Gambia:',
    headline:'New Jeshwang LBS Visits Observer'
  };
list[3] =
  { url:'http://allafrica.com/stories/201007300823.html',
    slug:'Tanzania:',
    headline:'Taswa Receives Jab in the Arm'
  };
list[4] =
  { url:'http://allafrica.com/stories/201007300488.html',
    slug:'Ghana:',
    headline:'Night of Joy for Northern  Journalists'
  };
list[5] =
  { url:'http://allafrica.com/stories/201007300446.html',
    slug:'Nigeria:',
    headline:'FG Commissions NTA Pay TV'
  };
list[6] =
  { url:'http://allafrica.com/stories/201007300426.html',
    slug:'Nigeria:',
    headline:'Press Council Act Violates Rights of Free Speech -- Court'
  };
list[7] =
  { url:'http://allafrica.com/stories/201007300312.html',
    slug:'Namibia:',
    headline:'NBC Fraud Suspect a Free Man'
  };
list[8] =
  { url:'http://allafrica.com/stories/201007300104.html',
    slug:'Nigeria:',
    headline:'Abia - Impeachment Panel Shuts Out Journalists'
  };
list[9] =
  { url:'http://allafrica.com/stories/201007300088.html',
    slug:'Rwanda:',
    headline:'MHC to Crack Down On Unregistered Media Houses'
  };
list[10] =
  { url:'http://allafrica.com/stories/201007300072.html',
    slug:'Uganda:',
    headline:'Otunnu\'s Press Secretary Sent to Jail'
  };
list[11] =
  { url:'http://allafrica.com/stories/201007300040.html',
    slug:'Angola:',
    headline:'Besa, World Press Photo Promote Besafoto2010 Award'
  };
list[12] =
  { url:'http://allafrica.com/stories/201007290553.html',
    slug:'Ghana:',
    headline:'Journalists Condemn Prosecutions'
  };
list[13] =
  { url:'http://allafrica.com/stories/201007290530.html',
    slug:'Gambia:',
    headline:'Ghanaians Protest Against President Jammeh'
  };
list[14] =
  { url:'http://allafrica.com/stories/201007290401.html',
    slug:'South Africa:',
    headline:'Doccie Looks at Musician\'s Spiritual, Musical Journey'
  };
list[15] =
  { url:'http://allafrica.com/stories/201007280824.html',
    slug:'West Africa:',
    headline:'Niger Junta Suspends Decree Targeting Foreign Media'
  };
list[16] =
  { url:'http://allafrica.com/stories/201007290665.html',
    slug:'Côte d\'Ivoire:',
    headline:'Media Report for 2009'
  };
list[17] =
  { url:'http://allafrica.com/stories/201007290664.html',
    slug:'Niger:',
    headline:'State of Press Freedom - 2009'
  };
list[18] =
  { url:'http://allafrica.com/stories/201007290640.html',
    slug:'Nigeria:',
    headline:'State of Press Freedom - 2009'
  };
list[19] =
  { url:'http://allafrica.com/stories/201007290578.html',
    slug:'Congo-Kinshasa:',
    headline:'Congolese journalist under arrest - stations forced off air'
  };
list[20] =
  { url:'http://allafrica.com/stories/201007290547.html',
    slug:'Gambia:',
    headline:'Gambia - 2009'
  };
list[21] =
  { url:'http://allafrica.com/stories/201007290514.html',
    slug:'South Africa:',
    headline:'Charge Me Or Shut Up - Rasool'
  };
list[22] =
  { url:'http://allafrica.com/stories/201007290405.html',
    slug:'Namibia:',
    headline:'NBC Ex-Boss Face Fraud Chargers'
  };
list[23] =
  { url:'http://allafrica.com/stories/201007280633.html',
    slug:'Zimbabwe:',
    headline:'Zanu PF Jingles Out of Tune With Spirit of Coalition'
  };
list[24] =
  { url:'http://allafrica.com/stories/201007280547.html',
    slug:'Zambia:',
    headline:'Press Association Opposes Changes to Broadcasting Authority Act'
  };
list[25] =
  { url:'http://allafrica.com/stories/201007280182.html',
    slug:'South Africa:',
    headline:'Secrecy Bill Declared \'Fully Constitutional\''
  };
list[26] =
  { url:'http://allafrica.com/stories/201007280022.html',
    slug:'Côte d\'Ivoire:',
    headline:'Court Convicts Journalists for Refusing to Disclose Sources'
  };
list[27] =
  { url:'http://allafrica.com/stories/201007271156.html',
    slug:'Swaziland:',
    headline:'Prince Threatens Journalists With Death'
  };
list[28] =
  { url:'http://allafrica.com/stories/201007290301.html',
    slug:'Nigeria:',
    headline:'Akunyili Sacks Two Media Assistants Over Soludo'
  };
list[29] =
  { url:'http://allafrica.com/stories/201007290250.html',
    slug:'Namibia:',
    headline:'News Spreads the News Again'
  };

// 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 ( 'Press and Media' );
} 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/media/" 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>' );






