
/* Crag List  */
$(document).ready(function(){
	$.blockUI.defaults.pageMessage = "";
	
	if ( document.getElementById("flyerContent") != null )
	updateFlyerList(1,6);
	
	if ( document.getElementById("craigContent") != null )
	updateCraigList(1,6);
});


function updateCraigList(startIndex,currLimit){
  $('#craigContent').block({ message: null });
  document.getElementById("craigContent").innerHTML = DefMsg;	
  $.ajax({
	  url: "index-ajax.php?mod=flyer&pg=list.craig&act=listCraig&pageNo="+startIndex+"&limit="+currLimit,
	  cache: false,
	  success: function(html){
	 	var tempHtml = new Array();
		tempHtml = html.split('|');
		document.getElementById("craigContent").innerHTML = tempHtml[0];
		$('#craigContent').unblock(); 
	  }
	});
}

/* Crag List  */




function updateFlyerList(startIndex,currLimit){
  $('#flyerContent').block({ message: null });
  document.getElementById("flyerContent").innerHTML = DefMsg;	
  $.ajax({
	  url: "index-ajax.php?mod=flyer&pg=list.craig&act=listMemlist&pageNo="+startIndex+"&limit="+currLimit,
	  cache: false,
	  success: function(html){
	 	var tempHtml = new Array();
		tempHtml = html.split('|');
		document.getElementById("flyerContent").innerHTML = tempHtml[0];
		$('#flyerContent').unblock(); 
	  }
	});
}













