// JavaScript Document
function getWidth()
{	
	return window.innerWidth ? window.innerWidth : /* For non-IE */
		document.documentElement ? document.documentElement.clientWidth : /* IE 6+ (Standards Compilant Mode) */
		document.body ? document.body.clientWidth : /* IE 4 Compatible */
		window.screen.width; /* Others (It is not browser window size, but screen size) */
}
 
function getHeight()
{
	return window.innerHeight ? window.innerHeight : /* For non-IE */
	document.documentElement ? document.documentElement.clientHeight : /* IE 6+ (Standards Compilant Mode) */
	document.body ? document.body.clientHeight : /* IE 4 Compatible */
	window.screen.height; /* Others (It is not browser window size, but screen size) */
}
function ajusta_compatibilidade(){
	if(navigator.appName!='Microsoft Internet Explorer'){
		$(".detalhes").css("margin-left","200px");
		$(".detalhes").css("margin-top","-130px");
	}	
}
$().ready(function(){
	//ajusta_compatibilidade();
	$('#div_descricao').hide();
	/*$().mousemove(function(e){
		var y = e.pageY - 101;
		var x = e.pageX + 20;
		$('#div_descricao').css("top", y+"px");
		$('#div_descricao').css("left", x+"px");
    });  */
	$(".linha_categorias").hover(function(){
		$(this).css("border-left-color","#2c7db9");
		$(this).css("background-color","#fdfcbc");
	},function(){
		$(this).css("border-left-color","#0e5488");
		$(this).css("background-color","#fff");
	});
	$(".linha_informacoes").hover(function(){
		$(this).css("border-left-color","#ac9a37");
		$(this).css("background-color","#fdfcbc");
	},function(){
		$(this).css("border-left-color","#746305");
		$(this).css("background-color","#fff");
	});
	$(".btn_rodape").hover(function(){
		$(this).css("border-top-color","8a8a8a");
		$(this).css("border-bottom-color","8a8a8a");
	},function(){
		$(this).css("border-top-color","d0d1d1");
		$(this).css("border-bottom-color","d0d1d1");
	});

});
//função para exibir descrição
function exibe_descricao(codigo){
	//$('#div_desc_'+codigo).html('<table style=" background-color:#F7F7F7; border:solid 1px #999;"><tr><td class="fonte_descricao"><p align="justify" class="fonte_descricao">'+$('#div_desc_'+codigo).html()+' <b>(mais...)</b></p></td></tr></table>');
	$('#div_desc_'+codigo).css("display","block");
	$('#div_desc_'+codigo).css("visibility","visible");
	$('#div_desc_'+codigo).show();
}
//função para esconder descrição
function oculta_descricao(codigo){
	$('#div_desc_'+codigo).css("display","none");
	$('#div_desc_'+codigo).css("visibility","hidden");
	$('#div_desc_'+codigo).hide();
}
