versao = QualVersao()

if (versao < 5.5){

	//ContaCookie=0;
	//dc=document.cookie;
	//dc2=dc.indexOf("Aparece=")+9
	//dc3=dc.substring(dc2,dc.length)
	//dc4 = dc.substring(dc2-1,dc2+dc3.indexOf(";"))
	//if(dc2==8){
		//document.cookie="Aparece=1;";
	//window.open('/home/generica/js/popup_versao.htm','','width=410,height=200');void(0);
	//}

	//if(parseInt(dc4)<5){
		//ContaCookie=parseInt(dc4)+1;
		//document.cookie='Aparece='+ContaCookie+'; expires=Thu, 27-Jul-2032 00:00:01 GMT"';
		window.open('../js/popup_versao.htm','','width=410,height=200');void(0);
	//}


}

function QualVersao()
{
	var s = navigator.appVersion;
	if ( QualNavegador() == "IE" )
	{
		var i = s.search("MSIE");
		s=s.substring(i+5);
		i=s.search(";");
		return s.substring(0,i);
	}
	else if ( QualNavegador() == "NE" )
		return 6;
	else
		return 6;
}

function QualNavegador()
{
	var s = navigator.appName;
	if ( s == "Microsoft Internet Explorer" )
		return "IE";
	else if ( s == "Netscape" )
		return "NE";
	else
		return "";
}

