//*********************************************************************
//
// Featured Homes HTML
//
// Copyright (c) 20``, MFM Communication Software, Inc.
//
//*********************************************************************
//
// fhMakeHtml.js
// $Id: fhMakeHtml.js,v 1.11 2011/05/06 20:35:58 cmacarie 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 = "";
  var listprice = addCommas(feathomes[num]['listprice']);

  fhHtml = '<table cellpadding="1" border="0" cellspacing="0" align="center"><tr><td align="center"><a href="/displaylist.asw?listnum=' + feathomes[num]['listnum'] + '&mls=' + feathomes[num]['mls'] + '&rd=' + num + '"><img src="' + feathomes[num]['photo'] + '" width="190" height="142" style="border-left: #000 50px solid; border-right: #000 50px solid; border-top: #000 4px solid; border-bottom: #000 4px solid; margin-bottom: 3px;" ></a></td></tr>';
  fhHtml += '  <tr><td nowrap="nowrap" align="center"><b>Located in <font color="#8e0c3a">' + feathomes[num]['suburb'] + '</font></b></td></tr>';
  fhHtml += '  <tr><td nowrap="nowrap" align="center"><b>Listing Price:</b> $' + feathomes[num]['listprice'] + '</td></tr>';
  fhHtml += '  <tr><td nowrap="nowrap" align="center"><b>Beds:</b> ' + feathomes[num]['bedrooms'] + ' &nbsp;&nbsp;&nbsp;<b>Baths:</b> ';
  fhHtml += '    ' + feathomes[num]['full_baths'];
  if (feathomes[num]['part_baths'])
    fhHtml += '-' + feathomes[num]['part_baths'] + '\n';
  fhHtml += '</td></tr></table>';

return fhHtml;
}

