function drawHeader (_SCREENID_CUR, _NEXT_URL, _FIRSTNAME, _NUM_PROPERTIES, _NUM_SEARCHES){
	
document.write ("<div class=\"logo\"><a href=\"/\">&nbsp;</a></div>");
/*
document.write("<div class=\"search\">");
document.write("	<fieldset>");
document.write("		<form action=\"/vp/SearchServlet\" method=\"post\" target=\"_parent\" name=\"form3\">");
document.write("		<input type=\"hidden\" name=\"ScreenID_Cur\" value=\"SEARCH_LISTING_LP\">");
document.write("		<input type=\"hidden\" name=\"jboss_alt\" value=\"true\">");
document.write("		<input type=\"hidden\" name=\"ScreenID\" value=\"ListingSummary_Public\">");
document.write("		<input type=\"hidden\" name=\"ScreenID_Alt\" value=\"LISTING_DETAIL_P\">");
document.write("		<input type=\"hidden\" name=\"scoped\" value=\"Y\">");
document.write("		<input type=\"hidden\" name=\"LOGSEARCH\" value=\"TRUE\">");
document.write("		<input type=\"hidden\" name=\"cd_Page\" value=\"SEARCH_LISTING_P\">");
document.write("		<input type=\"hidden\" name=\"SITE\" value=\"HASSON\">");
document.write("		<input type=\"hidden\" name=\"fg_SummaryCntl\" value=\"Y\">");
document.write("		<input type=\"hidden\" name=\"Search_Page\" value=\"SEARCH_LISTING_P\">");
document.write("		<input type=\"hidden\" name=\"numRecordsToShow\" value=\"5\">");
document.write("		<input type=\"hidden\" name=\"sortCriteria\" value=\"Listing_Price DESC\">");
document.write("		<input type=\"text\" name=\"L_MLS_NUMBER\" value=\"Search\" id=\"search\" class=\"text search\" />");
document.write("		<input type=\"image\" src=\"/images/search_go_button.png\" name=\"Search\" value=\"Go\" id=\"search_go\" class=\"button search\" />");
document.write("		</form>");
document.write("	</fieldset>");
document.write("</div>");
*/
if(_FIRSTNAME.length > 0){
var propWord = "properties";
var searchWord = "search";

if(_NUM_PROPERTIES == 1){
	propWord = "property";
}
if(_NUM_SEARCHES == 0 || _NUM_SEARCHES > 1){
	searchWord = "searches";
}
document.write("<div class=\"login\">");
document.write("	<div class=\"welcome\">Welcome, " + _FIRSTNAME + "! &#124; <a href=\"#\" onclick=\"logOut('HASSON');\">log out</a></div>");
document.write("	<div class=\"saved_info\">");
document.write("		<p>You have " + _NUM_PROPERTIES + " saved " + propWord + ", " + _NUM_SEARCHES + " saved " + searchWord + "</p>");
document.write("	<p><a href=\"/vp/LoginServlet2?SITE=HASSON&ScreenID=VOW_LOGIN&DFLT_PAGE=VOW_HOME\" target=\"_parent\">Click Here</a> to view your portfolio</p></div>");
document.write("</div>");

}
else{
	document.write ("	<div class=\"login\">");
	document.write ("		<div class=\"sign_up\"><a href=\"/vp/VOWServlet2?SITE=HASSON&ScreenID=VOW_REGISTRATION\">Sign up</a>&nbsp;&#124;&nbsp;<a href=\"#\" onclick=\"javascript:popUp('/vp/VOWServlet2?SITE=HASSON&ScreenID=VOW_PASSWORD_REMINDER', 'width=500,height=500,left=0,top=0,location=no,menubar=no,toolbar=no,status=no,scrollbars=yes');\">Forgot password?</a></div>");	
	document.write ("		<fieldset>");	
	document.write ("			<form action=\"/vp/LoginServlet2\" method=\"post\" name=\"form2\" target=\"_blank\" onsubmit=\"return validateQuickLogin();\" />");
	document.write ("				<input type=\"hidden\" name=\"SITE\" value=\"HASSON\" />");
	document.write ("				<input type=\"hidden\" name=\"Login\" value=\"TRUE\" />");
	document.write ("				<input type=\"hidden\" name=\"ScreenID_Cur\" value=\"VOW_LOGIN\" />");
	document.write ("				<input type=\"hidden\" name=\"ScreenID\" value=\"THANK_YOU\" />");
	document.write ("				<input type=\"hidden\" name=\"REFRESH_PARENT\" value=\"TRUE\" />");
	document.write ("				<input type=\"hidden\" name=\"next_url\" value=\"" + _NEXT_URL + "\" />");
	document.write ("				<input type=\"text\" name=\"CE_EMAIL\" value=\"Email\" id=\"login_user\" class=\"text login\" onfocus=\"javascript:if(this.value == 'Email'){this.value='';}if(document.getElementById('login_pass').value=='Password'){document.getElementById('login_pass').value='';}\" />");	
	document.write ("				<input type=\"password\" name=\"CC_PASSWORD\" value=\"Password\" id=\"login_pass\" class=\"text login\" onfocus=\"javascript:if(this.value == 'Password'){this.value='';}if(document.getElementById('login_user').value=='User Name'){document.getElementById('login_user').value='';}\" />");	
	document.write ("				<input type=\"image\" src=\"/images/go_button.png\" name=\"Login\" value=\"Go\" id=\"login_go\" class=\"button login\" />");	
	document.write ("			</form>");
	document.write ("		</fieldset>"	);
	document.write ("	</div>");
}

document.write ("	  <ul class=\"topNav\">");
document.write ("	    <li><img src=\"/images/nav_left.jpg\"><p><a href=\"http://www.hasson.com\" target=\"_parent\">Home</a></p><img src=\"/images/nav_right.jpg\"></li>");
document.write ("	    <li><img src=\"/images/nav_left.jpg\"><p><a href=\"/vp/SearchServlet?ListingSearch=TRUE&SITE=HASSON&ScreenID=SEARCH_LISTING_P\" target=\"_parent\"> Home Search</a></p><img src=\"/images/nav_right.jpg\"></li>");
document.write ("	    <li><img src=\"/images/nav_left.jpg\"><p><a href=\"/sell.html\" target=\"_parent\" >Sellers Services</a></p><img src=\"/images/nav_right.jpg\"></li>");
document.write ("	    <li><img src=\"/images/nav_left.jpg\"><p><a href=\"/relocation.html\" target=\"_parent\">Relocation</a></p><img src=\"/images/nav_right.jpg\"></li>");
document.write ("	    <li><img src=\"/images/nav_left.jpg\"><p><a href=\"/central.html\" target=\"_parent\">Area Guide</a></p><img src=\"/images/nav_right.jpg\"></li>");
document.write ("	    <li><img src=\"/images/nav_left.jpg\"><p><a href=\"http://www.hassoncareers.com\" target=\"_blank\">Careers</a></p><img src=\"/images/nav_right.jpg\"></li>");
document.write ("	    <li><img src=\"/images/nav_left.jpg\"><p><a href=\"/developments.html\" target=\"_parent\">Developments</a></p><img src=\"/images/nav_right.jpg\"></li>");
document.write ("	    <li><img src=\"/images/nav_left.jpg\"><p><a href=\"/our_company.html\" target=\"_parent\">About Hasson</a></p><img src=\"/images/nav_right.jpg\"></li>");
document.write ("	    <li><img src=\"/images/nav_left.jpg\"><p><a href=\"/vp/AgentServlet?AgentSearch=TRUE&SITE=HASSON&ScreenID=SEARCH_AGENTS_P&context=SEARCH_AGENTS_P_DISPLAY\"  target=\"_parent\">Find Agent/Office</a></p><img src=\"/images/nav_right.jpg\"></li>");
document.write ("	    <li><img src=\"/images/nav_left.jpg\"><p><a href=\"/vp/ListingServlet?SITE=HASSON&ScreenID=CONTACT_US&context=CONTEXT\"  target=\"_parent\">Contact Us</a></p><img src=\"/images/nav_right.jpg\"></li>");
document.write ("         </ul>");


}






