// JavaScript Document

<!--
function MM_CheckFlashVersion(reqVerStr,msg){
  with(navigator){
    var isIE  = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);
    var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
    if (!isIE || !isWin){  
      var flashVer = -1;
      if (plugins && plugins.length > 0){
        var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";
        desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc;
        if (desc == "") flashVer = -1;
        else{
          var descArr = desc.split(" ");
          var tempArrMajor = descArr[2].split(".");
          var verMajor = tempArrMajor[0];
          var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r");
          var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;
          flashVer =  parseFloat(verMajor + "." + verMinor);
        }
      }
      // WebTV has Flash Player 4 or lower -- too low for video
      else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0;

      var verArr = reqVerStr.split(",");
      var reqVer = parseFloat(verArr[0] + "." + verArr[2]);
  
      if (flashVer < reqVer){
        if (confirm(msg))
          window.location = "http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
      }
    }
  } 
}



function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->

function getCookieVal (offset)
   {
   var endstr = document.cookie.indexOf (";", offset);
   if (endstr == -1)
      endstr = document.cookie.length;
	
   return unescape(document.cookie.substring(offset, endstr));
   }

function GetCookie (name)
   {

   var arg = name + "=";
   var alen = arg.length;
   var clen = document.cookie.length;
   var i = 0;
   while (i < clen)
      {
      var j = i + alen;
      if (document.cookie.substring(i, j) == arg)
         return getCookieVal (j);
      i = document.cookie.indexOf(" ", i) + 1;
      if (i == 0)
         break;
      }
   return null;
   }

function SetCookie (name, value)
   {
   var argv = SetCookie.arguments;
   var argc = SetCookie.arguments.length;
   var expires = (2 < argc) ? argv[2] : null;
   var path = (3 < argc) ? argv[3] : null;
   var domain = (4 < argc) ? argv[4] : null;
   var secure = (5 < argc) ? argv[5] : false;
   document.cookie = name + "=" + escape (value) +
     ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
     ((path == null) ? "" : ("; path=" + path)) +
     ((domain == null) ? "" : ("; domain=" + domain)) +
        ((secure == true) ? "; secure" : "");
   }

function ResetCounts(name)
   {
   visits = 0;
   SetCookie("visits", visits, expdate , "/", null, false);
   leapto();
   }

// De-activate Cloaking -->



