var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;

function abreInfo_DoFSCommand(command) {    
	if (command == "info")
	{

	window.open('/info.htm', 'Info', 'width=600,height=420,toolbars=no,status=no,resizable=no,scrolling=yes')

	}
}

// Hook for Internet Explorer
if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows NT")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 ) ) {
	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('Sub abreInfo_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call abreInfo_DoFSCommand(command, args)\n');
	document.write('end sub\n');
	document.write('</SCRIPT\> \n');
}

function banner_DoFSCommand(command) {    
	if (command == "popup")
	{
		window.open('/popup.htm', 'popupbanner', 'width=340,height=350,toolbars=no,status=no,resizable=no,scrolling=yes')
	}
}

// Hook for Internet Explorer
if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows NT")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 ) ) {
	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('Sub banner_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call banner_DoFSCommand(command, args)\n');
	document.write('end sub\n');
	document.write('</SCRIPT\> \n');
}

// Janela de Ultimas Noticias
function AbreUltimasNoticias() {
	not = window.open('/ultimasnoticias_main.php', 'UltimasNoticias', 'width=484,height=450,toolbars=no,status=no,resizable=no,scrollbars=yes,left=0,top=0')
	not.opener = self;
}

function AbreUltimasModa() {
	not = window.open('/ultimasnoticias_moda.php', 'UltimasNoticias2', 'width=484,height=450,toolbars=no,status=no,resizable=no,scrollbars=yes,left=40,top=20')
	not.opener = self;
}

function enviarporemail(url)
{
	enviar = window.open(url, 'enviar', 'width=400,height=490,toolbars=no,status=no,resizable=no,scrollbars=yes')
}

function imprimir(url)
{
	wimprimir = window.open(url, 'wimprimir', 'width=600,height=600,menubar=yes,toolbar=yes,status=no,resizable=yes,scrollbars=yes,left=0,top=0')
}