function drawHeader2 (){
	
document.write ("<div class=\"logo\"><a href=\"/\">&nbsp;</a></div>");

document.write ("	  <ul class=\"topNav\">");
document.write ("	    <li><img src=\"/images/nav_left.jpg\"><p><a href=\"http://www.hasson.com\" target=\"_parent\">Home</a></p><img src=\"/images/nav_right.jpg\"></li>");
document.write ("	    <li><img src=\"/images/nav_left.jpg\"><p><a href=\"/vp/SearchServlet?ListingSearch=TRUE&SITE=HASSON&ScreenID=SEARCH_LISTING_P\" target=\"_parent\"> Home Search</a></p><img src=\"/images/nav_right.jpg\"></li>");
document.write ("	    <li><img src=\"/images/nav_left.jpg\"><p><a href=\"/sell.html\" target=\"_parent\" >Sellers Services</a></p><img src=\"/images/nav_right.jpg\"></li>");
document.write ("	    <li><img src=\"/images/nav_left.jpg\"><p><a href=\"/relocation.html\" target=\"_parent\">Relocation</a></p><img src=\"/images/nav_right.jpg\"></li>");
document.write ("	    <li><img src=\"/images/nav_left.jpg\"><p><a href=\"/central.html\" target=\"_parent\">Area Guide</a></p><img src=\"/images/nav_right.jpg\"></li>");
document.write ("	    <li><img src=\"/images/nav_left.jpg\"><p><a href=\"http://www.hassoncareers.com\" target=\"_blank\">Careers</a></p><img src=\"/images/nav_right.jpg\"></li>");
document.write ("	    <li><img src=\"/images/nav_left.jpg\"><p><a href=\"/developments.html\" target=\"_parent\">Developments</a></p><img src=\"/images/nav_right.jpg\"></li>");
document.write ("	    <li><img src=\"/images/nav_left.jpg\"><p><a href=\"/our_company.html\" target=\"_parent\">About Hasson</a></p><img src=\"/images/nav_right.jpg\"></li>");
document.write ("	    <li><img src=\"/images/nav_left.jpg\"><p><a href=\"/vp/AgentServlet?AgentSearch=TRUE&SITE=HASSON&ScreenID=SEARCH_AGENTS_P&context=SEARCH_AGENTS_P_DISPLAY\"  target=\"_parent\">Find Agent/Office</a></p><img src=\"/images/nav_right.jpg\"></li>");
document.write ("	    <li><img src=\"/images/nav_left.jpg\"><p><a href=\"/vp/ListingServlet?SITE=HASSON&ScreenID=CONTACT_US&context=CONTEXT\"  target=\"_parent\">Contact Us</a></p><img src=\"/images/nav_right.jpg\"></li>");
document.write ("         </ul>");


}

