naviki.main.portlets.HeighestWaysPortlet = function(config) {

	this.constructor.superclass.constructor.call(this, config); 

};

naviki.main.portlets.HeighestWaysPortlet.prototype.formatTableRow = function(elCell, oRecord, oColumn, sData) {
	elCell.innerHTML = naviki.main.portlets.Util.formatWayRow({
			record: oRecord,
			info: ['heightmax'],
			heightmax: naviki.main.Util.formatNumber(naviki.main.Util.round(oRecord.getData("heightmax"), 1))+" m",
     		detailWayViewURL: oColumn.naviki_pi_portlet.config['portletcontainer'].config['detailWayViewURL']
	});
};

naviki.main.portlets.HeighestWaysPortlet.prototype.initialize = function() {

	this.garbage    = false;
	this.fields     = ["number", "uid" , "title", "tstamp", "mediafileurl", "mapurl", "km","heightmax"];
	this.headerName = naviki.Lang.getLL('portletsHeighestWays');
	this.dburl      = this.dburl+"getHeighestWays&pageid="+this.getPageID()+"&";
	naviki.main.portlets.HeighestWaysPortlet.superclass.initialize.call(this);
};


