var nFade = 0; function bounceTile(nStart, nLeft1, nTop1, nLeft2, nTop2, nZoom) { oElement = document.getElementById('divFavoriteTile'); nProgress = Number(new Date()) - nStart if(nProgress>=0&&nProgress<=800) { oElement.style.left = nLeft1 + ((nLeft2 - nLeft1) * (1 - Math.cos((nProgress / 1600) * 3.1415))); oElement.style.top = nTop1 + ((nTop2 - nTop1) * (Math.sin((nProgress / 1600) * 3.1415))) - (Math.sin((nProgress / 800) * 3.1415) * 150); oElement.style.zoom = 1 + (Math.sin((nProgress / 800) * 3.1415) * nZoom); oElement.style.display = ''; window.setTimeout('bounceTile(' + nStart + ', ' + nLeft1 + ', ' + nTop1 + ', ' + nLeft2 + ', ' + nTop2 + ', ' + nZoom + ');', 10) } else { oElement.style.display = 'none'; updateFavorites(); setMyTab(0); if(document.getElementById('divNoFavorites')) { document.getElementById('divNoFavorites').style.display = 'none'; } document.getElementById('divFavorites').style.display = ''; } } function changeView(n) { nView = n; setResultsPage(1, false) document.cookie='nView='+n+';expires='+(new Date((new Date()).getTime()+(89*86400000))).toGMTString(); document.images.imgView1.src = ((n==1)?(document.images.imgView1.src.replace(/_off/i, '_on')):(document.images.imgView1.src.replace(/_on/i, '_off'))); document.images.imgView2.src = ((n==2)?(document.images.imgView2.src.replace(/_off/i, '_on')):(document.images.imgView2.src.replace(/_on/i, '_off'))); document.images.imgView3.src = ((n==3)?(document.images.imgView3.src.replace(/_off/i, '_on')):(document.images.imgView3.src.replace(/_on/i, '_off'))); document.getElementById('divResultsFade').innerHTML = document.getElementById('divResults').innerHTML; document.getElementById('divResultsFade').style.filter = ''; document.getElementById('divResultsFade').style.opacity = 0.90; document.getElementById('divResultsFade').style.display = ''; document.getElementById('divResults').innerHTML = getResults(n, nPage); nFade = Number(new Date()); window.setTimeout('viewFade();', 10); updateCurleys(); return false; } function getAbsoluteLeft(o) { if(o.offsetParent) { return getAbsoluteLeft(o.offsetParent) + o.offsetLeft; } else { return o.offsetLeft; } } function getAbsoluteTop(o) { if(o.offsetParent) { return getAbsoluteTop(o.offsetParent) + o.offsetTop; } else { return o.offsetTop; } } function getRatingDate(t) { // find a tour's rating if(('~' + sBuyerPropertyKey).indexOf('~' + t + '|')>-1) { return ('~' + sBuyerPropertyKey).split('~' + t + '|')[1].split('|')[3].split('~')[0] } else { return ''; } } function getResults(nMode, nPage) { // allocate variables var sBuffer = ''; // load the view variables getTemplate(nMode) // start table aTours = sTours.split('~'); sBuffer = '' + sRowSeperator + '' nStartIndex = (nPage - 1) * nPerPage; nEndIndex = nStartIndex + nPerPage; if(nEndIndex>aTours.length) { nEndIndex = aTours.length; } for(a=nStartIndex;a' + sBlock + ''; if(a < aTours.length) { if((((a - nStartIndex) + 1) % nColumns)==0) { sBuffer += '' + sRowSeperator + ''; } else { sBuffer += sColumnSeperator; } } } // end table for(a=((a-nStartIndex)%nColumns);a'; } sBuffer += '
' // return result return sBuffer } function getTemplate(nMode) { switch(nMode) { case 1: sTD = '
{feature} 
{hr}{sDisplayPrice}
{description}
{hr}
{sUserName}
{ratebox}

'; sColumnSeperator = '
'; sRowSeperator = ''; sHR = '
'; nWidth = 150; nIWidth = 141; nColumns = 3; nPerPage = 18; break; case 2: sTD = '
{feature}


{hr}{sDisplayPrice}
{hr}
{description}
{hr}
{sUserName}
{ratebox}

'; sColumnSeperator = '
 
'; sRowSeperator = ''; sHR = '
'; nWidth = 150; nIWidth = 134; nColumns = 3; nPerPage = 18; break; case 3: sTD = '
{feature}


 
{hr}{sDisplayPrice}
{description}
{hr}
{sUserName}
{ratebox}

'; sColumnSeperator = ''; sRowSeperator = ''; sHR = '
'; nWidth = 224; nIWidth = 118; nColumns = 2; nPerPage = 20; break; } } function photoPathExtend(n) { sKey = '0000000000'.substr(n.length) + n; return sKey.substr(0, 2) + '/' + sKey.substr(2, 2) + '/' + sKey.substr(4, 2) + '/' + sKey.substr(6, 2) + '/' + sKey.substr(8, 2); } function rateSave(tour, nRank) { // setup variables sNewKey = ''; // tell server document.images.imgFavoritePush.src = '/SetFavorite.asp?t=' + tour + '&r=' + nRank; // find the tour and build the new key aTours = sTours.split('~'); for(a=0;anPages){p=nPages;}} // set page if(nPages>1) { document.images.imgPage.src = '/art/page' + p + 'big.gif'; document.images.imgPages.src = '/art/page' + nPages + 'small.gif'; document.getElementById('tdpg'+nPage+'a').innerHTML = '
' + nPage + '
'; document.getElementById('tdpg'+nPage+'b').innerHTML = '
' + nPage + '
'; document.getElementById('tdpg'+p+'a').innerHTML = '
' + p + '
'; document.getElementById('tdpg'+p+'b').innerHTML = '
' + p + '
'; for(a=2;a<7;a++) { document.getElementById('tdsp'+a+'a').style.display = ((a>nPages)?'none':''); document.getElementById('tdsp'+a+'b').style.display = ((a>nPages)?'none':''); document.getElementById('tdpg'+a+'a').style.display = ((a>nPages)?'none':''); document.getElementById('tdpg'+a+'b').style.display = ((a>nPages)?'none':''); } nPage = p; if(u) { document.getElementById('divResults').innerHTML = getResults(nView, nPage); updateCurleys(); } } } function today() { var nCurrentTime = new Date() return (nCurrentTime.getMonth() + 1) + "/" + nCurrentTime.getDate() + "/" + nCurrentTime.getFullYear(); } function updateFavorites() { var sBuffer = ''; var aBuyerPropertyKey = sBuyerPropertyKey.split('~'); for(a=0;a<5;a++) { if(a