


// CREATE NEW HEADLINE RECORD
function hline ( h_title, h_url )
{
   this.h_title = h_title
   this.h_url = h_url

}

// MAKE ARRAY OF HEADLINES
headlines = new Array(
   new hline( "Email Me", "mailto:mibareywes@yahoo.com" ),
   new hline( "Fan Stuff", "http://www.starwarsdotcom.com/fanstuff.html" ),
   new hline( "Games", "http://www.starwarsdotcom.com/games.html" ),
   new hline( "Humor", "http://www.starwarsdotcom.com/humor.html" ),
   new hline( "Languages", "http://www.starwarsdotcom.com/languages.html" ),
   new hline( "Main Page", "http://www.starwarsdotcom.com" ),
   new hline( "Message Boards", "http://s6.invisionfree.com/Star_Wars_Dot_Com/index.php?act=idx" ),
   new hline( "Star Wars", "http://www.starwarsdotcom.com/starwars.html" ),
   new hline( "Star Wars in Real Life", "http://www.starwarsdotcom.com/realife.html" ),null
);


// SET NUMBER OF LINKS
if ( typeof swdc_numheadlines == 'undefined' )
	{ swdc_numheadlines = 9; }

// LOOP THROUGH WRITING HEADLINES
for ( var $i = 0; $i < headlines.length - 1 && $i < swdc_numheadlines; $i++ ) {
    document.write( '<a href="' + headlines[$i].h_url + '">' );
	if ( typeof swdc_linkcolor != 'undefined' )
    	{ document.write( '<font color="' + swdc_linkcolor + '">' ); }
    document.write( headlines[$i].h_title );
    if ( typeof swdc_linkcolor != 'undefined' )
    	{ document.write( '</font>' ); }
    document.writeln( "</a>&nbsp;&nbsp;&nbsp;" );

	if ( typeof swdc_date != 'undefined' && swdc_date ) {
		document.writeln( '&nbsp;&nbsp;&nbsp;<small>'
			+ headlines[$i].h_post_date
			+ ' (' + headlines[$i].h_category
			+ ')</small><br>' );
	}
}