function drawRightNav (){
//*document.write ("<a href=\"/vp/SearchServlet?ListingSearch=TRUE&SITE=HASSON&ScreenID=SEARCH_LISTING_P\" target=\"_parent\" onmouseover=\"promo_buy.src='images/promo_buy_on.png';\" onmouseout=\"promo_buy.src='images/promo_buy_off.png';\"><img src=\"images/promo_buy_off.png\" width=\"146\" height=\"43\" alt=\"Buy A Home\" id=\"promo_buy\" /></a>");
//*document.write ("<a href=\"sell.html\" onmouseover=\"promo_sell.src='images/promo_sell_on.png';\" target=\"_parent\" onmouseout=\"promo_sell.src='images/promo_sell_off.png';\"><img src=\"images/promo_sell_off.png\" width=\"148\" height=\"43\" alt=\"Sell A Home\" id=\"promo_sell\"  /></a>");
//*document.write ("<a href=\"/vp/AgentServlet?AgentSearch=TRUE&SITE=HASSON&ScreenID=SEARCH_AGENTS_P&context=SEARCH_AGENTS_P_DISPLAY\" target=\"_parent\" onmouseover=\"promo_contact.src='images/promo_contact_on.png';\" onmouseout=\"promo_contact.src='images/promo_contact_off.png';\"><img src=\"images/promo_contact_off.png\" width=\"146\" height=\"43\" alt=\"Contact An Agent\" id=\"promo_contact\" /></a>");

document.write ("<a href=\"/green.html\"><img src=\"images/green.jpg\" alt=\"Green Real Estate\" id=\"green_real_estate\" /></a>");
document.write ("<a href=\"/vp/SearchServlet?ListingSearch=TRUE&SITE=HASSON&ScreenID=SEARCH_LISTING_P_OPEN\" target=\"_parent\"><img src=\"images/openhouse.gif\" alt=\"Open House Search\" id=\"openhouse\" /></a>");
document.write ("<a href=\"/why_hasson.html\"><img src=\"images/reasons.jpg\" alt=\"Why Hasson\" id=\"why_hasson\" /></a>");
document.write ("<a href=\"/vp/SearchServlet?ListingSearch=TRUE&SITE=HASSON&ScreenID=SEARCH_LISTING_P_MAP\" target=\"_parent\"><img src=\"images/mapit.jpg\" alt=\"Map It\" id=\"map_it\" /></a>");
document.write ("<a href=\"/vp/ListingServlet?SITE=HASSON&ScreenID=CONTACT_US&context=CONTEXT\" target=\"_parent\"><img src=\"images/contact_us.jpg\" alt=\"Contact Us\" id=\"contact_us\" /></a>");
}

