/* put your custom js here */

function swaplists(listname) {
	//close all lists
	var lists = new Array('buildingslist', 'rprojectslist', 'resortslist', 'developmentlist');
	for (var i=0; i<lists.length; i++) {
		if (Element.visible(lists[i])) {
			//new Effect.BlindUp(lists[i],{duration:0.4, afterFinish:function(){
				//if (!Element.visible(listname)) {
					//new Effect.BlindDown(listname,{duration:0.4});
				//}
			//}});
			Element.hide(lists[i]);
		}
	}
	Element.show(listname);
}