var Project = function(name, description, latitude, longitude, zoom) {
	this.type = "PROJECT";
	this.subType = "";
	this.address = "";
	this.period = "";
	this.salesStatus = "";
	this.area = "";
	this.projectType = "";
	this.projectStatus = "";
	this.image = "";
	this.imageWidth = "";
	this.imageHeight = "";
	this.renderProjectMarkers = true;
	
	this.name = name;
	this.description = description;
	this.latitude = latitude;
	this.longitude = longitude;
	this.zoom = zoom;
	this.draggable = true;
	this.children = null;
}

Project.prototype = new Space();

Project.prototype.getProjectStatus = function() {
	return this.projectStatus;		
}

Project.prototype.isCompleted = function() {
	var b = false;
	if(this.periodStatus === "Completed") {
		b = true;			
	}
	return b;
}

Project.prototype.isCurrent = function() {
	var b = false;
	if(this.periodStatus === "Current") {
		b = true;			
	}
	return b;
}

Project.prototype.getProjectType = function() {
	return this.projectType;
}


Project.prototype.isUpcoming = function() {
	var b = false;
	//alert(this.periodStatus);
	if(this.periodStatus === "Upcoming") {
		b = true;			
	}
	return b;
}





Project.prototype.isResidential = function() {
	var bool = false;
	if(this.projectType === "Residential" || this.projectType === "Layout") {
		bool = true;
	}
	return bool;
}

Project.prototype.isCommercial = function() {
	var bool = false;
	if(this.projectType === "Commercial") {
		bool = true;
	}
	return bool;
}



Project.prototype.getProjectStatus = function() {
	return this.projectStatus;
}

Project.prototype.isLayout = function() {
	var bool = false;
	if(this.projectType === "Layout") {
		bool = true;
	}
	return bool;
}
	
Project.prototype.getSalesStatus = function() {
	return this.salesStatus;
}