function drawDevRightNav (){
//*document.write ("<a href=\"/vp/SearchServlet?ListingSearch=TRUE&SITE=HASSON&ScreenID=SEARCH_LISTING_P\" target=\"_parent\" onmouseover=\"promo_buy.src='images/promo_buy_on.png';\" onmouseout=\"promo_buy.src='images/promo_buy_off.png';\"><img src=\"images/promo_buy_off.png\" width=\"146\" height=\"43\" alt=\"Buy A Home\" id=\"promo_buy\" /></a>");
//*document.write ("<a href=\"sell.html\" onmouseover=\"promo_sell.src='images/promo_sell_on.png';\" target=\"_parent\" onmouseout=\"promo_sell.src='images/promo_sell_off.png';\"><img src=\"images/promo_sell_off.png\" width=\"148\" height=\"43\" alt=\"Sell A Home\" id=\"promo_sell\"  /></a>");
//*document.write ("<a href=\"/vp/AgentServlet?AgentSearch=TRUE&SITE=HASSON&ScreenID=SEARCH_AGENTS_P&context=SEARCH_AGENTS_P_DISPLAY\" target=\"_parent\" onmouseover=\"promo_contact.src='images/promo_contact_on.png';\" onmouseout=\"promo_contact.src='images/promo_contact_off.png';\"><img src=\"images/promo_contact_off.png\" width=\"146\" height=\"43\" alt=\"Contact An Agent\" id=\"promo_contact\" /></a>");

document.write ("<a href=\"/vp/SearchServlet?ListingSearch=TRUE&SITE=HASSON&ScreenID=SEARCH_LISTING_P&REFINE=Y\"><img src=\"images/vacationicon.jpg\" alt=\"Vacation Search\" id=\"vacation\" /></a>");
document.write ("<a href=\"/green.html\"><img src=\"images/green.jpg\" alt=\"Green Real Estate\" id=\"green_real_estate\" /></a>");
document.write ("<a href=\"/why_hasson.html\"><img src=\"images/reasons.jpg\" alt=\"Why Hasson\" id=\"why_hasson\" /></a>");
document.write ("<a href=\"/vp/SearchServlet?ListingSearch=TRUE&SITE=HASSON&ScreenID=SEARCH_LISTING_P_MAP\" target=\"_parent\"><img src=\"images/mapit.jpg\" alt=\"Map It\" id=\"map_it\" /></a>");
document.write ("<a href=\"/vp/ListingServlet?SITE=HASSON&ScreenID=CONTACT_US&context=CONTEXT\" target=\"_parent\"><img src=\"images/contact_us.jpg\" alt=\"Contact Us\" id=\"contact_us\" /></a>");
}

