
function toggle_login() {
	new Effect.toggle('mn_inner_toggle', 'blind');
	return false;
}
function toggle_homesearch() {
	new Effect.toggle('homesearch_toggle', 'blind');
	return false;
}
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 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;
}

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

// @added - due to top_nav fixed width, we need to find the platform

if (typeof(window.navigator.platform) != 'undefined')
{
  if (window.navigator.platform.indexOf('win') != -1)
    navigator.OS = 'win';
  else if (window.navigator.platform.indexOf('mac') != -1)
    navigator.OS = 'mac';
  else if (window.navigator.platform.indexOf('unix') != -1 || window.navigator.platform.indexOf('linux') != -1 || window.navigator.platform.indexOf('sun') != -1)
    navigator.OS = 'nix';
}

function mapOpen()
{
	window.open('', 'map', 'toolbar=no,menubar=no,scrollbars=yes,locationbar=no,statusbar=no,width=950,height=530');	
	return true;
}
function mapOpen2()
{
	window.open('', 'map', 'toolbar=no,menubar=no,scrollbars=yes,locationbar=no,statusbar=no,width=420,height=420');	
	return true;
}
