/**
 * @author Twon
 */
function loadCommunityRequest(request) {

    switch (request) {
        case 100: {
            hideElement("team");
			hideElement("broker");
            showElement("services");
            break;
        }
        case 101: {
            hideElement("services");
			hideElement("broker");
            showElement("team");
            break;
        }
		case 102: {
            hideElement("services");
			hideElement("team");
            showElement("broker");
            break;
        }
    }
}

function loadToolsRequest(request){
	switch (request){
		case 200:{
			showElement("quickApplication");
			hideElement("answer");
			hideElement("confirmation");
			hideElement("disclosures");
			hideElement("loanApplication");
			hideElement("calculator");
			hideElement("mlsListing");
			hideElement("privacy");
			break;
		}
		case 210: {
			hideElement("answer");
            hideElement("confirmation");
			hideElement("disclosures");
			hideElement("loanApplication");
			hideElement("calculator");
			hideElement("mlsListing");
			hideElement("privacy");
			showElement("quickApplication");
            break;
        }
		case 201:{
			hideElement("answer");
			hideElement("confirmation");
			hideElement("quickApplication");
			hideElement("loanApplication");
			hideElement("calculator");
			hideElement("mlsListing");
			hideElement("privacy");
			showElement("disclosures");
			break;
		}
		case 202:{
			hideElement("answer");
			hideElement("confirmation");
			hideElement("disclosures");
			hideElement("quickApplication");
			hideElement("calculator");
			hideElement("mlsListing");
			hideElement("privacy");
			showElement("loanApplication");
			break;
		}
		case 203:{
			hideElement("answer");
			hideElement("confirmation");
			hideElement("disclosures");
			hideElement("loanApplication");
			hideElement("quickApplication");
			hideElement("mlsListing");
			hideElement("privacy");
			showElement("calculator");
			break;
		}
		case 204:{
			hideElement("answer");
			hideElement("confirmation");
			hideElement("disclosures");
			hideElement("loanApplication");
			hideElement("calculator");
			hideElement("quickApplication");
			hideElement("privacy");
			showElement("mlsListing");
			break;
		}
		case 205:{
			hideElement("answer");
			hideElement("confirmation");
			hideElement("disclosures");
			hideElement("loanApplication");
			hideElement("calculator");
			hideElement("quickApplication");
			hideElement("mlsListing");
			showElement("privacy");
			break;
		}
		case 206:{
			hideElement("answer");
			hideElement("privacy");
			hideElement("disclosures");
			hideElement("loanApplication");
			hideElement("calculator");
			hideElement("quickApplication");
			hideElement("mlsListing");
			showElement("confirmation");
			break;
		}
	}
}

function hideElement(elementToHide) {
	document.poppedLayer = eval('document.getElementById(elementToHide)');
    document.poppedLayer.style.visibility = "hidden";
    document.poppedLayer.style.display = "none";
}

function showElement(elementToShow) {
	document.poppedLayer = eval('document.getElementById(elementToShow)');
    document.poppedLayer.style.visibility = "visible";
    document.poppedLayer.style.display = "block";
}