function drawReloRightNav (){
//*document.write ("<a href=\"/vp/SearchServlet?ListingSearch=TRUE&SITE=HASSON&ScreenID=SEARCH_LISTING_P\" target=\"_parent\" onmouseover=\"promo_buy.src='images/promo_buy_on.png';\" onmouseout=\"promo_buy.src='images/promo_buy_off.png';\"><img src=\"images/promo_buy_off.png\" width=\"146\" height=\"43\" alt=\"Buy A Home\" id=\"promo_buy\" /></a>");
//*document.write ("<a href=\"sell.html\" onmouseover=\"promo_sell.src='images/promo_sell_on.png';\" target=\"_parent\" onmouseout=\"promo_sell.src='images/promo_sell_off.png';\"><img src=\"images/promo_sell_off.png\" width=\"148\" height=\"43\" alt=\"Sell A Home\" id=\"promo_sell\"  /></a>");
//*document.write ("<a href=\"/vp/AgentServlet?AgentSearch=TRUE&SITE=HASSON&ScreenID=SEARCH_AGENTS_P&context=SEARCH_AGENTS_P_DISPLAY\" target=\"_parent\" onmouseover=\"promo_contact.src='images/promo_contact_on.png';\" onmouseout=\"promo_contact.src='images/promo_contact_off.png';\"><img src=\"images/promo_contact_off.png\" width=\"146\" height=\"43\" alt=\"Contact An Agent\" id=\"promo_contact\" /></a>");

document.write ("<a href=\"/green.html\"><img src=\"images/green.jpg\" alt=\"Green Real Estate\" id=\"green_real_estate\" /></a>");
document.write ("<a href=\"/why_hasson.html\"><img src=\"images/reasons.jpg\" alt=\"Why Hasson\" id=\"why_hasson\" /></a>");
document.write ("<a href=\"/vp/SearchServlet?ListingSearch=TRUE&SITE=HASSON&ScreenID=SEARCH_LISTING_P_MAP\" target=\"_parent\"><img src=\"images/mapit.jpg\" alt=\"Map It\" id=\"map_it\" /></a>");
document.write ("<a href=\"/vp/ListingServlet?SITE=HASSON&ScreenID=CONTACT_US&context=CONTEXT\" target=\"_parent\"><img src=\"images/contact_us.jpg\" alt=\"Contact Us\" id=\"contact_us\" /></a>");
}

function drawRightNavRelo (){
document.write ("<a href=\"/vp/ListingServlet?SITE=HASSON&ScreenID=RELO_REQUEST&context=CONTEXT\"><img src=\"images/help-3.jpg\" alt=\"Relocation Request\" id=\"relocation_request\" /></a>");
}

function drawAboutRightNav (){
//*document.write ("<a href=\"/vp/SearchServlet?ListingSearch=TRUE&SITE=HASSON&ScreenID=SEARCH_LISTING_P\" target=\"_parent\" onmouseover=\"promo_buy.src='images/promo_buy_on.png';\" onmouseout=\"promo_buy.src='images/promo_buy_off.png';\"><img src=\"images/promo_buy_off.png\" width=\"146\" height=\"43\" alt=\"Buy A Home\" id=\"promo_buy\" /></a>");
//*document.write ("<a href=\"sell.html\" onmouseover=\"promo_sell.src='images/promo_sell_on.png';\" target=\"_parent\" onmouseout=\"promo_sell.src='images/promo_sell_off.png';\"><img src=\"images/promo_sell_off.png\" width=\"148\" height=\"43\" alt=\"Sell A Home\" id=\"promo_sell\"  /></a>");
//*document.write ("<a href=\"/vp/AgentServlet?AgentSearch=TRUE&SITE=HASSON&ScreenID=SEARCH_AGENTS_P&context=SEARCH_AGENTS_P_DISPLAY\" target=\"_parent\" onmouseover=\"promo_contact.src='images/promo_contact_on.png';\" onmouseout=\"promo_contact.src='images/promo_contact_off.png';\"><img src=\"images/promo_contact_off.png\" width=\"146\" height=\"43\" alt=\"Contact An Agent\" id=\"promo_contact\" /></a>");

document.write ("<a href=\"/green.html\"><img src=\"images/green.jpg\" alt=\"Green Real Estate\" id=\"green_real_estate\" /></a>");
document.write ("<a href=\"/why_hasson.html\"><img src=\"images/reasons.jpg\" alt=\"Why Hasson\" id=\"why_hasson\" /></a>");
document.write ("<a href=\"http://www.hassoncareers.com\" target=\"_blank\"><img src=\"images/career_promo_box_s.jpg\" alt=\"Careers\" id=\"careers\" /></a>");
document.write ("<a href=\"/vp/ListingServlet?SITE=HASSON&ScreenID=CONTACT_US&context=CONTEXT\" target=\"_parent\"><img src=\"images/contact_us.jpg\" alt=\"Contact Us\" id=\"contact_us\" /></a>");
}

