/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Delta Residences at Sun Peaks - Master Script File

Copyright (c) 2006 Pilot House Real Estate Inc. All rights reserved.
Created by B3 Communications Inc., www.b3com.com.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

var agent=navigator.userAgent.toLowerCase();var is_major=parseInt(navigator.appVersion);var is_minor=parseFloat(navigator.appVersion);var is_win=(agent.indexOf('windows')!=-1);var is_mac=(agent.indexOf('mac')!=-1);var is_nav=((agent.indexOf('mozilla')!=-1)&&(agent.indexOf('spoofer')==-1)&&(agent.indexOf('compatible')==-1)&&(agent.indexOf('opera')==-1)&&(agent.indexOf('webtv')==-1));is_nav6up=(is_nav&&(is_major>=5));var is_ie=(agent.indexOf('msie')!=-1);var is_safari=((agent.indexOf('mac os x')!=-1)&&(agent.indexOf('safari')!=-1));if(is_safari){is_nav=false;};var is_mozilla=((agent.indexOf('mozilla')!=-1)&&(agent.indexOf('netscape')==-1)&&(!is_ie));if(is_safari){is_mozilla=false;};var 
is_opera=(agent.indexOf('opera')!=-1);if(is_opera){is_ie=false;};var flashinstalled=0;var flashversion=0;var FlashPlayerVersionRequired=8;var FlashPlayerPluginObject='';var FlashMSDetect="false";var e_C;var fD=0;var fN='';var FOQS='';var tAArray=new Array;var tDivArray=new Array;var URL=location.href;var URLProtocol=location.protocol;var URLHostName=location.hostname;var URLPort=location.port;var URLPath=location.pathname;var URLHash=location.hash;var URLSearch=location.search;var URLMinusQueryString=URLProtocol+URLHostName+URLPath;var regExpStr01=new RegExp('\/','gi');var URLPathTemp=URLPath.replace(regExpStr01,'\\');var URLPathOffset=URLPathTemp.split('\\');URLPathTemp=URLHostName.split('.');URLTopLevelDomain=URLPathTemp[0];if((URLProtocol.indexOf('file')!=-1)&&(is_ie)){pathTemp=URLPath.split('\\');}else{pathTemp=URLPath.split('/');};if(URLProtocol.indexOf('file')!=-1){fD=URLPathOffset.length-3;}else{fD=URLPathOffset.length-2;};fN=pathTemp[pathTemp.length-1];var iSSHTML='';if(is_ie){if(is_win){iSSHTML+=' #secondaryNavBackgroundInner, #contentBackground { filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=media\/images\/gui\/content_bg.png, sizingMethod=crop);); } ';iSSHTML+=' #content { scrollbar-base-color: #c67836; scrollbar-track-color: #2e1200; scrollbar-arrow-color: #432711; } ';};};if(!is_ie){iSSHTML+=' blockquote, ol, p, ul, td, th, button, input, option, select, textarea { font-size: 110%; } ';iSSHTML+=' h1 { font-size: 175%; } h2 { font-size: 140%; } h3 { font-size: 130% } h4, h5, h6 { font-size: 110% } ';iSSHTML+=' #primaryNavContainer, #menu { height: 25px; } ';iSSHTML+=' #primaryNav { padding-top: 5px; } ';iSSHTML+=' #secondaryNavBackgroundInner, #contentBackground { background-image: url(media\/images\/gui\/content_bg.png); background-repeat: no-repeat; } ';iSSHTML+=' #secondaryNavBackground, #secondaryNavBackgroundInner { height: 24px; } #secondaryNavContainer, #secondaryNav { height: 23px; overflow: visible; } ';iSSHTML+=' #registerNavContainer,#videoTourNavContainer { top: -16px; height: 19px; padding-top: 4px; } ';iSSHTML+=' #contentBackground { height: 453px; } ';iSSHTML+=' #content { width: 908px; height: 386px; border: 0px dashed lime; } ';iSSHTML+=' #footer { font-size: 110%; } ';iSSHTML+=' a.primaryNav, a.primaryNav:link, a.primaryNav:active, a.primaryNav:hover, a.primaryNav:visited { padding-top: 8px; padding-bottom: 10px; } ';iSSHTML+=' span.primaryNavSeparator { position: relative; top: 3px; } ';iSSHTML+=' a.secondaryNav, a.secondaryNav:link, a.secondaryNav:active, a.secondaryNav:hover, a.secondaryNav:visited { padding-top: 6px; padding-bottom: 5px; position: relative; top: 4px; } ';iSSHTML+=' span.secondaryNavSeparator { position: relative; top: 7px; } ';}if((is_nav6up)||(is_mozilla)||(is_safari)){};if(is_safari){iSSHTML+=' #registerNavContainer,#videoTourNavContainer { top: 0px; } ';};if(is_opera){};if(document.write){iSSHTML='<style type="text\/css"><!-'+'- '+iSSHTML+' -'+'-><\/style>';document.write(iSSHTML);};function sWS(sWS_MT){setTimeout('window.status="'+sWS_MT+'"',10);};function oRW(){oRW_WObj=window.open('residences_signup.aspx','Registration','width=770,height=675');oRW_WObj.focus();if(!oRW_WObj.opener){oRW_WObj.opener=self;};return false;};onload=function(){pI();aPI();};var qSS='?';var dSSC='';var sSC='';function sSSC(sSSC_PCPS,sSSC_TTSB){sSSC_PCPArray=sSSC_PCPS.split(sSSC_TTSB);sSSC_PCPIndex=sSSC_PCPArray.length;for(loop01=0;loop01<sSSC_PCPArray.length;loop01++){if(sSSC_PCPArray[loop01]=='skipIntro=true'){FOQS='?skipIntro=true';}else if(sSSC_PCPArray[loop01]=='testMode=on'){FlashPlayerVersionRequired+=10;};};};if(location.search){sSC=URLSearch.substring(1,URLSearch.length);};if(sSC!=''){qSS='&';sSSC(sSC,qSS);};function gCOT(){if(document.getElementsByTagName){tAArray=document.getElementsByTagName('a');tDivArray=document.getElementsByTagName('div');};};function rPNL(rPNL_CE){rPNL_ID=document.getElementById(rPNL_CE);rPNL_ID.style.color='#ddddff';rPNL_ID.style.backgroundColor='#381900';rPNL_ID.style.filter='alpha(opacity=70)';rPNL_ID.style.MozOpacity='0.7';rPNL_ID.style.opacity='0.7';};function dPNL(dPNL_CE){dPNL_ID=document.getElementById(dPNL_CE);dPNL_ID.style.cursor='default';dPNL_ID.style.color='#ff9538';dPNL_ID.onmouseover=function(){sWS('');return true;};dPNL_ID.onclick=function(){sWS('');return false;};};function rSNL(rSNL_CE){rSNL_ID=document.getElementById(rSNL_CE);rSNL_ID.style.color='#eb8935';rSNL_ID.style.cursor='default';rSNL_ID.onmouseover=function(){sWS('');return true;};rSNL_ID.onclick=function(){sWS('');return false;};};function pI(){e_C=document.getElementById('content');e_C.style.visibility='hidden';gCOT();if((fN=='')||(fN=='index.php')||(fN=='drs_test_page.html')){e_LL=document.getElementById('logoLink');e_LI=document.getElementById('logoImage');e_LL.style.cursor='default';e_LL.title=' Welcome to Delta Residences at Sun Peaks Resort ';e_LL.onmouseover=function(){sWS('');};e_LL.onclick=function(){sWS('');return false;};e_LI.alt=e_LL.title;};for(loop00=0;loop00<tAArray.length;loop00++){if(tAArray[loop00]){currentLinkURL=tAArray[loop00].href.split('\/');currentLinkURL=currentLinkURL[(currentLinkURL.length-1)];if(currentLinkURL==fN){if(tAArray[loop00].className=='primaryNav'){if(tAArray[loop00].id){rPNL(tAArray[loop00].id);dPNL(tAArray[loop00].id);};}else if(tAArray[loop00].className=='secondaryNav'){if(tAArray[loop00].id){rSNL(tAArray[loop00].id);};};};};};if((fN=="elevations.php")||(fN=="floorplans.php")){rPNL('primaryNavYourHome');}else if((fN=="how_it_works.php")||(fN=="smartest_way.php")||(fN=="media.php")){rPNL('primaryNavQuarterOwnership');}else if((fN=="service.php")||(fN=="all_season_living.php")){rPNL('primaryNavLifestyle');}else if((fN=="area_map.php")||(fN=="village.php")||(fN=="mountain.php")||(fN=="what_others_are_saying.php")){rPNL('primaryNavDiscoverSunPeaks');};for(loop01=0;loop01<tDivArray.length;loop01++){if(tDivArray[loop01]){if(tDivArray[loop01].id=='watermark'){e_WM=document.getElementById('watermark');e_WM.innerHTML='<img src="media\/images\/gui\/header_snowflakes.gif" alt="" \/>';};if(tDivArray[loop01].id=='FlashFilePointer'){var FlashFilePointer=tDivArray[loop01].getAttribute('src');if((flashinstalled==2)&&(flashversion>=FlashPlayerVersionRequired)){e_C.style.width='958px';e_C.style.height='443px';e_C.style.overflow='hidden';e_C.style.margin='0px auto';e_C.style.padding='0px';e_C.innerHTML='<div id="FlashContainer" class="FlashContainer"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http:\/\/fpdownload.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=6,0,0,0" width="958" height="443" id="InPageFlashObject" align="middle"><param name="wmode" value="transparent" \/><param name="movie" value="media\/flash\/'+FlashFilePointer+'.swf'+FOQS+'" \/><param name="quality" value="best" \/><param name="bgcolor" value="#ffffff" \/><embed src="media\/flash\/'+FlashFilePointer+'.swf'+FOQS+'" quality="best" name="InPageFlashObject" width="958" height="443" align="middle" wmode="transparent" type="application\/x-shockwave-flash" pluginspage="http:\/\/www.macromedia.com\/go\/getflashplayer" \/><\/embed><\/object><\/div>';}else{};};};};e_C.style.visibility='visible';};function aPI(){};