// 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=\"#0000cc\">');
	_DW('<tr><td>');
};

function closeBodyTable()
{
	_DW('</td></tr>');
	_DW('</table>');
};

function setPgHead()
{
	_DW('<table class=\"htable\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#0000cc\">');
	_DW('	<tr width=\"100%\">');
	_DW('		<td width=\"35%\" height=\"75\" rowspan=\"3\" valign=\"middle\" align=\"center\">');
	_DW('		<img border=\"0\" src=\"images/lapazt.gif\" width=\"246\" height=\"65\">');
	_DW('		</td>');
	_DW('		<td width=\"65%\" height=\"10\">');
	_DW('		</td>');
	_DW('	</tr>');
	_DW('	<tr>');
	_DW('		<td width=\"65%\" height=\"55\">');
	_DW('			<p align=\"center\"><font face=\"Times New Roman\" size=\"6\" color=\"#FFFFFF\"><i><b>LaPaz Association of Realtors</b></i></font>');
	_DW('			</p>');
	_DW('		</td>');
	_DW('	</tr>');
	_DW('	<tr>');
	_DW('		<td width=\"65%\" height=\"10\">');
	_DW('		</td>');
	_DW('	</tr>');
	_DW('	<tr width=\"100%\">');
	_DW('	</tr>');
	_DW('</table>');
};

function setPgMenu(pg, item, user)
{
	if (pg == 1)
		{ setMenu1(item, user); }
	if (pg == 2)
		{ setMenu2(item); }
};

