function newsFeed(){

	this.REMOTE_URL = 'http://www.groupgordon.com/cms/?page_id=7';

	this.newsContentHTML = null;

	this.init();

}



newsFeed.prototype = {

	init: function(){

		var instance = this;

		$.get(this.REMOTE_URL, function(data) {

			instance.newsContentHTML = data;

			instance.appendNews();

		});

	},

	

	appendNews: function(){

		var newsContainer = $('body').append('<div class="newsPlaceholder"></div>');

		$('div.newsPlaceholder').append(this.newsContentHTML);

		var month = $('div.newsPlaceholder div.newsItem:first-child div.month').html();

		var day = $('div.newsPlaceholder div.newsItem:first-child div.day').html();

		var content = '';

		$('div.newsPlaceholder div.newsItem:first-child div.newsItemContent p').each(function(){

			content += $(this).html() + '<br />';

		});

		



		$('div#blogFeed span.month').html(month);

		$('div#blogFeed span.day').html(day);

		$('div#blogFeed div.text p:first-child').html(content);

		

		$('div.newsPlaceholder').remove();

	}

}



var newsFeedObj = new newsFeed();
