//document.write('<script type="text/javascript" src="js/test.js"></script>');

function mmLoadMenus(siteName)
{
	if (window.mm_menu_0710135336_0) return;

	//	 SUB MENU DISPLAY FOR : FIND A PROPERTY
	window.mm_menu_0710135336_0 = new Menu("root",206,24,"Verdana, Arial, Helvetica, sans-serif",12,"#FFFFFF","#FDFDFD","#5575CE","#187503","left","middle",6,1,1000,-5,7,true,true,true,0,true,true);
		mm_menu_0710135336_0.addMenuItem("Advanced&nbsp;Search&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;","location='advance_search.php'");
		// mm_menu_0710135336_0.addMenuItem("Map&nbsp;Search&nbsp;&nbsp;&nbsp;","location='map_search.php'");
		mm_menu_0710135336_0.fontWeight="bold";
		mm_menu_0710135336_0.hideOnMouseOut=true;
		mm_menu_0710135336_0.bgColor='#FFFFFF';
		mm_menu_0710135336_0.menuBorder=0;
		mm_menu_0710135336_0.menuLiteBgColor='';
		mm_menu_0710135336_0.menuBorderBgColor='';

//	------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

	window.justSoldSubMenu = new Menu("Just Sold",200,24,"Verdana, Arial, Helvetica, sans-serif",12,"#FFFFFF","#FDFDFD","#5575CE","#187503","left","middle",6,1,1000,-15,7,true,true,true,0,true,true);
		if(siteName == 'propertychoice')
		{
			justSoldSubMenu.addMenuItem("Alberta","location='browse_listing.php?status=Sold Listing&listing_province=Alberta'");
			justSoldSubMenu.addMenuItem("British Columbia","location='browse_listing.php?status=Sold Listing&listing_province=British Columbia'");
			justSoldSubMenu.addMenuItem("Manitoba","location='browse_listing.php?status=Sold Listing&listing_province=Manitoba'");
			justSoldSubMenu.addMenuItem("New Brunswick","location='browse_listing.php?status=Sold Listing&listing_province=New Brunswick'");
			justSoldSubMenu.addMenuItem("Newfoundland","location='browse_listing.php?status=Sold Listing&listing_province=Newfoundland'");
			justSoldSubMenu.addMenuItem("Northwest Territories","location='browse_listing.php?status=Sold Listing&listing_province=Northwest Territories'");
			justSoldSubMenu.addMenuItem("Nova Scotia","location='browse_listing.php?status=Sold Listing&listing_province=Nova Scotia'");
			justSoldSubMenu.addMenuItem("Ontario","location='browse_listing.php?status=Sold Listing&listing_province=Ontario'");
			justSoldSubMenu.addMenuItem("Prince Edward Island","location='browse_listing.php?status=Sold Listing&listing_province=Prince Edward Island'");
			justSoldSubMenu.addMenuItem("Quebec","location='browse_listing.php?status=Sold Listing&listing_province=Quebec'");
			justSoldSubMenu.addMenuItem("Saskatchewan","location='browse_listing.php?status=Sold Listing&listing_province=Saskatchewan'");
			justSoldSubMenu.addMenuItem("Yukon Territory","location='browse_listing.php?status=Sold Listing&listing_province=Yukon Territory'");
		}
		else if(siteName == 'ukpropertieslist')
		{
			justSoldSubMenu.addMenuItem("England","location='browse_listing.php?status=Sold Listing&listing_province=England'");
			justSoldSubMenu.addMenuItem("Northern Ireland","location='browse_listing.php?status=Sold Listing&listing_province=Northern Ireland'");
			justSoldSubMenu.addMenuItem("Scotland","location='browse_listing.php?status=Sold Listing&listing_province=Scotland'");
			justSoldSubMenu.addMenuItem("Wales","location='browse_listing.php?status=Sold Listing&listing_province=Wales'");
		}
		justSoldSubMenu.fontWeight="bold";
		justSoldSubMenu.hideOnMouseOut=true;
		justSoldSubMenu.bgColor='#FFFFFF';
		justSoldSubMenu.menuBorder=0;
		justSoldSubMenu.menuLiteBgColor='';
		justSoldSubMenu.menuBorderBgColor='';
	
	//	 SUB MENU DISPLAY FOR : SELL YOUR PROPERTY
	window.mm_menu_0710135426_0 = new Menu("root",200,24,"Verdana, Arial, Helvetica, sans-serif",12,"#FFFFFF","#FDFDFD","#5575CE","#187503","left","middle",6, 1, 1000, 0, 0, true,true,true,0,true,true);		
		mm_menu_0710135426_0.addMenuItem("Local&nbsp;Office","location='site_page.php?page=47'");
		mm_menu_0710135426_0.addMenuItem("Just&nbsp;Sold","location='browse_listing.php?status=Sold Listing'");
		//mm_menu_0710135426_0.addMenuItem(justSoldSubMenu);
		mm_menu_0710135426_0.fontWeight="bold";
		mm_menu_0710135426_0.hideOnMouseOut=true;
		mm_menu_0710135426_0.bgColor='#FFFFFF';
		mm_menu_0710135426_0.menuBorder=0;
		mm_menu_0710135426_0.menuLiteBgColor='';
		mm_menu_0710135426_0.menuBorderBgColor='';

//	------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
	
	//	 SUB MENU DISPLAY FOR : VIEW LISTING
	window.mm_menu_0721190227_0 = new Menu("root",210,24,"Verdana, Arial, Helvetica, sans-serif",12,"#FFFFFF","#FDFDFD","#5575CE","#187503","left","top",6,1,1000,-5,7,true,true,true,0,true,true);
		if(siteName == 'propertychoice')
		{
			mm_menu_0721190227_0.addMenuItem("Alberta","location='browse_listing.php?listing_province=Alberta'");
			mm_menu_0721190227_0.addMenuItem("British Columbia","location='browse_listing.php?listing_province=British Columbia'");
			mm_menu_0721190227_0.addMenuItem("Manitoba","location='browse_listing.php?listing_province=Manitoba'");
			mm_menu_0721190227_0.addMenuItem("New Brunswick","location='browse_listing.php?listing_province=New Brunswick'");
			mm_menu_0721190227_0.addMenuItem("Newfoundland","location='browse_listing.php?listing_province=Newfoundland'");
			mm_menu_0721190227_0.addMenuItem("Northwest Territories","location='browse_listing.php?listing_province=Northwest Territories'");
			mm_menu_0721190227_0.addMenuItem("Nova Scotia","location='browse_listing.php?listing_province=Nova Scotia'");
			mm_menu_0721190227_0.addMenuItem("Ontario","location='browse_listing.php?listing_province=Ontario'");
			mm_menu_0721190227_0.addMenuItem("Prince Edward Island","location='browse_listing.php?listing_province=Prince Edward Island'");
			mm_menu_0721190227_0.addMenuItem("Quebec","location='browse_listing.php?listing_province=Quebec'");
			mm_menu_0721190227_0.addMenuItem("Saskatchewan","location='browse_listing.php?listing_province=Saskatchewan'");
			mm_menu_0721190227_0.addMenuItem("Yukon Territory","location='browse_listing.php?listing_province=Yukon Territory'");
			
			mm_menu_0721190227_0.addMenuItem("<form action='http://www.propertychoice.ca/site_search.php' method='post' name='menuSearchForm'><input type='text' name='listing_id' value='' size='7' /><input type='submit' name='ok' value='ok' /></form>");
		}
		else if(siteName == 'ukpropertieslist')
		{
			mm_menu_0721190227_0.addMenuItem("England","location='browse_listing.php?listing_province=England'");
			mm_menu_0721190227_0.addMenuItem("Northern Ireland","location='browse_listing.php?listing_province=Northern Ireland'");
			mm_menu_0721190227_0.addMenuItem("Scotland","location='browse_listing.php?listing_province=Scotland'");
			mm_menu_0721190227_0.addMenuItem("Wales","location='browse_listing.php?listing_province=Wales'");
		}
		
		mm_menu_0721190227_0.fontWeight="bold";
		mm_menu_0721190227_0.hideOnMouseOut=true;
		mm_menu_0721190227_0.bgColor='#FFFFFF';
		mm_menu_0721190227_0.menuBorder=0;
		mm_menu_0721190227_0.menuLiteBgColor='';
		mm_menu_0721190227_0.menuBorderBgColor='';
	
//	------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
	
	//	 SUB MENU DISPLAY FOR : OPEN HOUSES
	window.mm_menu_0731190227_0 = new Menu("root",210,24,"Verdana, Arial, Helvetica, sans-serif",12,"#FFFFFF","#FDFDFD","#5575CE","#187503","left","middle",6,1,1000,-5,7,true,true,true,0,true,true);
		if(siteName == 'propertychoice')
		{
			mm_menu_0731190227_0.addMenuItem("Alberta","location='browse_listing.php?type=openhouse&listing_province=Alberta'");
			mm_menu_0731190227_0.addMenuItem("British Columbia","location='browse_listing.php?type=openhouse&listing_province=British Columbia'");
			mm_menu_0731190227_0.addMenuItem("Manitoba","location='browse_listing.php?type=openhouse&listing_province=Manitoba'");
			mm_menu_0731190227_0.addMenuItem("New Brunswick","location='browse_listing.php?type=openhouse&listing_province=New Brunswick'");
			mm_menu_0731190227_0.addMenuItem("Newfoundland","location='browse_listing.php?type=openhouse&listing_province=Newfoundland'");
			mm_menu_0731190227_0.addMenuItem("Northwest Territories","location='browse_listing.php?type=openhouse&listing_province=Northwest Territories'");
			mm_menu_0731190227_0.addMenuItem("Nova Scotia","location='browse_listing.php?type=openhouse&listing_province=Nova Scotia'");
			mm_menu_0731190227_0.addMenuItem("Ontario","location='browse_listing.php?type=openhouse&listing_province=Ontario'");
			mm_menu_0731190227_0.addMenuItem("Prince Edward Island","location='browse_listing.php?type=openhouse&listing_province=Prince Edward Island'");
			mm_menu_0731190227_0.addMenuItem("Quebec","location='browse_listing.php?type=openhouse&listing_province=Quebec'");
			mm_menu_0731190227_0.addMenuItem("Saskatchewan","location='browse_listing.php?type=openhouse&listing_province=Saskatchewan'");
			mm_menu_0731190227_0.addMenuItem("Yukon Territory","location='browse_listing.php?type=openhouse&listing_province=Yukon Territory'");
		}
		else if(siteName == 'ukpropertieslist')
		{
			mm_menu_0731190227_0.addMenuItem("England","location='browse_listing.php?type=openhouse&listing_province=England'");
			mm_menu_0731190227_0.addMenuItem("Northern Ireland","location='browse_listing.php?type=openhouse&listing_province=Northern Ireland'");
			mm_menu_0731190227_0.addMenuItem("Scotland","location='browse_listing.php?type=openhouse&listing_province=Scotland'");
			mm_menu_0731190227_0.addMenuItem("Wales","location='browse_listing.php?type=openhouse&listing_province=Wales'");
		}
		
		mm_menu_0731190227_0.fontWeight="bold";
		mm_menu_0731190227_0.hideOnMouseOut=true;
		mm_menu_0731190227_0.bgColor='#FFFFFF';
		mm_menu_0731190227_0.menuBorder=0;
		mm_menu_0731190227_0.menuLiteBgColor='';
		mm_menu_0731190227_0.menuBorderBgColor='';

//	------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
		
	//	 SUB MENU DISPLAY FOR : HOW IT WORKS
	window.mm_menu_0710135552_0 = new Menu("root",207,24,"Verdana, Arial, Helvetica, sans-serif",12,"#FFFFFF","#FDFDFD","#5575CE","#187503","left","middle",6,1,1000,-5,7,true,true,true,0,true,true);
		mm_menu_0710135552_0.addMenuItem("How&nbsp;to&nbsp;Sell&nbsp;Private&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;","location='site_page.php?page=31'");
		mm_menu_0710135552_0.addMenuItem("How&nbsp;to&nbsp;set&nbsp;up&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;","location='site_page.php?page=24'");
		mm_menu_0710135552_0.addMenuItem("Easy&nbsp;Selling&nbsp;Steps&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;","location='site_page.php?page=26'");	
		mm_menu_0710135552_0.fontWeight="bold";
		mm_menu_0710135552_0.hideOnMouseOut=true;
		mm_menu_0710135552_0.bgColor='#FFFFFF';
		mm_menu_0710135552_0.menuBorder=0;
		mm_menu_0710135552_0.menuLiteBgColor='';
		mm_menu_0710135552_0.menuBorderBgColor='';
	
//	------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
	
	//	 SUB MENU DISPLAY FOR : CALCULATOR TOOLS
	window.mm_menu_0710141937_0 = new Menu("root",198,24,"Verdana, Arial, Helvetica, sans-serif",12,"#FFFFFF","#FDFDFD","#5575CE","#187503","left","middle",6,1,1000,-5,7,true,true,true,0,true,true);
		mm_menu_0710141937_0.addMenuItem("Saving&nbsp;Calculator&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;", "location='saving_calculator.php'");
		mm_menu_0710141937_0.addMenuItem("Mortgage&nbsp;Calculator&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;","location='calculator_tools.php'");
		mm_menu_0710141937_0.fontWeight="bold";
		mm_menu_0710141937_0.hideOnMouseOut=true;
		mm_menu_0710141937_0.bgColor='#FFFFFF';
		mm_menu_0710141937_0.menuBorder=0;
		mm_menu_0710141937_0.menuLiteBgColor='';
		mm_menu_0710141937_0.menuBorderBgColor='';
	
//	------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
	
	//	 SUB MENU DISPLAY FOR : RESOURCES
	//window.mm_menu_0711182213_0 = new Menu("root",239,24,"Verdana, Arial, Helvetica, sans-serif",12,"#FFFFFF","#FDFDFD","#3855AB","#187503","left","middle",6,1,1000,-5,7,true,true,true,0,true,true);
	window.mm_menu_0711182213_0 = new Menu("root",239,24,"Verdana, Arial, Helvetica, sans-serif",12,"#FFFFFF","#FDFDFD","#5575CE","#187503","left","middle",6,1,1000,-5,7,true,true,true,0,true,true);
	//window.mm_menu_0711182213_0 = new Menu("root",239,24,"Verdana, Arial, Helvetica, sans-serif",12,"#FFFFFF","#FDFDFD","#3855AB","#5575CE","left","middle",6,1,1000,-5,7,true,true,true,0,true,true);
		mm_menu_0711182213_0.addMenuItem("Free&nbsp;Market&nbsp;Analysis","location='free_market_analysis.php'");
		mm_menu_0711182213_0.addMenuItem("Glossary&nbsp;of&nbsp;real&nbsp;estate&nbsp;terms&nbsp;&nbsp;&nbsp;","location='site_page.php?page=11'");
		mm_menu_0711182213_0.fontWeight="bold";
		mm_menu_0711182213_0.hideOnMouseOut=true;
		mm_menu_0711182213_0.bgColor='#FFFFFF';
		mm_menu_0711182213_0.menuBorder=0;
		mm_menu_0711182213_0.menuLiteBgColor='';
		mm_menu_0711182213_0.menuBorderBgColor='';
	
//	------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
	
	//	 SUB MENU DISPLAY FOR : JUST BROWSING	
	window.mm_menu_0741190227_0 = new Menu("root",210,24,"Verdana, Arial, Helvetica, sans-serif",12,"#FFFFFF","#FDFDFD","#5575CE","#187503","left","middle",6,1,1000,-5,7,true,true,true,0,true,true);
		//mm_menu_0741190227_0.addMenuItem("Facts&nbsp;&&nbsp;Figures&nbsp;&nbsp;","location='site_page.php?page=34'");
		mm_menu_0741190227_0.addMenuItem("Navigation&nbsp;Tips&nbsp;&nbsp;","location='site_page.php?page=35'");
		mm_menu_0741190227_0.addMenuItem("Testimonials&nbsp;&nbsp;","location='testimonials.php'");
		mm_menu_0741190227_0.fontWeight="bold";
		mm_menu_0741190227_0.hideOnMouseOut=true;
		mm_menu_0741190227_0.bgColor='#FFFFFF';
		mm_menu_0741190227_0.menuBorder=0;
		mm_menu_0741190227_0.menuLiteBgColor='';
		mm_menu_0741190227_0.menuBorderBgColor='';
	
//	------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
	
	//	 SUB MENU DISPLAY FOR : SERVICES	
	// window.mm_menu_0711190227_0 = new Menu("root",210,24,"Verdana, Arial, Helvetica, sans-serif",12,"#FFFFFF","#FDFDFD","#217C07","#187503","left","middle",6,1,1000,-5,7,true,true,true,0,true,true);
	window.mm_menu_0711190227_0 = new Menu("root",210,24,"Verdana, Arial, Helvetica, sans-serif",12,"#FFFFFF","#FDFDFD","#5575CE","#187503","left","middle",6,1,1000,-5,7,true,true,true,0,true,true);
		if(siteName == 'propertychoice')
			mm_menu_0711190227_0.addMenuItem("myPropertychoice&nbsp;Account&nbsp;&nbsp;","location='myaccount.php'");
		else if(siteName == 'ukpropertieslist')
			mm_menu_0711190227_0.addMenuItem("myUKpropertieslist&nbsp;Account&nbsp;&nbsp;","location='myaccount.php'");
			
		mm_menu_0711190227_0.addMenuItem("How&nbsp;much&nbsp;does&nbsp;it&nbsp;Cost?&nbsp;&nbsp;&nbsp;","location='site_page.php?page=15'");
		mm_menu_0711190227_0.addMenuItem("Lawn&nbsp;signs&nbsp;&nbsp;&nbsp;","location='site_page.php?page=43'");
		/*mm_menu_0711190227_0.addMenuItem("List&nbsp;your&nbsp;property&nbsp;&nbsp;&nbsp;");
		mm_menu_0711190227_0.addMenuItem("Business&nbsp;directory","location='#'");*/
		mm_menu_0711190227_0.addMenuItem("Advertisement&nbsp;with&nbsp;Us","location='site_page.php?page=16'");
		mm_menu_0711190227_0.fontWeight="bold";
		mm_menu_0711190227_0.hideOnMouseOut=true;
		mm_menu_0711190227_0.bgColor='#FFFFFF';	
		mm_menu_0711190227_0.menuBorder=0;
		mm_menu_0711190227_0.menuLiteBgColor='';
		mm_menu_0711190227_0.menuBorderBgColor='';
	
	mm_menu_0711190227_0.writeMenus();
} // mmLoadMenus()