function setMenu1(item, user)
{
	_DW('<div id=\"leftcontent\">');
	_DW('<table cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#0000cc\">');
	_DW('	<tr>');
	_DW('		<td height=\"140\" width=\"100%\" valign=\"middle\" height=\"140\" colspan=\"3\">');
	_DW('       <p align=\"center\">');
	_DW('			<img border=\"0\" src=\"images/lapazl.gif\" width=\"66\" height=\"86\" align=\"center\">');
	_DW('		  </p>');
	_DW('		</td>');
	_DW('	</tr>');
	_DW('	<tr><td height=\"20px\"></td></tr>');

	if (item == 9)
		{
		_DW('	<tr>');
		_DW('		<td align=\"center\">');
		_DW('		<div id=\"navcontainer\">');
		_DW('		<ul id=\"navlist\">');
		_DW('		<li><a href=\"aaa_tour_logout.php?ID=');
		_DW(user);
		_DW('\"><p>Logout</p></a></li>');

		_DW('		<li id=\"active\"><p>&nbsp;</p></li>');

		_DW('		<li><a href=\"aaa_tour_browse.php?ID=');
		_DW(user);
		_DW('\"><p>Browse Tours</p></a></li>');

		_DW('		<li id=\"active\"><p>&nbsp;</p></li>');

		_DW('		<li><a href=\"aaa_tour_new.php?ID=');
		_DW(user);
		_DW('\"><p>New Tour</p></a></li>');

		_DW('		<li id=\"active\"><p>&nbsp;</p></li>');
		_DW('		</div>');
		_DW('		</td>');
		_DW('	</tr>');
		_DW('</table>');
		_DW('</div>');
		return;
		}

	if (item == 6)
		{
		_DW('	<tr>');
		_DW('		<td align=\"center\">');
		_DW('		<div id=\"navcontainer\">');
		_DW('		<ul id=\"navlist\">');
		_DW('		<li><a href=\"aaa_tour_logout.php?ID=');
		_DW(user);
		_DW('\"><p>Logout</p></a></li>');

		_DW('		<li id=\"active\"><p>&nbsp;</p></li>');

		_DW('		<li><a href=\"aaa_tour_menu.php?ID=');
		_DW(user);
		_DW('\"><p>Tours</p></a></li>');

		_DW('		<li id=\"active\"><p>&nbsp;</p></li>');

//		_DW('		<li><a href=\"aaa_syst_stat.php?ID=');
//		_DW(user);
//		_DW('\"><p>Stats</p></a></li>');

		_DW('		<li id=\"active\"><p>&nbsp;</p></li>');

//		_DW('		<li><a href=\"aaa_syst_urls.php?ID=');
//		_DW(user);
//		_DW('\"><p>Srch Urls</p></a></li>');

		_DW('		</div>');
		_DW('		</td>');
		_DW('	</tr>');
		_DW('</table>');
		_DW('</div>');
		return;
		}

	if (item == 2)
		{
		_DW('	<tr>');
		_DW('		<td align=\"center\">');
		_DW('		<div id=\"navcontainer\">');
		_DW('		<ul id=\"navlist\">');
		_DW('		<li><a href=\"index.php?Log=1\"><p>Home</p></a></li>');

		_DW('		<li id=\"active\"><p>&nbsp;</p></li>');

		_DW('		<li><a href=\"member_download.php?User=');
		_DW(user);
		_DW('\"><p>Download</p></a></li>');
		_DW('		</div>');
		_DW('		</td>');
		_DW('	</tr>');
		_DW('</table>');
		_DW('</div>');
		return;
		}

	if (item == 3)
		{
		_DW('	<tr>');
		_DW('		<td align="center">');
		_DW('		<div id=\"navcontainer\">');
		_DW('		<ul id=\"navlist\">');
		_DW('		<li><a href=\"index.htm\"><p>Home</p></a></li>');

		_DW('		<li id=\"active\"><p>&nbsp;</p></li>');

//		_DW('		<li><a href=\"member_main.php?User=');
//		_DW(user);
//		_DW('\"><p>Members</p></a></li>');
		_DW('		</div>');
		_DW('		</td>');
		_DW('	</tr>');
		_DW('</table>');
		_DW('</div>');
		return;
		}

	_DW('	<tr>');
	_DW('		<td align="center">');
	_DW('		<div id=\"navcontainer\">');
	_DW('		<ul id=\"navlist\">');
//	_DW('		<li><a href=\"mls_login.php\"><p>Members</p></a></li>');

	_DW('		<li id=\"active\"><p>&nbsp;</p></li>');

//	_DW('		<li><a href=\"xcalc.htm\"><p>Calculator</p></a></li>');

	_DW('		<li id=\"active\"><p>&nbsp;</p></li>');

//	_DW('		<li><a href=\"srch1.php\"><p>Search</p></a></li>');

	_DW('		<li id=\"active\"><p>&nbsp;</p></li>');
	_DW('		<li id=\"active\"><p>&nbsp;</p></li>');
	_DW('		<li id=\"active\"><p>&nbsp;</p></li>');
	_DW('		<li id=\"active\"><p>&nbsp;</p></li>');
	_DW('		<li id=\"active\"><p>&nbsp;</p></li>');
	_DW('		<li id=\"active\"><p>&nbsp;</p></li>');
	_DW('		<li id=\"active\"><p>&nbsp;</p></li>');
	_DW('		<li id=\"active\"><p>&nbsp;</p></li>');
	_DW('		<li id=\"active\"><p>&nbsp;</p></li>');
	_DW('		<li id=\"active\"><p>&nbsp;</p></li>');
	_DW('		<li id=\"active\"><p>&nbsp;</p></li>');
	_DW('		<li id=\"active\"><p>&nbsp;</p></li>');
	_DW('		<li id=\"active\"><p>&nbsp;</p></li>');
	_DW('		<li id=\"active\"><p>&nbsp;</p></li>');
	_DW('		<li id=\"active\"><p>&nbsp;</p></li>');
	_DW('		<li id=\"active\"><p>&nbsp;</p></li>');
	_DW('		<li id=\"active\"><p>&nbsp;</p></li>');
	_DW('		<li id=\"active\"><p>&nbsp;</p></li>');
	_DW('		<li id=\"active\"><p>&nbsp;</p></li>');
	_DW('		<li id=\"active\"><p>&nbsp;</p></li>');
	_DW('		<li id=\"active\"><p>&nbsp;</p></li>');
	_DW('		<li id=\"active\"><p>&nbsp;</p></li>');
	_DW('		<li id=\"active\"><p>&nbsp;</p></li>');
	_DW('		<li id=\"active\"><p>&nbsp;</p></li>');

	_DW('		<li><a href=\"aaa_tour_login.htm\"><p>Admin</p></a></li>');

	_DW('		<li id=\"active\"><p>&nbsp;</p></li>');

	_DW('		</div>');
	_DW('		</td>');
	_DW('	</tr>');
	_DW('</table>');
	_DW('</div>');
};