function drawRightNavGreen (){
document.write ("<a href=\"/vp/SearchServlet?ListingSearch=TRUE&SITE=HASSON&ScreenID=SEARCH_LISTING_P_OPEN\" target=\"_parent\"><img src=\"images/openhouse.gif\" alt=\"Open House Search\" id=\"openhouse\" /></a>");
document.write ("<a href=\"/why_hasson.html\"><img src=\"images/reasons.jpg\" alt=\"Why Hasson\" id=\"why_hasson\" /></a>");
document.write ("<a href=\"/vp/SearchServlet?ListingSearch=TRUE&SITE=HASSON&ScreenID=SEARCH_LISTING_P_MAP\" target=\"_parent\"><img src=\"images/mapit.jpg\" alt=\"Map It\" id=\"map_it\" /></a>");
document.write ("<a href=\"/vp/ListingServlet?SITE=HASSON&ScreenID=CONTACT_US&context=CONTEXT\" target=\"_parent\"><img src=\"images/contact_us.jpg\" alt=\"Contact Us\" id=\"contact_us\" /></a>");
}
function drawRightNavSeller (){
document.write ("<a href=\"/relocation.html\"><img src=\"images/moving-4.jpg\" alt=\"Relocation\" id=\"relocation\" /></a>");
document.write ("<a href=\"/green.html\"><img src=\"images/green.jpg\" alt=\"Green Real Estate\" id=\"green_real_estate\" /></a>");
document.write ("<a href=\"/vp/SearchServlet?ListingSearch=TRUE&SITE=HASSON&ScreenID=SEARCH_LISTING_P_OPEN\" target=\"_parent\"><img src=\"images/openhouse.gif\" alt=\"Open House Search\" id=\"openhouse\" /></a>");
document.write ("<a href=\"/vp/ListingServlet?SITE=HASSON&ScreenID=CONTACT_US&context=CONTEXT\" target=\"_parent\"><img src=\"images/contact_us.jpg\" alt=\"Contact Us\" id=\"contact_us\" /></a>");
}
function drawRightNavGreen2 (){
document.write ("<a href=\"/vp/SearchServlet?ListingSearch=TRUE&SITE=HASSON&ScreenID=SEARCH_LISTING_P_OPEN\"><img src=\"images/openhouse.gif\" alt=\"Open House Search\" id=\"open_house\" /></a>");
document.write ("<a href=\"/why_hasson.html\"><img src=\"images/reasons.jpg\" alt=\"Why Hasson\" id=\"why_hasson\" /></a>");
document.write ("<a href=\"/selling101_b.html\" target=\"_parent\"><img src=\"images/home_worth.jpg\" alt=\"Home Worth\" id=\"home_worth\" /></a>");
document.write ("<a href=\"/vp/SearchServlet?ListingSearch=TRUE&SITE=HASSON&ScreenID=SEARCH_LISTING_P_MAP\" target=\"_parent\"><img src=\"images/mapit.jpg\" alt=\"Map It\" id=\"map_it\" /></a>");
document.write ("<a href=\"/vp/ListingServlet?SITE=HASSON&ScreenID=CONTACT_US&context=CONTEXT\" target=\"_parent\"><img src=\"images/contact_us.jpg\" alt=\"Contact Us\" id=\"contact_us\" /></a>");
}

function drawSellLeftNav (){

document.write ("<ul class=\"leftnav\">");
document.write ("<li><a href=\"/sell.html\" target=\"_parent\">Deciding to Sell?</a></li>");
document.write ("<li><a href=\"/why_hasson.html\" target=\"_parent\">Why Hasson: <br />");
document.write ("30 Reasons</a></li>");
document.write ("<li><a href=\"/choose_agent.html\" target=\"_parent\">How To Choose Your Agent</a></li>");
document.write ("<li><a href=\"/selling_process.html\" target=\"_parent\">Selling Process</a></li>");
document.write ("<li><a href=\"/home_staging.html\" target=\"_parent\">Home Staging 101</a></li>");
document.write ("<li><a href=\"/open_house_tips.html\" target=\"_parent\">Open House Tips</a></li>");
document.write ("<li><a href=\"/selling101_b.html\" target=\"_parent\">Home Value Tool</a></li>");
document.write ("<li><a href=\"/vp/ListingServlet?SITE=HASSON&ScreenID=CMA_REQUEST&context=CONTEXT\" target=\"_parent\">Request a<br />");
document.write ("Market Analysis</a></li>");
document.write ("<li><a href=\"/vp/VOWServlet2?SITE=HASSON&ScreenID=VOW_REGISTRATION\" target=\"_parent\">Sign Up For <span class=\"orangeNav\">HOME</span><span class=\"grayNav\">TRACKER</span></a></li>");
document.write ("</ul>");
}


