function ParkRideData() {
	this.totalCount = 0;
	this.listCount = 0;
	this.area = null;
	this.areaName = null;
	this.parkingClass = null;
	this.id = null;
	this.serial = null;
	this.name = null;
	this.manku = null;
	this.mankuStatus = null;
	this.mankuIcon = null;
	this.admission = null;
	this.stock = null;
	this.gAdd = null;
	this.gForm = null;
	this.gLimit = null;
	this.gDate = null;
	this.gCharge = null;
	this.tel = null;
	this.gDispord = null;
	this.gOther = null;
	this.pointX = null;
	this.pointY = null;
	this.modified = null;
	this.modifiedYear = null;
	this.modifiedMonth = null;
	this.modifiedDay = null;
	this.modifiedHour = null;
	this.modifiedMinute = null;
	this.stationGroupId = null;
	this.stationGroup = null;
	this.spanId = null;
	this.span = null;
	this.qr = null;
//	this.freeParking = null;
	this.parkingCount = null;
	this.init = function(xml) {
		this.listCount = xml.getElementsByTagName('datainfo').length;
		this.area = new Array();
		this.areaName = new Array();
		this.parkingClass = new Array();
		this.id = new Array();
		this.serial = new Array();
		this.name = new Array();
		this.manku = new Array();
		this.mankuStatus = new Array();
		this.mankuIcon = new Array();
		this.admission = new Array();
		this.stock = new Array();
		this.gAdd = new Array();
		this.gForm = new Array();
		this.gLimit = new Array();
		this.gDate = new Array();
		this.gCharge = new Array();
		this.tel = new Array();
		this.gDispord = new Array();
		this.gOther = new Array();
		this.pointX = new Array();
		this.pointY = new Array();
		this.modified = new Array();
		this.modifiedYear = new Array();
		this.modifiedMonth = new Array();
		this.modifiedDay = new Array();
		this.modifiedHour = new Array();
		this.modifiedMinute = new Array();
		this.stationGroupId = new Array();
		this.stationGroup = new Array();
		this.spanId = new Array();
		this.span = new Array();
		this.qr = new Array();
//		this.freeParking = new Array();
		this.parkingCount = new Array();

		this.totalCount = xml.getElementsByTagName('totalcount')[0].childNodes[0].nodeValue;
		var dataList = xml.getElementsByTagName('datainfo');
		for (i = 0; i < this.listCount; i++) {
			this.area[i] = 0;
			this.areaName[i] = "";
			this.parkingClass[i] = 0;
			this.id[i] = "";
			this.serial[i] = "";
			this.name[i] = "";
			this.manku[i] = "";
			this.mankuStatus[i] = "";
			this.mankuIcon[i] = "";
			this.admission[i] = 0;
			this.stock[i] = 0;
			this.gAdd[i] = "";
			this.gForm[i] = "";
			this.gLimit[i] = "";
			this.gDate[i] = "";
			this.gCharge[i] = "";
			this.tel[i] = "";
			this.gDispord[i] = "";
			this.gOther[i] = "";
			this.pointX[i] = 0;
			this.pointY[i] = 0;
			this.modified[i] = "";
			this.modifiedYear[i] = "";
			this.modifiedMonth[i] = "";
			this.modifiedDay[i] = "";
			this.modifiedHour[i] = "";
			this.modifiedMinute[i] = "";
			this.stationGroupId[i] = 0;
			this.stationGroup[i] = "";
			this.spanId[i] = 0;
			this.span[i] = "";
			this.qr[i] = "";
//			this.freeParking[i] = 0;
			this.parkingCount[i] = 0;

			this.parkingClass[i] = dataList[i].getAttribute('parkingclass');
			this.serial[i] = dataList[i].getAttribute('id');
			this.id[i] = dataList[i].getAttribute('parkid');

			for (j = 0; j < dataList[i].childNodes.length; j++) {
				var child = dataList[i].childNodes[j];
				if (!child.tagName) {
					continue;
				}
				if (child.tagName == 'name') {
					if(child.firstChild) {
						this.name[i] = child.firstChild.nodeValue;
					}
				}
				if (child.tagName == 'modified') {
					if(child.firstChild) {
						this.modifiedYear[i] = child.getAttribute('year');
						this.modifiedMonth[i] = child.getAttribute('month');
						this.modifiedDay[i] = child.getAttribute('day');
						this.modifiedHour[i] = child.getAttribute('hour');
						this.modifiedMinute[i] = child.getAttribute('minute');
						this.modified[i] = child.firstChild.nodeValue;
					}
				}
				if (child.tagName == 'admission') {
					if(child.firstChild) {
						this.admission[i] = child.firstChild.nodeValue;
					}
				}
				if (child.tagName == 'stock') {
					if(child.firstChild) {
						this.stock[i] = child.firstChild.nodeValue;
					}
				}
				if (child.tagName == 'area') {
					if(child.firstChild) {
						this.area[i] = child.getAttribute('id');
						this.areaName[i] = child.firstChild.nodeValue;
					}
				}
				if (child.tagName == 'manku') {
					if(child.firstChild) {
						this.mankuStatus[i] = child.getAttribute('status');
						this.mankuIcon[i] =  child.getAttribute('icon');
						this.manku[i] = child.firstChild.nodeValue;
					}
				}
				if (child.tagName == 'gadd') {
					if(child.firstChild) {
						this.gAdd[i] = child.firstChild.nodeValue;
					}
				}
				if (child.tagName == 'gform') {
					if(child.firstChild) {
						this.gForm[i] = child.firstChild.nodeValue;
					}
				}
				if (child.tagName == 'glimit') {
					if(child.firstChild) {
						this.gLimit[i] = child.firstChild.nodeValue;
					}
				}
				if (child.tagName == 'gdate') {
					if(child.firstChild) {
						this.gDate[i] = child.firstChild.nodeValue;
					}
				}
				if (child.tagName == 'gcharge') {
					if(child.firstChild) {
						this.gCharge[i] = child.firstChild.nodeValue;
					}
				}
				if (child.tagName == 'gother') {
					if(child.firstChild) {
						this.gOther[i] = child.firstChild.nodeValue;
					}
				}
				if (child.tagName == 'tel') {
					if(child.firstChild) {
						this.tel[i] = child.firstChild.nodeValue;
					}
				}
				if (child.tagName == 'gdispord') {
					if(child.firstChild) {
						this.gDispord[i] = child.firstChild.nodeValue;
					}
				}
				if (child.tagName == 'stationgroup') {
					if(child.firstChild) {
						this.stationGroupId[i] = child.getAttribute('id');
						this.stationGroup[i] = child.firstChild.nodeValue;
					}
				}
				if (child.tagName == 'span') {
					if(child.firstChild) {
						this.spanId[i] = child.getAttribute('id');
						this.span[i] = child.firstChild.nodeValue;
					}
				}
				if (child.tagName == 'point') {
					if(child.firstChild) {
						this.pointX[i] = child.getAttribute('x');
						this.pointY[i] = child.getAttribute('y');
					}
				}
				if (child.tagName == 'qr') {
					if(child.firstChild) {
						this.qr[i] = child.firstChild.nodeValue;
					}
				}
//				if (child.tagName == 'freeparking') {
//					if(child.firstChild) {
//						this.freeParking[i] = child.firstChild.nodeValue;
//					}
//				}
//alert('phase3');
			}
//			this.parkingCount[i] = parseInt(this.admission[i]) - parseInt(this.stock[i]) < 0 ? "-" : "" + (parseInt(this.admission[i]) - parseInt(this.stock[i]));
			this.parkingCount[i] = this.stock[i];
		}

	}
	
	this.getTotalCount = function() {
		return this.totalCount;
	}
	this.getListCount = function() {
		return this.listCount;
	}
	this.getArea = function() {
		return this.area;
	}
	this.getAreaName = function() {
		return this.areaName;
	}
	this.getParkingClass = function() {
		return this.parkingClass;
	}
	this.getId = function() {
		return this.id;
	}
	this.getSerial = function() {
		return this.serial;
	}
	this.getName = function() {
		return this.name;
	}
	this.getManku = function() {
		return this.manku;
	}
	this.getMankuStatus = function() {
		return this.mankuStatus;
	}
	this.getMankuIcon = function() {
		return this.mankuIcon;
	}
	this.getAdmission = function() {
		return this.admission;
	}
	this.getStock = function() {
		return this.stock;
	}
	this.getGAdd = function() {
		return this.gAdd;
	}
	this.getGForm = function() {
		return this.gForm;
	}
	this.getGLimit = function() {
		return this.gLimit;
	}
	this.getGDate = function() {
		return this.gDate;
	}
	this.getGCharge = function() {
		return this.gCharge;
	}
	this.getTel = function() {
		return this.tel;
	}
	this.getGDispord = function() {
		return this.gDispord;
	}
	this.getGOther = function() {
		return this.gOther;
	}
	this.getPointX = function() {
		return this.pointX;
	}
	this.getPointY = function() {
		return this.pointY;
	}
	this.getModified = function() {
		return this.modified;
	}
	this.getModifiedYear = function() {
		return this.modifiedYear;
	}
	this.getModifiedMonth = function() {
		return this.modifiedMonth;
	}
	this.getModifiedDay = function() {
		return this.modifiedDay;
	}
	this.getModifiedHour = function() {
		return this.modifiedHour;
	}
	this.getModifiedMinute = function() {
		return this.modifiedMinute;
	}
	this.getStationGroupId = function() {
		return this.stationGroupId;
	}
	this.getStationGroup = function() {
		return this.stationGroup;
	}
	this.getSpanId = function() {
		return this.spanId;
	}
	this.getSpan = function() {
		return this.span;
	}
	this.getQr = function() {
		return this.qr;
	}
//	this.getFreeParking = function() {
//		return this.freeParking;
//	}
	this.getParkingCount = function() {
		return this.parkingCount;
	}
}

