function professor() {
	var arquivo = 'professor.html';
	$("#divConteudo").load(arquivo);
}

function desenvolvedor() {
	var arquivo = 'desenvolvedor.html';
	$("#divConteudo").load(arquivo);
}

function falecomigo() {
	var arquivo = 'falecomigo.html';
	$("#divConteudo").load(arquivo);
}

var infoContato = 
'<table><tr><td width=\"90\">Nome:</td><td>Uzy Tecnologia Ltda.</td></tr>' + 
'<tr><td>Endereço:</td><td>Rua Alberto Torres, 411 - Sala 302 - ' +
' 	 	Ouro Branco <br />93410-160 - Novo Hamburgo - RS - Brasil </td></tr>'+
'<tr><td>Fone/Fax:</td><td>55 51 3587-0070</td></tr>' + 
'<tr><td>Email</td><td>uzy.tecnologia@uzy.com.br</td></tr><td></td><td><a href="javascript:mapa()" title="Mapa">Localização no Mapa</a><td></tr></table><br/><br/>';
//alert(contato);

function contato() {
	menu = 'Contato';
	var texto = 
	'<center>' +
	infoContato + 
	'<form>' + 
	'Nome: <input type="text" size="50"><br/>' + 
	'Email: <input type="text" size="50"><br/>' + 
	'Assunto: <textarea cols="20" rows="5"></textarea><br/>' + 
	'</form>' +
	'</center>';
	$("#divConteudo").html(texto);	
	atualiza();
}	

function mapa() {
	menu = 'Contato';
	var altura =  $(window).height() -390;
	var largura = $(window).width()-500;
	//alert(altura + ' x ' + largura);
	if (altura > 250) { altura = 250; }
	if (largura > 500) { largura = 500; }	
	//alert(altura + ' x ' + largura);
	var texto = 
	'<center>' +
	infoContato +
	'<iframe width="' + (largura) + '" height="' + (altura) + '" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=pt-BR&amp;geocode=&amp;q=uzy&amp;aq=&amp;sll=50.855098,12.073696&amp;sspn=0.004138,0.009645&amp;vpsrc=0&amp;ie=UTF8&amp;hq=uzy&amp;hnear=&amp;radius=15000&amp;t=h&amp;ll=-29.702591,-51.128255&amp;spn=0.071946,0.071946&amp;output=embed"></iframe>'+
	'</center>';
	//document.getElementById('divConteudo').innerHTML = texto;		
	$("#divConteudo").html(texto);	
	atualiza();
}	

function atendimento(){
	menu = 'Atendimento';
	var texto = 
	'<center><a href="http://www.uzy.net.br/livezilla/chat.php?intgroup=U3Vwb3J0ZQ==" target="_blank"><img src="http://www.uzy.net.br/livezilla/image.php?id=07&amp;type=inlay" width="200" height="49" border="0" alt="LiveZilla Live Help"></a><a href="http://www.livezilla.net"></a></center>';
	$("#divConteudo").html(texto);	
	atualiza();
}

function carregaAjax(){
	carregaArquivo('#divConteudo', 'texto.html');
	//$("#divConteudo").html(texto);	
}

function atualiza(){
	var selMenu = document.getElementById('menuEmpresa');
	selMenu.style.borderBottom = '3px solid #d7dae9';	selMenu.style.borderLeft = '3px solid #d7dae9';		selMenu.style.background = '#EDEDED';		selMenu.style.color = '#333';	
	
	var selMenu = document.getElementById('menuSistemas');
	selMenu.style.borderBottom = '3px solid #d7dae9';	selMenu.style.borderLeft = '3px solid #d7dae9';		selMenu.style.background = '#EDEDED';		selMenu.style.color = '#333';	
	
	var selMenu = document.getElementById('menuContato');
	selMenu.style.borderBottom = '3px solid #d7dae9'; 	selMenu.style.borderLeft = '3px solid #d7dae9';		selMenu.style.background = '#EDEDED';		selMenu.style.color = '#333';	
	
	var selMenu = document.getElementById('menuAtendimento');
	selMenu.style.borderBottom = '3px solid #d7dae9';	selMenu.style.borderLeft = '3px solid #d7dae9';		selMenu.style.background = '#EDEDED';		selMenu.style.color = '#333';	
	
	if (menu != '') {
	document.getElementById('menu' + menu).style.borderBottom = '3px solid #EA0000';
	document.getElementById('menu' + menu).style.borderLeft = '3px solid #EA0000';	
	document.getElementById('menu' + menu).style.background = '#888c95';	
	document.getElementById('menu' + menu).style.color = 'white';		
	}
}

function abertura() {
	document.getElementById('divPagina').style.width = ($(window).width()-40); //largura; 
	document.getElementById('divPagina').style.height = ($(window).height() -40); //(screen.width-40);
	document.getElementById('divConteudo').style.height = ($(window).height() -300); //(screen.width-40);

	var texto = 
	'<div id="divNoticias"><h2>noticias</h2>texto texto texto texto texto texto texto texto </div>' + 
	'<div id="divNoticias"><h2>noticias</h2>texto texto texto texto texto texto texto texto </div>' + 
	'<div id="divNoticias"><h2>noticias</h2>texto texto texto texto texto texto texto texto </div>' + 
	'<div id="divNoticias"><h2>noticias</h2>texto texto texto texto texto texto texto texto </div>' + 
	'<div id="divNoticias"><h2>noticias</h2>texto texto texto texto texto texto texto texto </div>' + 
	'<div id="divNoticias"><h2>noticias</h2>texto texto texto texto texto texto texto texto </div>'; 	
	$("#divConteudo").html(texto);
	
	document.getElementById('lang_pt-br').style.borderBottom = '6px solid white';	
}

function redimencionar() {
	document.getElementById('divPagina').style.width = ($(window).width()-40); //largura; 
	document.getElementById('divPagina').style.height = ($(window).height() -40); //(screen.width-40);
	document.getElementById('divConteudo').style.height = ($(window).height() -300); //(screen.width-40);
	document.getElementById('myCanvas').style.width = ($(window).width()-90); //(screen.width-40);	
}
