// Copyright 2010 ESRI
// 
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
// 
// You may freely redistribute and use this sample code, with or
// without modification, provided you include the original copyright
// notice and use restrictions.
// 
// See use restrictions at <your ArcGIS install location>/developerkit/userestrictions.txt.

function loadHelp() {
	var htmlTxt = "";

	htmlTxt += '<table class="themeResultsTable" width="95%">\n';
	htmlTxt += '<TR>\n';
	htmlTxt += '<TD width="95%" align="Left" valign="Middle">';
		htmlTxt += '<TABLE border="0" width="95%" cellspacing="2" cellpadding="2">\n';
		htmlTxt += '<TR>\n';
		
		htmlTxt += '<TD class="themeHdrTD">';
		htmlTxt += "&nbsp;Help";
		htmlTxt += '</TD>\n';
		htmlTxt += '</TR>\n';
		htmlTxt += '</TABLE>\n';
	htmlTxt += '</TD>\n';
	htmlTxt += '</TR>\n';

	htmlTxt += '<TR>\n';
	htmlTxt += '<TD width="95%" align="Left" valign="Middle">';
		htmlTxt += '<TABLE border="0" width="95%" cellspacing="2" cellpadding="2" bgcolor="#FFFFFF">\n';
		htmlTxt += '<TR>\n';
		htmlTxt += '<TD width="95%" align="Left">';
		htmlTxt += '<FONT class="helpText">Using this <b><i>Property Search</i></b> page you can search for properties based on a variety of criteria and view pertinent real estate data on a specific <b><i>Subject Parcel</i></b>.  Search criteria include <b><i>Owner Name</i></b>, <b><i>Address</i></b>, <b><i>Parcel ID</i></b>, <b><i>Legal Description</i></b>, and <b><i>Sales</i></b>.</FONT>';
		htmlTxt += '</TD>\n';
		htmlTxt += '</TR>\n';

		htmlTxt += '<TR><TD>&nbsp;</TD></TR>\n';

		htmlTxt += '<TR>\n';
		htmlTxt += '<TD width="95%" align="Left">';
		htmlTxt += '<FONT class="helpText">';
		htmlTxt += '<b><i>Conducting a Search</i></b>';
		htmlTxt += '<ol>';
		htmlTxt += '<li>Choose a search criterion by clicking its tab at the top of this page.';
		htmlTxt += '<li>Enter appropriate information into one or more fields.  A <b><i>Last Name</i></b> is required for an Owner Name Search.  A <b><i>Street Name</i></b> is required for an Address Search.  <b><i>Section</i></b>, <b><i>Township</i></b>, and <b><i>Range</i></b> are all required for a Legal Description Search.  A <b><i>Date Range</i></b> is required for a Sales Search.';
		htmlTxt += '<li>Click the <b><i>Search</i></b> button.';
		htmlTxt += '<li>If a Single Parcel is found, one of the following will happen based on the Button selected to the Left:';
		htmlTxt += '<ul>';
		htmlTxt += '<li>Real Estate Information about the Subject Property will be displayed immediately within this space.';
		htmlTxt += '<li>Tax History for the Subject Property (past 5 years) will be displayed immediately within this space.';
		htmlTxt += '<li>A Map or Building Sketch for the Subject Property will be displayed immediately within this space.';
		htmlTxt += '</ul>';
		htmlTxt += '<li>If Multiple Parcels are found, a list of parcels will be displayed at the top of this page.  Clicking on the <b><i><u>Parcel ID</u></i></b> for a specific parcel will make it the Subject Property and the appropriate Information will be displayed within this space.';
		htmlTxt += '<li>The Search Results are limited to showing only ' + (searchLimit + 1) + ' Records at a time.  However, additional Records can be accessed using Next and Previous Arrows.';
		htmlTxt += '<li>As mentioned above, various Types of Information can be displayed within this space based on the buttons to the left.';
		htmlTxt += '</ol>';
		htmlTxt += '</FONT>';
		htmlTxt += '</TD>\n';
		htmlTxt += '</TR>\n';

	//htmlTxt += '<TR><TD>&nbsp;</TD></TR>\n';

		htmlTxt += '<TR>\n';
		htmlTxt += '<TD width="95%" align="Left">';
		htmlTxt += '<FONT class="helpText">';
		htmlTxt += '<b><i>Map</i></b>';
		htmlTxt += '<ul>';
		htmlTxt += '<li>The Map displays the location of the Subject Parcel.';
		htmlTxt += '<li>The Map can also display Multiple Parcels under the following condition:';
		htmlTxt += '<ul>';
		htmlTxt += '<li>If the Map is being displayed and a Search yields one or more Parcel Results, the Map will automatically Zoom to the extent of the Parcels and they will be highlighted.';
		//htmlTxt += '<li>If you are viewing Comparable Properties for a given Parcel, the Subject Property will have a link for <b><i>Click here to locate ALL on Map</i></b>.  If you click this link, the Map will automatically Zoom to the extent of the Subject and its Comparables, and they will be highlighted.  This will also update the Search Results with the Subject and its Comparables.';
		htmlTxt += '</ul>';
		//htmlTxt += '<li>With the <b><i>Select Parcel</i></b> Map Tool, you can click a Parcel on the Map to Select it.  This will also update the Search Results with the Selected Parcel.';
		htmlTxt += '<li>Map Tools:';
		//htmlTxt += '<ul>';
		//htmlTxt += '<li><b><i>Map Mode</i></b>';
		htmlTxt += '<ul>';
 		htmlTxt += '<li><b><i>Zoom In </i>:</b> Click and drag on the Map to Zoom In.';
 		htmlTxt += '<li><b><i>Zoom Out </i>:</b> Click and drag on the Map to Zoom Out.';
 		htmlTxt += '<li><b><i>Pan </i>:</b> Click and drag on the Map to recenter it or to view adjacent parcels.';
 		htmlTxt += '<li><b><i>Select Parcel </i>:</b> Click on the Map to select a Parcel. This will also update the Search Results with the Selected Parcel.';
		//htmlTxt += '</ul>';
		htmlTxt += '<li><b><i>Full Extent </i>:</b> The Map will display the entire County.';
		htmlTxt += '<li><b><i>Prev Extent </i>:</b> Returns the Map to the Previous view, if any.';
		//htmlTxt += '<li><b><i>Clear Graphics </i>:</b> Clears highlighted Parcels, if any.';
		//htmlTxt += '<li><b><i>Auto Zoom </i>:</b> When checked, the Map will Zoom to a Parcel in the Search Results when the Mouse is passed over its <b><i><u>Parcel ID</u></i></b>.';
		//htmlTxt += '<li><b><i>Auto Info </i>:</b> When checked, Parcel Information will display directly on a Highlighted Parcel when the Mouse is passed over it on the Map.';
		//htmlTxt += '<ul>';
		htmlTxt += '<li>Prior to enabling a Map Tool, Parcel Information can also be displayed for a Highlighted Parcel by clicking it on the Map.';
		htmlTxt += '</ul>';
		//htmlTxt += '<li><b><i>Layers </i>:</b> These can be turned On and Off by Checking or Unchecking their associated Check Box.';
		htmlTxt += '</ul>';
		htmlTxt += '</FONT>';
		htmlTxt += '</TD>\n';
		htmlTxt += '</TR>\n';

		htmlTxt += '<TR>\n';
		htmlTxt += '<TD width="95%" align="Left">';
		htmlTxt += '<FONT class="helpText">';
		htmlTxt += '<b><i>Building Sketch</i></b>';
		htmlTxt += '<ul>';
		htmlTxt += '<li>Use this option to display Building Sketches of the Subject Parcel.';
		htmlTxt += '<li>If multiple Building Sketches are found, a drop down list will be available for viewing each Sketch.';
		htmlTxt += '<li>It is possible to Navigate on the Building Sketch, much like the Map:';
		htmlTxt += '<ul>';
		htmlTxt += '<li>Click and drag on the Sketch to <b><i>Pan</i></b>.';
		htmlTxt += '<li>Roller ball forward to <b><i>Zoom In</i></b>.';
		htmlTxt += '<li>Roller ball backward to <b><i>Zoom Out</i></b>.';
		htmlTxt += '</ul>';
		htmlTxt += '</ul>';
		htmlTxt += '</FONT>';
		htmlTxt += '</TD>\n';
		htmlTxt += '</TR>\n';

		htmlTxt += '<TR>\n';
		htmlTxt += '<TD width="95%" align="Left">';
		htmlTxt += '<FONT class="helpText">';
		htmlTxt += '<b><i>Property Photo</i></b>';
		htmlTxt += '<ul>';
		//htmlTxt += '<li>Use this option to display Property Photos of the Subject Parcel.';
		//htmlTxt += '<li>If multiple Property Photos are found, a drop down list will be available for viewing each Photo.';
		htmlTxt += '<li>On a Real Estate informaion page, such as General, Residential, Commercial, or Agricultural, use the <b><i>Click here for the photo</i></b> link to view available Property Photos.';
		htmlTxt += '</ul>';
		htmlTxt += '</FONT>';
		htmlTxt += '</TD>\n';
		htmlTxt += '</TR>\n';

		//<htmlTxt += '<TR><TD>&nbsp;</TD></TR>\n';
		
		htmlTxt += '<TR>\n';
		htmlTxt += '<TD width="95%" align="Left">';
		htmlTxt += '<FONT class="helpText">';
		htmlTxt += '<b><i>Printing</i></b>';
		htmlTxt += '<ul>';
		//htmlTxt += '<li>Use this option to display Property Photos of the Subject Parcel.';
		//htmlTxt += '<li>If multiple Property Photos are found, a drop down list will be available for viewing each Photo.';
		htmlTxt += '<li>On a Real Estate informaion page, such as General, Residential, Commercial, or Agricultural, use the <b><i>Print</i></b> button to the right of <b><i>Subject Property</i></b>.';
		htmlTxt += '<li>On the Tax History page, use the <b><i>Print</i></b> button to the right of <b><i>Tax History Details</i></b>.';
		htmlTxt += '<li>On the Map page, use the <b><i>Print</i></b> button to the right of <b><i>Map</i></b>.';
		htmlTxt += '<li>On the Building Sketch page, use the <b><i>Print</i></b> button to the right of <b><i>Building Sketch</i></b>.';
		htmlTxt += '<li><i>Using the print functionality of the browser may not give you the desired result</i>.';
		htmlTxt += '</ul>';
		htmlTxt += '</FONT>';
		htmlTxt += '</TD>\n';
		htmlTxt += '</TR>\n';
		
		htmlTxt += '<TR>\n';
		htmlTxt += '<TD width="95%" align="Left">';
		htmlTxt += '<FONT class="helpText">';
		htmlTxt += '<b><i>Printing Sales Results from a List</i></b>';
		htmlTxt += '<ul>';
		//htmlTxt += '<li>Use this option to display Property Photos of the Subject Parcel.';
		//htmlTxt += '<li>If multiple Property Photos are found, a drop down list will be available for viewing each Photo.';
		htmlTxt += '<li>If 30 or less Sales results are returned, a <b><i>List</i></b> button will become available.  Clicking this button will create a page containing detailed residential information and value data for each parcel.';
		htmlTxt += '<li><i>This page will take a few moments to load due to the detailed data that is being pulled for each parcel.</i>.';
		htmlTxt += '<li>Parcels can be excluded from the print list by clicking the <b><i>Hide</i></b> button.';
		htmlTxt += '<li>The print preview can be opened by clicking the <b><i>Print</i></b> button on the popup window.';
		htmlTxt += '</ul>';
		htmlTxt += '</FONT>';
		htmlTxt += '</TD>\n';
		htmlTxt += '</TR>\n';

		htmlTxt += '<TR>\n';
		htmlTxt += '<TD width="95%" align="Left">';
		htmlTxt += '<FONT class="helpText">';
		htmlTxt += '<b><i>Additional Help</i></b>';
		htmlTxt += '<ul>';
		// Contact information is set in orkaParams.js
		htmlTxt += '<li>Please contact the ' + countyName + ' County Appraisal Office with property questions.<br>Phone: ' + contactPhone + '.</i>';
		htmlTxt += '<li>Please contact the ' + countyName + ' County GIS Department with GIS or website functionality questions. Email: ' + contactEmail + '.';
		htmlTxt += '</ul>';
		htmlTxt += '</FONT>';
		htmlTxt += '</TD>\n';
		htmlTxt += '</TR>\n';

		htmlTxt += '<TR>\n';
		htmlTxt += '<TD width="95%" align="Center">';
		htmlTxt += '<FONT class="smallText1">';
		htmlTxt += '<i>Property Search and Mapping by <A href="javascript:top.location=\'http://www.esri.com/\'" onMouseOver="window.status=\'Geography Matters\'; return true" onMouseOut="window.status=\' \'; return true" target="_blank">ESRI</A>, Inc., St. Louis Regional Office in cooperation with the Kansas Counties.</i>';
		htmlTxt += '</FONT>';
		htmlTxt += '</TD>\n';
		htmlTxt += '</TR>\n';

		htmlTxt += '</TABLE>\n';

	htmlTxt += '</TD>\n';
	htmlTxt += '</TR>\n';
	htmlTxt += '</TABLE>\n';

	//alert(htmlTxt);

	togglePage('visible', 'hidden', '', '', '', 'hidden', 'hidden', 'hidden', 'hidden', 'hidden', 'hidden', htmlTxt, 'help');
}

