// flash embed

function create(FO) {
	document.write ('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="'
					+ FO.width + '" height="' + FO.height + '" wmode="transparent">'+'<PARAM NAME=movie VALUE="' + FO.movie + '">'+
					'<PARAM NAME="quality" value="high"><param name="wmode" value="transparent">'+'<EMBED src="' + FO.movie + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'
					+ FO.width +'" height="' + FO.height + '" swliveconnect="true" wmode="transparent">'+'</embed></object>');
};

//stand js fun

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_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_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 currentdate() {
	var d=new Date()
	var year=d.getFullYear()
	document.write(year)
}

function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function openLightWindow(myURL,myTitle,myWidth,myHeight) {    
	myLightWindow.activateWindow({href:myURL}); 
} 

function setbg(id, color) {
	document.getElementById(id).style.background=color;
}

function submitform() {
	//return validateValues(document.myForm)
	//document.forms["myForm"].submit();
	document.contactus.submit();
}

function onprodClear() {
	if (document.getElementById("saddr").value == "Enter Starting Address") {
		document.getElementById("saddr").value = "";
	} else if (document.getElementById("saddr").value == "") {
		document.getElementById("saddr").value = "Enter Starting Address";
	}
};

function disclaimer () {
	alert("Square footages and apartment features shown are approximate and may vary.");
}


function renderingswap ( image ) {
	switch ( image ) {
		case "12a1":
		document.getElementById( 'rendering' ).innerHTML = '<img id="rendering" name="rendering" src="/images/scatp-seacountrycottages-rendering-12a-1.jpg" width="650" height="300" border="0" alt="12-Plex A" />';
		document.getElementById( 'renderingnav' ).innerHTML = '<li id="current"><a href="javascript:renderingswap( \'12a1\' );">12-Plex A</a></li><li><a href="javascript:renderingswap ( \'12a2\' );">12-Plex A</a></li><li><a href="javascript:renderingswap( \'12b1\' );">12-Plex B</a></li><li><a href="javascript:renderingswap ( \'12b2\' );">12-Plex B</a></li>';
		document.getElementById( 'renderingtitle' ).innerHTML = '<h1>12-Plex A</h1>';
		break;
		case "12a2":
		document.getElementById( 'rendering' ).innerHTML = '<img id="rendering" name="rendering" src="/images/scatp-seacountrycottages-rendering-12a-2.jpg" width="650" height="300" border="0" alt="12-Plex A" />';
		document.getElementById( 'renderingnav' ).innerHTML = '<li><a href="javascript:renderingswap( \'12a1\' );">12-Plex A</a></li><li id="current"><a href="javascript:renderingswap ( \'12a2\' );">12-Plex A</a></li><li><a href="javascript:renderingswap( \'12b1\' );">12-Plex B</a></li>	<li><a href="javascript:renderingswap ( \'12b2\' );">12-Plex B</a></li>';
		document.getElementById( 'renderingtitle' ).innerHTML = '<h1>12-Plex A</h1>';
		break;
		case "12b1":
		document.getElementById( 'rendering' ).innerHTML = '<img id="rendering" name="rendering" src="/images/scatp-seacountrycottages-rendering-12b-1.jpg" width="650" height="300" border="0" alt="12-Plex B" />';
		document.getElementById( 'renderingnav' ).innerHTML = '<li><a href="javascript:renderingswap( \'12a1\' );">12-Plex A</a></li><li><a href="javascript:renderingswap ( \'12a2\' );">12-Plex A</a></li><li id="current"><a href="javascript:renderingswap( \'12b1\' );">12-Plex B</a></li>	<li><a href="javascript:renderingswap ( \'12b2\' );">12-Plex B</a></li>';
		document.getElementById( 'renderingtitle' ).innerHTML = '<h1>12-Plex B</h1>';
		break;
		case "12b2":
		document.getElementById( 'rendering' ).innerHTML = '<img id="rendering" name="rendering" src="/images/scatp-seacountrycottages-rendering-12b-2.jpg" width="650" height="300" border="0" alt="12-Plex B" />';
		document.getElementById( 'renderingnav' ).innerHTML = '<li><a href="javascript:renderingswap( \'12a1\' );">12-Plex A</a></li><li><a href="javascript:renderingswap ( \'12a2\' );">12-Plex A</a></li><li><a href="javascript:renderingswap( \'12b1\' );">12-Plex B</a></li><li id="current"><a href="javascript:renderingswap ( \'12b2\' );">12-Plex B</a></li>';
		document.getElementById( 'renderingtitle' ).innerHTML = '<h1>12-Plex B</h1>';
		break;
	}
}