function MM_swapImgRestore()
{ //v3.0
	var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages()
{ //v3.0
	var d=document;
	
	if(d.images)
	{
		if(!d.MM_p)
			d.MM_p=new Array();
		
		var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
		if (a[i].indexOf("#")!=0)
		{
			d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];
		}
	}
}

function MM_findObj(n, d)
{ //v4.01
	var p,i,x;
	
	if(!d)
		d=document;
	
	if((p=n.indexOf("?"))>0&&parent.frames.length)
	{
		d=parent.frames[n.substring(p+1)].document;
		n=n.substring(0,p);
	}
	
	if(!(x=d[n])&&d.all)
		x=d.all[n];
		
	for (i=0;!x&&i<d.forms.length;i++)
		x=d.forms[i][n];

	for(i=0;!x&&d.layers&&i<d.layers.length;i++)
		x=MM_findObj(n,d.layers[i].document);
	
	if(!x && d.getElementById)
		x=d.getElementById(n);
		
	return x;
}

function MM_swapImage()
{ //v3.0
	var i,j=0,x,a=MM_swapImage.arguments;
	document.MM_sr=new Array; 

	for(i=0;i<(a.length-2);i+=3)
	{
		if ((x=MM_findObj(a[i]))!=null)
		{
			document.MM_sr[j++]=x;
			if(!x.oSrc) 
				x.oSrc=x.src; x.src=a[i+2];
		}
	}
}
