//*********************************************************************
//
// Featured Homes HTML
//
// Copyright (c) 2009, MFM Communication Software, Inc.
//
//*********************************************************************
//
// fhMakeHtml.js
// $Id: fhMakeHtml.js,v 1.1 2009/05/20 13:15:22 lbettag Exp $
//
// This function creates the HTML for each featured home block and
// is intended to be over ridden
//
//*********************************************************************
//
// Tell jsjam.pl to not change these identifier and function names
//
// jsjam-keep:makeFHHtml
// jsjam-keep:feathomes
// jsjam-keep: addCommas
//
//*********************************************************************

// This is the over ride function
// If I was being really rigorous, I could
// probably use a div as a template,
// clone it & replace elements in the cell
function makeFHHtml(num)
{
  var fhHtml = "";

  fhHtml += '<b>Located in <font color="red">' + feathomes[num]['suburb'] + '</font></b><br />\n';
  fhHtml += '<b>Listing Price:</b> $' + addCommas(feathomes[num]['listprice']) + '<br />\n';
  fhHtml += '<b>Beds:</b> ' + feathomes[num]['bedrooms'] + '  <b>Baths:</b> ' + (parseInt(feathomes[num]['full_baths']) + ' - ' + parseInt(feathomes[num]['part_baths'])) + '<br />\n';
  
  return fhHtml;
}
