//firebugx
if (!window.console || !console.firebug)
{
    var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
    "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];

    window.console = {};
    for (var i = 0; i < names.length; ++i)
        window.console[names[i]] = function() {}
}


/**
 * CONFIGURATION
 */

var FEED_URL = 'http://johntimmons.com/sounds/?feed=podcast';

/**
 * DON'T MODIFY PAST HERE
 */

jQuery(function () {

	//stuff
	var $ = jQuery;
	
	//dialog
	$('body').append('<div id="dialog"><div id="player">.loadin.</div></div>');
	
	$.get('proxy.php', function (feed) {
		$('#dialog')
			.append('<p>"'+$(feed).find('channel>description').text()+'" <a href="'+$(feed).find('channel>link').text()+'">'+$(feed).find('channel>copyright').text()+'</a></p>')
			.dialog({title:$(feed).find('channel>title').text(),width:500});

		//music!
		var so = new SWFObject('player.swf','mpl','100%','221','9');
		so.addParam('allowscriptaccess','always');
		so.addParam('allowfullscreen','true');
		so.addParam('flashvars','&file=proxy.php&playlist=bottom&autostart=true');
		so.write('player');
		
	}, 'xml');
		


});
