/* Copyright (c) 2001-2010 Hot Neuron LLC.  See http://MagPortal.com/help/free_feeds/license.html */
function i_100(mag,magurl,pubdate,auth,title,desc,id,num_sim)
	{
	this.m = mag
	this.mu = magurl
	this.pd = pubdate
	this.a = auth
	this.t = title
	this.d = desc
	this.i = id
	this.s = num_sim
	}
a_100 = new Array(
new i_100("Popular Mechanics","http://popularmechanics.com/","March 5, 2010","Mike Allen","How to Handle Sudden Unintended Acceleration","A video illustrating what will happen if you accelerate your car to 55 and then stop it while the throttle is still open.","406096","72"),
new i_100("Popular Mechanics","http://popularmechanics.com/","March 3, 2010","Mike Allen","Anatomy of Toyota&#39;s Problem Pedal: Mechanic&#39;s Diary","Toyota deserves a better deal than the media and Congress are giving it.","405859","46"),
new i_100("Popular Mechanics","http://popularmechanics.com/","March 1, 2010","David Kiley","What&#39;s Next for Toyota: Your Top Recall Questions, Answered","Questions still linger, notably, what will be the ultimate consequence of Toyota&#39;s nightmare episode.","405506","331"),
new i_100("Popular Mechanics","http://popularmechanics.com/","March 1, 2010","Ben Stewart","2011 Infiniti M36 and M56 Test Drive","Two months ago we had a chance to spend some time behind the wheel of prototype versions of Infiniti&#39;s new M37 and M56 sedans. We were certainly impressed. But it&#39;s difficult to judge a luxury car when there are still some rough edges to smooth out.","405480","73"),
new i_100("Popular Mechanics","http://popularmechanics.com/","February 22, 2010","Ben Stewart","2011 Hyundai Sonata Test Drive","Hyundai has made a habit these days of studying the benchmark in a class of vehicle, and nearly duplicating the style and performance of that car for far less money.","404792","63"),
new i_100("U.S. NHTSA","http://www.nhtsa.dot.gov/","February 22, 2010","","New Sample Bill will Aid States in Banning Texting While Driving","U.S. Transportation Secretary Ray LaHood today unveiled sample legislation to be used as a starting point for states crafting new laws to prohibit texting while behind-the-wheel.  Currently, nineteen States have texting laws.","404834","39"),
new i_100("U.S. NHTSA","http://www.nhtsa.dot.gov/","February 16, 2010","","NHTSA Launches Probe into Timeliness of Three Toyota Recalls","The National Highway Traffic Safety Administration today announced that it is using its statutory authority to obtain documents from Toyota to determine if the automaker conducted three of its recent recalls in a timely manner.","404238","291"),
new i_100("Popular Mechanics","http://popularmechanics.com/","March 2010","Mike Allen","30 Car Mysteries Solved: Carshaft Timing and Civic Longevity","Readers&#39; questions on car problems are answered here.","404035","33"),
new i_100("Popular Mechanics","http://popularmechanics.com/","February 12, 2010","John Pearley Huffman","5 Most Notorious Recalls of All Time","Toyota&#39;s current snowballing recall crisis is certainly massive, but not unprecedented.","404041","438"),
new i_100("Popular Mechanics","http://popularmechanics.com/","February 10, 2010","Kevin Wilson","2011 Chevrolet Silverado HD","Chevy, the last of Detroit&#39;s three to announce its plans for a revamped range of heavy-duty pickups, puts the emphasis on revised diesel engine technology -- addressing new rules that will force all contenders to dramatically reduce emissions for 2011.","403805","313"))
function c_100(c,t)
	{
	return c == '' ? t : '<FONT COLOR="'+c+'">'+t+'</FONT>'
	}
function l_100(c,u,t,w)
	{
	return '<A HREF="'+u+'"'+w+'>'+c_100(c,t)+'</A>'
	}
function mpfmt_100(max_articles,new_win,detail,left_width,bgcolor,font_ctrl,text_color,mag_color,title_color,mark_color,sim_color)
	{
	var c='http://MagPortal.com/cgi/'
	var ts='<TABLE CELLPADDING=0 BORDER=0 CELLSPACING='
	var fb=font_ctrl=='' ? '' : '<FONT '+font_ctrl+'>'
	var fe=fb=='' ? '' : '</FONT>'
	var n=max_articles<a_100.length ? max_articles : a_100.length
	var w=new_win ? ' TARGET="_blank"' : ' TARGET="_top"'
	var r

	left_width = detail=='full' ? ' WIDTH='+left_width : ''
	r = ts+'0 WIDTH="100%" BGCOLOR="'+bgcolor+'"><TR><TD>'+ts+'2 WIDTH="100%">\n'
	for (var i=0; i<n; ++i)
		{
		r+='<TR VALIGN=baseline>'
		r+='<TD'+left_width+'>'

		if (i==0 && detail!='full')
			{
			r+=ts+'0 ALIGN=right><TR><TD ALIGN=center>'+fb+'<B>'
			r+=c_100(text_color,'&nbsp;News&nbsp;Powered&nbsp;by&nbsp;')
			r+=l_100(title_color,'http://MagPortal.com/','MagPortal.com',w)+'&nbsp;'
			r+='</B>'+fe+'</TD></TR></TABLE>'
			}

		r+=fb+l_100(mag_color,a_100[i].mu,a_100[i].m,w)
		if (detail!='full')
			r+= ' '
		else
			{
			var da=a_100[i].pd=='' ? '' : '<BR>'+a_100[i].pd
			da+=a_100[i].a=='' ? '' : '<BR>'+a_100[i].a
			r+=c_100(text_color,da)+fe+'</TD><TD>'

			if (i==0)
				{
				r+=ts+'1 ALIGN=right><TR><TD ALIGN=center>'+fb+'<B>'
				r+=c_100(text_color,'&nbsp;News&nbsp;Powered&nbsp;by&nbsp;')
				r+='<BR>'
				r+='&nbsp;'+l_100(title_color,'http://MagPortal.com/','MagPortal.com',w)+'&nbsp;'
				r+='</B>'+fe+'</TD></TR></TABLE>'
				}

			r+=fb
			}
 		r+=l_100(title_color,'http://MagPortal.com/nr/rdir.php?w='+a_100[i].i,a_100[i].t,w)
		if (detail!='little') r+=' '+c_100(text_color,a_100[i].d) 
		r+=' '+l_100(mark_color,c+'myart.cgi?w='+a_100[i].i,'[mark]',w) 
		if (a_100[i].s>0) r+=' '+l_100(sim_color,c+'sim.cgi?w='+a_100[i].i,'[similar]',w)
		r+=fe+'</TD></TR>\n'
		}
	r+='<TR><TD COLSPAN=2 ALIGN=center>'+fb+'<I>'+c_100(text_color,'Get '+l_100(title_color,'http://MagPortal.com/c/home/auto/','more articles',w)+' or a '+l_100(title_color,c+'feed_request.cgi?c=100','free feed',w)+' for your web site.')+'</I>'+fe+'</TD></TR>\n'
	r+='</TABLE></TD></TR></TABLE>'
	return r
	}
