// JavaScript Document
function Mystique_amenities(amenity){
	var amenity_to_swhow = window.document.getElementById(amenity);
	var amenity_1 = window.document.getElementById("Gardens");
	var amenity_2 = window.document.getElementById("Sports");
	var amenity_3 = window.document.getElementById("Health_fitness");
	var amenity_4 = window.document.getElementById("Entertainment");
	var amenity_5 = window.document.getElementById("Others");
	var amenity_6 = window.document.getElementById("Resources");
	
	//hide all divs firs
	
	if(amenity_1.id != amenity)
	{
		amenity_1.style.display = "none";
	}
	if(amenity_2.id != amenity)
	{
		amenity_2.style.display = "none";
	}
	if(amenity_3.id != amenity)
	{
		amenity_3.style.display = "none";
	}
	if(amenity_4.id != amenity)
	{
		amenity_4.style.display = "none";
	}
	if(amenity_5.id != amenity)
	{
		amenity_5.style.display = "none";
	}
	if(amenity_6.id != amenity)
	{
		amenity_6.style.display = "none";
	}
	
	//show valid div
	if(amenity_1.id == amenity)
	{
		amenity_1.style.display = "";
	}
	if(amenity_2.id == amenity)
	{
		amenity_2.style.display = "";
	}
	if(amenity_3.id == amenity)
	{
		amenity_3.style.display = "";
	}
	if(amenity_4.id == amenity)
	{
		amenity_4.style.display = "";
	}
	if(amenity_5.id == amenity)
	{
		amenity_5.style.display = "";
	}
	if(amenity_6.id == amenity)
	{
		amenity_6.style.display = "";
	}
}

function MystiqueSpecs(spec) {
	var spec_to_show = window.document.getElementById(spec);
	var spec_1 = window.document.getElementById("Flooring");
	var spec_2 = window.document.getElementById("Kitchen");
	var spec_3 = window.document.getElementById("Doors_Windows");
	var spec_4 = window.document.getElementById("Toilets");
	var spec_5 = window.document.getElementById("Electrifiction");
	var spec_6 = window.document.getElementById("Painting");
	
	//hide all divs first
	
	if(spec_1.id != spec)
	{
		spec_1.style.display = "none";
	}
	if(spec_2.id != spec)
	{
		spec_2.style.display = "none";
	}
	if(spec_3.id != spec)
	{
		spec_3.style.display = "none";
	}
	if(spec_4.id != spec)
	{
		spec_4.style.display = "none";
	}
	if(spec_5.id != spec)
	{
		spec_5.style.display = "none";
	}
	if(spec_6.id != spec)
	{
		spec_6.style.display = "none";
	}
	
	//show valid div
	
	if(spec_1.id == spec)
	{
		spec_1.style.display = "";
	}
	if(spec_2.id == spec)
	{
		spec_2.style.display = "";
	}
	if(spec_3.id == spec)
	{
		spec_3.style.display = "";
	}
	if(spec_4.id == spec)
	{
		spec_4.style.display = "";
	}
	if(spec_5.id == spec)
	{
		spec_5.style.display = "";
	}
	if(spec_6.id == spec)
	{
		spec_6.style.display = "";
	}
}