function mainMenu(){
	var str='';
	str+='	<table align="center" cellpadding="5" width="800">';
	str+='		<tr align="center">';
	str+='			<td width="30" align="center" valign="middle">';
	if (location.pathname == "/index.htm"){
		str+='      <img src="\/images\/Menu\/home_over.gif" name="home" width="30" height="15" border="0" id="home" \/>';
	}else if (location.pathname == "/"){
		str+='      <img src="\/images\/Menu\/home_over.gif" name="home" width="30" height="15" border="0" id="home" \/>';
	}else{
		str+='		    <a href="\/index.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'home\',\'\',\'\/images\/Menu\/home_over.gif\',1)"><img src="\/images\/Menu\/home.gif" name="home" width="30" height="15" border="0" id="home" \/><\/a><\/td>';
	}	
	str+='			<td width="52" valign="middle">';
	if (location.pathname == "/features.htm") {
		str+='		<img src="\/images\/Menu\/features_over.gif" name="features" width="52" height="15" border="0" id="features" \/>';
	}else if (location.pathname == "/area.htm") {
				str+='		<img src="\/images\/Menu\/features_over.gif" name="features" width="52" height="15" border="0" id="features" \/>';
	}else if (location.pathname == "/condo.htm") {
				str+='		<img src="\/images\/Menu\/features_over.gif" name="features" width="52" height="15" border="0" id="features" \/>';
	}else if (location.pathname == "/chattanooga.htm") {
				str+='		<img src="\/images\/Menu\/features_over.gif" name="features" width="52" height="15" border="0" id="features" \/>';
	}else{
		str+='		    <a href="\/features.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'features\',\'\',\'\/images\/Menu\/features_over.gif\',1)"><img src="\/images\/Menu\/features.gif" name="features" width="52" height="15" border="0" id="features" \/><\/a><\/td>';
	}
	str+='			<td width="68" valign="middle">';
	if (location.pathname == "/floorplans.htm") {
		str+='		<img src="\/images\/Menu\/floorplans_over.gif" name="floorplans" width="68" height="15" border="0" id="floorplans" \/>';
	}else{
		str+='		    <a href="\/floorplans.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'floorplans\',\'\',\'\/images\/Menu\/floorplans_over.gif\',1)"><img src="\/images\/Menu\/floorplans.gif" name="floorplans" width="68" height="15" border="0" id="floorplans" \/><\/a><\/td>';
	}	
	str+='			<td width="96" valign="middle">';
	if (location.pathname == "/clubroomview.htm"){
		str+='		<img src="\/images\/Menu\/clubroomview_over.gif" name="clubroomview" width="96" height="15" border="0" id="clubroomview" \/>';
	}else{
		str+='		    <a href="\/clubroomview.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'clubroomview\',\'\',\'\/images\/Menu\/clubroomview_over.gif\',1)"><img src="\/images\/Menu\/clubroomview.gif" name="clubroomview" width="96" height="15" border="0" id="clubroomview" \/><\/a><\/td>';
	}
	str+='			<td width="52" valign="middle">';
	if (location.pathname == "/location.htm") {
		str+='		<img src="\/images\/Menu\/location_over.gif" name="location" width="52" height="15" border="0" id="location" \/>';
	}else{
		str+='		    <a href="\/location.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'location\',\'\',\'\/images\/Menu\/location_over.gif\',1)"><img src="\/images\/Menu\/location.gif" name="location" width="52" height="15" border="0" id="location" \/><\/a><\/td>';
	}
	str+='			<td width="48" valign="middle">';
	if (location.pathname == "/contact.htm") {
		str+='		<img src="\/images\/Menu\/contact_over.gif" name="contact" width="48" height="15" border="0" id="contact" \/>';
	}else{
		str+='		    <a href="\/contact.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'contact\',\'\',\'\/images\/Menu\/contact_over.gif\',1)"><img src="\/images\/Menu\/contact.gif" name="contact" width="48" height="15" border="0" id="contact" \/><\/a><\/td>';
	}
	str+='			<td width="75" valign="middle">';
	if (location.pathname == "/vTour.htm") {
		str+='		<img src="\/images\/Menu\/vTour_over.gif" name="vTour" width="75" height="15" border="0" id="vTour" \/>';
	}else{
		str+='		    <a href="\/vTour.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'vTour\',\'\',\'\/images\/Menu\/vTour_over.gif\',1)"><img src="\/images\/Menu\/vTour.gif" name="vTour" width="75" height="15" border="0" id="vTour" \/><\/a><\/td>';
	}
	str+='			<td width="48" valign="middle">';
	if (location.pathname == "/updates.htm") {
		str+='		<img src="\/images\/Menu\/updates_over.gif" name="updates" width="48" height="15" border="0" id="updates" \/>';
	}else{
		str+='		    <a href="\/updates.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'updates\',\'\',\'\/images\/Menu\/updates_over.gif\',1)"><img src="\/images\/Menu\/updates.gif" name="updates" width="48" height="15" border="0" id="updates" \/><\/a><\/td>';
	}
	str+='			<td width="103" valign="middle">';
	if (location.pathname == "/commercial.htm") {
		str+='		<img src="\/images\/Menu\/commercial_over.gif" name="commercial" width="103" height="15" border="0" id="commercial" \/>';
	}else{
		str+='		    <a href="commercial.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'commercial\',\'\',\'\/images\/Menu\/commercial_over.gif\',1)"><img src="\/images\/Menu\/commercial.gif" name="commercial" width="103" height="15" border="0" id="commercial" \/><\/a><\/td>';
	}
	str+='		<\/tr>';
	str+='	<\/table>';
document.write(str);
}

