// set defaults var nRateStartTime = 0; var nPanTimer = ''; var nPanPhotoTypeID = 0; var nPanMouseIn = false; var nPanX = 0; var nPanY = 0; var nPanWidth = 0; var nPanHeight = 0; document.nCacheScene = null; document.nCacheTab = 0 function VisiStat(){} function buildDhtmlPan(sImagePath, nPhotoTypeID, nWidth, nHeight) { if(document.getElementById) { nPanPhotoTypeID = nPhotoTypeID; nPanX = 0; nPanY = 0; nPanMotionX = ((nPanPhotoTypeID==4)?0:1); nPanMotionY = ((nPanPhotoTypeID==4)?1:0); nPanWidth = nWidth; nPanHeight = nHeight; nPanTimer = window.setTimeout('panMove();', 30); return '
' + '
' + '' + ((nPhotoTypeID==3)?'':'') + '
' + '
' + '
'; } else { return panBlockFlash(sImagePath + ((nPhotoTypeID==3)?'&n360Mode=1':'')); } } function cacheNext() { if(document.nCacheScene!=null) { if(document.nCacheTab<=document.nTabCount) { //only pre-cache if not widescreen tour (until we normalize the scene photo path in widescreen tour (and the widescreen pre-loads all the photos right now anyway)) -- Christopher 5/10/07 if(document.nTourModeID != '2') { window.status = 'A non-broadband download rate was detected. Photo ' + (document.nCacheScene + 1) + ' of ' + document.aSceneIDList.length + ' is being pre-cached.'; window.setTimeout('document.images.imgCache.src=\'' + document.sMediaRoot + '/Scene/big/' + photoPath(document.aSceneIDList[document.nCacheScene]) + '/' + document.aSceneIDList[document.nCacheScene] + '.jpg\';', 50); } document.nCacheScene++; document.nCacheTab++; } else { window.status='Image pre-caching complete.'; window.setTimeout('window.status=\'\'', 8000); } } } function checkBackToList() { if (document.getElementById('spnBackToList')) { if (((history) && history.length == 1) || (window.parent != window)) { document.getElementById('spnBackToList').style.display = 'none'; } } else { window.setTimeout('checkBackToList()', 200); } } checkBackToList(); function checkRate(nRate) { //if(document.sTourAudioFile=='') //{ if(nRate<10) { // kick off image pre-caching document.nCacheScene = 0; cacheNext(); } else { window.status = 'Your download rate is roughly ' + nRate + 'K/Sec. Image pre-caching is not necessary, and has been skipped.' window.setTimeout('window.status=\'\'', 8000); } //} } function http(sDomain) { return ((document.images[1].src.substr(0,4).toLowerCase()=='http')?'//'+sDomain:''); } function lcase(string) { return string.toLowerCase(); } function left(str, n) { if (n <= 0) return ""; else if (n > String(str).length) return str; else return String(str).substring(0,n); } function loadDescriptions(sBlob, nTabNumber, nSubTabNumber) { var sString; var sDescription2Text; var i; // get description text var aBlob2 = sBlob.split('~')[nSubTabNumber].split('|'); if(((aBlob2[6] == '') || (aBlob2[6].indexOf('For more information and a personal tour of this home please contact:') != -1)) && (document.fIDX == 'False')) { aBlob2[6] = 'For more information on this property, please contact:

'; if(document.fUserPhotoExists == 'True') { aBlob2[6] += '
'; } aBlob2[6] += '' + document.sUserName + '
'; if((lcase(document.sUserName) != lcase(document.sTourOfficeName)) && (document.fDisplayOffice == 'True')) { aBlob2[6] += document.sTourOfficeName + '
'; } aBlob2[6] += document.sUserPhoneNumber + '
'; if(document.sEmailAddress.indexOf('@') != -1) { aBlob2[6] += 'Send Email
'; } else { if(document.sEmailAddress != '') { aBlob2[6] += 'Click Here
'; } } } sDescriptionText = '' + aBlob2[6].replace(/"/g, '"') + '

'; sDescription2Text = '
' + aBlob2[7].replace(/"/g, '"') + ''; // check for subtabs if(sBlob.indexOf('~')!=-1) { sString = '
'; var aBlob = sBlob.split('~'); for (i = 1; i < aBlob.length; i++) { var aBlob2 = aBlob[i].split('|'); sString += '
Additional Scenes:
  • ' + aBlob2[1] + '
  • '; } sString += '


    ' + sDescriptionText + '
    '; } else { // no subtabs sString = sDescriptionText; } // write new description document.getElementById('sSceneDescription').innerHTML = sString; // write new Description2 document.getElementById('sSceneDescription2').innerHTML = sDescription2Text; } function logHit(sBlob) { if (!preview) { var aBlob2 = sBlob.split('|'); var oImage = new Image; oImage.src = 'Log.asp?s=' + aBlob2[2] + '&r=' + document.sReferer + '&rnd=' + Math.random(); } } function mid(str, start, len) { // Make sure start and len are within proper bounds if (start <= 0 || len < 0) return ""; var iEnd, iLen = String(str).length; if (start + len > iLen) iEnd = iLen; else iEnd = (start - 1) + len; return String(str).substring(start - 1,iEnd); } function min(Num1, Num2) { if(Num1<=Num2) { return Num1; } else { return Num2; } } function panBlockFlash(sImagePath) { return '' + '' + '' + '' + '' + ''; } function panMouseMove(e) { nPanMouseIn = true; nPanMouseX = ((e.clientX - document.getElementById('divPanoramaShell').offsetLeft) - 225); nPanMouseY = ((e.clientY - document.getElementById('divPanoramaShell').offsetTop) - 135); nPanDefaultX = (nPanMouseX==0?0:(Math.abs(nPanMouseX) / nPanMouseX)); nPanDefaultY = (nPanMouseY==0?0:(Math.abs(nPanMouseY) / nPanMouseY)); nPanMotionX = Math.pow((Math.abs(nPanMouseX) / 50), 2.5) * nPanDefaultX * 0.5; nPanMotionY = Math.pow((Math.abs(nPanMouseY) / 50), 3.5) * nPanDefaultY * 0.5; } function panMouseOut() { nPanMouseIn = false; if(nPanPhotoTypeID==4) { nPanMotionX = 0; nPanMotionY = (nPanMotionY==0?1:Math.abs(nPanMotionY)/nPanMotionY); } else { nPanMotionX = (nPanMotionX==0?1:Math.abs(nPanMotionX)/nPanMotionX); nPanMotionY = 0; } } function panMove() { if(document.getElementById('panEventCapture')) { if(document.getElementById('panEventCapture').style.left!=document.getElementById('divPanoramaShell').offsetLeft) { document.getElementById('panEventCapture').style.left = document.getElementById('divPanoramaShell').offsetLeft; document.getElementById('panEventCapture').style.top = document.getElementById('divPanoramaShell').offsetTop; document.getElementById('panEventCapture').style.width = 450; document.getElementById('panEventCapture').style.height = 270; document.getElementById('panEventCapture').style.display = ''; } } if(document.getElementById('divPanorama')) { nPanX -= nPanMotionX; nPanY -= nPanMotionY; if(nPanPhotoTypeID==4) { if(nPanX > 0) { nPanX = 0; nPanMotionX = 0; } if(nPanX < -(nPanWidth - 450)) { nPanX = -(nPanWidth - 450); nPanMotionX = 0; } if(nPanY > 0) { nPanY = 0; nPanMotionY = (nPanMouseIn?0:Math.abs(nPanMotionY)); } if(nPanY < -(nPanHeight - 270)) { nPanY = -(nPanHeight - 270); nPanMotionY = (nPanMouseIn?0:-Math.abs(nPanMotionY)); } } else { if(nPanPhotoTypeID==3) { if(nPanX > 0) { nPanX -= nPanWidth; } if(nPanX < -nPanWidth) { nPanX += Number(nPanWidth); } } else { if(nPanX > 0) { nPanX = 0; nPanMotionX = (nPanMouseIn?0:Math.abs(nPanMotionX)); } if(nPanX < -(nPanWidth - 450)) { nPanX = -(nPanWidth - 450); nPanMotionX = (nPanMouseIn?0:-Math.abs(nPanMotionX)); } } if(nPanY > 0) { nPanY = 0; nPanMotionY = 0; } if(nPanY < -(nPanHeight - 270)) { nPanY = -(nPanHeight - 270); nPanMotionY = 0; } } document.getElementById('divPanorama').style.left = nPanX; document.getElementById('divPanorama').style.top = nPanY; } nPanTimer = window.setTimeout('panMove();', 30); } function photoPath(sID) { var sFullString; // get full string sFullString = right('0000000000' + sID, 10); // return string return left(sFullString, 2) + '/' + mid(sFullString, 3, 2) + '/' + mid(sFullString, 5, 2) + '/' + mid(sFullString, 7, 2); } function photoPathExtend(sID) { var sFullString; // get full string sFullString = right('0000000000' + sID, 10); // return string return left(sFullString, 2) + '/' + mid(sFullString, 3, 2) + '/' + mid(sFullString, 5, 2) + '/' + mid(sFullString, 7, 2) + '/' + mid(sFullString, 9, 2); } function reloadClassicTabs(nTabNumber, sGraphicName) { nTabCount = document.nTabCount + 1; if(document.DefTabNumber!=nTabNumber) { if(sGraphicName.indexOf('~')!=-1) { sGraphicName = sGraphicName.substring(0, sGraphicName.indexOf('~')) + '~' + document.sTabBallSelectedColor + sGraphicName.substring(sGraphicName.indexOf('~')+7); } if(document.DefGraphicName.indexOf('~')!=-1) { document.DefGraphicName = document.DefGraphicName.substring(0, document.DefGraphicName.indexOf('~')) + '~' + document.sTabBallColor + document.DefGraphicName.substring(document.DefGraphicName.indexOf('~')+7); } document.images['Tab' + nTabNumber].src = 'art/pixel.gif'; document.images['Tab' + document.DefTabNumber].src = 'art/pixel.gif'; document.images['Tab' + nTabNumber].src = http(document.ThemeTourfactoryCom+'/') + document.nTemplateID + '_tab' + min(((nTabCount - nTabNumber) + 1), 6)+'/' + document.sTabSelectedColor + '/' + document.sTabFaceColor + '/' + document.sFolderColor + '/' + document.sTabColor + '/' + document.sTabTextAltColor + '/' + sGraphicName; document.images['Tab' + document.DefTabNumber].src = http(document.ThemeTourfactoryCom+'/') + document.nTemplateID + '_tab' + min(((nTabCount - document.DefTabNumber) + 1), 6)+'/' + document.sTabFaceColor + '/' + document.sTabFaceColor + '/' + document.sFolderColor + '/' + document.sTabColor + '/' + document.sTabTextColor + '/' + document.DefGraphicName; document.DefGraphicName = sGraphicName; document.DefTabNumber = nTabNumber; } } function reloadOriginalTabs(nTabNumber, sGraphicName) { nTabCount = document.nTabCount + 1; if(document.DefTabNumber!=nTabNumber) { document.images['Tab' + nTabNumber].src = 'art/pixel.gif'; document.images['Tab' + document.DefTabNumber].src = 'art/pixel.gif'; document.images['Tab' + nTabNumber].src = http(document.ThemeTourfactoryCom+'/') + document.nTemplateID + '_tab' + min(((nTabCount - nTabNumber) + 1), 6)+'/' + document.sFolderColor + '/' + document.sTabFaceColor + '/' + document.sTabColor + '/' + document.sTabTextAltColor + '/' + sGraphicName; document.images['Tab' + document.DefTabNumber].src = http(document.ThemeTourfactoryCom+'/') + document.nTemplateID + '_tab' + min(((nTabCount - document.DefTabNumber) + 1), 6)+'/' + document.sTabFaceColor + '/' + document.sTabFaceColor + '/' + document.sTabColor + '/' + document.sTabTextColor + '/' + document.DefGraphicName; document.DefGraphicName = sGraphicName; document.DefTabNumber = nTabNumber; } } function right(str, n) { if (n <= 0) return ""; else if (n > String(str).length) return str; else { var iLen = String(str).length; return String(str).substring(iLen, iLen - n); } } function sceneLoaded() { var sCookies = '; ' + document.cookie + ';'; if(sCookies.indexOf('; downloadrate@@@=')>-1) { checkRate(Number(sCookies.split('; downloadrate=')[1].split(';')[0])); } else { nRateStartTime = Number(new Date()); document.images.imgLoadTime.src = '//www.tourfactory.com/LoadTimeCalc.asp'; } } function setButtonColor(sObject, sColor) { document.images['img' + sObject].src=http(document.ThemeTourfactoryCom+'/') + 'art/' + sColor + '/' + document.nTemplateID + '_' + 'btn' + sObject + '.gif'; document.getElementById('td' + sObject).style.background = 'url('+http(document.ThemeTourfactoryCom+'/') + 'art/' + sColor + '/' + document.sFolderColor + '/' + document.nTemplateID + '_' + 'btnBackground.gif)'; } function setTemplate2ButtonColor(sObject, sColor, sOnOff) { document.images['img' + sObject].src= http(document.ThemeTourfactoryCom+'/') + 'art/' + document.sFolderColor + '/' + sColor + '/' + document.sFolderColor + '/2_' + 'btn' + sObject + sOnOff +'.gif'; document.getElementById('td' + sObject).style.background = 'url(' + http(document.ThemeTourfactoryCom+'/') + 'art/' + document.sFolderColor + '/' + sColor + '/2_' + 'bgNav' + sOnOff + '.gif)'; } function setPathColor(oImg, nIndex, sNewPath) { aParts = oImg.src.split('/'); for(a=0;a0) { sNewSrc += '/'; } sNewSrc += aParts[b]; } if(oImg.src!=sNewSrc) { oImg.src = sNewSrc; } return true; } } } function setTitle(sBlob) { // split out subtab data (not needed for image) if(sBlob.indexOf('~')!=-1) { var aBlob = sBlob.split('~'); // split variable data var aBlob2 = aBlob[0].split('|'); } else { // split variable data var aBlob2 = sBlob.split('|'); } document.getElementById('sTitle').innerHTML = '' + aBlob2[1] + '
    '; } function testRate() { if(nRateStartTime>0) { var nLoadTime = Number(new Date()) - nRateStartTime; var nRate = Math.floor(20001 / nLoadTime) document.cookie = 'downloadrate=' + nRate; checkRate(nRate) } } function ucase(string) { return string.toUpperCase(); } function updateTabClick(nTabNumber, nSubTabNumber) { if(!(document.getElementById)) { return true; } if(!(document.body.innerHTML)) { return true; } document.nSelectedTab = nTabNumber; document.nSelectedSubTab = nSubTabNumber; nTabCount = document.nTabCount + 1; aSrc = document.getElementById('Tab' + nTabNumber).src.split('/'); sGraphicName = aSrc[aSrc.length-1]; loadDescriptions(document.sDynamicTabData[document.nSelectedTab-1], nTabNumber, nSubTabNumber); if(document.nTemplateID==2) { reloadClassicTabs(nTabNumber, sGraphicName); } else { reloadOriginalTabs(nTabNumber, sGraphicName); } updatePanViewer(document.DefsViewer, nSubTabNumber) logHit(document.sDynamicTabData[document.nSelectedTab-1]); //visistat update updateVisistat(document.sDynamicTabData[document.nSelectedTab-1].split('~')[nSubTabNumber].split('|')[1]); return false; } function updatePanViewer(sViewer, nSubTabNumber) { var sString; var i; var nViewDegrees; var sImagePathFinal; // sanity check if(!(document.getElementById)) { return true; } if(!(document.body.innerHTML)) { return true; } // get tab data blob var sBlob = document.sDynamicTabData[document.nSelectedTab-1]; // set new viewer mode document.DefsViewer = sViewer; var ckyDate = new Date; ckyDate.setDate(ckyDate.getDate( ) + 365); document.cookie = 'sViewer=' + sViewer + '; expires=' + ckyDate.toGMTString( ) + ';'; // clear dhtml timer and hide mouse capture layer if(nPanTimer!='') { window.clearTimeout(nPanTimer); } if(document.getElementById) { document.getElementById('panEventCapture').style.display = 'none'; } if(!nSubTabNumber) { nSubTabNumber = 0; } var aBlob2 = sBlob.split('~')[nSubTabNumber].split('|'); // if standard image if(aBlob2[3] == '1') { if(document.nFixedWidthStill==null) { sString = ''; } else { sString = ''; } if(document.getElementById('sImageModeButtons')) { document.getElementById('sImageModeButtons').style.display = 'none'; } if(document.getElementById('sImageFooterBorder')) { document.getElementById('sImageFooterBorder').style.display = ''; } } else { sString = ''; if((document.DefsViewer == 'java') || (document.DefsViewer == 'bubble' && aBlob2[3] == '4')) { // java viewer sString += ''; } else { if(document.DefsViewer == 'bubble') { // java bubble viewer (PurePlayer) nViewDegrees = 360 * ((aBlob2[4] / aBlob2[5]) / 6); if(nViewDegrees > 360) { nViewDegrees = 330; } if(aBlob2[3] == '3') { nViewDegrees = 360; } sString += ''; } else { if(document.DefsViewer == 'flash') { // flash viewer if(aBlob2[4] > 2880) { sImagePathFinal = document.sMediaRoot + '/flashsize.asp%3fp=scene/big/' + photoPath(aBlob2[2]) + '/' + aBlob2[2] + '.jpg%26w=2880%26h=272%26b=000000%26f=0'; } else { sImagePathFinal = document.sMediaRoot + '/Scene/big/' + photoPath(aBlob2[2]) + '/' + aBlob2[2] + '.jpg?aol'; } sString += ''; } else { sString += ''; } } } sString += '
    ' + '
    ' + '' + '' + '' + '
    ' + '
    ' + '' + '' + '' + '' + '' + '' + '' + '
    ' + '
    ' + panBlockFlash(sImagePathFinal + ((aBlob2[3]==3)?'&n360Mode=1':'')) + '' + buildDhtmlPan(document.sMediaRoot + '/Scene/big/' + photoPath(aBlob2[2]) + '/' + aBlob2[2] + '.jpg?aol', aBlob2[3], aBlob2[4], aBlob2[5]) + '
    '; if(document.nTemplateID==2) { if(document.images.imgDhtmlLeft) { setPathColor(document.images.imgDhtmlLeft, 2, (sViewer=='dhtml')?document.sPanControlsSelectColor:document.sPanControlsColor); } if(document.images.imgDhtmlFlat) { document.images.imgDhtmlFlat.src=(sViewer=='dhtml')?http(document.ThemeTourfactoryCom+'/')+'art/'+document.sPanControlsSelectColor+'/2_PanHTML.gif':http(document.ThemeTourfactoryCom+'/')+'art/'+document.sPanControlsColor+'/2_PanHTMLOff.gif'; } if(document.images.imgFlashFlat) { document.images.imgFlashFlat.src=(sViewer=='flash')?http(document.ThemeTourfactoryCom+'/')+'art/'+document.sPanControlsSelectColor+'/2_PanFlash.gif':http(document.ThemeTourfactoryCom+'/')+'art/'+document.sPanControlsColor+'/2_PanFlashOff.gif'; } if(document.images.imgJavaFlat) { document.images.imgJavaFlat.src=(sViewer=='java')?http(document.ThemeTourfactoryCom+'/')+'art/'+document.sPanControlsSelectColor+'/2_PanJavaFlat.gif':http(document.ThemeTourfactoryCom+'/')+'art/'+document.sPanControlsColor+'/2_PanJavaFlatOff.gif'; } if(document.images.imgJavaBubble) { document.images.imgJavaBubble.src=(sViewer=='bubble')?http(document.ThemeTourfactoryCom+'/')+'art/'+document.sPanControlsSelectColor+'/2_PanJavaBubble.gif':http(document.ThemeTourfactoryCom+'/')+'art/'+document.sPanControlsColor+'/2_PanJavaBubbleOff.gif'; } if(document.getElementById('sImageModeButtons')) { document.getElementById('sImageModeButtons').style.display = ''; } if(document.getElementById('sImageFooterBorder')) { document.getElementById('sImageFooterBorder').style.display = 'none'; } } else { if(document.images.imgDhtmlFlat) { setPathColor(document.images.imgDhtmlFlat, 1, (sViewer=='dhtml')?document.sButtonHoverColor:document.sButtonColor); } if(document.images.imgFlashFlat) { setPathColor(document.images.imgFlashFlat, 1, (sViewer=='flash')?document.sButtonHoverColor:document.sButtonColor); } if(document.images.imgJavaFlat) { setPathColor(document.images.imgJavaFlat, 1, (sViewer=='java')?document.sButtonHoverColor:document.sButtonColor); } if(document.images.imgJavaBubble) { setPathColor(document.images.imgJavaBubble, 1, (sViewer=='bubble')?document.sButtonHoverColor:document.sButtonColor); } if(document.getElementById('sImageModeButtons')) { document.getElementById('sImageModeButtons').style.display = ''; } if(document.getElementById('sImageFooterBorder')) { document.getElementById('sImageFooterBorder').style.display = 'none'; } } } document.getElementById('sImage').innerHTML = sString; return false; } function updateVisistat(sCurrentSceneName) { sCurrentSceneName = sCurrentSceneName.replace(/'/g, '\''); MyPageName = '\'' + sCurrentSceneName + '\''; VisiStat(); return false; } //MiniTour Functions ============================================================== //*****REBUILD THIS FUNCTION TO MATCH CURRENT MINI-TOUR*********** //*****UPDATE 2: Has been rebuilt for a DHTML Mini-Tour.. Just not the switching between Viewers) ********* function loadMiniImage(sBlob, nTabNumber) { var sString; var i; var nViewDegrees; var sImagePathFinal; var nSpacerHeight; var nPanBtnDisp; var sPanControl; //change scene Navigation colors if(document.getElementById('panIcon_'+document.nLastSceneNumber)) { document.getElementById('panIcon_'+document.nLastSceneNumber).src = 'art/minitour/P_blk.gif'; } if(document.getElementById('panIcon_'+nTabNumber)) { document.getElementById('panIcon_'+nTabNumber).src = 'art/minitour/P_red.gif'; } if(document.getElementById('mainFont_'+document.nLastSceneNumber)) { document.getElementById('mainFont_'+document.nLastSceneNumber).style.color = '#3a3a3a'; } if(document.getElementById('mainFont_'+nTabNumber)) { document.getElementById('mainFont_'+nTabNumber).style.color = '#821413'; } if(document.getElementById('subFont_'+document.nLastSceneNumber)) { document.getElementById('subFont_'+document.nLastSceneNumber).style.color = '#807f7f'; } if(document.getElementById('subFont_'+nTabNumber)) { document.getElementById('subFont_'+nTabNumber).style.color = '#821413'; } // clear dhtml timer and hide mouse capture layer if(nPanTimer!='') { window.clearTimeout(nPanTimer); } if(document.getElementById) { document.getElementById('panEventCapture').style.display = 'none'; } // split out subtab data (not needed for image) if(sBlob.indexOf('~')!=-1) { var aBlob = sBlob.split('~'); // split variable data var aBlob2 = aBlob[0].split('|'); } else { // split variable data var aBlob2 = sBlob.split('|'); } sString = '' + '
    '; // if standard image if(aBlob2[3] == '1') { document.getElementById('panInstruction').style.display = 'none'; document.getElementById('panControl').style.display = 'none'; sString += '
    ' + '
    ' + ''; sPanControl = ''; } else { document.getElementById('panInstruction').style.display = ''; document.getElementById('panControl').style.display = ''; sString += '' + '' + '' + ''; if((document.DefsViewer == 'java') || (document.DefsViewer == 'bubble' && aBlob2[3] == '4')) { // java viewer sString += ''; } else { if(document.DefsViewer == 'bubble') { // java bubble viewer (pureplayer) nViewDegrees = 360 * ((aBlob2[4] / aBlob2[5]) / 6); if(nViewDegrees > 360) { nViewDegrees = 330; } if(aBlob2[3] == '3') { nViewDegrees = 360; } sString += ''; } else { if(document.DefsViewer == 'flash') { // flash viewer if(aBlob2[4] > 2880) { sImagePathFinal = document.sMediaRoot + '/flashsize.asp%3fp=scene/big/' + photoPath(aBlob2[2]) + '/' + aBlob2[2] + '.jpg%26w=2880%26h=272%26b=000000%26f=0'; } else { sImagePathFinal = document.sMediaRoot + '/Scene/Big/' + photoPath(aBlob2[2]) + '/' + aBlob2[2] + '.jpg'; } sString += ''; } else { sString += ''; } } } sString += '' + '
    ' + '
    ' + '' + '' + '' + '
    ' + '
    ' + '' + '' + '' + '' + '' + '' + '
    ' + '
    '; sString += ''; sString += ''; sString += ''; sString += ''; sString += ''; sString += ''; sString += ''; sString += '' + buildDhtmlPan(document.sMediaRoot + '/Scene/Big/' + photoPath(aBlob2[2]) + '/' + aBlob2[2] + '.jpg', aBlob2[3], aBlob2[4], aBlob2[5]) + '
    '; var sSafeBlob = sBlob.replace(/'/g, '\\\'').replace(/"/g, '"e;'); sPanControl = '' + ''; if((document.DefsViewer != 'flash') && (document.DefsViewer != 'java') && (document.DefsViewer != 'bubble')) { if(document.getElementById) { sPanControl += '' + ''; } else { sPanControl += '' + ''; } sPanControl += '' + '' + ''; } else { sPanControl += ''; // flash viewer button if((document.DefsViewer == 'flash')) { sPanControl += ''; } else { sPanControl += ''; } } // java viewer button if(document.DefsViewer == 'java') { sPanControl += ''; } else { sPanControl += ''; } // bubble viewer button if(document.DefsViewer == 'bubble') { sPanControl += ''; } else { sPanControl += ''; } sPanControl += '' + '
    Flash Viewer (flat)HTML ViewerFlash Viewer (flat)Java Viewer (flat)Java Viewer (bubble)
    '; if(document.getElementById('panControl').style.display=='') { document.getElementById('panControl').innerHTML = sPanControl; } } sString += '
    '; // write new photo & pan controls document.getElementById('sImage').innerHTML = sString; //set nLastSceneNumber variable to be the current TabNumber (For un-selecting navigation colors on next click) document.nLastSceneNumber = nTabNumber; } function setMiniTitle(sBlob) { // split out subtab data (not needed for image) if(sBlob.indexOf('~')!=-1) { var aBlob = sBlob.split('~'); // split variable data var aBlob2 = aBlob[0].split('|'); } else { // split variable data var aBlob2 = sBlob.split('|'); } document.getElementById('sTitle').innerHTML = '
    ' + aBlob2[1].toUpperCase() + '
    '; } function updateMiniPage(sBlob, nTabNumber) { if(!(document.getElementById)) { return true; } if(!(document.body.innerHTML)) { return true; } setMiniTitle(sBlob); loadMiniImage(sBlob, nTabNumber); logHit(sBlob); return false; } //Fullscreen Flash ================================================================ function detectVersion() { version = parseInt(navigator.appVersion); return version; }// end of function detectVersion() function detectOS() { if(navigator.userAgent.indexOf('Win') == -1) { OS = 'Macintosh'; } else { OS = 'Windows'; } return OS; } // end of function detectOS() function detectBrowser() { if(navigator.appName.indexOf('Netscape') == -1) { browser = 'IE'; } else { browser = 'Netscape'; } return browser; } //end of function detectBrowser() function FullScreen(){ var adjWidth; var adjHeight; if((detectOS() == 'Macintosh') && (detectBrowser() == 'Netscape')) { adjWidth = 20; adjHeight = 35; } if((detectOS() == 'Macintosh') && (detectBrowser() == 'IE')) { adjWidth = 20; adjHeight = 35; winOptions = 'fullscreen=yes'; } if((detectOS() == 'Windows') && (detectBrowser() == 'Netscape')) { adjWidth = 30; adjHeight = 30; } if(detectVersion() < 4) { self.location.href = 'TourSWFfs.asp?nTourID=' + document.nTourID + '&sMP3Path=' + document.sMP3Path + '&fsm=' + document.fSpiderMode + '&fs=yes'; } if((detectOS() == 'Macintosh') && (detectBrowser() == 'IE')) { var maciewindow = window.open('TourSWFfs.asp?nTourID=' + document.nTourID + '&sMP3Path=' + document.sMP3Path + '&fsm=' + document.fSpiderMode + '&fs=yes', 'TourSWFMacIE', 'fullscreen=yes'); maciewindow.moveTo(0,0); maciewindow.resizeTo(screen.width - 10,screen.height - 45); } else { var winWidth = screen.availWidth - adjWidth; var winHeight = screen.availHeight - adjHeight; var winSize = 'width=' + winWidth + ',height=' + winHeight; var thewindow = window.open('TourSWFfs.asp?nTourID=' + document.nTourID + '&sMP3Path=' + document.sMP3Path + '&nH=' + winHeight + '&nW=' + winWidth + '&fsm=' + document.fSpiderMode + '&fs=yes', 'TourSWFWinVer', winSize); thewindow.moveTo(0,0); } }// end of function FullScreen(){ function MakeItSo(){ var winWidth = screen.availWidth; var winHeight = screen.availHeight; //alert(document.fSpiderMode); if((detectOS() == 'Windows') && (detectBrowser() == 'IE')) { if (document.fSpiderMode == "True") { window.open('TourSWFfs.html', 'TourSWFWinIE','left=0,top=0,toolbar=no,location=no,scrollbars=no,status=no,resizable=no,fullscreen=yes'); } else { window.open('TourSWFfs.asp?nTourID=' + document.nTourID + '&sMP3Path=' + document.sMP3Path + '&nH=' + winHeight + '&nW=' + winWidth + '&fsm=' + document.fSpiderMode + '&fs=yes', 'TourSWFWinIE','left=0,top=0,toolbar=no,location=no,scrollbars=no,status=no,resizable=no,fullscreen=yes'); } } else { onload=FullScreen(); } }// end of function MakeItSo() function DisplayDesc(nSceneID) { var nTmpSceneID; //if nSceneID = "nSceneID=1234567" strip first part off (& strip out spaces) if(nSceneID.indexOf('=')>0) { nTmpSceneID = nSceneID.replace(/^\s*|\s(?=\s)|\s*$/g, '').split('=')[1]; } else { nTmpSceneID = nSceneID; } document.getElementById('sSceneDescription2').innerHTML = getSceneDescription2(nTmpSceneID); logHitFlashVersion(nTmpSceneID); nTmpSceneID = ''; } function getSceneDescription2(nSceneID) { for(a=0;a0)?(aTmp2[6]):('')) + ' ' + aTmp2[7] + '
    '; } } } return ''; } function logHitFlashVersion(nSceneID) { var oImage = new Image; oImage.src = 'Log.asp?s=' + nSceneID + '&r=' + document.sReferer + '&rnd=' + Math.random(); }