// JAVA SCRIPT QUE CARREGA MOVIES EM FLASH ========================================================
function mostraflash(nome,largura,altura,loop){
  nome=document.write('<OBJECT name="fl" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=3,0,0,0"  WIDTH="'+largura+'" HEIGHT="'+altura+'"><PARAM NAME=movie VALUE="'+nome+'"><PARAM NAME=LOOP VALUE="'+loop+'"><PARAM NAME=quality VALUE=high><param name="wmode" value="transparent"><embed name="ebp" src="'+nome+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+largura+'" height="'+altura+'" WMODE="transparent"></embed></OBJECT>');
}

//=================================================================================================
// JAVA SCRIPT QUE MUDA DE COR O FUNDO DO MENU ESQUERDO ===========================================
function js_menu(id,tipo) {
	tipo = parseInt(tipo);
	switch(tipo) {
		case 1:
			document.getElementById(id).style.background = '#EEEEEE';
			document.getElementById(id).style.color = '';
			break;
			
		case 2:
			document.getElementById(id).style.background = '#FFFFFF';
			document.getElementById(id).style.color = '';
			break;
	}
}

function js_menu2(id,tipo) {
	tipo = parseInt(tipo);
	switch(tipo) {
		case 1:
			document.getElementById(id).style.background = '#D4E6E4';
			document.getElementById(id).style.color = '';
			break;
			
		case 2:
			document.getElementById(id).style.background = '#FFFFFF';
			document.getElementById(id).style.color = '';
			break;
	}
}
//=================================================================================================
function expandir(objeto) {
if (document.all[objeto].style.display == "none") {
document.all[objeto].style.display = ""
} else {
document.all[objeto].style.display = "none"
}
}

function js_contato() {
	frm = document.frmContato;
	if (frm.Nome.value == '') {
		alert('Seu nome deve ser preenchido');
		frm.Nome.focus();
		return false;
	}
	if (frm.Email.value == '' || frm.Email.value.indexOf("@") == -1 || frm.Email.value.indexOf(".") == -1) {
		alert('Seu email deve ser preenchido corretamente');
		frm.Email.focus();
		return false;
	}
	if (frm.Mensagem.value == '') {
		alert('Digite sua mensagem');
		frm.Mensagem.focus();
		return false;
	}
}