<?php header('Content-type: text/html; charset=utf-8'); ?><?php  /* STEP 1: LOAD RECORDS - Copy this PHP code block near the TOP of your page */  // load viewer library  $libraryPath = 'cmsAdmin/lib/viewer_functions.php';  $dirsToCheck = array('/usr/home/klemmr/www/htdocs/','','../','../../','../../../');  foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}  if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in sourcecode."); }  // load records  list($land_listingsRecords, $land_listingsMetaData) = getRecords(array(    'tableName'   => 'land_listings',    'where'       => whereRecordNumberInUrl(1),    'limit'       => '1',  ));  $land_listingsRecord = @$land_listingsRecords[0]; // get first record  // show error message if no matching record is found  if (!$land_listingsRecord) {    header("HTTP/1.0 404 Not Found");    print "Sorry, record not found!";    exit;  }     list($agentsRecords, $agentsMetaData) = getRecords(array(    'tableName'   => 'agents',    'where'       => whereRecordNumberInUrl(1),    'limit'       => '1',  ));  $agentsRecord = @$agentsRecords[0]; // get first record  // show error message if no matching record is found  if (!$agentsRecord) {    header("HTTP/1.0 404 Not Found");    print "Record not found!";    exit;  }     list($page_headerRecords, $page_headerMetaData) = getRecords(array(    'tableName'   => 'page_header',  ));  $page_headerRecord = @$page_headerRecords[0]; // get first record  // show error message if no matching record is found  if (!$page_headerRecord) {    print "Record not found!";    exit;  }     list($footer_linksRecords, $footer_linksMetaData) = getRecords(array(    'tableName'   => 'footer_links',    'limit'       => '1',  ));  $footer_linksRecord = @$footer_linksRecords[0]; // get first record  // show error message if no matching record is found  if (!$footer_linksRecord) {    header("HTTP/1.0 404 Not Found");    print "Record not found!";    exit;  }?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head>  <title>Klemm Real Estate - Fine Properties - Litchfield County, CT</title>  <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />    <meta name="description" content=" Klemm Real Estate, Washington Depot,Connecticut.  Litchfield County's Premier broker of luxury properties. Serving all 26 towns and villages in Litchfield County, CT." /><meta name="keywords" content=" Klemm Real Estate,Country Properties,Farm,Farmhouse,Land for Sale,Connecticut,Connecticut Real Estate,Country Rentals,Horse Properties, Estates,Litchfield,Litchfield County,Tanglewood,Prep Schools,Washington,Lakeville,Clemm,Clem,Klem,Sharon,Kent,CT,luxury real estate,lake properties,lake rentals,weekend house,antique,New England,Colonial,Bridgewater,Roxbury CT,Mayflower Inn,Carolyn Klemm,investments,second homes,Barns,Connecticut Rental,Candlewood Lake,Fairfield County,Greenwich CT,Private Properties,Farmland,Private Properties of Connecticut,weekend getaway, Investment Property,Waterfront House,Waterfront Land,Waterfront Property,Antique House,Northwest Conectcut,Salisbury CT,Country Estates,Country Cottage,Connecticut,Seasonal Rental,Summer Rental,New York State,Massachusetts" /><link href="main.css" rel="stylesheet" type="text/css" /><link href="base_kre_cmsb.css" rel="stylesheet" type="text/css" /><script src="nav.js" type="text/javascript"></script><script src="dropdowns_cmsb.js" type="text/javascript"></script><script type="text/javascript" src="/lightbox2/js/prototype.js"></script><script type="text/javascript" src="/lightbox2/js/scriptaculous.js?load=effects,builder"></script><script type="text/javascript" src="/lightbox2/js/lightbox.js"></script><link rel="stylesheet" href="/lightbox2/css/lightbox.css" type="text/css" media="screen" /><script type="text/javascript" src="switchcontent.js" >/************************************************ Switch Content script- (c) Dynamic Drive (www.dynamicdrive.com)* This notice must stay intact for legal use.* Visit http://www.dynamicdrive.com/ for full source code***********************************************/</script><style type="text/css">/*Style sheet used for demo. Remove if desired*/.handcursor{cursor:hand;cursor:pointer;font-family: helvetica, verdana, arial;font-size: 11px;font-weight: bold;}</style> </head><body><table align="center" width="900" border="0">	<tr>	<?php foreach ($page_headerRecords as $record): ?>		<td valign="middle" height="70">		<?php foreach ($record['kre_logo'] as $upload): ?>          	<?php if ($upload['hasThumbnail']): ?>            	<img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" /><br />          	<?php elseif ($upload['isImage']): ?>            	<img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" /><br />          	<?php else: ?>            	<a href="<?php echo $upload['urlPath'] ?>">Download <?php echo $upload['filename'] ?></a><br />          	<?php endif ?>        	<?php endforeach ?>		</td>				<td align="center" valign="middle" height="70" class="header_italic">		<?php echo $record['header_text'] ?><br />		</td>		 <?php endforeach ?>	</tr></table><table align="center" width="950" border="0" cellspacing="0" cellpadding="0" bgcolor="#3F613F">            	<tr>                <td>                <div style="z-index:1; position:relative; left:100; top:165;">                <table align="center" border="0" width="880" cellspacing="6" cellpadding="2">			<tr bgcolor="#3F613F">				<td align="center" width="90" height="25" class="nav_button">				<a href="index.html" class="dropdown_menu">HOME</a>				</td>				<td align="center"><img src="images/spacer.gif" alt="" width="1" height="1" /></td>				<td align="center" height="25" class="nav_button">  				<a href="#" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu2, '125px')" onMouseout="delayhidemenu()" class="dropdown_menu">PROPERTIES</a>				</td>				<td align="center"><img src="images/spacer.gif" alt="" width="1" height="1" /></td>				<td align="center" width="90" height="25" class="nav_button">				<a href="#" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu3, '115px')" onMouseout="delayhidemenu()" class="dropdown_menu">LAND</a>				</td>				<td align="center"><img src="images/spacer.gif" alt="" width="1" height="1" /></td>				<td align="center" width="90" height="25" class="nav_button">				<a href="#" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu4, '115px')" onMouseout="delayhidemenu()" class="dropdown_menu">RENTALS</a>				</td>				<td align="center"><img src="images/spacer.gif" alt="" width="1" height="1" /></td>				<td align="center" height="25" class="nav_button_about">				<a href="#" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu5, '125px')" onMouseout="delayhidemenu()" class="dropdown_menu">ABOUT KLEMM</a>				</td>				<td align="center"><img src="images/spacer.gif" alt="" width="1" height="1" /></td>				<td align="center" height="25" class="nav_button">				<a href="agents.php" class="dropdown_menu">AGENTS</a>				</td>				<td align="center"><img src="images/spacer.gif" alt="" width="1" height="1" /></td>				<td align="center" height="25" class="nav_button">				<a href="#" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu6, '150px')" onMouseout="delayhidemenu()" class="dropdown_menu">CONTACT</a>				</td>				<td align="center"><img src="images/spacer.gif" alt="" width="1" height="1" /></td>				<td align="center" height="25" class="nav_button_info">				<a href="#" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu7, '150px')" onMouseout="delayhidemenu()" class="dropdown_menu">LOCAL INFORMATION</a>				</td>			</tr>		</table>		</div>                </td>	</tr>              	<tr>                <td><img src="images/spacer.gif" width="800" height="3" alt="" /></td>	</tr></table><table align="center" width="950" cellspacing="0">	<tr>		<td bgcolor="#3F613F" height="28"> <!-- medium green -->		&nbsp;		</td>	</tr>		<!--<tr>		<td bgcolor="#E8DEA4" height="2"> <!-- khaki -->		&nbsp;		</td>	</tr>--></table>							<table align="center" bgcolor="#E8DEA4" width="950" border="0" cellspacing="0" cellpadding="10">	<tr>		<td align="center" valign="top">		<div class="page_title"><?php echo $land_listingsRecord['listing_heading'] ?> in <?php echo $land_listingsRecord['property_town'] ?>, <?php echo $land_listingsRecord['state'] ?></div>		<?php foreach ($land_listingsRecords as $record): ?> 		<?php if ($record['status'] == "For Sale"): ?>		<span class="header_italic_green_bold"><?php echo "This Property is For Sale" ?></span><br />		<?php elseif ($record['status'] == "Sold"): ?>		<span class="header_italic_red_bold"><?php echo "This Property Has Been Sold" ?></span><br />		<?php else: ?> 		<?php endif ?>		<?php endforeach ?>				<span class="new_info"><?php echo $land_listingsRecord['new_info'] ?></span>		</td>	</tr></table><br /><div align="center"><table align="center" bgcolor="#E8DEA4" width="950" border="0" cellspacing="6" cellpadding="5">	<tr>	<?php foreach ($land_listingsRecords as $record): ?>		<td align="center" valign="top" width="50%" class="listings">     		<?php foreach ($record['main_photo'] as $upload): ?>          	<?php if ($upload['hasThumbnail']): ?>            	<img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" border="1" alt="" /><br />          	<?php elseif ($upload['isImage']): ?>            	<img src="<?php echo $upload['urlPath'] ?>" width="450" height="" alt="" /><br />		<?php echo $upload['info1'] ?>          	<?php else: ?>            	<a href="<?php echo $upload['urlPath'] ?>">Download <?php echo $upload['filename'] ?></a><br />          	<?php endif ?>        	<?php endforeach ?>    		<?php if (!$land_listingsRecords): ?>     		 No records were found!<br /><br />    		<?php endif ?>    		</td>    		<td align="left" valign="top" width="25%" class="listing_details">	    		<?php foreach ($land_listingsRecords as $record): ?>		<span class="listing_items">Price:</span> $<?php echo number_format($record['price']) ?><br />		<span class="listing_items">Size of Parcel:</span> <?php echo $land_listingsRecord['acreage'] ?> +/_ acres<br />      		<span class="listing_items">Town:</span> <?php echo $land_listingsRecord['property_town'] ?><br /><br />      		<span class="listing_items">Description:</span> <?php echo $land_listingsRecord['remarks'] ?><br /><br />		<?php endforeach; ?>      		  		      		<?php if($land_listingsRecord['additional_remarks']): ?>		<span id="listcontent1-title" class="handcursor"><u>More description..</u><br />(View below)</span>		<?php else: ?> 		<?php endif ?>				<br /><br />		<?php if($land_listingsRecord['brochure']):?> 		        	<?php foreach ($land_listingsRecord['brochure'] as $upload): ?>              	<a href="<?php echo $upload['urlPath'] ?>">Download PDF Brochure</a><br />         	<?php endforeach ?>       		<?php endif ?> 		</td>    		<td align="left" valign="top" width="25%" class="listing_details">    		<span class="listing_items">Listed by:</span><br />     		    		<a href="/agents_details.php?agent_name=<?php echo $land_listingsRecord['agent_name_plus'] ?>"><?php echo $land_listingsRecord['listed_by'] ?></a><br />    		    		<?php if($land_listingsRecord['listed_by_2']): ?>		<a href="/agents_details.php?listed_by_2_keyword=<?php echo $land_listingsRecord['listed_by_2'] ?>"><?php echo $land_listingsRecord['listed_by_2'] ?></a><br />		<?php else: ?> 		<?php endif ?>				<?php if($land_listingsRecord['listed_by_3']): ?>		<a href="/agents_details.php?listed_by_3_keyword=<?php echo $land_listingsRecord['listed_by_3'] ?>"><?php echo $land_listingsRecord['listed_by_3'] ?></a><br />		<?php else: ?> 		<?php endif ?>				<br />		<?php foreach ($land_listingsRecords as $record): ?>		<?php if ($record['status'] !== "Sold"): ?>		<a href="mailto:<?php echo $land_listingsRecord['agent_email'] ?>?subject=Listing Information Request&body=I would like to talk to you about <?php echo $land_listingsRecord['property_town'] ?>, $<?php echo number_format($record['price']) ?>, <?php echo $land_listingsRecord['listing_heading'] ?>. Please phone me at">Contact Agent about this property</a>				<br /><br />		 <SCRIPT TYPE="text/javascript"><!--var SubjectLine='Nice listing at '+top.document.title;var BodyText='You can see this listing at: '+top.location.href;var Message='<A CLASS=contact HREF="mailto:?SUBJECT='+escape(SubjectLine)+'&BODY='+escape(BodyText)+'" OnMouseOver="status=\'Envoyer cette page à vos amis\'; return true;" TITLE="Send your friends e-mail about this page">Send this listing to a friend<\/A>';var MessageIE='<A CLASS=contact HREF="mailto:?SUBJECT='+(SubjectLine)+'&BODY='+(BodyText)+'" OnMouseOver="status=\'Envoyer cette page à vos amis\'; return true;" TITLE="Send your friends e-mail about this page">Send this listing to a friend<\/A>';if(document.all) { document.write(MessageIE); }else { document.write(Message); }//--></SCRIPT>		<br /><br />		<?php if($land_listingsRecord['article']):?> 		        	<?php foreach ($land_listingsRecord['article'] as $upload): ?>              	<a href="<?php echo $upload['urlPath'] ?>">Download PDF Article</a><br />         	<?php endforeach ?>       		<?php endif ?>       				<?php endif ?>      		<?php endforeach ?>       		<br /><br />      		<span class="text_10_v_ital">Click on a photo for a larger view</span>    		</td>    	</tr>  </table>    <br />  <table align="center" bgcolor="#E8DEA4" width="950" border="0" cellspacing="6" cellpadding="5">    	    	<tr>	    		<td align="center" valign="top" class="extra_photos">   		    		<!-- Additional Remarks -->				<div id="listcontent1" class="switchgroup1">				<div align="justify" class="listing_details">		<?php echo $land_listingsRecord['additional_remarks'] ?>		</div></div>		<br />				<table align="center" width="900" border="0" cellpadding="5" cellspacing="0">   			<tr>   			<?php $count = -1 ?>    			<?php foreach ($land_listingsRecord['extra_photos'] as $upload): ?>       			<?php if ($upload['hasThumbnail']): ?>         		<?php $maxCols=5; if (@++$count % $maxCols == 0): ?>          	 	</tr><tr>         		<?php endif ?>        	        			<td align="center">           			<a href="<?php echo $upload['urlPath'] ?>" rel="lightbox[listing]" title="<?php echo $upload['info1'] ?>">             			<img src="<?php echo $upload['thumbUrlPath'] ?>" width="150" height="<?php echo $upload['thumbHeight'] ?>" class="image_border" alt="<?php echo $upload[info1] ?>" /></a><br />           			<span class="text_11_w"><?php echo $upload['info1'] ?></span>         			</td>       				<?php endif ?>     				<?php endforeach ?>    			</tr> 		</table>		</td>	</tr></table></div>      		<!--<?php foreach ($land_listingsRecord['extra_photos'] as $upload): ?> 		<?php if ($upload['hasThumbnail']): ?> 		<img src="<?php echo $upload['thumbUrlPath'] ?>" width="150" 		height="'] ?>" hspace="3" vspace="3" alt="<?php echo $upload[info1] ?>" /> 		<?php endif ?>				<?php endforeach ?>		    		</td>    		<?php $maxCols=5; if (@++$count % $maxCols == 0): ?></tr><tr><?php endif; ?>		<?php endforeach ?>-->		<br /><div align="center"><a href="/properties.php?status=For+Sale&classification=Residential&price_min=4000000" class="price_range_white">Over $4 Million</a> &nbsp; | &nbsp;  <a href="/properties.php?status=For+Sale&classification=Residential&price_max=4000000&price_min=2000000" class="price_range_white">$2 - $4 Million</a> &nbsp; | &nbsp; <a href="/properties.php?status=For+Sale&classification=Residential&price_max=2000000&price_min=1000000" class="price_range_white">$1 - $2 Million</a> &nbsp; | &nbsp; <a href="/properties.php?status=For+Sale&classification=Residential&price_max=1000000&price_min=500000" class="price_range_white">$500,000 - $1 Million</a> &nbsp; | &nbsp; <a href="/properties.php?status=For+Sale&classification=Residential&price_max=500000" class="price_range_white">Up to $500,000</a></div><br />		<table align="center" width="855" border="0">	<tr>		<td align="center" valign="middle"  class="panel_green">		<table width="800" border="0" cellspacing="0" cellpadding="0">                  <tr>                    <td width="128" bordercolor="#cccc66" class="offices"><div align="center"><span class="txt_panel">860.435.6789<br />                      Lakeville/Salisbury</span></div></td>                    <td><img src="/images/spacer.gif" width="4" height="20" alt="" /></td>                                        <td width="128" bordercolor="#cccc66" class="offices"><div align="center"><span class="txt_panel">860.567.5060<br />                      Litchfield</span></div></td>                    <td><img src="/images/spacer.gif" width="4" height="20" alt="" /></td>                                        <td width="128" bordercolor="#cccc66" class="offices"><div align="center"><span class="txt_panel">860.354.3263<br />                      Roxbury</span></div></td>                    <td><img src="/images/spacer.gif" width="4" height="20" alt="" /></td>                                                           <td width="128" bordercolor="#cccc66" class="offices"><div align="center"><span class="txt_panel">860.364.5993<br />                      Sharon</span></div></td>                       <td><img src="/images/spacer.gif" width="4" height="20" alt="" /></td>                                              <td width="128" height="48" bordercolor="#cccc66" class="offices"><div align="center"><span class="txt_panel">860.868.7313<br />                     Washington Depot</span></div></td>                       <td><img src="/images/spacer.gif" width="4" height="20" alt="" /></td>                                           <td width="128" bordercolor="#cccc66" class="offices"><div align="center"><span class="txt_panel">203.263.4040<br />                      Woodbury</span></div></td>                  </tr>                </table>		<div align="center">		<?php echo $footer_linksRecord['links'] ?>		<?php if (!$footer_linksRecord): ?>     		 No record found!<br/><br/>    		<?php endif ?>		</div>		<br />		</td>	</tr></table><br /><br />		<script type="text/javascript">// MAIN FUNCTION: new switchcontent("class name", "[optional_element_type_to_scan_for]") REQUIRED// Call Instance.init() at the very end. REQUIRED		var description=new switchcontent("switchgroup1", "div") //Limit scanning of switch contents to just "div" elements		description.setColor('#003300', '#003300')		description.setPersist(true)		description.collapsePrevious(true) //Only one content open at any given time		description.init()		</script></body></html>