// 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/200911210001.html',
    slug:'Somalia:',
    headline:'Abusive Behavior in Puntland'
  };
list[1] =
  { url:'http://allafrica.com/stories/200911200955.html',
    slug:'Somalia:',
    headline:'Sharif - \'I Am Sorry for the Misunderstand Between TFG, Puntland and Ahlu Sunna\''
  };
list[2] =
  { url:'http://allafrica.com/stories/200911191126.html',
    slug:'Kenya:',
    headline:'Piracy Attacks on Grain Vessels Hit Flour Production'
  };
list[3] =
  { url:'http://allafrica.com/stories/200911191086.html',
    slug:'Somalia:',
    headline:'Minister \'On Behalf of TFG President, We Are Apologizing for Ahlu Sunna Clerics\''
  };
list[4] =
  { url:'http://allafrica.com/stories/200911191085.html',
    slug:'Somalia:',
    headline:'Blast Wounds 5, Convulses North of Galka\'o Town'
  };
list[5] =
  { url:'http://allafrica.com/stories/200911191065.html',
    slug:'Somalia:',
    headline:'Galkayo Threatened by Rising Insecurity'
  };
list[6] =
  { url:'http://allafrica.com/stories/200911191064.html',
    slug:'Somalia:',
    headline:'Two Government Soldiers Killed, More Wounded in Fire Exchange in Mogadishu'
  };
list[7] =
  { url:'http://allafrica.com/stories/200911191063.html',
    slug:'Somalia:',
    headline:'President Farole - \'I Am Sorry to Misunderstand President Sharif\''
  };
list[8] =
  { url:'http://allafrica.com/stories/200911191045.html',
    slug:'Somalia:',
    headline:'Residents and Sandbank Stymie Pirates\' Plan'
  };
list[9] =
  { url:'http://allafrica.com/stories/200911190059.html',
    slug:'Somalia:',
    headline:'Lawmakers Call On President to Resign'
  };
list[10] =
  { url:'http://allafrica.com/stories/200911181009.html',
    slug:'Somalia:',
    headline:'Improve Governance to Stop Piracy, Says UN Envoy'
  };
list[11] =
  { url:'http://allafrica.com/stories/200911180938.html',
    slug:'Somalia:',
    headline:'Woman Stoned to Death for Adultery'
  };
list[12] =
  { url:'http://allafrica.com/stories/200911201126.html',
    slug:'Kenya:',
    headline:'Youth Warned Against Joining Somalia War'
  };
list[13] =
  { url:'http://allafrica.com/stories/200911181020.html',
    slug:'Somalia:',
    headline:'Ethiopia Denies Involvement in Capture of Oil-Rich Region'
  };
list[14] =
  { url:'http://allafrica.com/stories/200911180866.html',
    slug:'Kenya:',
    headline:'Money Made From Piracy Distorting Property Prices'
  };
list[15] =
  { url:'http://allafrica.com/stories/200911200367.html',
    slug:'Uganda:',
    headline:'Somali Security Forces to Train in Uganda'
  };
list[16] =
  { url:'http://allafrica.com/stories/200911200076.html',
    slug:'Somalia:',
    headline:'Puntland Calls for the Formation of Regional States'
  };
list[17] =
  { url:'http://allafrica.com/stories/200911181021.html',
    slug:'Somalia:',
    headline:'Fighting in Mogadishu Kills 4, Injures 5'
  };
list[18] =
  { url:'http://allafrica.com/stories/200911191008.html',
    slug:'Somalia:',
    headline:'Piracy Off Coast Not Only Criminal, But Very Successful, Security Council Hears'
  };
list[19] =
  { url:'http://allafrica.com/stories/200911171100.html',
    slug:'Somalia:',
    headline:'Clashes Kill 5 in Mogadishu'
  };
list[20] =
  { url:'http://allafrica.com/stories/200911181032.html',
    slug:'Somalia:',
    headline:'Two Somali journalists injured in separate shootings'
  };
list[21] =
  { url:'http://allafrica.com/stories/200911180805.html',
    slug:'Somalia:',
    headline:'Heavy Clashes Flares Up Pirate Stronghold in the North'
  };
list[22] =
  { url:'http://allafrica.com/stories/200911180804.html',
    slug:'Somalia:',
    headline:'Ahlu Sunna Clerics Order People in Central Region Not to Watch Films'
  };
list[23] =
  { url:'http://allafrica.com/stories/200911180803.html',
    slug:'Somalia:',
    headline:'TFG Officials Say They Captured Several People in Mogadishu'
  };
list[24] =
  { url:'http://allafrica.com/stories/200911162040.html',
    slug:'Kenya:',
    headline:'Youths Enlisted to Fight by Somali Forces, MPs Confirm'
  };
list[25] =
  { url:'http://allafrica.com/stories/200911161840.html',
    slug:'Somalia:',
    headline:'WHO Confirms First Cases of H1N1'
  };
list[26] =
  { url:'http://allafrica.com/stories/200911180407.html',
    slug:'Somalia:',
    headline:'Security Council Press Statement on Somalia'
  };
list[27] =
  { url:'http://allafrica.com/stories/200911180043.html',
    slug:'Somalia:',
    headline:'Ahlu-Sunnah Wal-Jama Slams President\'s Remarks'
  };
list[28] =
  { url:'http://allafrica.com/stories/200911180042.html',
    slug:'Somalia:',
    headline:'Pirates Free Spanish Fishing Vessel, Seize Another'
  };
list[29] =
  { url:'http://allafrica.com/stories/200911162051.html',
    slug:'Somalia:',
    headline:'Greater Efforts Needed on Land to Fight Piracy Off Somali Coast, Says Ban'
  };

// 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 ( 'Somalia' );
} 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/somalia/" 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>' );






