var latestFromReq;

// Removing Prototype dependency
/*
function getLatestFrom(uri,select,articleId,id) {
	new Ajax.Request(uri + "index.jsp?service=ajax&type=latestFrom&select=" + encodeURIComponent(select) + "&articleId=" + encodeURIComponent(articleId) + "&id=" + encodeURIComponent(id),
  	{
    	method:'get',
    	onSuccess: function(transport){
     	document.getElementById(id).innerHTML = transport.responseText;
    }
  });
}
*/

// Using jQuery instead of Prototype
function getLatestFrom(uri,select,articleId,id,clickref) {
	$("#" + id + " .minitabs li.on").removeClass("on");
	$(clickref).parent("li").addClass("on");
	$(clickref).blur();
	
	var url = publicationUrl + "?service=ajax&type=latestFrom&select=" + encodeURIComponent(select) + "&articleId=" + encodeURIComponent(articleId) + "&id=" + encodeURIComponent(id);
  	var jqSel = "#" + id + " .boxbody";
	
	$(jqSel).load(url + " .boxbody ul");
	
	return false;
}
