var myRows = {"CommunityData":{"UnderConstruction":[{"PriceRange":198900,"SquareFeet":2074,"FullBath":2,"HalfBath":1,"Garage":2,"Bed":4,"MoveIn":"Ready","ImgURLElevation":"/images/GetImage?ImgType=6&ID=44","PhotoHeight":255,"PhotoWidth":350,"ImgURLFloorPlanThumb":"/images/GetImage?ImgType=3&ID=304","FloorPlanName":"First Floor","link":"/homes-greenville-nc/coopers-pointe/Dunley/C/128","Elevation":"The Dunley","ContentElevationUnderConstructionPhotoID":44},{"PriceRange":213900,"SquareFeet":1980,"FullBath":2,"HalfBath":1,"Garage":2,"Bed":3,"MoveIn":"Ready","ImgURLElevation":"/images/GetImage?ImgType=6&ID=54","PhotoHeight":276,"PhotoWidth":350,"ImgURLFloorPlanThumb":"/images/GetImage?ImgType=3&ID=713","FloorPlanName":"First Floor","link":"/homes-greenville-nc/coopers-pointe/Holly/C/134","Elevation":"The Holly","ContentElevationUnderConstructionPhotoID":54}],"StandardPlan":[{"ID":6,"Elevation":"The Ashley","PriceRange":0,"SquareFeet":2837,"Bed":4,"FullBath":2,"HalfBath":1,"Garage":2,"MoveIn":null,"ImgURLElevation":"/images/GetImage?ImgType=2&ID=198","PhotoHeight":301,"PhotoWidth":400,"ImgURLFloorPlanThumb":"/images/GetImage?ImgType=3&ID=690","FloorPlanName":"First Floor","link":"/homes-greenville-nc/coopers-pointe/Ashley"},{"ID":6,"Elevation":"The Collier","PriceRange":0,"SquareFeet":2740,"Bed":4,"FullBath":2,"HalfBath":1,"Garage":2,"MoveIn":null,"ImgURLElevation":"/images/GetImage?ImgType=2&ID=229","PhotoHeight":288,"PhotoWidth":400,"ImgURLFloorPlanThumb":"/images/GetImage?ImgType=3&ID=719","FloorPlanName":"First Floor","link":"/homes-greenville-nc/coopers-pointe/Collier"},{"ID":6,"Elevation":"The Diana","PriceRange":0,"SquareFeet":2148,"Bed":4,"FullBath":2,"HalfBath":1,"Garage":2,"MoveIn":null,"ImgURLElevation":"/images/GetImage?ImgType=2&ID=209","PhotoHeight":313,"PhotoWidth":400,"ImgURLFloorPlanThumb":"/images/GetImage?ImgType=3&ID=702","FloorPlanName":"First Floor","link":"/homes-greenville-nc/coopers-pointe/Diana"},{"ID":6,"Elevation":"The Haley","PriceRange":0,"SquareFeet":2271,"Bed":3,"FullBath":2,"HalfBath":1,"Garage":2,"MoveIn":null,"ImgURLElevation":"/images/GetImage?ImgType=2&ID=212","PhotoHeight":313,"PhotoWidth":400,"ImgURLFloorPlanThumb":"/images/GetImage?ImgType=3&ID=705","FloorPlanName":"First Floor","link":"/homes-greenville-nc/coopers-pointe/Haley"},{"ID":6,"Elevation":"The Holly","PriceRange":0,"SquareFeet":2032,"Bed":3,"FullBath":2,"HalfBath":1,"Garage":2,"MoveIn":null,"ImgURLElevation":"/images/GetImage?ImgType=2&ID=220","PhotoHeight":294,"PhotoWidth":400,"ImgURLFloorPlanThumb":"/images/GetImage?ImgType=3&ID=713","FloorPlanName":"First Floor","link":"/homes-greenville-nc/coopers-pointe/Holly"},{"ID":6,"Elevation":"The Powell","PriceRange":0,"SquareFeet":2250,"Bed":3,"FullBath":2,"HalfBath":0,"Garage":2,"MoveIn":null,"ImgURLElevation":"/images/GetImage?ImgType=2&ID=149","PhotoHeight":267,"PhotoWidth":400,"ImgURLFloorPlanThumb":"/images/GetImage?ImgType=3&ID=651","FloorPlanName":"First Floor","link":"/homes-greenville-nc/coopers-pointe/Powell"},{"ID":6,"Elevation":"The Rivers","PriceRange":0,"SquareFeet":2646,"Bed":4,"FullBath":2,"HalfBath":1,"Garage":2,"MoveIn":null,"ImgURLElevation":"/images/GetImage?ImgType=2&ID=223","PhotoHeight":282,"PhotoWidth":400,"ImgURLFloorPlanThumb":"/images/GetImage?ImgType=3&ID=715","FloorPlanName":"First Floor","link":"/homes-greenville-nc/coopers-pointe/Rivers"}]}} function createDataPoints(dataType){ var dataPoints = {"ColumnDefs":[ {key:"Elevation", sortable:true, label:"Elevation", formatter:formatUrl}, {key:"Plan", label:"Plan", label:"Plan", formatter:formatPlanUrl}, {key:"PriceRange", label:"Price Range", formatter:formatPriceRange}, {key:"SquareFeet", label:"Sq. Ft.", formatter:YAHOO.widget.DataTable.formatNumber}, {key:"Bed", label:"Bed", formatter:YAHOO.widget.DataTable.formatNumber}, {key:"FullBath", label:"Bath", formatter:YAHOO.widget.DataTable.formatNumber}, {key:"HalfBath", label:"1/2 Bath", formatter:YAHOO.widget.DataTable.formatNumber}, {key:"Garage", label:"Garage", formatter:YAHOO.widget.DataTable.formatNumber}, {key:"MoveIn", label:"Move In", formatter:formatMoveIn} ], "Columns":["Elevation", "link", "Plan", "PriceRange", "SquareFeet", "Bed", "FullBath", "HalfBath", "Garage", "MoveIn", "ImgURLElevation", "ImgURLFloorPlanThumb", "FloorPlanName"], "LineItems":eval("myRows.CommunityData." + dataType) }; return dataPoints; }