function Developments() {
	this.id = "";
	this.lastid = "";
	this.listHistory = new Array;
	
	this.closeLastDevelopment = function() {
	
	}
	
	this.openDevelopment = function(theNumber) {
		this.theDevelopmentNumber = theNumber;
		this.changeArrow();
		this.openDevelopmentDetail();
		
	}
	
	this.changeArrow = function() {
		theDiv = "imgdev"+this.theDevelopmentNumber;
		this.theObject = document.getElementById(theDiv);
		this.textDiv = "showtext"+this.theDevelopmentNumber;
		this.theTextObj = document.getElementById(this.textDiv);
		if(this.theObject) {
			if(this.theObject.src.search('/site/images/arrows/arrow_brown_down.gif') > 0) {
				this.theObject.src = '/site/images/arrows/arrow_brown_right.gif';
				this.theTextObj.innerHTML = "Show Properties";
				this.isOpen = 0;
			}
			else {
				this.theObject.src = '/site/images/arrows/arrow_brown_down.gif';
				this.theTextObj.innerHTML = "Hide Properties";
				this.isOpen = 1;
			}
		}
		
	}
	
	this.openDevelopmentDetail = function() {
		theDiv = "dev"+this.theDevelopmentNumber;
		this.theObject = document.getElementById(theDiv);
		if(this.theObject) {
			if(this.isOpen) {
				this.theObject.style.display = 'block';
			}
			else {
				this.theObject.style.display = 'none';
			}
		}		
	}
	
	this.openPropertyType = function(devid, typeid) {
		this.theDevelopmentNumber = devid;
		this.theTypeID = typeid;
		this.openTypeDiv();
		this.changeTypeArrow();
	}
	
	this.openTypeDiv = function() {
		theDiv = "type"+this.theDevelopmentNumber+"_"+this.theTypeID;
		this.theObject = document.getElementById(theDiv);
		if(this.theObject) {
			if(this.theObject.style.display == 'none') {
				this.theObject.style.display = 'block';
			} else {
				this.theObject.style.display = 'none';
			}
		}
	}
	
	this.changeTypeArrow = function() {
		theDiv = "divtype"+this.theDevelopmentNumber+"_"+this.theTypeID;
		this.theObject = document.getElementById(theDiv);
		if(this.theObject) {
			//alert(this.theObject.style.background);
			if(this.theObject.style.background == "transparent url(/site/images/arrows/arrow_white_down.gif) no-repeat scroll left center" || 
					this.theObject.style.background == "url(/site/images/arrows/arrow_white_down.gif) no-repeat left 50%") {
				this.theObject.style.background="url('/site/images/arrows/arrow_white_right.gif')  transparent left no-repeat";
			} else {
				this.theObject.style.background="url('/site/images/arrows/arrow_white_down.gif')  transparent left no-repeat";
			}
			
		}	
	}

}