/******************************************************** 

PRESERVE

******************************************************** */


function renderingswapfp ( image ) {
	switch ( image ) {
		case "1a":
		document.getElementById( 'rendering' ).innerHTML = '<img src="/images/scatp-seacountryestates-floorplans-' + image + '.jpg" width="360" height="240" border="0" alt="Residence 1A" />';
		document.getElementById( 'fprenderingboxtitle' ).innerHTML = '1A Spanish';
		document.getElementById( '1a' ).innerHTML = '<div class="fprenderingboxselectbtn_on"><a href="javascript:renderingswapfp ( \'1a\' )">1A</a></div>';
		document.getElementById( '1b' ).innerHTML = '<div class="fprenderingboxselectbtn_off"><a href="javascript:renderingswapfp ( \'1b\' )">1B</a></div>';
		break;
		case "1b":
		document.getElementById( 'rendering' ).innerHTML = '<img src="/images/scatp-seacountryestates-floorplans-' + image + '.jpg" width="360" height="240" border="0" alt="Residence 1B" />';
		document.getElementById( 'fprenderingboxtitle' ).innerHTML = '1B English Cottage';
		document.getElementById( '1a' ).innerHTML = '<div class="fprenderingboxselectbtn_off"><a href="javascript:renderingswapfp ( \'1a\' )">1A</a></div>';
		document.getElementById( '1b' ).innerHTML = '<div class="fprenderingboxselectbtn_on"><a href="javascript:renderingswapfp ( \'1b\' )">1B</a></div>';
		break;
		case "2a":
		document.getElementById( 'rendering' ).innerHTML = '<img src="/images/scatp-seacountryestates-floorplans-' + image + '.jpg" width="360" height="240" border="0" alt="Residence 2A" />';
		document.getElementById( 'fprenderingboxtitle' ).innerHTML = '2A Monterey';
		document.getElementById( '2a' ).innerHTML = '<div class="fprenderingboxselectbtn_on"><a href="javascript:renderingswapfp ( \'2a\' )">2A</a></div>';
		document.getElementById( '2b' ).innerHTML = '<div class="fprenderingboxselectbtn_off"><a href="javascript:renderingswapfp ( \'2b\' )">2B</a></div>';
		document.getElementById( '2c' ).innerHTML = '<div class="fprenderingboxselectbtn_off"><a href="javascript:renderingswapfp ( \'2c\' )">2C</a></div>';
		break;
		case "2b":
		document.getElementById( 'rendering' ).innerHTML = '<img src="/images/scatp-seacountryestates-floorplans-' + image + '.jpg" width="360" height="240" border="0" alt="Residence 2B" />';
		document.getElementById( 'fprenderingboxtitle' ).innerHTML = '2B English Cottage';
		document.getElementById( '2a' ).innerHTML = '<div class="fprenderingboxselectbtn_off"><a href="javascript:renderingswapfp ( \'2a\' )">2A</a></div>';
		document.getElementById( '2b' ).innerHTML = '<div class="fprenderingboxselectbtn_on"><a href="javascript:renderingswapfp ( \'2b\' )">2B</a></div>';
		document.getElementById( '2c' ).innerHTML = '<div class="fprenderingboxselectbtn_off"><a href="javascript:renderingswapfp ( \'2c\' )">2C</a></div>';
		break;
		case "2c":
		document.getElementById( 'rendering' ).innerHTML = '<img src="/images/scatp-seacountryestates-floorplans-' + image + '.jpg" width="360" height="240" border="0" alt="Residence 2C" />';
		document.getElementById( 'fprenderingboxtitle' ).innerHTML = '2C Craftsman';
		document.getElementById( '2a' ).innerHTML = '<div class="fprenderingboxselectbtn_off"><a href="javascript:renderingswapfp ( \'2a\' )">2A</a></div>';
		document.getElementById( '2b' ).innerHTML = '<div class="fprenderingboxselectbtn_off"><a href="javascript:renderingswapfp ( \'2b\' )">2B</a></div>';
		document.getElementById( '2c' ).innerHTML = '<div class="fprenderingboxselectbtn_on"><a href="javascript:renderingswapfp ( \'2c\' )">2C</a></div>';
		break;
		case "3a":
		document.getElementById( 'rendering' ).innerHTML = '<img src="/images/scatp-seacountryestates-floorplans-' + image + '.jpg" width="360" height="240" border="0" alt="Residence 3A" />';
		document.getElementById( 'fprenderingboxtitle' ).innerHTML = '3A Monterey';
		document.getElementById( '3a' ).innerHTML = '<div class="fprenderingboxselectbtn_on"><a href="javascript:renderingswapfp ( \'3a\' )">3A</a></div>';
		document.getElementById( '3b' ).innerHTML = '<div class="fprenderingboxselectbtn_off"><a href="javascript:renderingswapfp ( \'3b\' )">3B</a></div>';
		document.getElementById( '3c' ).innerHTML = '<div class="fprenderingboxselectbtn_off"><a href="javascript:renderingswapfp ( \'3c\' )">3C</a></div>';
		break;
		case "3b":
		document.getElementById( 'rendering' ).innerHTML = '<img src="/images/scatp-seacountryestates-floorplans-' + image + '.jpg" width="360" height="240" border="0" alt="Residence 3B" />';
		document.getElementById( 'fprenderingboxtitle' ).innerHTML = '3B English Cottage';
		document.getElementById( '3a' ).innerHTML = '<div class="fprenderingboxselectbtn_off"><a href="javascript:renderingswapfp ( \'3a\' )">3A</a></div>';
		document.getElementById( '3b' ).innerHTML = '<div class="fprenderingboxselectbtn_on"><a href="javascript:renderingswapfp ( \'3b\' )">3B</a></div>';
		document.getElementById( '3c' ).innerHTML = '<div class="fprenderingboxselectbtn_off"><a href="javascript:renderingswapfp ( \'3c\' )">3C</a></div>';
		break;
		case "3c":
		document.getElementById( 'rendering' ).innerHTML = '<img src="/images/scatp-seacountryestates-floorplans-' + image + '.jpg" width="360" height="240" border="0" alt="Residence 3C" />';
		document.getElementById( 'fprenderingboxtitle' ).innerHTML = '3C Craftsman';
		document.getElementById( '3a' ).innerHTML = '<div class="fprenderingboxselectbtn_off"><a href="javascript:renderingswapfp ( \'3a\' )">3A</a></div>';
		document.getElementById( '3b' ).innerHTML = '<div class="fprenderingboxselectbtn_off"><a href="javascript:renderingswapfp ( \'3b\' )">3B</a></div>';
		document.getElementById( '3c' ).innerHTML = '<div class="fprenderingboxselectbtn_on"><a href="javascript:renderingswapfp ( \'3c\' )">3C</a></div>';
		break;
	}
}

