function ulFav(action,type,id,mobile) {
	var ajx = new ajaxObject('');
	ajx.callback = function(responseText, responseStatus, responseXML) {
		if (responseStatus==200) {
			if (typeof mobile != "undefined" && mobile != null)	{
				$("#floaty").html(responseText).show();
			} else {
				$.fancybox(
					responseText,
					{
						'autoDimensions'	: false,
						'width'         	: 350,
						'height'        	: 150
					}
				);
			}
		}
	}
	ajx.update('favaction='+encodeURIComponent(action)+'&favtype='+encodeURIComponent(type)+'&favid='+encodeURIComponent(id), 'POST');
}

function ulFavDelItem(id, type, mobile) {	
	if (!confirm('Are you sure you want to remove this favorite?')) return;
	var ajx = new ajaxObject('');
	ajx.callback = function(responseText, responseStatus, responseXML) {
		if (responseStatus==200) {
			//if (typeof mobile != "undefined" && mobile != null) $("#floaty").html(responseText).show();	
			document.getElementById('fav_'+type+'_' + id).innerHTML = '';
		}
	}
	ajx.update('favaction=rem&favid='+encodeURIComponent(id)+'&favtype='+encodeURIComponent(type), 'POST');
}
