var Search = {
	refineSlide:null,
	minPrice: 0,
	maxPrice: 0,
	stage: 0, //new
	sizeRange: '', //new
	style: 0, //new
	type: '', //new suite type
	complex: 0,
	levelName:'', //new 
    level: 0, //new
	bed: 0, //new
	bath: 0, //new
	refineFX: null,
	returntolast: true,
	initialize: function() {
		new SmoothScroll();
	},
	quick: function(value, but) {

		$$('#quickSearch li').removeClass('selected');
		but.getParent().addClass('selected');

		Search.setMin(utils.stripChar('|', value, 0));
		Search.setMax(utils.stripChar('|', value, 1));

		Search.returntolast	= false;
		
		switch(Site.searchType){
			case 'Land':
				Land.reset();
				Land.getList('quick');
				break;
			case 'Home':
				Home.reset();
				Home.getList('quick');
				break;
			case 'Apartment':
				Apartment.reset();
				Apartment.getList('quick');
				break;
		}
		
	},
	setMin: function(p) {
		this.minPrice = p;
	},
	setMax: function(p) {
		this.maxPrice = p;
		return p;
	},
	
	// new
	setStage: function(p) {
		this.stage = p;
		return p;
	},
	
	setSize: function(p) {
		this.sizeRange = p;
		return p;
	},
	
	
	setStyle: function(p) {
		this.style = p;
		return p;
	},
	
	setType: function(p) {
		this.type = p;
		return p;
	},
	
	setComplex: function(p) {
		this.complex = p;
		return p;
	},
	
	setLevelName: function(p) {
		this.levelName = p;
		return p;
	},
	
	setLevel: function(p) {
		this.level = p;
		return p;
	},
	
	setBed: function(p) {
		this.bed = p;
		return p;
	},
	setBath: function(p) {
		this.bath = p;
		return p;
	},
		
	//
	refined: function() {
		Search.setMin(utils.stripChar('$', $('min_price').value, 1));
		Search.setMax(utils.stripChar('$', $('max_price').value, 1));		
		Land.reset();
		Land.getList();		
	}
};