$(function(){	
	$('a.iWidget').each(function(i,e){
        
	$.ajax({
			type: "get",
			url: '/widgets/'+ $(e).attr('href'),
			wrap: $(e),
			beforeSend: function(e){
				this.wrap.append('<div class="ajax-loader"></div>')
			},
			success: function(data){
$(e).replaceWith(data)	
			} 
		})
	})
})
