/* 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 pttfPrgUrl = 'http://performancetoday.publicradio.org/';
var pttfPrgLogoUrl = 'http://www.publicradio.org/columns/performancetoday/fredlines/feed_widget/pft_logo.gif';
var pttfCssUrl = 'http://www.publicradio.org/columns/performancetoday/fredlines/feed_widget/feed_widget.css'
var pttfFormURL = "http://performancetoday.publicradio.org/tools/fredlines_feed_widget/";
var pttfButtonURL = "http://www.publicradio.org/columns/performancetoday/fredlines/feed_widget/pttf_widget_add_button.gif";
var pttfTagLine = "Host Fred Child's observations on the world of classical music";

//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 pttfExecute() {
	/*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(pttfFeed, 'pttfWidget', pttfPrgUrl, pttfPrgLogoUrl, pttfCssUrl, pttfFormURL, pttfButtonURL, pttfTagLine);
	widgetName.parseEntries();
	return widgetName;
}

//execute
var pttfWidget = pttfExecute();
