var myGlobalHandlers = {
	onCreate: function(){
		Element.show('loadingBox');
	},
	onComplete: function() {
		if(Ajax.activeRequestCount == 0){
			Element.hide('loadingBox');
		}
	}
};

Ajax.Responders.register(myGlobalHandlers);

function getFirstListing()
{
   var url = 'searchBackend.php?f=feature'
   var myAjax = new Ajax.Updater(
        'featuredListing',
   	url,
   	{
   		method: 'get'
   	}
   )   				
}

function getFeatureListing(sequence)
{
   var url = 'searchBackend.php'
   var pars = 'f=feature&seq=' + sequence
   var myAjax = new Ajax.Updater(
        'featuredListing',
   	url,
   	{
   		method: 'get',
   		parameters: pars
   	}
   )   				
}