function setMenu2(brkr)
{
	if (brkr == 99)
		{
	_DW('<div id=\"leftcontent\">');
	_DW('<table cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#0000cc\">');

	_DW('	<tr>');
	_DW('		<td align=\"center\">');
	_DW('		<div id=\"navcontainer\">');
	_DW('		<ul id=\"navlist\">');
	_DW('		<li></li>');
	_DW('		</div>');
	_DW('		</td>');
	_DW('	</tr>');

	_DW('	<tr>');
	_DW('		<td width=\"100%\" valign=\"middle\">');
	_DW('       <p align=\"center\">');
	_DW('			<img border=\"0\" src=\"images/lapazl.gif\" width=\"66\" height=\"86\" align=\"center\">');
	_DW('		  </p>');
	_DW('		</td>');
	_DW('	</tr>');

	_DW('		<tr>');
	_DW('			<td width="100%">&nbsp;');
	_DW('			</td>');
	_DW('		</tr>');

	_DW('</table>');
	_DW('</div>');
		return;
		}


	_DW('<div id=\"leftcontent\">');
	_DW('<table cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#0000cc\">');

	_DW('		<tr>');
	_DW('			<td height=\"20px\" width=\"100%\">');
	_DW('			</td>');
	_DW('		</tr>');

	_DW('	<tr>');
	_DW('		<td align=\"center\">');
	_DW('		<div id=\"navcontainer\">');
	_DW('		<ul id=\"navlist\">');
	_DW('		<li><a href=\"index.htm\"><p>Home</p></a></li>');
	_DW('		</div>');
	_DW('		</td>');
	_DW('	</tr>');

	_DW('		<tr>');
	_DW('			<td width="100%">&nbsp;');
	_DW('			</td>');
	_DW('		</tr>');

	_DW('	<tr>');
	_DW('		<td width=\"100%\" valign=\"middle\">');
	_DW('       <p align=\"center\">');
	_DW('			<img border=\"0\" src=\"images/lapazl.gif\" width=\"66\" height=\"86\" align=\"center\">');
	_DW('		  </p>');
	_DW('		</td>');
	_DW('	</tr>');

	_DW('		<tr>');
	_DW('			<td width="100%">&nbsp;');
	_DW('			</td>');
	_DW('		</tr>');

	var	_Name1 = "";
	var	_Link1 = "";
	if (brkr == 1)
		{
		_Name1 = "Betty Hunter, Inc., Realtor";
		_Link1 = "bhr";
		} 
	if (brkr == 2)
		{
		_Name1 = "Robert Gory Realty";
		_Link1 = "rgr";
		} 
	if (brkr == 3)
		{
		_Name1 = "Arizona Westcoast Realty";
		_Link1 = "awr";
		} 
	if (brkr == 4)
		{
		_Name1 = "Security Real Estate";
		_Link1 = "sre";
		} 
	if (brkr == 5)
		{
		_Name1 = "Parker Area Realty";
		_Link1 = "par";
		} 
	if (brkr == 6)
		{
		_Name1 = "Coldwell Banker - Residential Brokerage";
		_Link1 = "cwb";
		} 
	if (brkr == 7)
		{
		_Name1 = "David Plunkett Realty";
		_Link1 = "dpr";
		} 
	if (brkr == 8)
		{
		_Name1 = "CB Real Estate Services, Inc.";
		_Link1 = "cbr";
		} 
	if (brkr == 9)
		{
		_Name1 = "Above All Realty";
		_Link1 = "aar";
		} 
	if (brkr == 10)
		{
		_Name1 = "Continental Land";
		_Link1 = "ctl";
		} 
	if (brkr == 11)
		{
		_Name1 = "Outback Realty";
		_Link1 = "obr";
		} 
	if (brkr == 12)
		{
		_Name1 = "Selman & Assoc / Velma Anderson";
		_Link1 = "vas";
		} 
	if (brkr == 13)
		{
		_Name1 = "Hastings Brokerage, Ltd.";
		_Link1 = "hbl";
		} 
	if (brkr == 18)
		{
		_Name1 = "Realty Executives - Mohave";
		_Link1 = "rem";
		} 
	if (brkr == 19)
		{
		_Name1 = "CENTURY 21 - Osborne Realty";
		_Link1 = "cor";
		} 
	if (brkr == 20)
		{
		_Name1 = "Callison Real Estate";
		_Link1 = "cre";
		} 
	if (brkr == 22)
		{
		_Name1 = "Andrew Holzmann Realty";
		_Link1 = "ahr";
		} 

	_DW('	<tr>');
	_DW('		<td align="center"><p><b><font color=\"#ffffff\">');
	_DW(_Name1);
	_DW('		</font></b></p>');
	_DW('	</td>');
	_DW('	</tr>');

	_DW('		<tr>');
	_DW('			<td width="100%">&nbsp;');
	_DW('			</td>');
	_DW('		</tr>');

	_DW('	<tr>');
	_DW('		<td align=\"center\">');
	_DW('		<div id=\"navcontainer\">');
	_DW('		<ul id=\"navlist\">');
//	_DW('		<li><a href=\"');
//	_DW(_Link1);
//	_DW('_main.htm\"><p>About Us</p></a></li>');

	_DW('		<li id=\"active\"><p>&nbsp;</p></li>');

//	_DW('		<li><a href=\"list1.php?Brkr=');
//	_DW(brkr);
//	_DW('		\"><p>Listings</p></a></li>');


	_DW('		</div>');
	_DW('		</td>');
	_DW('	</tr>');
	_DW('</table>');
	_DW('</div>');
};

