
function loadFeed(target,url,items,trim)
{
	/*feed_server='http://www.thoughtsmedia.com/feedmaster/render/list/';*/
	
	feed_server='http://applethoughts.com/proxies/feedmaster.php';
        feed_server = feed_server + '?render/list/';

	/* creating query */
	var qry=feed_server + '?&url=' + url + '&items=' + items + '&trim=' + trim;
	
	/* passing query to asynchrounous engine */
	$(target).load(qry);
}

function subscribeToNewsletter()
{
	$('#nsltr_dialog').hide();
	$('#nsltr_dialog').html('Processing...');
	$('#nsltr_dialog').show('slow');
	
	var _email=$("input[@name=nsltr_email]").val();
	var _type=$("input[@name=nsltr_type]:checked").val();
	
	$.post("/index.php?q=async/subscribe",
	{ 	email: _email,
	  	type: _type,
	  	tags: "applethoughts" },
	
	  function(data){
		      $('#nsltr_dialog').html(data);
			  }
	);
}	

function unsubscribeToNewsletter()
{
	$('#nsltr_dialog').hide();
	$('#nsltr_dialog').html('Processing...');
	$('#nsltr_dialog').show('slow');
	
	var _email=$("input[@name=nsltr_email]").val();
	
	$.post("/index.php?q=async/unsubscribe",
	{ 	email: _email,
	  	tags: "applethoughts" },
	
	  function(data){
		      $('#nsltr_dialog').html(data);
			  }
	);
}	