var myJSONObject = {"listing": [{"name": "METRO PARKWAY SHOWROOM/WAREHOUSE", "price": "", "sqFoot": "2± Acres", "location": "Fort Myers, FL", "listingNumber": "1567", "listingHref": "fl_industrial.html?ID=251", "photo": "media/images/listings/251/ps_photo_00000824_preview.jpg", "minRate": "$6.00 PSF Gross", "maxRate": ""},{"name": "11± ACRES S. TAMIAMI TRAIL ON LA...", "price": "$3,500,000.00 ($7.30 PSF)", "sqFoot": "11± Acres (479,160± SF)", "location": "Fort Myers, FL", "listingNumber": "1549", "listingHref": "fs_land.html?ID=231", "photo": "media/images/listings/231/ps_photo_00000738_preview.jpg", "minRate": "", "maxRate": ""},{"name": "16.5+/- ACRES VACANT COMMERCIAL ...", "price": "$8.34 PSF ($6,000,000.00)", "sqFoot": "16.52+/- Acres x 980 - (Over 700 SF of Frontage)", "location": "Fort Myers, FL", "listingNumber": "1504", "listingHref": "fs_land.html?ID=168", "photo": "media/images/listings/168/ps_photo_00000619_preview.jpg", "minRate": "", "maxRate": ""},{"name": "WAREHOUSE W/TRUCKWELL - METRO PA...", "price": "$399,900.00 ($72.70 PSF)", "sqFoot": "22,500+/- SF", "location": "Fort Myers , FL", "listingNumber": "1523", "listingHref": "fs_industrial.html?ID=188", "photo": "media/images/listings/188/ps_photo_00000599_preview.jpg", "minRate": "", "maxRate": ""},{"name": "Lot 18 - 1.24+/- Acres, Alico Co...", "price": "$7.50PSF", "sqFoot": "1.24 Acres", "location": "Fort Myers, FL", "listingNumber": "1485", "listingHref": "fs_industrial.html?ID=109", "photo": "media/images/listings/109/ps_photo_00000513_preview.jpg", "minRate": "", "maxRate": ""},{"name": "COLONIAL PLAZA ~ RETAIL/OFFICE S...", "price": "", "sqFoot": "5± Acres", "location": "Fort Myers, FL", "listingNumber": "1566", "listingHref": "fl_retail.html?ID=249", "photo": "media/images/listings/249/ps_photo_00000844_preview.jpg", "minRate": "$10.00 - $12.00 PSF + $3.50 CAM)", "maxRate": ""},{"name": "1,725 SF CLASS A OFFICE SPACE IN...", "price": "", "sqFoot": "", "location": "Fort Myers, FL", "listingNumber": "1510", "listingHref": "fl_office.html?ID=171", "photo": "media/images/listings/171/ps_photo_00000541_preview.jpg", "minRate": "$11.00 PSF", "maxRate": ""},{"name": "1.84+/- ACRES COMMERCIAL LAND", "price": "$1,350,000.00 ($16.84 PSF) ", "sqFoot": "1.84+/- ACRES", "location": "Lehigh Acres, FL", "listingNumber": "1425", "listingHref": "fs_land.html?ID=117", "photo": "media/images/listings/117/ps_photo_00000429_preview.jpg", "minRate": "", "maxRate": ""},{"name": "48,224± SF FREESTANDING WAREHOUS...", "price": "$3,550,000.00 ($73.62 PSF)", "sqFoot": "244,605± SF", "location": "Fort Myers, FL", "listingNumber": "1554", "listingHref": "fs_industrial.html?ID=238", "photo": "media/images/listings/238/ps_photo_00000763_preview.jpg", "minRate": "", "maxRate": ""},{"name": "20,000± SF WAREHOUSE W/METRO FRO...", "price": "$1,895,000.00", "sqFoot": "2.07+/- Acres", "location": "Fort Myers, FL", "listingNumber": "1535", "listingHref": "fs_industrial.html?ID=199", "photo": "media/images/listings/199/ps_photo_00000628_preview.jpg", "minRate": "", "maxRate": ""},{"name": "1,330 +/- SF OFFICE/WAREHOUSE CO...", "price": "", "sqFoot": "", "location": "Fort Myers, FL", "listingNumber": "1421", "listingHref": "fl_industrial.html?ID=217", "photo": "media/images/listings/217/ps_photo_00000690_preview.jpg", "minRate": "$900.00 per month plus sales tax", "maxRate": ""},{"name": "LAKEFRONT DEVELOPMENT SITE ~ SOU...", "price": "$795,000.00", "sqFoot": "7± Acre Site + 52± Lake Site", "location": "Fort Myers, FL", "listingNumber": "0050", "listingHref": "fs_land.html?ID=275", "photo": "media/images/listings/275/ps_photo_00000893_preview.jpg", "minRate": "", "maxRate": ""},{"name": "9,742+/- SF FREESTANDING RETAIL ...", "price": "$1,217,750.00 ($125.00 PSF)", "sqFoot": "29,606+/- SF ", "location": "Fort Myers, FL", "listingNumber": "1518", "listingHref": "fs_retail.html?ID=185", "photo": "media/images/listings/185/ps_photo_00000587_preview.jpg", "minRate": "", "maxRate": ""},{"name": "6,000± SF OFFICE/WAREHOUSE ~ MET...", "price": "", "sqFoot": "36,900±SF", "location": "Fort Myers, FL", "listingNumber": "1582L", "listingHref": "fl_industrial.html?ID=272", "photo": "media/images/listings/272/ps_photo_00000885_preview.jpg", "minRate": "$6.00PSF + SALES TAX", "maxRate": ""},{"name": "34,000+/- SF W/APPROVED D.O. COM...", "price": "$185,000.00($5.45 PSF) ", "sqFoot": "34,000 +/- SF", "location": "Fort Myers , FL", "listingNumber": "1527", "listingHref": "fs_land.html?ID=192", "photo": "media/images/listings/192/ps_photo_00000611_preview.jpg", "minRate": "", "maxRate": ""},{"name": "6,000±SF OFFICE/RETAIL SPACE ~ U...", "price": "$1,290,000.00", "sqFoot": "1.02± Acres", "location": "Bonita Springs, FL", "listingNumber": "1490", "listingHref": "fs_retail.html?ID=271", "photo": "media/images/listings/271/ps_photo_00000884_preview.jpg", "minRate": "$18.50+CAM", "maxRate": ""},{"name": "TRIPLE NET LEASE INVESTMENT PROP...", "price": "$3,680,300", "sqFoot": "1.32± Acres (57,472.80± SF)", "location": "FL", "listingNumber": "1581", "listingHref": "fs_investment.html?ID=262", "photo": "media/images/listings/262/ps_photo_00000862_preview.jpg", "minRate": "", "maxRate": ""},{"name": "FORT MYERS BEACH PROFESSIONAL CE...", "price": "", "sqFoot": "", "location": "Fort Myers Beach, FL", "listingNumber": "1585", "listingHref": "fl_office.html?ID=276", "photo": "media/images/listings/276/ps_photo_00000895_preview.jpg", "minRate": "$16.00-$18.00 PSF (+ $3.00 PSF CAM) ", "maxRate": ""},{"name": "5,000±SF Warehouse @ S. US 41 W/...", "price": "", "sqFoot": "36,549±SF", "location": "Fort Myers, FL", "listingNumber": "1582", "listingHref": "fl_industrial.html?ID=266", "photo": "media/images/listings/266/ps_photo_00000877_preview.jpg", "minRate": "$4.00 PSF GROSS+SALES TAX", "maxRate": ""},{"name": "LIGHT INDUSTRIAL PROPERTY ON FOW...", "price": "$790,000.00", "sqFoot": "1.44 Acres (62,728± SF)", "location": "Fort Myers , FL", "listingNumber": "1568", "listingHref": "fs_industrial.html?ID=252", "photo": "media/images/listings/252/ps_photo_00000828_preview.jpg", "minRate": "", "maxRate": ""},{"name": "OFFICE SITE I-75/DANIELS/FIDDLES...", "price": "$850,000.00 ($7.62 PSF)", "sqFoot": "2.56± Acres (111,513.60± SF)", "location": "Fort Myers, FL", "listingNumber": "1546", "listingHref": "fs_land.html?ID=219", "photo": "media/images/listings/219/ps_photo_00000695_preview.jpg", "minRate": "", "maxRate": ""},{"name": "1,920 +/- SF WAREHOUSE/OFFICE CO...", "price": "", "sqFoot": "", "location": "Fort Myers, FL", "listingNumber": "1498", "listingHref": "fl_industrial.html?ID=162", "photo": "media/images/listings/162/ps_photo_00000490_preview.jpg", "minRate": "$6.00 PSF Gross ", "maxRate": ""},{"name": "22.79± ACRES NE PINE ISLAND ROAD...", "price": "$14,890,740 ($15.00 PSF)", "sqFoot": "22.79± Acres (992,716± SF)", "location": "Cape Coral, FL", "listingNumber": "1548", "listingHref": "fs_land.html?ID=228", "photo": "media/images/listings/228/ps_photo_00000735_preview.jpg", "minRate": "", "maxRate": ""},{"name": "3.445± ACRES FENCED YARD METRO P...", "price": "$675,289.00 (or $4.50 PSF) ", "sqFoot": "3.445± Acres ", "location": "Fort Myers, FL", "listingNumber": "1560", "listingHref": "fs_industrial.html?ID=243", "photo": "media/images/listings/243/ps_photo_00000796_preview.jpg", "minRate": "$3,500 Per Month Gross/Plus Sales Tax", "maxRate": ""},{"name": "25,000± SF WAREHOUSE W/4,235± OF...", "price": "", "sqFoot": "2.31 ± Acres ", "location": "Fort Myers, FL", "listingNumber": "1544", "listingHref": "fl_industrial.html?ID=223", "photo": "media/images/listings/223/ps_photo_00000697_preview.jpg", "minRate": "$4.00 PSF, Triple Net ", "maxRate": ""},{"name": "71,155± SF VACANT LAND ON US41 S...", "price": "$550,000.00 ($7.73 PSF)", "sqFoot": "71,155± SF (1.63± Acres)", "location": "Fort Myers, FL", "listingNumber": "1547", "listingHref": "fs_land.html?ID=229", "photo": "media/images/listings/229/ps_photo_00000736_preview.jpg", "minRate": "", "maxRate": ""},{"name": "ALICO CROSSING OFFICE/WAREHOUSE ...", "price": "", "sqFoot": "", "location": "FORT MYERS, FL", "listingNumber": "1376", "listingHref": "fl_retail.html?ID=87", "photo": "media/images/listings/87/ps_photo_00000798_preview.jpg", "minRate": "From $6.00 - $12.50 PSF GROSS", "maxRate": "$14.00 PSF"},{"name": "1.74 +/- ACRE COMMERCIAL LOT/ALI...", "price": "$4.00 PSF ($568,458.00)", "sqFoot": "1.74+/- Acres", "location": "Fort Myers, FL", "listingNumber": "564", "listingHref": "fs_land.html?ID=57", "photo": "media/images/listings/57/ps_photo_00000614_preview.jpg", "minRate": "", "maxRate": ""},{"name": "1,200+/- SF OFFICE BUILDING DOWN...", "price": "$110,000.00 ($91.60 PSF) ", "sqFoot": "7,050+/- SF", "location": "Fort Myers, FL", "listingNumber": "1530", "listingHref": "fs_office.html?ID=193", "photo": "media/images/listings/193/ps_photo_00000622_preview.jpg", "minRate": "$1,300 Per Month Gross ", "maxRate": ""},{"name": "11,500± SF VACANT COMMERCIAL LOT...", "price": "$175,000.00", "sqFoot": "11,500± SF", "location": "North Fort Myers , FL", "listingNumber": "1343", "listingHref": "fs_land.html?ID=227", "photo": "media/images/listings/227/ps_photo_00000734_preview.jpg", "minRate": "", "maxRate": ""},{"name": "4.04± ACRE OFFICE/RETAIL DEVELOP...", "price": "$995,000.00 ($5.65 PSF)", "sqFoot": "4.04± Acres ", "location": "Fort Myers, FL", "listingNumber": "1579", "listingHref": "fs_land.html?ID=261", "photo": "media/images/listings/261/ps_photo_00000855_preview.jpg", "minRate": "", "maxRate": ""},{"name": "VACANT COMMERCIAL LOT, COLONIAL ...", "price": "$500,000.00", "sqFoot": "28,000± SF", "location": "FORT MYERS, FL", "listingNumber": "1347", "listingHref": "fs_land.html?ID=59", "photo": "media/images/default/medium/medium-5.jpg", "minRate": "", "maxRate": ""},{"name": "5.19+/- ACRES SIGNALIZED CORNER ...", "price": "$3,599,500.00 ($15.92 PSF)", "sqFoot": "5.19+/- Acres", "location": "Fort Myers, FL", "listingNumber": "1470", "listingHref": "fs_land.html?ID=142", "photo": "media/images/listings/142/ps_photo_00000330_preview.jpg", "minRate": "", "maxRate": ""},{"name": "PRIME CAPE CORAL RETAIL SITE ~ S...", "price": "$3,334,000.00 ($12.00 PSF) ", "sqFoot": "Total Land 6.38 Acres", "location": "Cape Coral, FL", "listingNumber": "1564", "listingHref": "fs_land.html?ID=250", "photo": "media/images/listings/250/ps_photo_00000821_preview.jpg", "minRate": "", "maxRate": ""},{"name": "9,000± SF OFFICE/WAREHOUSE METRO...", "price": "$543,000.00 ($60 PSF)", "sqFoot": "36,900± SF ", "location": "Fort Myers, FL", "listingNumber": "1582S", "listingHref": "fs_investment.html?ID=263", "photo": "media/images/listings/263/ps_photo_00000869_preview.jpg", "minRate": "", "maxRate": ""},{"name": "NEW 9,000+/- SF WAREHOUSE METRO/...", "price": "", "sqFoot": "31,363+/- SF", "location": "Fort Myers, FL", "listingNumber": "1532", "listingHref": "fs_industrial.html?ID=196", "photo": "media/images/listings/196/ps_photo_00000625_preview.jpg", "minRate": "$5,500.00 + Sales Tax ($7.33 PSF) ", "maxRate": ""},{"name": "CORAL PALMS PROFESSIONAL BUILDIN...", "price": "$165.00 PSF", "sqFoot": "", "location": "Cape Coral, FL", "listingNumber": "1563", "listingHref": "fs_office.html?ID=246", "photo": "media/images/listings/246/ps_photo_00000812_preview.jpg", "minRate": "$12.00 PSF + $3.50 PSF CAM", "maxRate": ""},{"name": "61,450± SF (1.41± ACRES) SITE ZO...", "price": "$199,000.00 ($3.24 PSF)", "sqFoot": "61,450+/- SF (1.41+/- Acres)", "location": "Fort Myers, FL", "listingNumber": "1531", "listingHref": "fs_investment.html?ID=195", "photo": "media/images/listings/195/ps_photo_00000624_preview.jpg", "minRate": "", "maxRate": ""},{"name": "3,000± SF FREESTANDING RETAIL SI...", "price": "", "sqFoot": "21,600 SF", "location": "Cape Coral, FL", "listingNumber": "1572", "listingHref": "fl_retail.html?ID=257", "photo": "media/images/listings/257/ps_photo_00000840_preview.jpg", "minRate": "$15.00 PSF + $5.50 CAM", "maxRate": ""}]}; var _doIt="1"; var timerID = 0; var _currentIndex=""; var _listingCount; var _listingHref2=""; timerID = setTimeout("initListing();", 500); function goDetails(){ location=_listingHref2; } function Start() { timerID = setTimeout("listingNext()", 5000); } function Stop() { if(timerID) { clearTimeout(timerID); timerID = 0; } } function initListing(){ if(myJSONObject){ _listingCount = myJSONObject.listing.length-1; random_num = (Math.round((Math.random()*_listingCount))) loadListing(random_num); //alert(random_num); Start(); }else{ // alert("-1"); } } function listingNext(){ clearTimeout(timerID); _currentIndex++; if(_currentIndex>_listingCount){ _currentIndex=0; } loadListing(_currentIndex); timerID = setTimeout("listingNext()", 5000); } function listingPrev(){ clearTimeout(timerID); _currentIndex--; if(_currentIndex<0){ _currentIndex=_listingCount; } loadListing(_currentIndex); timerID = setTimeout("listingNext()", 5000); } function loadListing(_listingIndex){ _currentIndex=_listingIndex var _listingObj=myJSONObject.listing[_listingIndex]; if(_listingObj){ _listingHref2=_listingObj.listingHref; if(document.all){ document.getElementById("ps_listingName").innerText=_listingObj.name; document.getElementById("ps_price").innerHTML=(_listingObj.price!="")?"Price: "+_listingObj.price+"
":""; document.getElementById("ps_minRate").innerHTML=(_listingObj.minRate!="")?"Lease Rate: "+_listingObj.minRate+"
":""; document.getElementById("ps_sqFoot").innerHTML=(_listingObj.sqFoot!="")?"Lot Size: "+_listingObj.sqFoot+"
":""; document.getElementById("ps_location").innerText=_listingObj.location; document.getElementById("ps_listingNumber").innerText=_listingObj.listingNumber; document.getElementById("photo1").src=_listingObj.photo; } else{ document.getElementById("ps_listingName").textContent=_listingObj.name; document.getElementById("ps_price").textContent=_listingObj.price; document.getElementById("ps_sqFoot").innerHTML=(_listingObj.sqFoot!=" x ")?"Sq Footage: "+_listingObj.sqFoot+"
":""; document.getElementById("ps_location").textContent=_listingObj.location; document.getElementById("ps_listingNumber").textContent=_listingObj.listingNumber; document.getElementById("photo1").src=_listingObj.photo; //document.getElementById('element').textContent = "my text"; } }else{ timerID = setTimeout("initListing();", 500); } }