function makeMainMenu()
{
	var _Brkrs={};
	_Brkrs[0] = "Above All Realty";
	_Brkrs[1] = "Andrew Holzmann Realty";
	_Brkrs[2] = "Arizona Westcoast Realty";
	_Brkrs[3] = "Betty Hunter, Inc., Realtor";
	_Brkrs[4] = "CB Real Estate Services, Inc.";
	_Brkrs[5] = "Callison Real Estate";
	_Brkrs[6] = "CENTURY 21 - Osborne Realty";
	_Brkrs[7] = "Coldwell Banker-Residential Brkrg";
	_Brkrs[8] = "Continental Land";
	_Brkrs[9] = "David Plunkett Realty";
	_Brkrs[10] = "Outback Realty";
	_Brkrs[11] = "Robert Gory Realty";
	_Brkrs[12] = "Security Real Estate";
	_Brkrs[13] = "Selman & Assoc - Velma Anderson";

	var _Lnks={};
	_Lnks[0] = "aar_main.htm";
	_Lnks[1] = "ahr_main.htm";
	_Lnks[2] = "awr_main.htm";
	_Lnks[3] = "bhr_main.htm";
	_Lnks[4] = "cbr_main.htm";
	_Lnks[5] = "cre_main.htm";
	_Lnks[6] = "cor_main.htm";
	_Lnks[7] = "cwb_main.htm";
	_Lnks[8] = "ctl_main.htm";
	_Lnks[9] = "dpr_main.htm";
	_Lnks[10] = "obr_main.htm";
	_Lnks[11] = "rgr_main.htm";
	_Lnks[12] = "sre_main.htm";
	_Lnks[13] = "vas_main.htm";

	_DW('</td></tr>\n');

	_DW('<tr>\n');
	_DW('<td width=\"1%\"></td>');

	_DW('<td width=\"48%\" align=\"center\">');
	_DW('<div id=\"navcontainerx\">');
	_DW('<ul id=\"navlistx\">');

	for(nj = 0; nj < 7; nj++)
		{
		_DW('<li><a href=\"'+_Lnks[nj]+'\"><p>'+_Brkrs[nj]+'</p></a></li>');
		_DW('<li id=\"activex\"></li>');
		}
	_DW('</div>');
	_DW('</td>');

	_DW('<td width=\"2%\"></td>');

	_DW('<td width=\"48%\" align=\"center\">');
	_DW('<div id=\"navcontainerx\">');
	_DW('<ul id=\"navlistx\">');
	for(nj = 7; nj < 14; nj++)
		{
		_DW('<li><a href=\"'+_Lnks[nj]+'\"><p>'+_Brkrs[nj]+'</p></a></li>');
		_DW('<li id=\"activex\"></li>');
		}

	_DW('</div>');
	_DW('</td>');

	_DW('<td width=\"1%\"></td>');
	_DW('</tr>');

	_DW('<tr>\n');
	_DW('<td width=\"100%\" colspan=\"5\">');
	_DW('<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>');
};