//-->







      
/***********************************************
* Ultimate Fade-In Slideshow (v1.51): © Dynamic Drive (http://www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/
 
var fadeimages=new Array()
var fadeimages2=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages[0]=["/images/garden.jpg", "", ""]
fadeimages[1]=["/images/82009102.jpg", "", ""]
fadeimages[2]=["/images/82009202.jpg", "", ""]
fadeimages[3]=["/images/82009001.jpg", "", ""]
fadeimages[4]=["/images/82009002.jpg", "", ""]
fadeimages[5]=["/images/82009003.jpg", "", ""]
fadeimages[6]=["/images/82009004.jpg", "", ""]
fadeimages[7]=["/images/82009006.jpg", "", ""]
fadeimages[8]=["/images/82009007.jpg", "", ""]
fadeimages[9]=["/images/82009010.jpg", "", ""]
fadeimages[10]=["/images/82009016.jpg", "", ""]
fadeimages[11]=["/images/82009019.jpg", "", ""]
fadeimages[12]=["/images/82009020.jpg", "", ""]
fadeimages[13]=["/images/82009208.jpg", "", ""]
fadeimages[14]=["/images/82009230.jpg", "", ""]

fadeimages2[0]=["/images/82009023.jpg", "", ""]
fadeimages2[1]=["/images/82009044.jpg", "", ""]
fadeimages2[2]=["/images/82009048.jpg", "", ""]
fadeimages2[3]=["/images/82009061.jpg", "", ""]
fadeimages2[4]=["/images/82009063.jpg", "", ""]
fadeimages2[5]=["/images/82009070.jpg", "", ""]
fadeimages2[6]=["/images/82009072.jpg", "", ""]
fadeimages2[7]=["/images/82009074.jpg", "", ""]
fadeimages2[8]=["/images/gardenbridge.jpg", "", ""]
fadeimages2[9]=["/images/riveroverlook.jpg", "", ""]
fadeimages2[10]=["/images/riverbend2009-1.jpg", "", ""]
fadeimages2[11]=["/images/riverbend2009-2.jpg", "", ""]

var fadebgcolor="white"

////NO need to edit beyond here/////////////
 
var fadearray=new Array() //array to cache fadeshow instances
var fadeclear=new Array() //array to cache corresponding clearinterval pointers
 
var dom=(document.getElementById) //modern dom browsers
var iebrowser=document.all
 
function fadeshow(theimages, fadewidth, fadeheight, borderwidth, delay, pause, displayorder){
this.pausecheck=pause
this.mouseovercheck=0
this.delay=delay
this.degree=10 //initial opacity degree (10%)
this.curimageindex=0
this.nextimageindex=1
fadearray[fadearray.length]=this
this.slideshowid=fadearray.length-1
this.canvasbase="canvas"+this.slideshowid
this.curcanvas=this.canvasbase+"_0"
if (typeof displayorder!="undefined")
theimages.sort(function() {return 0.5 - Math.random();}) //thanks to Mike (aka Mwinter) :)
this.theimages=theimages
this.imageborder=parseInt(borderwidth)
this.postimages=new Array() //preload images
for (p=0;p<theimages.length;p++){
this.postimages[p]=new Image()
this.postimages[p].src=theimages[p][0]
}
 
var fadewidth=fadewidth+this.imageborder*2
var fadeheight=fadeheight+this.imageborder*2
 
if (iebrowser&&dom||dom) //if IE5+ or modern browsers (ie: Firefox)
document.write('<div id="master'+this.slideshowid+'" style="position:relative;width:'+fadewidth+'px;height:'+fadeheight+'px;overflow:hidden;"><div id="'+this.canvasbase+'_0" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'"></div><div id="'+this.canvasbase+'_1" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'"></div></div>')
else
document.write('<div><img name="defaultslide'+this.slideshowid+'" src="'+this.postimages[0].src+'"></div>')
 
if (iebrowser&&dom||dom) //if IE5+ or modern browsers such as Firefox
this.startit()
else{
this.curimageindex++
setInterval("fadearray["+this.slideshowid+"].rotateimage()", this.delay)
}
}

function fadepic(obj){
if (obj.degree<100){
obj.degree+=10
if (obj.tempobj.filters&&obj.tempobj.filters[0]){
if (typeof obj.tempobj.filters[0].opacity=="number") //if IE6+
obj.tempobj.filters[0].opacity=obj.degree
else //else if IE5.5-
obj.tempobj.style.filter="alpha(opacity="+obj.degree+")"
}
else if (obj.tempobj.style.MozOpacity)
obj.tempobj.style.MozOpacity=obj.degree/101
else if (obj.tempobj.style.KhtmlOpacity)
obj.tempobj.style.KhtmlOpacity=obj.degree/100
else if (obj.tempobj.style.opacity&&!obj.tempobj.filters)
obj.tempobj.style.opacity=obj.degree/101
}
else{
clearInterval(fadeclear[obj.slideshowid])
obj.nextcanvas=(obj.curcanvas==obj.canvasbase+"_0")? obj.canvasbase+"_0" : obj.canvasbase+"_1"
obj.tempobj=iebrowser? iebrowser[obj.nextcanvas] : document.getElementById(obj.nextcanvas)
obj.populateslide(obj.tempobj, obj.nextimageindex)
obj.nextimageindex=(obj.nextimageindex<obj.postimages.length-1)? obj.nextimageindex+1 : 0
setTimeout("fadearray["+obj.slideshowid+"].rotateimage()", obj.delay)
}
}
 
fadeshow.prototype.populateslide=function(picobj, picindex){
var slideHTML=""
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML='<a href="'+this.theimages[picindex][1]+'" target="'+this.theimages[picindex][2]+'">'
slideHTML+='<img src="'+this.postimages[picindex].src+'" border="'+this.imageborder+'px">'
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML+='</a>'
picobj.innerHTML=slideHTML
}
 
 
fadeshow.prototype.rotateimage=function(){
if (this.pausecheck==1) //if pause onMouseover enabled, cache object
var cacheobj=this
if (this.mouseovercheck==1)
setTimeout(function(){cacheobj.rotateimage()}, 100)
else if (iebrowser&&dom||dom){
this.resetit()
var crossobj=this.tempobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
crossobj.style.zIndex++
fadeclear[this.slideshowid]=setInterval("fadepic(fadearray["+this.slideshowid+"])",50)
this.curcanvas=(this.curcanvas==this.canvasbase+"_0")? this.canvasbase+"_1" : this.canvasbase+"_0"
}
else{
var ns4imgobj=document.images['defaultslide'+this.slideshowid]
ns4imgobj.src=this.postimages[this.curimageindex].src
}
this.curimageindex=(this.curimageindex<this.postimages.length-1)? this.curimageindex+1 : 0
}
 
fadeshow.prototype.resetit=function(){
this.degree=10
var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
if (crossobj.filters&&crossobj.filters[0]){
if (typeof crossobj.filters[0].opacity=="number") //if IE6+
crossobj.filters(0).opacity=this.degree
else //else if IE5.5-
crossobj.style.filter="alpha(opacity="+this.degree+")"
}
else if (crossobj.style.MozOpacity)
crossobj.style.MozOpacity=this.degree/101
else if (crossobj.style.KhtmlOpacity)
crossobj.style.KhtmlOpacity=this.degree/100
else if (crossobj.style.opacity&&!crossobj.filters)
crossobj.style.opacity=this.degree/101
}
 
 
fadeshow.prototype.startit=function(){
var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
this.populateslide(crossobj, this.curimageindex)
if (this.pausecheck==1){ //IF SLIDESHOW SHOULD PAUSE ONMOUSEOVER
var cacheobj=this
var crossobjcontainer=iebrowser? iebrowser["master"+this.slideshowid] : document.getElementById("master"+this.slideshowid)
crossobjcontainer.onmouseover=function(){cacheobj.mouseovercheck=1}
crossobjcontainer.onmouseout=function(){cacheobj.mouseovercheck=0}
}
this.rotateimage()
}

<!--  Floorplan Overlay Menu
function carmelBtn() {
	document.menuCarmel.src = "/images/floorplans/menu/carmelSuite_over.png";
	document.menuSonoma.src = "/images/floorplans/menu/sonomaSuite.png";
	document.menuMonterey.src = "/images/floorplans/menu/montereySuite.png";
	document.menuCambria.src = "/images/floorplans/menu/cambriaSuite.png";
	document.menuSalsalito.src = "/images/floorplans/menu/salsalitoSuite.png";
	document.menuSalsalitoII.src = "/images/floorplans/menu/salsalitoiiSuite.png";
	document.menuCypress.src = "/images/floorplans/menu/cypressSuite.png";
	document.menuMendocino.src = "/images/floorplans/menu/mendocinoSuite.png";
	document.menuPenthouses.src = "/images/floorplans/menu/penthouses.png";
	document.overlayPic.src = "/images/floorplans/carmel.png";
}

function sonomaBtn() {
	document.menuCarmel.src = "/images/floorplans/menu/carmelSuite.png";
	document.menuSonoma.src = "/images/floorplans/menu/sonomaSuite_over.png";
	document.menuMonterey.src = "/images/floorplans/menu/montereySuite.png";
	document.menuCambria.src = "/images/floorplans/menu/cambriaSuite.png";
	document.menuSalsalito.src = "/images/floorplans/menu/salsalitoSuite.png";
	document.menuSalsalitoII.src = "/images/floorplans/menu/salsalitoiiSuite.png";
	document.menuCypress.src = "/images/floorplans/menu/cypressSuite.png";
	document.menuMendocino.src = "/images/floorplans/menu/mendocinoSuite.png";
	document.menuPenthouses.src = "/images/floorplans/menu/penthouses.png";
	document.overlayPic.src = "/images/floorplans/sonoma.png";

}

function montereyBtn() {
	document.menuCarmel.src = "/images/floorplans/menu/carmelSuite.png";
	document.menuSonoma.src = "/images/floorplans/menu/sonomaSuite.png";
	document.menuMonterey.src = "/images/floorplans/menu/montereySuite_over.png";
	document.menuCambria.src = "/images/floorplans/menu/cambriaSuite.png";
	document.menuSalsalito.src = "/images/floorplans/menu/salsalitoSuite.png";
	document.menuSalsalitoII.src = "/images/floorplans/menu/salsalitoiiSuite.png";
	document.menuCypress.src = "/images/floorplans/menu/cypressSuite.png";
	document.menuMendocino.src = "/images/floorplans/menu/mendocinoSuite.png";
	document.menuPenthouses.src = "/images/floorplans/menu/penthouses.png";
	document.overlayPic.src = "/images/floorplans/monterey.png";

}

function cambriaBtn() {
	document.menuCarmel.src = "/images/floorplans/menu/carmelSuite.png";
	document.menuSonoma.src = "/images/floorplans/menu/sonomaSuite.png";
	document.menuMonterey.src = "/images/floorplans/menu/montereySuite.png";
	document.menuCambria.src = "/images/floorplans/menu/cambriaSuite_over.png";
	document.menuSalsalito.src = "/images/floorplans/menu/salsalitoSuite.png";
	document.menuSalsalitoII.src = "/images/floorplans/menu/salsalitoiiSuite.png";
	document.menuCypress.src = "/images/floorplans/menu/cypressSuite.png";
	document.menuMendocino.src = "/images/floorplans/menu/mendocinoSuite.png";
	document.menuPenthouses.src = "/images/floorplans/menu/penthouses.png";
	document.overlayPic.src = "/images/floorplans/cambria.png";

}

function salsalitoBtn() {
	document.menuCarmel.src = "/images/floorplans/menu/carmelSuite.png";
	document.menuSonoma.src = "/images/floorplans/menu/sonomaSuite.png";
	document.menuMonterey.src = "/images/floorplans/menu/montereySuite.png";
	document.menuCambria.src = "/images/floorplans/menu/cambriaSuite.png";
	document.menuSalsalito.src = "/images/floorplans/menu/salsalitoSuite_over.png";
	document.menuSalsalitoII.src = "/images/floorplans/menu/salsalitoiiSuite.png";
	document.menuCypress.src = "/images/floorplans/menu/cypressSuite.png";
	document.menuMendocino.src = "/images/floorplans/menu/mendocinoSuite.png";
	document.menuPenthouses.src = "/images/floorplans/menu/penthouses.png";
	document.overlayPic.src = "/images/floorplans/salsalito.png";

}

function salsalitoiiBtn() {
	document.menuCarmel.src = "/images/floorplans/menu/carmelSuite.png";
	document.menuSonoma.src = "/images/floorplans/menu/sonomaSuite.png";
	document.menuMonterey.src = "/images/floorplans/menu/montereySuite.png";
	document.menuCambria.src = "/images/floorplans/menu/cambriaSuite.png";
	document.menuSalsalito.src = "/images/floorplans/menu/salsalitoSuite.png";
	document.menuSalsalitoII.src = "/images/floorplans/menu/salsalitoiiSuite_over.png";
	document.menuCypress.src = "/images/floorplans/menu/cypressSuite.png";
	document.menuMendocino.src = "/images/floorplans/menu/mendocinoSuite.png";
	document.menuPenthouses.src = "/images/floorplans/menu/penthouses.png";
	document.overlayPic.src = "/images/floorplans/salsalito2.png";

}

function cypressBtn() {
	document.menuCarmel.src = "/images/floorplans/menu/carmelSuite.png";
	document.menuSonoma.src = "/images/floorplans/menu/sonomaSuite.png";
	document.menuMonterey.src = "/images/floorplans/menu/montereySuite.png";
	document.menuCambria.src = "/images/floorplans/menu/cambriaSuite.png";
	document.menuSalsalito.src = "/images/floorplans/menu/salsalitoSuite.png";
	document.menuSalsalitoII.src = "/images/floorplans/menu/salsalitoiiSuite.png";
	document.menuCypress.src = "/images/floorplans/menu/cypressSuite_over.png";
	document.menuMendocino.src = "/images/floorplans/menu/mendocinoSuite.png";
	document.menuPenthouses.src = "/images/floorplans/menu/penthouses.png";
	document.overlayPic.src = "/images/floorplans/cypress.png";

}

function mendocinoBtn() {
	document.menuCarmel.src = "/images/floorplans/menu/carmelSuite.png";
	document.menuSonoma.src = "/images/floorplans/menu/sonomaSuite.png";
	document.menuMonterey.src = "/images/floorplans/menu/montereySuite.png";
	document.menuCambria.src = "/images/floorplans/menu/cambriaSuite.png";
	document.menuSalsalito.src = "/images/floorplans/menu/salsalitoSuite.png";
	document.menuSalsalitoII.src = "/images/floorplans/menu/salsalitoiiSuite.png";
	document.menuCypress.src = "/images/floorplans/menu/cypressSuite.png";
	document.menuMendocino.src = "/images/floorplans/menu/mendocinoSuite_over.png";
	document.menuPenthouses.src = "/images/floorplans/menu/penthouses.png";
	document.overlayPic.src = "/images/floorplans/mendocino.png";

}

function penthousesBtn() {
	document.menuCarmel.src = "/images/floorplans/menu/carmelSuite.png";
	document.menuSonoma.src = "/images/floorplans/menu/sonomaSuite.png";
	document.menuMonterey.src = "/images/floorplans/menu/montereySuite.png";
	document.menuCambria.src = "/images/floorplans/menu/cambriaSuite.png";
	document.menuSalsalito.src = "/images/floorplans/menu/salsalitoSuite.png";
	document.menuSalsalitoII.src = "/images/floorplans/menu/salsalitoiiSuite.png";
	document.menuCypress.src = "/images/floorplans/menu/cypressSuite.png";
	document.menuMendocino.src = "/images/floorplans/menu/mendocinoSuite.png";
	document.menuPenthouses.src = "/images/floorplans/menu/penthouses_over.png";
	document.overlayPic.src = "/images/floorplans/penthouses.png";
}

<!--  //Penthouse page menu items

function carmelPentBtn() {
	document.menuCarmelPent.src = "/images/floorplans/menu/carmelPent_over.png";
	document.menuSonomaPent.src = "/images/floorplans/menu/sonomaPent.png";
	document.menuCambriaPent.src = "/images/floorplans/menu/cambriaPent.png";
	document.menuMendocinoPent.src = "/images/floorplans/menu/mendocinoPent.png";
	document.menubackToFloorplans.src = "/images/floorplans/menu/backToFloorplans.png";
	document.overlayPic.src = "/images/floorplans/penthouses/carmel.png";
}

function sonomaPentBtn() {
	document.menuCarmelPent.src = "/images/floorplans/menu/carmelPent.png";
	document.menuSonomaPent.src = "/images/floorplans/menu/sonomaPent_over.png";
	document.menuCambriaPent.src = "/images/floorplans/menu/cambriaPent.png";
	document.menuMendocinoPent.src = "/images/floorplans/menu/mendocinoPent.png";
	document.menubackToFloorplans.src = "/images/floorplans/menu/backToFloorplans.png";
	document.overlayPic.src = "/images/floorplans/penthouses/sonoma.png";

}

function cambriaPentBtn() {
	document.menuCarmelPent.src = "/images/floorplans/menu/carmelPent.png";
	document.menuSonomaPent.src = "/images/floorplans/menu/sonomaPent.png";
	document.menuCambriaPent.src = "/images/floorplans/menu/cambriaPent_over.png";
	document.menuMendocinoPent.src = "/images/floorplans/menu/mendocinoPent.png";
	document.menubackToFloorplans.src = "/images/floorplans/menu/backToFloorplans.png";
	document.overlayPic.src = "/images/floorplans/penthouses/cambria.png";

}
function mendocinoPentBtn() {
	document.menuCarmelPent.src = "/images/floorplans/menu/carmelPent.png";
	document.menuSonomaPent.src = "/images/floorplans/menu/sonomaPent.png";
	document.menuCambriaPent.src = "/images/floorplans/menu/cambriaPent.png";
	document.menuMendocinoPent.src = "/images/floorplans/menu/mendocinoPent_over.png";
	document.menubackToFloorplans.src = "/images/floorplans/menu/backToFloorplans.png";
	document.overlayPic.src = "/images/floorplans/penthouses/mendocino.png";

}

function backToFloorplans() {
	document.menuCarmelPent.src = "/images/floorplans/menu/carmelPent.png";
	document.menuSonomaPent.src = "/images/floorplans/menu/sonomaPent.png";
	document.menuCambriaPent.src = "/images/floorplans/menu/cambriaPent.png";
	document.menuMendocinoPent.src = "/images/floorplans/menu/mendocinoPent.png";
	document.menubackToFloorplans.src = "/images/floorplans/menu/backToFloorplans_over.png";
	document.overlayPic.src = "/images/floorplans/blankFloorplan.png";
}


<!-- end of Penthouse Menu Items

//
function popupCarmel()
{
	carmelPopWin = window.open("/images/floorplans/popups/carmel.jpg", "Carmel","width=710,height=675");
}

function popupSonoma()
{
	
	sonomaPopWin = window.open("/images/floorplans/Popups/sonoma.jpg", "Sonoma", "width=710,height=675");
}

function popupMonterey()
{
	
	montereyPopWin = window.open("/images/floorplans/Popups/monterey.jpg", "Monterey", "width=710,height=675");
}

function popupCambria()
{
	
	cambriaPopWin = window.open("/images/floorplans/Popups/cambria.jpg", "Cambria", "width=710,height=675");
}

function popupSalsalito()
{
	
	salsalitoPopWin = window.open("/images/floorplans/Popups/salsalito.jpg", "Salsalito", "width=710,height=675");
}

function popupSalsalito2()
{
	
	salsalito2PopWin = window.open("/images/floorplans/Popups/salsalito2.jpg", "Salsalito2", "width=710,height=675");
}

function popupCypress()
{
	
	cypressPopWin = window.open("/images/floorplans/Popups/cypress.jpg", "Cypress", "width=710,height=675");
}

function popupMendocino()
{
	
	mendocinoPopWin = window.open("/images/floorplans/Popups/mendocino.jpg", "Mendocino", "width=710,height=675");
}

function popupCarmelPent()
{
	
	carmelpentPopWin = window.open("/images/floorplans/Popups/carmel_pent.jpg", "carmelpent", "width=710,height=675");
}

function popupSonomaPent()
{
	
	sonomapentPopWin = window.open("/images/floorplans/Popups/sonoma_pent.jpg", "sonomapent", "width=710,height=675");
}

function popupCambriaPent()
{
	
	cambriapentPopWin = window.open("/images/floorplans/Popups/cambria_pent.jpg", "cambriapent", "width=710,height=675");
}

function popupMendocinoPent()
{
	
	mendocinopentPopWin = window.open("/images/floorplans/Popups/mendocino_pent.jpg", "mendocinopent", "width=710,height=675");
}




<!--  Floorplan Overlay Menu

//v1.7
// Flash Player Version Detection
// Detect Client Browser type
// Copyright 2005-2007 Adobe Systems Incorporated.  All rights reserved.
var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;

function ControlVersion()
{
	var version;
	var axo;
	var e;

	// NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry

	try {
		// version will be set for 7.X or greater players
		axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
		version = axo.GetVariable("$version");
	} catch (e) {
	}

	if (!version)
	{
		try {
			// version will be set for 6.X players only
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
			
			// installed player is some revision of 6.0
			// GetVariable("$version") crashes for versions 6.0.22 through 6.0.29,
			// so we have to be careful. 
			
			// default to the first public version
			version = "WIN 6,0,21,0";

			// throws if AllowScripAccess does not exist (introduced in 6.0r47)		
			axo.AllowScriptAccess = "always";

			// safe to call for 6.0r47 or greater
			version = axo.GetVariable("$version");

		} catch (e) {
		}
	}

	if (!version)
	{
		try {
			// version will be set for 4.X or 5.X player
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
			version = axo.GetVariable("$version");
		} catch (e) {
		}
	}

	if (!version)
	{
		try {
			// version will be set for 3.X player
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
			version = "WIN 3,0,18,0";
		} catch (e) {
		}
	}

	if (!version)
	{
		try {
			// version will be set for 2.X player
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
			version = "WIN 2,0,0,11";
		} catch (e) {
			version = -1;
		}
	}
	
	return version;
}









// JavaScript helper required to detect Flash Player PlugIn version information
function GetSwfVer(){
	// NS/Opera version >= 3 check for Flash plugin in plugin array
	var flashVer = -1;
	
	if (navigator.plugins != null && navigator.plugins.length > 0) {
		if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
			var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
			var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
			var descArray = flashDescription.split(" ");
			var tempArrayMajor = descArray[2].split(".");			
			var versionMajor = tempArrayMajor[0];
			var versionMinor = tempArrayMajor[1];
			var versionRevision = descArray[3];
			if (versionRevision == "") {
				versionRevision = descArray[4];
			}
			if (versionRevision[0] == "d") {
				versionRevision = versionRevision.substring(1);
			} else if (versionRevision[0] == "r") {
				versionRevision = versionRevision.substring(1);
				if (versionRevision.indexOf("d") > 0) {
					versionRevision = versionRevision.substring(0, versionRevision.indexOf("d"));
				}
			}
			var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
		}
	}
	// MSN/WebTV 2.6 supports Flash 4
	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
	// WebTV 2.5 supports Flash 3
	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
	// older WebTV supports Flash 2
	else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
	else if ( isIE && isWin && !isOpera ) {
		flashVer = ControlVersion();
	}	
	return flashVer;
}

// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)
{
	versionStr = GetSwfVer();
	if (versionStr == -1 ) {
		return false;
	} else if (versionStr != 0) {
		if(isIE && isWin && !isOpera) {
			// Given "WIN 2,0,0,11"
			tempArray         = versionStr.split(" "); 	// ["WIN", "2,0,0,11"]
			tempString        = tempArray[1];			// "2,0,0,11"
			versionArray      = tempString.split(",");	// ['2', '0', '0', '11']
		} else {
			versionArray      = versionStr.split(".");
		}
		var versionMajor      = versionArray[0];
		var versionMinor      = versionArray[1];
		var versionRevision   = versionArray[2];

        	// is the major.revision >= requested major.revision AND the minor version >= requested minor
		if (versionMajor > parseFloat(reqMajorVer)) {
			return true;
		} else if (versionMajor == parseFloat(reqMajorVer)) {
			if (versionMinor > parseFloat(reqMinorVer))
				return true;
			else if (versionMinor == parseFloat(reqMinorVer)) {
				if (versionRevision >= parseFloat(reqRevision))
					return true;
			}
		}
		return false;
	}
}

function AC_AddExtension(src, ext)
{
  if (src.indexOf('?') != -1)
    return src.replace(/\?/, ext+'?'); 
  else
    return src + ext;
}

function AC_Generateobj(objAttrs, params, embedAttrs) 
{ 
  var str = '';
  if (isIE && isWin && !isOpera)
  {
    str += '<object ';
    for (var i in objAttrs)
    {
      str += i + '="' + objAttrs[i] + '" ';
    }
    str += '>';
    for (var i in params)
    {
      str += '<param name="' + i + '" value="' + params[i] + '" /> ';
    }
    str += '</object>';
  }
  else
  {
    str += '<embed ';
    for (var i in embedAttrs)
    {
      str += i + '="' + embedAttrs[i] + '" ';
    }
    str += '> </embed>';
  }

  document.write(str);
}

function AC_FL_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
     , "application/x-shockwave-flash"
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_SW_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
     , null
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
  var ret = new Object();
  ret.embedAttrs = new Object();
  ret.params = new Object();
  ret.objAttrs = new Object();
  for (var i=0; i < args.length; i=i+2){
    var currArg = args[i].toLowerCase();    

    switch (currArg){	
      case "classid":
        break;
      case "pluginspage":
        ret.embedAttrs[args[i]] = args[i+1];
        break;
      case "src":
      case "movie":	
        args[i+1] = AC_AddExtension(args[i+1], ext);
        ret.embedAttrs["src"] = args[i+1];
        ret.params[srcParamName] = args[i+1];
        break;
      case "onafterupdate":
      case "onbeforeupdate":
      case "onblur":
      case "oncellchange":
      case "onclick":
      case "ondblClick":
      case "ondrag":
      case "ondragend":
      case "ondragenter":
      case "ondragleave":
      case "ondragover":
      case "ondrop":
      case "onfinish":
      case "onfocus":
      case "onhelp":
      case "onmousedown":
      case "onmouseup":
      case "onmouseover":
      case "onmousemove":
      case "onmouseout":
      case "onkeypress":
      case "onkeydown":
      case "onkeyup":
      case "onload":
      case "onlosecapture":
      case "onpropertychange":
      case "onreadystatechange":
      case "onrowsdelete":
      case "onrowenter":
      case "onrowexit":
      case "onrowsinserted":
      case "onstart":
      case "onscroll":
      case "onbeforeeditfocus":
      case "onactivate":
      case "onbeforedeactivate":
      case "ondeactivate":
      case "type":
      case "codebase":
      case "id":
        ret.objAttrs[args[i]] = args[i+1];
        break;
      case "width":
      case "height":
      case "align":
      case "vspace": 
      case "hspace":
      case "class":
      case "title":
      case "accesskey":
      case "name":
      case "tabindex":
        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
        break;
      default:
        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
    }
  }
  ret.objAttrs["classid"] = classid;
  if (mimeType) ret.embedAttrs["type"] = mimeType;
  return ret;
}

function featuresMenu()
{
	document.writeln(" <div id=\"leftContent\">"); 
	document.writeln("   "); 
	document.writeln("   <br />"); 
	document.writeln("   <div id=\"cfMenu\"><a href=\"features.htm\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('cfmenu','','images/features/communitybtn_over.png',1)\"><img src=\"images/features/communitybtn.png\" name=\"cfmenu\" width=\"226\" height=\"28\" border=\"0\" id=\"cfmenu\" /></a></div> "); 
	document.writeln("   <br />"); 
	document.writeln(" <div  id=\"afMenu\"><a href=\"area.htm\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('areaMenu','','images/features/areabtn_over.png',1)\"><img src=\"images/features/areabtn.png\" name=\"areaMenu\" width=\"226\" height=\"28\" border=\"0\" id=\"areaMenu\" /></a></div>"); 
	document.writeln(" <br /> "); 
	document.writeln(" <div  id=\"condoMenu\" ><a href=\"condo.htm\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('condoMenu','','images/features/condobtn_over.png',1)\"><img src=\"images/features/condobtn.png\" name=\"condoMenu\" width=\"226\" height=\"28\" border=\"0\" id=\"condoMenu2\" /></a></div> "); 
	document.writeln(" <br /> "); 
	document.writeln(" <div  id=\"chattanoogaMenu\" ><a href=\"chattanooga.htm\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('chattanoogaMenu','','images/features/chattanoogabtn_over.png',1)\"><img src=\"images/features/chattanoogabtn.png\" name=\"chattanoogaMenu\" width=\"226\" height=\"28\" border=\"0\" id=\"chattanoogaMenu\" /></a></div> "); 
	document.writeln(" </div> ");
}






-->
