0) { var html = ' '; html += ' ' + headline + ' '; html += ' ' + responseXml.getElementsByTagName("text")[0].firstChild.nodeValue + ' '; html += ' '; $('#greeting').html(html); $('#greeting').css('padding-left', '0'); if(headline.match('Movie')) { var flashChild = $($('#FlashMovie').find('div')[0]).attr('id'); var flashURL = 'http://www.sharperagent.com/flash/' + flashChild + '.swf'; swfobject.embedSWF(flashURL, flashChild, "376", "242", "7.0.0"); } //turning on all articles that have ever been viewed, and then turning off display on the one to be viewed. articleIds.push(id); for (var i=0;i 0) { var photoHref = responseXml.getElementsByTagName("property")[0].getAttribute("photohref"); if (photoHref !== '') photoHref = FluxURI + '/FileManager/getFile.flx?xml=&flxnodeco'; else photoHref = FluxURI + '/eNewsletter/noProperty.img'; var html = ''; html += ' '; html += ' '; html += responseXml.getElementsByTagName("street")[0].firstChild.nodeValue + ' '; html += responseXml.getElementsByTagName("city")[0].firstChild.nodeValue + ', ' + responseXml.getElementsByTagName("state")[0].firstChild.nodeValue.split("|")[1] + ' ' + responseXml.getElementsByTagName("postcode")[0].firstChild.nodeValue + ' '; html += responseXml.getElementsByTagName("country")[0].firstChild.nodeValue.split("|")[1]; html += ' '; html += ' '; html += 'List Price $' + responseXml.getElementsByTagName("property")[0].getAttribute("listprice") + ' '; html += 'Beds: ' + responseXml.getElementsByTagName("property")[0].getAttribute("bed") + ' '; html += 'Baths: ' + responseXml.getElementsByTagName("property")[0].getAttribute("bath") + ' '; if (responseXml.getElementsByTagName("property")[0].getAttribute("listingdate") != '') html += 'Listing Date: ' + responseXml.getElementsByTagName("property")[0].getAttribute("listingdate") + ' '; if (responseXml.getElementsByTagName("property")[0].getAttribute("status") !== '') html += 'Status: ' + responseXml.getElementsByTagName("property")[0].getAttribute("status") + ' '; if (responseXml.getElementsByTagName("listing")[0].getAttribute("mlsid") !== '') html += 'MLS #: ' + responseXml.getElementsByTagName("listing")[0].getAttribute("mlsid") + ' '; if (responseXml.getElementsByTagName("property")[0].getAttribute("url") !== 'http://') html += 'Click Here for more information'; html += ' '; if(responseXml.getElementsByTagName("description")[0].hasChildNodes()) html += ' ' + responseXml.getElementsByTagName("description")[0].firstChild.nodeValue + ' '; if(responseXml.getElementsByTagName("directions")[0].hasChildNodes()) html += ' ' + responseXml.getElementsByTagName("directions")[0].firstChild.nodeValue + ' '; document.getElementById('greeting').innerHTML = html; //turning on all articles that have ever been viewed, and then turning off display on the one to be viewed. for (var i=0;i">
Share