
function resetMenu(obj, thisA){
	Effect.toggle(obj, 'slide', {
		afterFinish: function(e){ 
			if(Element.visible(e.element)){
				thisA.style.background  = "url('/img/realestate/minus.gif')  no-repeat 6px 8px";
			} else {
				thisA.style.background  = "url('/img/realestate/plus.gif')  no-repeat 6px 8px";
			}
		}
	});
}


function showMonth(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var elStyle = document.getElementById(obj).style;
	var ar = document.getElementById("months").getElementsByTagName("ol"); //DynamicDrive.com change
	
		if(elStyle.display != "block"){ //DynamicDrive.com change
			for (var i=0; i<ar.length; i++){
				if (ar[i].className=="submenu") //DynamicDrive.com change
				ar[i].style.display = "none";
				ar[i].parentNode.firstChild.style.background  = "url('/img/realestate/plus.gif')  no-repeat 6px 8px";
			}
			elStyle.display= "block";
			var linkTags = el.parentNode.getElementsByTagName("a");
			for (var i=0; i<linkTags.length; i++){
				linkTags[i].style.background  = "url('/img/realestate/minus.gif')  no-repeat 6px 8px";
			}

		}else{
			elStyle.display = "none";
			var linkTags = el.parentNode.getElementsByTagName("a");
			for (var i=0; i<linkTags.length; i++){
				linkTags[i].style.background  = "url('/img/realestate/plus.gif')  no-repeat 6px 8px";
			}
		}
	}
}

function showAll(){
	if(document.getElementById){
		var ar = document.getElementById("months").getElementsByTagName("ol"); //DynamicDrive.com change
		for (var i=0; i<ar.length; i++){
			if (ar[i].className=="submenu") //DynamicDrive.com change
			ar[i].style.display = "block";
			ar[i].parentNode.firstChild.style.background  = "url('/img/realestate/minus.gif')  no-repeat 6px 8px";
		}
	}
}

function hideAll(){
	if(document.getElementById){
		var ar = document.getElementById("months").getElementsByTagName("ol"); //DynamicDrive.com change
		for (var i=0; i<ar.length; i++){
			if (ar[i].className=="submenu") //DynamicDrive.com change
			ar[i].style.display = "none";
			ar[i].parentNode.firstChild.style.background  = "url('/img/realestate/plus.gif')  no-repeat 6px 8px";
		}
	}
}