function renderingswapfp2 ( image ) {
	switch ( image ) {
		case "2a-1":
		document.getElementById( 'fpart1floor' ).innerHTML = '<a href="#?w=500" rel="popup1" class="poplight vrPoint" style="left: 498px; top: 775px;"><img src="/images/vr.png" width="36" height="36"/></a><a href="#?w=500" rel="popup2" class="poplight vrPoint" style="left: 510px; top: 950px;"><img src="/images/vr.png" width="36" height="36"/></a><img src="/images/scatp-seacountryestates-floorplans-' + image + '.gif" width="655" height="639" border="0" alt="Residence Two" />';
		document.getElementById( 'first' ).innerHTML = '<div class="fprenderingboxselectfloorbtn_on"><a href="javascript:renderingswapfp2 ( \'2a-1\' )">First</a></div>';
		document.getElementById( 'second' ).innerHTML = '<div class="fprenderingboxselectfloorbtn_off"><a href="javascript:renderingswapfp2 ( \'2a-2\' )">Second</a></div>';
		secondLoad();
		break;
		case "2a-2":
		document.getElementById( 'fpart1floor' ).innerHTML = '<img src="/images/scatp-seacountryestates-floorplans-' + image + '.gif" width="655" height="639" border="0" alt="Residence Two" />';
		document.getElementById( 'first' ).innerHTML = '<div class="fprenderingboxselectfloorbtn_off"><a href="javascript:renderingswapfp2 ( \'2a-1\' )">First</a></div>';
		document.getElementById( 'second' ).innerHTML = '<div class="fprenderingboxselectfloorbtn_on"><a href="javascript:renderingswapfp2 ( \'2a-2\' )">Second</a></div>';
		break;
		
		case "3a-1":
		document.getElementById( 'fpart1floor' ).innerHTML = '<a href="#?w=500" rel="popup1" class="poplight vrPoint" style="left: 400px; top: 700px;"><img src="/images/vr.png" width="36" height="36"/></a><img src="/images/scatp-seacountryestates-floorplans-' + image + '.gif" width="614" height="715" border="0" alt="Residence Three" />';
		document.getElementById( 'first' ).innerHTML = '<div class="fprenderingboxselectfloorbtn_on"><a href="javascript:renderingswapfp2 ( \'3a-1\' )">First</a></div>';
		document.getElementById( 'second' ).innerHTML = '<div class="fprenderingboxselectfloorbtn_off"><a href="javascript:renderingswapfp2 ( \'3a-2\' )">Second</a></div>';
		secondLoad();
		break;
		case "3a-2":
		document.getElementById( 'fpart1floor' ).innerHTML = '<a href="#?w=500" rel="popup2" class="poplight vrPoint" style="left: 390px; top: 975px;"><img src="/images/vr.png" width="36" height="36"/></a><a href="#?w=500" rel="popup3" class="poplight vrPoint" style="left: 385px; top: 697px;"><img src="/images/vr.png" width="36" height="36"/></a><img src="/images/scatp-seacountryestates-floorplans-' + image + '.gif" width="614" height="715" border="0" alt="Residence Three" />';
		document.getElementById( 'first' ).innerHTML = '<div class="fprenderingboxselectfloorbtn_off"><a href="javascript:renderingswapfp2 ( \'3a-1\' )">First</a></div>';
		document.getElementById( 'second' ).innerHTML = '<div class="fprenderingboxselectfloorbtn_on"><a href="javascript:renderingswapfp2 ( \'3a-2\' )">Second</a></div>';
		secondLoad();
		break;
	}
}

