
Search = {
	selObj : document.getElementById('where_hidden'),
	whereObj : document.getElementById('search_opt'),
	popinObj : document.getElementById('search_opt_over'),
	inmouse : false,
	openPopin : function () {
		if (this.popinObj.style.display == 'block') {
			this.closePopin();
		} else {
			this.popinObj.style.display = 'block';
		}
	},
	closePopin : function () {
		this.popinObj.style.display = 'none';
	},
	setSelect : function (val, txt) {
		this.selObj.value = val;
		this.whereObj.innerHTML = txt;
		this.closePopin();
	},
	clickOut : function () {
		if (!this.inmouse) {
			this.closePopin();
		}
	}
}