// JavaScript Document



function trocaMenu(nome) {

	switch( nome ){			
		
		case 'mnuComprarimoveis' :
			try { 
				show('mnuComprarimoveis');
				getNode('imgComprarimoveis').style.backgroundPosition = '0px -33px';
			} catch (er) { /*alert('Ocorreu um erro');*/ }
			
		break;
		
		case 'mnuConstruir' :
			try { 
				show('mnuConstruir'); 
				getNode('imgConstruir').style.backgroundPosition = '0px -33px';
			} catch (er) { /*alert('Ocorreu um erro');*/ }
			
		break;
		
		case 'mnuDecorar' :
			try { 
				show('mnuDecorar'); 
				getNode('imgDecorar').style.backgroundPosition = '0px -33px';
			} catch (er) { /*alert('Ocorreu um erro');*/ }
			
		break;
		
		case 'Esconde' :
			try {
				hide('mnuComprarimoveis');
				hide('mnuConstruir');
				hide('mnuDecorar');
				getNode('imgComprarimoveis').style.backgroundPosition = '0px 0px';
				getNode('imgConstruir').style.backgroundPosition = '0px 0px';
				getNode('imgDecorar').style.backgroundPosition = '0px 0px';
			} catch (er) {  }
			
		break;
		
	}		
	
}

/*function trocaMenu(nome) {

	switch( nome ){			
		
		case 'mnuOndemorar' :
			try { 
				show('mnuOndemorar'); 
				getNode('abaOndemorar').style.backgroundPosition = '0px -21px';
			} catch (er) { alert('Ocorreu um erro'); }
			
			try { 
				hide('mnuConstruir');
				getNode('abaConstruir').style.backgroundPosition = '0px 6px';
			} catch (er) { alert('Ocorreu um erro'); }
			
			try {
				hide('mnuDecorar');
				getNode('abaDecorar').style.backgroundPosition = '0px 6px';
			} catch (er) { alert('Ocorreu um erro'); }
			
		break;
		
		case 'mnuConstruir' :
			try {
				hide('mnuOndemorar');
				getNode('abaOndemorar').style.backgroundPosition = '0px 6px';
			} catch (er) { alert('Ocorreu um erro'); }
			
			try {
				show('mnuConstruir');
				getNode('abaConstruir').style.backgroundPosition = '0px -21px';
			} catch (er) { alert('Ocorreu um erro'); }
			
			try { 
				hide('mnuDecorar'); 
				getNode('abaDecorar').style.backgroundPosition = '0px 6px';
			} catch (er) { alert('Ocorreu um erro'); }
			
		break;
		
		case 'mnuDecorar' :
			try { 
				hide('mnuOndemorar'); 
				getNode('abaOndemorar').style.backgroundPosition = '0px 6px';
			} catch (er) { alert('Ocorreu um erro'); }
			
			try { 
				hide('mnuConstruir'); 
				getNode('abaConstruir').style.backgroundPosition = '0px 6px';
			} catch (er) { alert('Ocorreu um erro'); }
			
			try {
				show('mnuDecorar');
				getNode('abaDecorar').style.backgroundPosition = '0px -21px'; 
			} catch (er) { alert('Ocorreu um erro'); }
			
		break;
	}		
	
}*/