function drawReloLeftNav (){
document.write ("<ul class=\"leftnav\">");
document.write ("<li><a href=\"/relocation.html\" target=\"_parent\">Hasson Relocation</a></li>");
document.write ("<li><a href=\"/family_relocation.html\" target=\"_parent\">Individual &amp; Family Relocation</a></li>");
document.write ("<li><a href=\"/corp_services.html\" target=\"_parent\">Corporate Services</a></li>");
document.write ("<li><a href=\"/community_information.html\" target=\"_parent\">Community Information</a></li>");
document.write ("<li><a href=\"/school_districts.html\" target=\"_parent\">School Districts</a></li>");
document.write ("<li><a href=\"/travelportland.html\" target=\"_parent\">Travel Portland</a></li>");
document.write ("<li><a href=\"/market_trends.html\" target=\"_parent\">Market Trends</a></li>");
document.write ("<li><a href=\"/movers.html\" target=\"_parent\">Movers</a></li>");
document.write ("<li><a href=\"/vp/ListingServlet?SITE=HASSON&ScreenID=RELO_REQUEST&context=CONTEXT\" target=\"_parent\">Contact Relocation</a></li>");
//*document.write ("<li><a class=\"keepOn\" href=\"contact_relo.html\" target=\"_parent\">Contact Relocation</a></li>");
document.write ("</ul>");
}


function drawDevLeftNav (){
document.write ("<ul class=\"leftnav\">");
document.write ("<li><a href=\"/developments.html\" target=\"_parent\">Developments&nbsp;&nbsp;</a></li>");
document.write ("<li><a href=\"/pahlisch.html\" target=\"_parent\">Pahlisch Homes&nbsp;&nbsp;</a></li>");
//*document.write ("<li><a href=\"/centurion.html\" target=\"_parent\">Centurion Homes&nbsp;&nbsp;</a></li>");
document.write ("<li><a href=\"/travertinecondos.html\" target=\"_parent\">Travertine Condos&nbsp;&nbsp;</a></li>");
document.write ("<li><a href=\"/grahamstreetlofts.html\" target=\"_parent\">Graham Street Lofts&nbsp;&nbsp;</a></li>");
document.write ("<li><a href=\"/bellavilla.html\" target=\"_parent\">Bella Villa&nbsp;&nbsp;</a></li>");
document.write ("<li><a href=\"/moongate.html\" target=\"_parent\">Moongate&nbsp;&nbsp;</a></li>");
document.write ("<li><a href=\"/vp/ListingServlet?SITE=HASSON&ScreenID=CONTACT_US&context=CONTEXT\" target=\"_parent\">Call To Developers</a></li>");
document.write ("</ul>");
}

function drawCompanyLeftNav (){
document.write ("<ul class=\"leftnav\">");
document.write ("<li><a href=\"our_company.html\" target=\"_parent\">Our Company</a></li>");
document.write ("<li><a href=\"management_team.html\" target=\"_parent\">Management Team</a></li>");
document.write ("<li><a href=\"testimonials.html\" target=\"_parent\">Testimonials</a></li>");
document.write ("<li><a href=\"http://www.hassoncareers.com\" target=\"_blank\">Careers</a></li>");
document.write ("<li><a href=\"cms_news2010_summary\" target=\"_parent\">News</a></li>");
document.write ("<li><a href=\"community.html\" target=\"_parent\">Community Involvement</a></li>");
document.write ("<li><a href=\"privacy_policy.html\" target=\"_parent\" class=\keepOn\">Privacy Policy</a></li>");
document.write ("</ul>");
 }           
