function removeImages(content)
	{
		content=content.replace(/<img[^>]+\>/ig, '');
		content=content.replace(/<span[^>]+\>/ig, '');
		content=content.replace('#003399', '#FFCC00');
		content=content.replace('Watch video', 'Regardez la vid&eacute;o');
		return content.replace('Exception: Collection was modified after the enumerator was instantiated','')		
	}
//JQuery calls
$(document).ready(function()
{	
	var languageLabel = "ES";
	
	/*---------------- DO NOT EDIT ANYTHING BELOW THIS LINE ----------------*/
	
	//Blog feed handling
	jQuery.getFeed({
		url: 'proxy.ashx',
		language: languageLabel,
		success: function(xml) 
		{	
			var htmlBuffer='';
			var maxNewsToShow=1;
			var feedCounter=0;
			
			$.each(xml.items, function(k, v)
			{			
				if (feedCounter<maxNewsToShow)
				{						
					
				htmlBuffer += "<strong>"+v.title+"</strong>"
								  +"<div class='feedDescription'>"+removeImages(v.description)+"</div><div style='position:absolute; bottom:10px; right:10px;z-index:20;'><a href='http://blog.costacruceros.es' target='_blank'>&raquo; Leer todas las publicaciones</a></div>";	
					feedCounter++;			
				}
			});
			
			//Return html
			document.getElementById('feed').innerHTML = htmlBuffer;			
			//Expander
			$('.feedDescription').expander({
				slicePoint: 300, 
				expandText: '',
				expandPrefix: '',
				widow: 0,
				expandEffect: '', 
				userCollapseText: ''
			});								
		},
		error : function() { 
			raiseError("Error while parsing XML file, please check if it's valid.");					
		}
	});
});	
