if (parseInt(navigator.appVersion.charAt(0)) >= 4) {
	NS = (navigator.appName == "Netscape") ? true : false;
	IE = (navigator.appName.indexOf("Microsoft" != -1)) ? true : false;
}

function g(o){return document.getElementById(o);} //getObj
function s(o){g(o).style.display='block';} //show
function h(o){g(o).style.display='none';} //hide
function f(o){ //getFlash
	if (window.document[o]){return window.document[o];}
	if (NS || !IE){if (document.embeds && document.embeds[o]){return document.embeds[o];}}
	else{return g(o);}
}

function swapCss(obj,newClass){
	g(obj).className = newClass;
}

function showMenu(o){
	s(o);
}

function showFaq(o){
	if(g(o).style.display=='none') s(o);
	else h(o);
}

function login(){
	g('formLogin').submit();
}

function registerClient(){
	var n,e,e,s;
	
	name = g('nome').value;
	ent = g('empresa').value;
	email = g('emailRegistro').value;
	pass = g('senhaRegistro').value;
	phone = g('telefone').value;
	
	if(name.length<3 || ent.length<3 || email.length<7 || pass.length<3 || phone.length<7){
		alert('Para efetuar seu registro, informe seus dados corretamente.');
		return;
	}
	
	g('formRegistro').submit();
}

function hideMenus(){
	h('menuSuporte');
	h('menuClientes');
}