/******************************************************** 

ARROWOOD

******************************************************** */

function renderingswapfp_arrowood ( image ) {
	switch ( image ) {
		case "1a":
		document.getElementById( 'rendering' ).innerHTML = '<img src="/images/scaa-floorplans-' + image + '.jpg" width="360" height="240" border="0" alt="Residence 1A" />';
		document.getElementById( 'fprenderingboxtitle' ).innerHTML = '1A Monterey';
		document.getElementById( '1a' ).innerHTML = '<div class="fprenderingboxselectbtn_on"><a href="javascript:renderingswapfp_arrowood ( \'1a\' )">1A</a></div>';
		document.getElementById( '1b' ).innerHTML = '<div class="fprenderingboxselectbtn_off"><a href="javascript:renderingswapfp_arrowood ( \'1b\' )">1B</a></div>';
		document.getElementById( '1c' ).innerHTML = '<div class="fprenderingboxselectbtn_off"><a href="javascript:renderingswapfp_arrowood ( \'1c\' )">1C</a></div>';
		break;
		case "1b":
		document.getElementById( 'rendering' ).innerHTML = '<img src="/images/scaa-floorplans-' + image + '.jpg" width="360" height="240" border="0" alt="Residence 1B" />';
		document.getElementById( 'fprenderingboxtitle' ).innerHTML = '1B Spanish Colonial';
		document.getElementById( '1a' ).innerHTML = '<div class="fprenderingboxselectbtn_off"><a href="javascript:renderingswapfp_arrowood ( \'1a\' )">1A</a></div>';
		document.getElementById( '1b' ).innerHTML = '<div class="fprenderingboxselectbtn_on"><a href="javascript:renderingswapfp_arrowood ( \'1b\' )">1B</a></div>';
		document.getElementById( '1c' ).innerHTML = '<div class="fprenderingboxselectbtn_off"><a href="javascript:renderingswapfp_arrowood ( \'1c\' )">1C</a></div>';
		break;
		case "1c":
		document.getElementById( 'rendering' ).innerHTML = '<img src="/images/scaa-floorplans-' + image + '.jpg" width="360" height="240" border="0" alt="Residence 1C" />';
		document.getElementById( 'fprenderingboxtitle' ).innerHTML = '1C Tuscany';
		document.getElementById( '1a' ).innerHTML = '<div class="fprenderingboxselectbtn_off"><a href="javascript:renderingswapfp_arrowood ( \'1a\' )">1A</a></div>';
		document.getElementById( '1b' ).innerHTML = '<div class="fprenderingboxselectbtn_off"><a href="javascript:renderingswapfp_arrowood ( \'1b\' )">1B</a></div>';
		document.getElementById( '1c' ).innerHTML = '<div class="fprenderingboxselectbtn_on"><a href="javascript:renderingswapfp_arrowood ( \'1c\' )">1C</a></div>';
		break;
		case "2a":
		document.getElementById( 'rendering' ).innerHTML = '<img src="/images/scaa-floorplans-' + image + '.jpg" width="360" height="240" border="0" alt="Residence 2A" />';
		document.getElementById( 'fprenderingboxtitle' ).innerHTML = '2A Monterey';
		document.getElementById( '2a' ).innerHTML = '<div class="fprenderingboxselectbtn_on"><a href="javascript:renderingswapfp_arrowood ( \'2a\' )">2A</a></div>';
		document.getElementById( '2b' ).innerHTML = '<div class="fprenderingboxselectbtn_off"><a href="javascript:renderingswapfp_arrowood ( \'2b\' )">2B</a></div>';
		document.getElementById( '2c' ).innerHTML = '<div class="fprenderingboxselectbtn_off"><a href="javascript:renderingswapfp_arrowood ( \'2c\' )">2C</a></div>';
		break;
		case "2b":
		document.getElementById( 'rendering' ).innerHTML = '<img src="/images/scaa-floorplans-' + image + '.jpg" width="360" height="240" border="0" alt="Residence 2B" />';
		document.getElementById( 'fprenderingboxtitle' ).innerHTML = '2B Spanish Colonial';
		document.getElementById( '2a' ).innerHTML = '<div class="fprenderingboxselectbtn_off"><a href="javascript:renderingswapfp_arrowood ( \'2a\' )">2A</a></div>';
		document.getElementById( '2b' ).innerHTML = '<div class="fprenderingboxselectbtn_on"><a href="javascript:renderingswapfp_arrowood ( \'2b\' )">2B</a></div>';
		document.getElementById( '2c' ).innerHTML = '<div class="fprenderingboxselectbtn_off"><a href="javascript:renderingswapfp_arrowood ( \'2c\' )">2C</a></div>';
		break;
		case "2c":
		document.getElementById( 'rendering' ).innerHTML = '<img src="/images/scaa-floorplans-' + image + '.jpg" width="360" height="240" border="0" alt="Residence 2C" />';
		document.getElementById( 'fprenderingboxtitle' ).innerHTML = '2C Tuscany';
		document.getElementById( '2a' ).innerHTML = '<div class="fprenderingboxselectbtn_off"><a href="javascript:renderingswapfp_arrowood ( \'2a\' )">2A</a></div>';
		document.getElementById( '2b' ).innerHTML = '<div class="fprenderingboxselectbtn_off"><a href="javascript:renderingswapfp_arrowood ( \'2b\' )">2B</a></div>';
		document.getElementById( '2c' ).innerHTML = '<div class="fprenderingboxselectbtn_on"><a href="javascript:renderingswapfp_arrowood ( \'2c\' )">2C</a></div>';
		break;
		case "3a":
		document.getElementById( 'rendering' ).innerHTML = '<img src="/images/scaa-floorplans-' + image + '.jpg" width="360" height="240" border="0" alt="Residence 3A" />';
		document.getElementById( 'fprenderingboxtitle' ).innerHTML = '3A Monterey';
		document.getElementById( '3a' ).innerHTML = '<div class="fprenderingboxselectbtn_on"><a href="javascript:renderingswapfp_arrowood ( \'3a\' )">3A</a></div>';
		document.getElementById( '3b' ).innerHTML = '<div class="fprenderingboxselectbtn_off"><a href="javascript:renderingswapfp_arrowood ( \'3b\' )">3B</a></div>';
		document.getElementById( '3c' ).innerHTML = '<div class="fprenderingboxselectbtn_off"><a href="javascript:renderingswapfp_arrowood ( \'3c\' )">3C</a></div>';
		break;
		case "3b":
		document.getElementById( 'rendering' ).innerHTML = '<img src="/images/scaa-floorplans-' + image + '.jpg" width="360" height="240" border="0" alt="Residence 3B" />';
		document.getElementById( 'fprenderingboxtitle' ).innerHTML = '3B Spanish Colonial';
		document.getElementById( '3a' ).innerHTML = '<div class="fprenderingboxselectbtn_off"><a href="javascript:renderingswapfp_arrowood ( \'3a\' )">3A</a></div>';
		document.getElementById( '3b' ).innerHTML = '<div class="fprenderingboxselectbtn_on"><a href="javascript:renderingswapfp_arrowood ( \'3b\' )">3B</a></div>';
		document.getElementById( '3c' ).innerHTML = '<div class="fprenderingboxselectbtn_off"><a href="javascript:renderingswapfp_arrowood ( \'3c\' )">3C</a></div>';
		break;
		case "3c":
		document.getElementById( 'rendering' ).innerHTML = '<img src="/images/scaa-floorplans-' + image + '.jpg" width="360" height="240" border="0" alt="Residence 3C" />';
		document.getElementById( 'fprenderingboxtitle' ).innerHTML = '3C Tuscany';
		document.getElementById( '3a' ).innerHTML = '<div class="fprenderingboxselectbtn_off"><a href="javascript:renderingswapfp_arrowood ( \'3a\' )">3A</a></div>';
		document.getElementById( '3b' ).innerHTML = '<div class="fprenderingboxselectbtn_off"><a href="javascript:renderingswapfp_arrowood ( \'3b\' )">3B</a></div>';
		document.getElementById( '3c' ).innerHTML = '<div class="fprenderingboxselectbtn_on"><a href="javascript:renderingswapfp_arrowood ( \'3c\' )">3C</a></div>';
		break;
	}
}

