/* jQuery Json Parser widget application developed by Ari Koinuma, September 2008.  
This script will parse an Json file and spits out a div which contains the listing of entries.  What gets displayed are user-configurable.  

Documentation: http://infoserverwiki.publicradio.org/index.php/JQuery
Dependency: jquery 1.2.6, feed_widget_class.js
*/

//This portion is the blog-specific code. 
//Here are blog-specific URLs.  Be sure to put the blog initials to the variable names in case there are more than one widget embedded on a page. 
var spPrgUrl = 'http://marketplace.publicradio.org/';
var spPrgLogoUrl = 'http://www.publicradio.org/columns/marketplace/scratchpad/feed_widget/mkp_logo.gif';
var spCssUrl = 'http://www.publicradio.org/columns/marketplace/scratchpad/feed_widget/feed_widget.css'
var spFormURL = "http://marketplace.publicradio.org/tools/widgets/scratch_pad_feed_widget/";
var spButtonURL = "http://www.publicradio.org/columns/marketplace/scratchpad/feed_widget/sp_widget_add_button.gif";
var spTagLine = "News and views from online host Scott Jagow";

//Here's a blog-specific customizations


//Construct the widget object.  But the actual displaying of the widget will be taken care of by the inline code user embeds. 
function spExecute() {
	/*Here's the constructor of the widget object.  feedId+Widget is the target div ID.  logoCode will be already assigned to a global variable by the class -- so it's going to be either apmLogo or mprLogo.*/
	var widgetName = new Widget(spFeed, 'spWidget', spPrgUrl, spPrgLogoUrl, spCssUrl, spFormURL, spButtonURL, spTagLine);
	widgetName.parseEntries();
	return widgetName;
}

//execute
var spWidget = spExecute();
