// JavaScript Document


/*    Featured Property 1   */
/* strHTML will hold our complete HTML string - this is what will be loaded into the <div> with id 'ListingResults' */
var strHTML = "";
function LoadListingData() {	
	/* Loop through each listing and append it's details to the strHTML string */
	for (i = 0; i < 1; i++) {
	/* To check if a photo exists, this will do the trick:*/
    if (photo[i]) {
        strHTML += "<img width=\"150\" height=\"100\" src=\"" + photo[i] + "\" alt=\"Listing Photo\" /><br />";
} else {           
        strHTML += "<img width=\"150\" height=\"100\" src=\"http://www.myhomecards.com/images/NoPhoto.gif\" alt=\"No Photo\" /><br />";/* No Photo - make sure the img src exists */
}
		strHTML += " " + address[i] + "<br />";
		strHTML += "Beds: " + beds[i] + "<br />";
		strHTML += "Baths: " + new Number(baths[i]).toPrecision(2) + "<br />";
		strHTML += "Price: " + price[i] + "<br />";
		strHTML += "<a href=\"" + link[i] + "\" target=\"blank\">&raquo;Full Details</a><br />";
	}	
	document.getElementById("ListingResults").innerHTML = strHTML;
}



/*    Featured Property 2   */
/* strHTML will hold our complete HTML string - this is what will be loaded into the <div> with id 'ListingResults' */
var strHTML2 = "";
function LoadListingData2() { 
            /* Loop through each listing and append it's details to the strHTML string */
    for (i = 0; i < 1; i++) {  
	/* To check if a photo exists, this will do the trick:*/
    if (photo[i]) {
        strHTML2 += "<img width=\"150\" height=\"100\" src=\"" + S2photo[i] + "\" alt=\"Listing Photo\" /><br />";
} else {           
        strHTML2 += "<img width=\"150\" height=\"100\" src=\"http://www.myhomecards.com/images/NoPhoto.gif\" alt=\"No Photo\" /><br />";/* No Photo - make sure the img src exists */
}       
        strHTML2 += "" + S2address[i] + "<br />";
        strHTML2 += "Beds: " + S2beds[i] + "<br />";
        strHTML2 += "Baths: " + new Number(S2baths[i]).toPrecision(2) + "<br />";
        strHTML2 += "Price: " + S2price[i] + "<br />";
        strHTML2 += "<a href=\"" + S2link[i] + "\" target=\"blank\">&raquo;Full Details</a><br />";
            }          
            document.getElementById("ListingResults2").innerHTML = strHTML2;
}


/*    Featured Property 3   */
/* strHTML will hold our complete HTML string - this is what will be loaded into the <div> with id 'ListingResults' */
var strHTML3 = "";
function LoadListingData3() { 
            /* Loop through each listing and append it's details to the strHTML string */
   for (i = 0; i < 1; i++) {  
   /* To check if a photo exists, this will do the trick:*/
   if (S3photo[i]) {
       strHTML3 += "<img width=\"150\" height=\"100\" src=\"" + S3photo[i] + "\" alt=\"Listing Photo\" /><br />";
} else {           
       strHTML3 += "<img width=\"150\" height=\"100\" src=\"http://www.myhomecards.com/images/NoPhoto.gif\" alt=\"No Photo\" /><br />";/* No Photo - make sure the img src exists */
}
       strHTML3 += "" + S3address[i] + "<br />";
       strHTML3 += "Beds: " + S3beds[i] + "<br />";
       strHTML3 += "Baths: " + new Number(S3baths[i]).toPrecision(2) + "<br />";
       strHTML3 += "Price: " + S3price[i] + "<br />";
       strHTML3 += "<a href=\"" + S3link[i] + "\" target=\"blank\">&raquo;Full Details</a><br />";
            }          
            document.getElementById("ListingResults3").innerHTML = strHTML3;
}



/*    Featured Property 4   */
/* strHTML will hold our complete HTML string - this is what will be loaded into the <div> with id 'ListingResults' */
var strHTML4 = "";
function LoadListingData4() {	
	for (i = 0; i < 1; i++) {
	/* To check if a photo exists, this will do the trick:*/
	 if (S4photo[i]) {
       strHTML4 += "<img width=\"150\" height=\"100\" src=\"" + S4photo[i] + "\" alt=\"Listing Photo\" /><br />";
} else {           
       strHTML4 += "<img width=\"150\" height=\"100\" src=\"http://www.myhomecards.com/images/NoPhoto.gif\" alt=\"No Photo\" /><br />";/* No Photo - make sure the img src exists */
}
        strHTML4 += "" + S4address[i] + "<br />";
        strHTML4 += "Beds: " + S4beds[i] + "<br />";
        strHTML4 += "Baths: " + new Number(S4baths[i]).toPrecision(2) + "<br />";
        strHTML4 += "Price: " + S4price[i] + "<br />";
        strHTML4 += "<a href=\"" + S4link[i] + "\" target=\"blank\">&raquo;Full Details</a><br />";
	}	
	document.getElementById("ListingResults4").innerHTML = strHTML4;
}



/*    Featured Property 5   */
/* strHTML will hold our complete HTML string - this is what will be loaded into the <div> with id 'ListingResults' */
var strHTML5 = "";
function LoadListingData5() { 
	/* Loop through each listing and append it's details to the strHTML string */
	for (i = 0; i < 1; i++) {
	/* To check if a photo exists, this will do the trick:*/
    if (S5photo[i]) {
        strHTML5 += "<img width=\"150\" height=\"100\" src=\"" + S5photo[i] + "\" alt=\"Listing Photo\" /><br />";
} else {           
        strHTML5 += "<img width=\"150\" height=\"100\" src=\"http://www.myhomecards.com/images/NoPhoto.gif\" alt=\"No Photo\" /><br />";/* No Photo - make sure the img src exists */
}
        strHTML5 += "" + S5address[i] + "<br />";
        strHTML5 += "Beds: " + S5beds[i] + "<br />";
        strHTML5 += "Baths: " + new Number(S5baths[i]).toPrecision(2) + "<br />";
        strHTML5 += "Price: " + S5price[i] + "<br />";
        strHTML5 += "<a href=\"" + S5link[i] + "\" target=\"blank\">&raquo;Full Details</a><br />";
            }          
            document.getElementById("ListingResults5").innerHTML = strHTML5;
}

/*    Featured Property 6   */
/* strHTML will hold our complete HTML string - this is what will be loaded into the <div> with id 'ListingResults' */
var strHTML6 = "";
function LoadListingData6() { 
            /* Loop through each listing and append it's details to the strHTML string */
    for (i = 0; i < 1; i++) {
	/* To check if a photo exists, this will do the trick:*/
     if (S6photo[i]) {
        strHTML6 += "<img width=\"150\" height=\"100\" src=\"" + S6photo[i] + "\" alt=\"Listing Photo\" /><br />";
} else {           
        strHTML5 += "<img width=\"150\" height=\"100\" src=\"http://www.myhomecards.com/images/NoPhoto.gif\" alt=\"No Photo\" /><br />";/* No Photo - make sure the img src exists */
}	          
        strHTML6 += "" + S6address[i] + "<br />";
        strHTML6 += "Beds: " + S6beds[i] + "<br />";
        strHTML6 += "Baths: " + new Number(S6baths[i]).toPrecision(2) + "<br />";
        strHTML6 += "Price: " + S6price[i] + "<br />";
        strHTML6 += "<a href=\"" + S6link[i] + "\" target=\"blank\">&raquo;Full Details</a><br />";
            }          
            document.getElementById("ListingResults6").innerHTML = strHTML6;
}