/******************************************************************************************
/ Objetivo  : Impedir acesso pelo browser Netscape
/ Premissas : 
/ Entradas  : strUrl - Url da página que será aberta
/ 			: strPopup - Identificação da da janela que será aberta
/ Retorno   : Nenhum
/******************************************************************************************/
function VerificaConfigNavegador(strURL)
{
	    if(navigator.userAgent.indexOf("Mac") == -1 && navigator.userAgent.indexOf("MSIE") != -1 && document.all && document.getElementById)
		{
			AbreUrl(strURL, 'Palestras', 550, 182, 0, 0, 0, 0, 0, 0, 0);
		}
		else
		{
			alert('As configurações mínimas para exibir o vídeo são: PC com Internet Explorer 5.5 ou superior e Windows Media Player instalado');
	    }
}

/******************************************************************************************
/ Objetivo  : Abrir broser aceitando personalização o usuário
/ Premissas : 
/ Entradas  : strUrl - Url da página que será aberta
/ 			: strPopup - Identificação da da janela que será aberta
/ 			: intLargura - Largura da janela
/ 			: intAltura - Altura da janela
/ 			: intLocation - Exibir / Ocultar barra de endereços
/ 			: intMenubar - Exibir / Ocultar menu de opções
/ 			: intResizable - Exibir / Ocultar opção de redimensionamento
/ 			: intScrollbars - Exibir / Ocultar barras de rolagem
/ 			: intStatus - Exibir / Ocultar barra de status
/ 			: intTitlebar - Exibir / Ocultar barra de título
/ 			: intToolbar - Exibir / Ocultar barra de ferramentas
/ Retorno   : Nenhum
/******************************************************************************************/
function AbreUrl(strUrl, strPopup, intLargura, intAltura, intLocation, intMenubar, intResizable, intScrollbars, intStatus, intTitlebar, intToolbar)
{
	if(parseInt(intLargura) == 0){intLargura = screen.availWidth;};
	if(parseInt(intAltura) == 0){intAltura = screen.availHeight;};
	
	if(intLargura > 1 && intAltura > 1)
	{
		var intDistEsq = (screen.availWidth - intLargura) / 2;				//Distancia esquerda da janela aberta
		var intDistTop = (screen.availHeight - intAltura) / 2;				//Distancia direita da janela aberta
	}
	else
	{
		var intLargura = screen.availWidth - 10;								//Distancia esquerda da janela aberta
		var intAltura = screen.availHeight - 28;								//Distancia direita da janela aberta
		var intDistEsq = 0;													//Distancia esquerda da janela aberta
		var intDistTop = 0;													//Distancia direita da janela aberta
	}
	window.open(strUrl,strPopup,'menubar=' + (parseInt(intLocation) == 0 ? 'no':'yes') + ',menubar=' + (parseInt(intMenubar) == 0 ? 'no':'yes') + ',resizable=' + (parseInt(intResizable) == 0 ? 'no':'yes') + ',scrollbars=' + (parseInt(intScrollbars) == 0 ? 'no':'yes') + ',status=' + (parseInt(intStatus) == 0 ? 'no':'yes') + ',titlebar=' + (parseInt(intTitlebar) == 0 ? 'no':'yes') + ',toolbar=' + (parseInt(intToolbar) == 0 ? 'no':'yes') + ',width=' + intLargura + ',height=' + intAltura + ',top=' + intDistTop + ',left=' + intDistEsq);
}

/******************************************************************************************
/ Objetivo  : ampliar imagem da noticia
/ Premissas : 
/ Entradas  : 
/ 			: 
/ Retorno   : 
/******************************************************************************************/

	function Lupa(strURL,strNome,intLar,intAlt)
		{
		intAlt = intAlt + 28;
		intLar = intLar + 20;
	
		var h = (screen.height - intAlt) / 2;
		var w = (screen.width - intLar) / 2;
		window.open(strURL,strNome,'resizable=no,scrollbars=yes,width=' + intLar + ',height=' + intAlt + ',top=' + h + ',left=' + w);
		}
