// This script is copyright protected
//document.onselectstart = function() {return false;};

function _DW(item)
{
	document.write(item);
};

function openBodyTable()
{
	_DW('<table class=\"btable\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#ff8000\">');
	_DW('<tr><td>');
};

function closeBodyTable()
{
	_DW('</td></tr>');
	_DW('</table>');
};

function setPgHead()
{
	_DW('<table class=\"htable\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#ff8000\">');
	_DW('	<tr>');
	_DW('		<td width=\"271\" valign=\"middle\" align=\"center\" height=\"165\">');
	_DW('		<img border=\"0\" src=\"images/cre.jpg\" width=\"271\" height=\"165\" alt=\"\">');
	_DW('		</td>');
	_DW('		<td height=\"165\" align="center" valign=\"middle\">');
	_DW('		<img border=\"0\" src=\"images/1.jpg\" height=\"154\" width=\"97%\" alt=\"\">');
	_DW('		</td>');
	_DW('	</tr>');
	_DW('</table>');
}

function setMenu(item)
{
	_DW('<div id=\"leftcontent\">');
	_DW('<table cellpadding=\"0\" cellspacing=\"0\">');
	_DW('	<tr>');
	_DW('		<td width=\"100%\" height=\"40\">');
	_DW('			&nbsp;');
	_DW('		</td>');
	_DW('	</tr>');
	_DW('	<tr><td>&nbsp;</td></tr>');
	_DW('	<tr>');
	_DW('		<td align=\"center\">');
	_DW('		<div id=\"navcontainer\">');
	_DW('		<ul id=\"navlist\">');

	if (item == 1)
		{ _DW('<li id=\"active\"><p>Home</p></li>'); }
	else
		{ _DW('<li><a href=\"index.htm\"><p>Home</p></a></li>'); }
 
	if (item == 2)
		{ _DW('<li id=\"active\"><p>Contact Us</p></li>'); }
	else
		{ _DW('<li><a href=\"contact.htm\"><p>Contact Us</p></a></li>'); }

	if (item == 3)
		{ _DW('<li id=\"active\"><p>About Us</p></li>'); }
	else
		{ _DW('<li><a href=\"about.htm\"><p>About Us</p></a></li>'); }

	if (item == 4)
		{ _DW('<li id=\"active\"><p>Local Weather</p></li>'); }
	else
		{ _DW('<li><a href=\"localweath.htm\"><p>Local Weather</p></a></li>'); }

	if (item == 5)
		{ _DW('<li id=\"active\"><p>Featured Properties</p></li>'); }
	else
		{ _DW('<li><a href=\"list1.php?Brkr=20\"><p>Featured Properties</p></a></li>'); }

	if (item == 6)
		{ _DW('<li id=\"active\"><p>All Our Listings</p></li>'); }
	else
		{ _DW('<li><a href=\"listsrch.php?Mn=6&Seq=0&Brkr=20&Type=0\"><p>All Our Listings</p></a></li>'); }

	if (item == 7)
		{ _DW('<li id=\"active\"><p>Other\'s Listings</p></li>'); }
	else
		{ _DW('<li><a href=\"listsrch.php?Mn=7&Seq=0&Brkr=0&Type=0\"><p>Other\'s Listings</p></a></li>'); }

	if (item == 8)
		{ _DW('<li id=\"active\"><p>Land & Lots</p></li>'); }
	else
		{ _DW('<li><a href=\"listsrch.php?Mn=8&Seq=0&Brkr=0&Type=3\"><p>Land & Lots</p></a></li>'); }

	if (item == 9)
		{ _DW('<li id=\"active\"><p>Commercial</p></li>'); }
	else
		{ _DW('<li><a href=\"listsrch.php?Mn=9&Seq=0&Brkr=0&Type=2\"><p>Commercial</p></a></li>'); }

	if (item == 10)
		{ _DW('<li id=\"active\"><p>Mortagage<br>Calculator</p></li>'); }
	else
		{ _DW('<li><a href=xcalc.htm><p>Mortagage<br>Calculator</p></a></li>'); }

	_DW('<li>&nbsp;</li>');

	_DW('		</ul>');
	_DW('		</div>');
	_DW('		</td>');
	_DW('	</tr>');

	_DW('	<tr>');
	_DW('		<td width=\"100%\" align=\"center\">');
	_DW('		<p><br><br><br><br>');

	if (item == 2)
		{
		_DW('		<a href=\"db_login.htm">');
		_DW('		<img src=\"images/valid-html401.png\" alt=\"Valid HTML 4.01 Transitional\" height=\"31\" width=\"88\" border=\"0\">');
		}
	_DW('		</p>');
	_DW('		</td>');
	_DW('	</tr>');

	_DW('</table>');
	_DW('</div>');
};

function setStyle(sel)
{
//	var width = screen.width;

_DW('<style>');
_DW('body \{ margin-top: 0; margin-left: 0; font-size: 15px; font-family: verdana, arial, serif; background-color: #ffffff; color: #000000; text-align: left; \}');

_DW('.type1 \{ font-size: 44px; font-family: times; \}');

_DW('#leftcontent \{ font-size: 14px; float: left; width: 200px; \}');
_DW('#leftcontent p \{ font-size: 15px; \}');

_DW('#rightcontent \{ font-size: 15px; float: left; width: 794px;\}');
_DW('#rightcontent p \{ font-size: 15px; \}');

_DW('.smallfonta \{ font-size: 14px; line-height: 14pt; \}');
_DW('.smallfontb \{ font-size: 14px; line-height: 11pt; \}');

_DW('.notshow \{ visibility: hidden; \}');

_DW('.htable \{ width: 100%; \}');
_DW('.btable \{ width: 100%; \}');
_DW('.rtable \{ width: 794; \}');

_DW('.ptable \{ width: 994; \}');

_DW('#navcontainer \{width: 200px; \}');

_DW('#navcontainer ul \{margin-left: 0; padding-left: 0; list-style-type: none; font-family: verdana, arial, serif; \}');

_DW('#navcontainer p \{margin-top: 2 \}');


_DW('#navcontainer a \{display: block; text-align: center; width: 175px; background-color: #ff8000; color: #ffffff; font-family: verdana, arial, serif; font-weight: bold; font-size: 15px; height: 24px; \}');

_DW('#navcontainer a:link \{background-color: #ff8000; color: #ffff00; text-decoration: none; \}');

_DW('#navlist a:visited \{background-color: #ff8000; color: #ffff00; text-decoration: none; \}');

_DW('#active \{color: #ffffff; display: block; text-align: center; width: 175px; background-color: #000000; font-family: verdana, arial, serif; font-weight: bold; font-size: 15px; height: 24px; font-style: italic; \}');

_DW('#navcontainer a:hover \{background-color: #ffff00; color: #000000; font-size: 15px; \}');

_DW('</style>');

if (sel == 1)
	{
	_DW('<script>');
	_DW('document.onselectstart = function() {return false;};');
	_DW('</script>');
	}
};