function setStyle(sel)
{
var width = screen.width;
_DW('<style type=\"text/css\">');
_DW('body \{ margin-top: 0; margin-left: 0; font-size: 15px; font-family: verdana, arial; color: #000000; text-align: left; \}');

_DW('.para1 \{ text-indent: 12px; margin-top: 4px; margin-left: 4px; \}');
_DW('.para2 \{ text-indent: 12px; margin-left: 4px; \}');
_DW('.para3 \{ margin-left: 44px; \}');
_DW('.para4 \{ font-size: 14px; \}');


if (width <= 800)
	{ _DW('#leftcontent \{ font-size: 13px; float: left; width: 132; \}'); 
	  _DW('textarea \{ font-size: 11px; \}');
	}
else
	{ _DW('#leftcontent \{ font-size: 14px; float: left; width: 165; \}');
	  _DW('textarea \{ font-size: 13px; \}');
	}

if (width <= 800)
	{
	_DW('#leftcontent p \{ font-size: 13px; \}');
	_DW('#rightcontent \{ font-size: 12px; float: left; width: 648px; \}');
	_DW('#rightcontent p \{ font-size: 12px; \}');
	_DW('.smallfonta \{ font-size: 12px; line-height: 11pt; \}');
	_DW('.smallfontb \{ font-size: 12px; line-height: 8pt; \}');
	_DW('.smallfontc td\{ font-size: 10px; \}');
	}
else
	{
	_DW('#leftcontent p \{ font-size: 15px; \}');
	_DW('#rightcontent \{ font-size: 15px; float: left; width: 745px; \}');
	_DW('#rightcontent p \{ font-size: 15px; \}');
	_DW('.smallfonta \{ font-size: 14px; line-height: 14pt; \}');
	_DW('.smallfontb \{ font-size: 14px; line-height: 11pt; \}');
	_DW('.smallfontc td\{ font-size: 12px; \}');
	}

_DW('.notshow \{ visibility: hidden; \}');


_DW('.htable \{ width: 100%; \}');
_DW('.btable \{ width: 100%; \}');
if (width <= 800)
	_DW('.ptable \{ width: 780; \}');
else
	_DW('.ptable \{ width: 910; \}');


if (width <= 800)
	{ _DW('#navcontainer \{width: 131px; \}'); }
else
	{ _DW('#navcontainer \{width: 165px; \}'); }

_DW('#navcontainer ul \{margin-left: 0; padding-left: 0; list-style-type: none; font-family: verdana, arial, serif; \}');

if (width <= 800)
	{ _DW('#navcontainer p \{margin-top: 7 \}'); }
else
	{ _DW('#navcontainer p \{margin-top: 6 \}'); }

if (width <= 800)
	{
	_DW('#navcontainer a \{display: block; text-align: center; width: 125px; background-color: #0000cc; color: #ffffff; font-family: verdana, arial, serif; font-weight: bold; font-size: 14px; height: 34px; border-top: #f5f5f5 2px solid; border-left: #f5f5f5 2px solid; border-right: #101010 2px solid; border-bottom: #101010 2px solid; \}');
	}
else
	{
	_DW('#navcontainer a \{display: block; text-align: center; width: 155px; background-color: #0000cc; color: #ffffff; font-family: verdana, arial, serif; font-weight: bold; font-size: 14px; height: 34px; border-top: #f5f5f5 2px solid; border-left: #f5f5f5 2px solid; border-right: #101010 2px solid; border-bottom: #101010 2px solid; \}');
	}

_DW('#navcontainer a:link \{background-color: #0000cc; color: #EEE; text-decoration: none; \}');
_DW('#navlist a:visited \{background-color: #0000cc; color: #EEE; text-decoration: none; \}');

if (width <= 800)
	{
	_DW('#active \{color: #cccc00; display: block; text-align: center; width: 125px; background-color: #0000cc; font-family: verdana, arial, serif; font-weight: bold; font-size: 14px; height: 34px; font-style: italic; \}');
	}
else
	{
	_DW('#active \{color: #cccc00; display: block; text-align: center; width: 165px; background-color: #0000cc; font-family: verdana, arial, serif; font-weight: bold; font-size: 14px; height: 24px; font-style: italic; \}');
	}

_DW('#navcontainer a:hover \{background-color: #000033; color: #cccc00; font-size: 15px; \}');

_DW('.spacer9 \{ height: 9px; \}');


if (width <= 800)
	{ _DW('#navcontainerx \{width: 310px; \}'); }
else
	{ _DW('#navcontainerx \{width: 366px; \}'); }

_DW('#navcontainerx ul \{margin-left: 0; padding-left: 0; list-style-type: none; font-family: verdana, arial, serif; \}');

if (width <= 800)
	{ _DW('#navcontainerx p \{margin-top: 12; font-size: 14px; \}'); }
else
	{ _DW('#navcontainerx p \{margin-top: 11; font-size: 16px; \}'); }

if (width <= 800)
	{
	_DW('#navcontainerx a \{display: block; text-align: center; width: 316px; background-color: #0000cc; color: #ffffff; font-family: verdana, arial, serif; font-weight: bold; font-size: 18px; height: 44px; border-top: #f5f5f5 2px solid; border-left: #f5f5f5 2px solid; border-right: #101010 2px solid; border-bottom: #101010 2px solid; \}');
	}
else
	{
	_DW('#navcontainerx a \{display: block; text-align: center; width: 356px; background-color: #0000cc; color: #ffffff; font-family: verdana, arial, serif; font-weight: bold; font-size: 18px; height: 44px; border-top: #f5f5f5 2px solid; border-left: #f5f5f5 2px solid; border-right: #101010 2px solid; border-bottom: #101010 2px solid; \}');
	}

_DW('#navcontainerx a:link \{background-color: #0000cc; color: #EEE; text-decoration: none; \}');
_DW('#navlistx a:visited \{background-color: #0000cc; color: #EEE; text-decoration: none; \}');

if (width <= 800)
	{
	_DW('#activex \{color: #ffffff; display: block; text-align: center; width: 316px; background-color: #e4e4ff; font-family: verdana, arial, serif; font-weight: bold; font-size: 2px; height: 8px; font-style: italic; \}');
	}
else
	{
	_DW('#activex \{color: #ffffff; display: block; text-align: center; width: 356px; background-color: #e4e4ff; font-family: verdana, arial, serif; font-weight: bold; font-size: 2px; height: 8px; font-style: italic; \}');
	}

_DW('#navcontainerx a:hover \{background-color: #000033; color: #cccc00; font-size: 15px; \}');

_DW('</style>');

if (sel == 1)
	{
	_DW('<script>');
	_DW('document.onselectstart = function() {return false;};');
	_DW('</script>');
	}
};

