// recent listings object function recentListings(){ this.imgs = new Array(); this.txts = new Array(); this.ids = new Array(); this.ids[0] = '264320'; this.imgs[0] = 'AccountImg.aspx?i=listings/264320-0_thumb.jpg'; this.txts[0] = ''; this.txts[0] += '4 Bedroom Adams Home   '; this.txts[0] += 'Price: $99,900   '; this.txts[0] += 'Beds: 4   '; this.txts[0] += 'Baths: 2 Full   '; this.ids[1] = '264324'; this.imgs[1] = 'AccountImg.aspx?i=listings/264324-0_thumb.jpg'; this.txts[1] = ''; this.txts[1] += 'Aubuchon Beauty - No bridge to the Gulf!   '; this.txts[1] += 'Price: $1,249,000   '; this.txts[1] += 'Beds: 4   '; this.txts[1] += 'Baths: 4+   '; this.ids[2] = '197470'; this.imgs[2] = 'AccountImg.aspx?i=listings/197470-0_thumb.jpg'; this.txts[2] = ''; this.txts[2] += 'Motivated seller! Great buy!   '; this.txts[2] += 'Price: $445,900   '; this.txts[2] += 'Beds: 4   '; this.txts[2] += 'Baths: 3 Full   '; this.pos = -1; this.nextListing = function(){ this.pos = (this.pos == 2) ? 0 : this.pos + 1; this.newListing(this.pos); } this.prevListing = function(){ this.pos = (this.pos == 0) ? 2 : this.pos - 1; this.newListing(this.pos); } this.newListing = function(new_pos){ if(this.txts.length > 0){ document.getElementById('recent_listings').style.visibility = 'visible'; document.getElementById('recent_listings').style.display = 'block'; if(f2_scroller){ f2_scroller.d_element.style.visibility = 'hidden'; if(f2_scroller.timer) clearTimeout(f2_scroller.timer); } this.pos = new_pos; document.getElementById('f2_img').src = this.imgs[this.pos]; document.getElementById('f2_text').innerHTML = this.txts[this.pos]; f2_scroller = new textScroller('f2_text', 'f2_textwindow', 'f2_scroller', 1); f2_scroller.scroll(); } else { document.getElementById('recent_listings').style.visibility = 'hidden'; document.getElementById('recent_listings').style.display = 'none'; } } this.listID = function(){ return this.ids[this.pos]; } } // global scroller objects var f1_scroller; var f2_scroller; var recentObj; var gFeatID; function initScrollers(){ document.getElementById('f1_img').src = 'AccountImg.aspx?i=listings/232487-0_thumb.jpg'; document.getElementById('f1_text').innerHTML = '2/2 Sailboat Access Home- Pelican Area!    Price: $234,900   Beds: 2   Baths: 2 Full   '; gFeatID = '232487'; document.getElementById('featured_home').style.visibility = 'visible'; document.getElementById('featured_home').style.display = 'block'; f1_scroller = new textScroller('f1_text', 'f1_textwindow', 'f1_scroller', 1); f1_scroller.scroll(); recentObj = new recentListings(); recentObj.newListing(0); }