// JS Property object for Younilife Accommodation 2.0 - 31/09/2009, AW //

property = {
	
	current_area: 'All',
	page: 1,
	
	get_by_town: function(town, page) {
		
		$.get('/rankings/ajax/ylac-client.php?list&area=' + town+ '&page=' + 
			  property.page + '&r=' + Math.random(), '', property.response, 'text');

	},
	
	get_new: function(town) {
		
	},
	
	response: function(doc, status) {
	
		alert(doc);
		if (status != 'success') {
			alert(status);
			return;
		}
		
		var current_property, 
			node = doc.firstChild.firstChild,
			status = node.firstChild.nodeValue;
		
	
	
	},
	
	start: function() {
		//property.get_by_town(this.current_area);
	}
	
};

window.onload = property.start();