	jQuery.noConflict();
	jQuery(document).ready(function(){
	
		jQuery("div.featproj").hover(
		  function () {
			jQuery(this).stop().animate({ backgroundColor : "#e7f5d0" }, 2000); 
		  }, 
		  function () {
			jQuery(this).stop().animate({ backgroundColor : "#ffffff" }, 500);
		  }
		);
	
		jQuery("#LatestNews").mouseenter(function(){
		  NewsRandomPause = true;
		  clearTimeout(NewsRandomTimer);
		}).mouseleave(function(){
		  NewsRandomPause = false;
		  NewsRandomTimer = setTimeout("fnNewsRandom(1)", 10000);
		});
	
		jQuery("#FooterSEO").click(function () {
		  jQuery("#FooterSEOText").slideToggle("slow");
		});
		
		try {
		jQuery("#FooterSEO").anchorAnimate();
		} catch (e) {}
	
		jQuery("#search").click(function(){
			if (document.getElementById("search").value == "Enter Keywords" || document.getElementById("search").value == "")
			document.getElementById("search").value = "";
		}).blur(function(){
			if (document.getElementById("search").value == "")
			document.getElementById("search").value = "Enter Keywords";
		});
		jQuery("#email").click(function(){
			if (document.getElementById("email").value == "Enter Email Address" || document.getElementById("search").value == "")
			document.getElementById("email").value = "";
		}).blur(function(){
			if (document.getElementById("email").value == "")
			document.getElementById("email").value = "Enter Email Address";
		});
		
		//Properties
		jQuery("#Brands1 div").hover(
			function () {
				jQuery(this).stop().animate({ backgroundColor : "#cce8d9" }, 2000); 
				//jQuery(this).css("backgroundColor", "#cce8d9");
				SwapProjectsPause = true;
				clearTimeout(SwapProjectsTimer);
			}, 
			function () {
				jQuery(this).stop().animate({ backgroundColor : "#eeeee3" }, 500);	
				//jQuery(this).css("backgroundColor", "#eeeee3");
				SwapProjectsPause = false;
				SwapProjectsTimer = setTimeout("fnSwapProjects(1)", 10000);
			}
		);
		
		jQuery("#Brands2 div").hover(
			function () {
				jQuery(this).stop().animate({ backgroundColor : "#cee3e7" }, 2000); 
				//jQuery(this).css("backgroundColor", "#cee3e7");
				SwapProjectsPause = true;
				clearTimeout(SwapProjectsTimer);
			}, 
			function () {
				jQuery(this).stop().animate({ backgroundColor : "#eeeee3" }, 500);	
				//jQuery(this).css("backgroundColor", "#eeeee3");
				SwapProjectsPause = false;
				SwapProjectsTimer = setTimeout("fnSwapProjects(1)", 10000);
			}
		);

		jQuery("#Brands3 div").hover(
			function () {
				jQuery(this).stop().animate({ backgroundColor : "#f1d8d4" }, 2000); 
				//jQuery(this).css("backgroundColor", "#f1d8d4");
				SwapProjectsPause = true;
				clearTimeout(SwapProjectsTimer);
			}, 
			function () {
				jQuery(this).stop().animate({ backgroundColor : "#eeeee3" }, 500);
				//jQuery(this).css("backgroundColor", "#eeeee3");
				SwapProjectsPause = false;
				SwapProjectsTimer = setTimeout("fnSwapProjects(1)", 10000);
			}
		);
		
		
		//FORMS
		jQuery("#pffind").click(function(){
			var oform = this.parentNode.parentNode;
			var opftype = oform['pftype'];
			var opfrange = oform['pfrange'];
			var opflocation = oform['pflocation'];
			window.location = oform.action + "?pftype=" + opftype[opftype.selectedIndex].value + "&pfrange=" + opfrange[opfrange.selectedIndex].value + "&pflocation=" + opflocation[opflocation.selectedIndex].value
		});
		
		jQuery("#ssubmit").click(function(){
			var oform = this.parentNode.parentNode;
			if (oform['search'].value != "" && oform['search'].value != "Enter Keywords") 
			window.location = oform.action + "?search=" + oform['search'].value;
		});
		
		jQuery("#nlsubmit").click(function(){
			var oform = this.parentNode.parentNode;
			if (oform['email'].value != "" && oform['email'].value != "Enter Email Address") 
			//window.location = oform.action + "?email=" + oform['email'].value;
			SubscribeNewsletter();
		});
		
		//CONTACT US - SHOW COUNTRY CODE	
		jQuery("#hrefContainerCountryCode").toggle(
		  function () {
			jQuery("#dvContainerCountryCode").show();
		  },
		  function () {
			jQuery("#dvContainerCountryCode").hide();
		  }
		);

		//COMPARE HOMES 	
		jQuery("#hrefCompareHomesLearn").toggle(
		  function () {
			jQuery("#olCompareHomesLearn").slideDown("medium");
		  },
		  function () {
			jQuery("#olCompareHomesLearn").slideUp("medium");
		  }
		);
		
		//OUR COMM	
		jQuery("#hrefOurCommHelp").toggle(
		  function () {
			jQuery("#dvHelpComm").slideDown("medium");
		  },
		  function () {
			jQuery("#dvHelpComm").slideUp("medium");
		  }
		);
		
	});