function renderingswapfp2_arrowood ( image ) {
	switch ( image ) {
		case "1a-1":
		document.getElementById( 'fpart1floor' ).innerHTML = '<a href="#?w=500" rel="popup1" class="poplight vrPoint" style="left: 350px; top: 650px;"><img src="/images/vr.png" width="36" height="36"/></a><a href="#?w=500" rel="popup2" class="poplight vrPoint" style="left: 350px; top: 780px;"><img src="/images/vr.png" width="36" height="36"/></a><a href="#?w=500" rel="popup3" class="poplight vrPoint" style="left: 483px; top: 605px;"><img src="/images/vr.png" width="36" height="36"/></a><img src="/images/scaa-floorplans-' + image + '.gif" width="507" height="667" border="0" alt="Residence One" />';
		document.getElementById( 'first' ).innerHTML = '<div class="fprenderingboxselectfloorbtn_on"><a href="javascript:renderingswapfp2_arrowood ( \'1a-1\' )">First</a></div>';
		document.getElementById( 'second' ).innerHTML = '<div class="fprenderingboxselectfloorbtn_off"><a href="javascript:renderingswapfp2_arrowood ( \'1a-2\' )">Second</a></div>';
		secondLoad();
		break;
		
		case "1a-2":
		document.getElementById( 'fpart1floor' ).innerHTML = '<a href="#?w=500" rel="popup4" class="poplight vrPoint" style="left: 395px; top: 765px;"><img src="/images/vr.png" width="36" height="36"/></a><a href="#?w=500" rel="popup5" class="poplight vrPoint" style="left: 385px; top: 1025px;"><img src="/images/vr.png" width="36" height="36"/></a><a href="#?w=500" rel="popup6" class="poplight vrPoint" style="left: 460px; top: 715px;"><img src="/images/vr.png" width="36" height="36"/></a><a href="#?w=500" rel="popup7" class="poplight vrPoint" style="left: 460px; top: 922px;"><img src="/images/vr.png" width="36" height="36"/></a><img src="/images/scaa-floorplans-' + image + '.gif" width="507" height="667" border="0" alt="Residence One" />';
		document.getElementById( 'first' ).innerHTML = '<div class="fprenderingboxselectfloorbtn_off"><a href="javascript:renderingswapfp2_arrowood ( \'1a-1\' )">First</a></div>';
		document.getElementById( 'second' ).innerHTML = '<div class="fprenderingboxselectfloorbtn_on"><a href="javascript:renderingswapfp2_arrowood ( \'1a-2\' )">Second</a></div>';
		secondLoad();
		break;
		
		case "2a-1":
		document.getElementById( 'fpart1floor' ).innerHTML = '<a href="#?w=500" rel="popup1" class="poplight vrPoint" style="left: 362px; top: 822px;"><img src="/images/vr.png" width="36" height="36"/></a><a href="#?w=500" rel="popup2" class="poplight vrPoint" style="left: 362px; top: 700px;"><img src="/images/vr.png" width="36" height="36"/></a><a href="#?w=500" rel="popup3" class="poplight vrPoint" style="left: 377px; top: 600px;"><img src="/images/vr.png" width="36" height="36"/></a><a href="#?w=500" rel="popup4" class="poplight vrPoint" style="left: 440px; top: 600px;"><img src="/images/vr.png" width="36" height="36"/></a><a href="#?w=500" rel="popup5" class="poplight vrPoint" style="left: 495px; top: 649px;"><img src="/images/vr.png" width="36" height="36"/></a><img src="/images/scaa-floorplans-' + image + '.gif" width="484" height="678" border="0" alt="Residence Two" />';
		document.getElementById( 'first' ).innerHTML = '<div class="fprenderingboxselectfloorbtn_on"><a href="javascript:renderingswapfp2_arrowood ( \'2a-1\' )">First</a></div>';
		document.getElementById( 'second' ).innerHTML = '<div class="fprenderingboxselectfloorbtn_off"><a href="javascript:renderingswapfp2_arrowood ( \'2a-2\' )">Second</a></div>';
		secondLoad();
		break;
		
		case "2a-2":
		document.getElementById( 'fpart1floor' ).innerHTML = '<a href="#?w=500" rel="popup6" class="poplight vrPoint" style="left: 377px; top: 822px;"><img src="/images/vr.png" width="36" height="36"/></a><a href="#?w=500" rel="popup7" class="poplight vrPoint" style="left: 345px; top: 677px;"><img src="/images/vr.png" width="36" height="36"/></a><a href="#?w=500" rel="popup8" class="poplight vrPoint" style="left: 420px; top: 576px;"><img src="/images/vr.png" width="36" height="36"/></a><a href="#?w=500" rel="popup9" class="poplight vrPoint" style="left: 500px; top: 620px;"><img src="/images/vr.png" width="36" height="36"/></a><a href="#?w=500" rel="popup10" class="poplight vrPoint" style="left: 449px; top: 1062px;"><img src="/images/vr.png" width="36" height="36"/></a><a href="#?w=500" rel="popup11" class="poplight vrPoint" style="left: 337px; top: 928px;"><img src="/images/vr.png" width="36" height="36"/></a><a href="#?w=500" rel="popup12" class="poplight vrPoint" style="left: 500px; top: 878px;"><img src="/images/vr.png" width="36" height="36"/></a><img src="/images/scaa-floorplans-' + image + '.gif" width="484" height="678" border="0" alt="Residence Two" />';
		document.getElementById( 'first' ).innerHTML = '<div class="fprenderingboxselectfloorbtn_off"><a href="javascript:renderingswapfp2_arrowood ( \'2a-1\' )">First</a></div>';
		document.getElementById( 'second' ).innerHTML = '<div class="fprenderingboxselectfloorbtn_on"><a href="javascript:renderingswapfp2_arrowood ( \'2a-2\' )">Second</a></div>';
		secondLoad();
		break;
		
		case "3a-1":
		document.getElementById( 'fpart1floor' ).innerHTML = '<a href="#?w=500" rel="popup6" class="poplight vrPoint" style="left: 215px; top: 730px;"><img src="/images/vr.png" width="36" height="36"/></a><a href="#?w=500" rel="popup7" class="poplight vrPoint" style="left: 260px; top: 605px;"><img src="/images/vr.png" width="36" height="36"/></a><img src="/images/scaa-floorplans-' + image + '.gif" width="558" height="696" border="0" alt="Residence Three" />';
		document.getElementById( 'first' ).innerHTML = '<div class="fprenderingboxselectfloorbtn_on"><a href="javascript:renderingswapfp2_arrowood ( \'3a-1\' )">First</a></div>';
		document.getElementById( 'second' ).innerHTML = '<div class="fprenderingboxselectfloorbtn_off"><a href="javascript:renderingswapfp2_arrowood ( \'3a-2\' )">Second</a></div>';
		secondLoad();
		break;
		case "3a-2":
		document.getElementById( 'fpart1floor' ).innerHTML = '<a href="#?w=500" rel="popup1" class="poplight vrPoint" style="left: 225px; top: 605px;"><img src="/images/vr.png" width="36" height="36"/></a><a href="#?w=500" rel="popup2" class="poplight vrPoint" style="left: 287px; top: 575px;"><img src="/images/vr.png" width="36" height="36"/></a><a href="#?w=500" rel="popup3" class="poplight vrPoint" style="left: 160px; top: 760px;"><img src="/images/vr.png" width="36" height="36"/></a><a href="#?w=500" rel="popup4" class="poplight vrPoint" style="left: 325px; top: 805px;"><img src="/images/vr.png" width="36" height="36"/></a><a href="#?w=500" rel="popup5" class="poplight vrPoint" style="left: 177px; top: 1003px;"><img src="/images/vr.png" width="36" height="36"/></a><img src="/images/scaa-floorplans-' + image + '.gif" width="558" height="696" border="0" alt="Residence Three" />';
		document.getElementById( 'first' ).innerHTML = '<div class="fprenderingboxselectfloorbtn_off"><a href="javascript:renderingswapfp2_arrowood ( \'3a-1\' )">First</a></div>';
		document.getElementById( 'second' ).innerHTML = '<div class="fprenderingboxselectfloorbtn_on"><a href="javascript:renderingswapfp2_arrowood ( \'3a-2\' )">Second</a></div>';
		secondLoad();
		break;
	}
}

function pcswap ( content ) {
	document.getElementById( 'contentright_paddedcontainer' ).innerHTML = content;
}


/* cycle added by russ */

$('#headermain').cycle({ 
    fx:     'fade', 
    speed:  2000, 
    timeout: 5000
});

/* contact form */

function MM_validateForm() { //v4.0
    
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  
  //email confirmation
  if (document.contactForm.communitySet.value == "No") {
				errors+='- Please select a community.\n';
	}
  
  //normal macromedia form validation
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { fn=val.alt; nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+fn+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');

}

function changeComm() {
	document.contactForm.communitySet.value = "Yes";
}
