//jQuery(document).ready(function($){

var loading_div = '<div class="loading"><img src="/wp-content/themes/alm/images/loading.gif" alt="Loading..." /></div>';

function getVals(v) {
	var v = new String(v);
	return v.split('|*|');
}

function displayPDFs(f, p, t, s) {
	jQuery('#'+s+'_pdfs').html(loading_div);
	
	jQuery.ajax({
		type:		"POST",
		url:		"http://www.accesslossmitigation.com/wp-content/themes/alm/ajax.inc.php",
		data:		{ func: 'displayPDFs', folder: f, page: p, total: t, section: s },
		cache:		false,
		success:	function(val){ displayPDFs_cb(val, s); },
		error:		function(val) { }
	});
}

function displayPDFs_cb(val, section) {
	jQuery('#'+section+'_pdfs').html(val);
}

//});