function drawCompanyLeftNav2 (){
document.write ("<ul class=\"leftnav\">");
document.write ("<li><a href=\"our_company.html\" target=\"_parent\">Our Company</a></li>");
document.write ("<li><a href=\"management_team.html\" target=\"_parent\">Management Team</a></li>");
document.write ("<li><a href=\"testimonials.html\" target=\"_parent\">Testimonials</a></li>");
document.write ("<li><a href=\"http://www.hassoncareers.com\" target=\"_blank\">Careers</a></li>");
document.write ("<li><a href=\"cms_news2010_summary\" target=\"_parent\">2010 News</a></li>");
document.write ("<li><a href=\"cms_news_summary\" target=\"_parent\">2009 News</a></li>");
document.write ("<li><a href=\"cms_news2008_summary\" target=\"_parent\">2008 News</a></li>");
document.write ("<li><a href=\"community.html\" target=\"_parent\">Community Involvement</a></li>");
document.write ("<li><a href=\"privacy_policy.html\" target=\"_parent\" class=\keepOn\">Privacy Policy</a></li>");
document.write ("</ul>");
 }
            
            
            
            
//*function printCompanyMenu (highlightedmenu) {
//* var MenuArray = [
//*   ["Our Company","our_company.html"],
//*   ["Management Team","management_team.html"],
//*   ["Testimonials","testimonials.html"],
//*   ["Careers","careers.html"],
//*   ["News","/vp/DisplayServlet?SITE=HASSON&SCREENID=NEWS&mode=summary"],
//*   ["Community Involvement","community.html"],
//*   ["Privacy Policy","privacy_policy.html"],
//* ];
//* var MenuString = "";
//* for (var i = 0; i< MenuArray.length; i++) { MenuString += "<li><a href=\""+ MenuArray[i][1] +"\""; target=\"_parent\" if (highlightedmenu == MenuArray[i][0]) { MenuString += " class=\"keepOn\"";
//*   }
//*   MenuString += ">"+ MenuArray[i][0] +"</a></li>";
//* }
//* document.write(MenuString);
//* }            
            
            
            
function drawFooter (){
document.write ("	<div class=\"disclaimer\"><p> </p></div>");	
document.write ("	<div class=\"footlinks\"><p>Copyright &copy;2007 Hasson Company Realtors   |   Portland, Oregon  |   <a href=\"/privacy_policy.html\" target=\"_parent\">Privacy Policy</a>  |   <a href=\"/disclaimer.html\" target=\"_parent\">Disclaimer</a></p><a href=\"http://www.hud.gov/offices/fheo/FHLaws/index.cfm\" target=\"_parent\" rel=\"external\"><img src=\"/images/footer_logos.png\" width=\"74\" height=\"28\" alt=\"Footer Logos\" /></a></div>");
}
function externalLinks() {
	if (!document.getElementsByTagName) return;
	var anchors = document.getElementsByTagName("a");
	for (var i=0; i<anchors.length; i++) {
		var anchor = anchors[i];
		if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") anchor.target = "_blank";
	}
	var areas = document.getElementsByTagName("area");
	for (var i=0; i<areas.length; i++) {
		var area = areas[i];
		if (area.getAttribute("href") && area.getAttribute("rel") == "external") area.target = "_blank";
	}
}

function popUp(URL, windowOptions) {
  day = new Date();
  id = day.getTime();
  eval("page" + id + " = window.open(URL, '" + id + "', windowOptions);");
}

function validateQuickLogin(){
	if(document.getElementById('login_user').value.length > 0 && document.getElementById('login_pass').value.length > 0 && document.getElementById('login_user').value != 'User Name' && document.getElementById('login_pass').value != 'Password'){
		return true;
	}
	else{
		alert('You must enter a User Name and Password to continue');
		return false;
	}
}
      
function logOut(site){
	delete_cookie ( site );
	document.body.disabled = true;
	window.location.reload();
}

function delete_cookie ( cookie_name )
{
	if(cookie_name.length > 0){
		var cookie_date = new Date ( );  // current date & time
		cookie_date.setTime ( cookie_date.getTime() - 1 );
		document.cookie = cookie_name += "=; domain=hasson.com; expires=" + cookie_date.toGMTString() + "; path=/";
	}
}


function getDate(){
var now = new Date();
var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();
function fourdigits(number)	{
	return (number < 1000) ? number + 1900 : number;
	}
today =  days[now.getDay()] + ", " +
         months[now.getMonth()] + " " +
         date + ", " +
         (fourdigits(now.getYear())) ;
document.write(today);
}
