	var page = '';
	var maxlistheight='350';
	var numepisodeshown='6';
	var dropmenu='0';
	var diggbuttons='2';
	var wdtube='2';
	var tagged='';
	var mpl='0';
	var mpl='1';

$(document).ready(function() {	

	if ($('#friendfeed.widget').length > 0 ) {
		
		$('#friendfeed.widget .text').each(function() {
		
				linkage = $(this).find('a').attr('href');
								
				//console.log($(this).find('a').attr('href'));
				
				$(this).find('a').remove();
				
				textage = $(this).text().replace(' - ','');;
				
				//console.log(textage);
				
				$(this).html('');
				
				$(this).html('<a href="' + linkage + '" rel="nofollow" target="_blank">' + textage + '</a>');
				//console.log(textage);
				
				
				
		});
		
		
		$('#friendfeed.widget a.service').each(function() { 
			service = $(this).text();
			
			switch ( service ) {
				case 'Twitter':
					$(this).parent().parent().parent().addClass('tweet-service');
				break;
				
				case 'Digg':
					$(this).parent().parent().parent().addClass('digg-service');
				break;
				
				case 'Flickr':
					$(this).parent().parent().parent().addClass('flickr-service');
				break;
				
				case 'Vimeo':
					$(this).parent().parent().parent().addClass('vimeo-service');
				break;
				
				case 'delicious':
					$(this).parent().parent().parent().addClass('delicious-service');
				break;
				
				case 'Last.fm':
					$(this).parent().parent().parent().addClass('lastfm-service');
				break;
				
				case 'Diigo':
					$(this).parent().parent().parent().addClass('delicious-service');
				break;
				
				default:
					
				break;
			}
		});
		
	}



    $("a[href^='http:']").not("[href*='nickdoherty.com']").attr('target','_blank');
    $("a[href^='http:']").not("[href*='nickdoherty.com']").attr('rel','nofollow');
});





