//var legal_tip = "this is the legal tip";
function legaltip() {
	return escape('this is the legal tip');
}

function searchwindowopen()
{
	window.open('', 'newland_search_results', 'toolbar=no,menubar=no,scrollbars=yes,locationbar=no,width=800,height=600');
	return true;
}

function aboutnewlandopen()
{
	window.open('', 'about_newland', 'toolbar=no,menubar=no,scrollbars=no,locationbar=no,statusbar=no,width=458,height=560');
	return true;
}

function popup(name, width, height)
{
	window.open('', name, 'toolbar=no,menubar=no,scrollbars=yes,locationbar=no,statusbar=no,width=' + width + ',height=' + height);	
	return true;
}

function amenitiesopen()
{
	return popup('newland_amenities', 900, 650);
}

function locationopen()
{
	return popup('newland_amenities', 800, 725);
}

function calcopen() {
	window.open('', 'home_calc', 'toolbar=no,menubar=no,scrollbars=yes,locationbar=no,statusbar=no,width=381,height=350');
	return true;
}

function modelSaved() { 
	alert("This item has already been saved."); 
}
function appear_legal() {
	new Effect.Appear('legal_popup', { duration: 0.5});
	return false;
}
function disappear_legal() {
	new Effect.Fade('legal_popup', { duration: 0.5});
	return false;
}
function log_in() {
	alert('please log in');
	toggle_mn_login();
}
function toggle_builder(builder_id) {
	new Effect.toggle(builder_id, 'blind');
}
function toggle_neighborhood(hood_id) {
	new Effect.toggle(hood_id, 'blind');
}
/*
*/
function toggle_mn_login(elementName) {
	new Effect.toggle(elementName, 'blind');
	return false;
}
function toggle_saved_homes() {
	new Effect.BlindUp('toggle_home_prefs');
	new Effect.BlindUp('toggle_edit_profile');
	new Effect.BlindDown('toggle_saved_homes');
	return false;
}
function toggle_edit_profile() {
	new Effect.BlindUp('toggle_home_prefs');
	new Effect.BlindDown('toggle_edit_profile');
	new Effect.BlindUp('toggle_saved_homes');
	return false;
}
function toggle_home_prefs() {
	/*new Effect.toggle('toggle_home_prefs', 'blind');*/
	new Effect.BlindDown('toggle_home_prefs');
	new Effect.BlindUp('toggle_edit_profile');
	new Effect.BlindUp('toggle_saved_homes');
	return false;
}

