/*Copyright (C) 2009 Levitron Publicidade Ltda.*/ // JavaScript Document //## ## ### ######## ########## ######### //## ## ### ### ### #### ## //## ## ### ### ### #### ######### //## ## ### ### ########## ### //## ## ### ### ### #### ### //###### ####### ######## ### #### ######### //06/01/2010 //document.write("
Versão/Geração: ",navigator.appVersion); //document.write("
Codificação: ",navigator.appCodeName); //document.write("
Plataforma: ",navigator.platform); //document.write("
Páginas Visitadas: ",history.length); //document.write("history is " + window.location); //document.write("
Definição: ",screen.width," x ",screen.height); //document.write("
URL: ",request.getRequestURL()); function contarVisitas(Eid,fromSite,method,visitasUid) { //CRIA O COKIE var nVer = navigator.appVersion; var nAgt = navigator.userAgent; var browserName = navigator.appName; var fullVersion = ''+parseFloat(navigator.appVersion); var majorVersion = parseInt(navigator.appVersion,10); var nameOffset,verOffset,ix; // In MSIE, the true version is after "MSIE" in userAgent if ((verOffset=nAgt.indexOf("MSIE"))!=-1) { browserName = "Microsoft Internet Explorer"; fullVersion = nAgt.substring(verOffset+5); } // In Opera, the true version is after "Opera" else if ((verOffset=nAgt.indexOf("Opera"))!=-1) { browserName = "Opera"; fullVersion = nAgt.substring(verOffset+6); } // In Chrome, the true version is after "Chrome" else if ((verOffset=nAgt.indexOf("Chrome"))!=-1) { browserName = "Chrome"; fullVersion = nAgt.substring(verOffset+7); } // In Safari, the true version is after "Safari" else if ((verOffset=nAgt.indexOf("Safari"))!=-1) { browserName = "Safari"; fullVersion = nAgt.substring(verOffset+7); } // In Firefox, the true version is after "Firefox" else if ((verOffset=nAgt.indexOf("Firefox"))!=-1) { browserName = "Firefox"; fullVersion = nAgt.substring(verOffset+8); } // In most other browsers, "name/version" is at the end of userAgent else if ( (nameOffset=nAgt.lastIndexOf(' ')+1) < (verOffset=nAgt.lastIndexOf('/')) ) { browserName = nAgt.substring(nameOffset,verOffset); fullVersion = nAgt.substring(verOffset+1); if (browserName.toLowerCase()==browserName.toUpperCase()) { browserName = navigator.appName; } } // trim the fullVersion string at semicolon/space if present if ((ix=fullVersion.indexOf(";"))!=-1) fullVersion=fullVersion.substring(0,ix); if ((ix=fullVersion.indexOf(" "))!=-1) fullVersion=fullVersion.substring(0,ix); majorVersion = parseInt(''+fullVersion,10); if (isNaN(majorVersion)) { fullVersion = ''+parseFloat(navigator.appVersion); majorVersion = parseInt(navigator.appVersion,10); } if(navigator.userAgent.indexOf('Linux') != -1) { var so = "Linux"; } else if((navigator.userAgent.indexOf('Win')!= -1)&&(navigator.userAgent.indexOf('95')!= -1)) { var so = "Windows 95"; } else if((navigator.userAgent.indexOf('Win')!= -1)&&(navigator.userAgent.indexOf('98')!= -1)) { var so = "Windows 98"; } else if((navigator.userAgent.indexOf('Win')!= -1)&&(navigator.userAgent.indexOf('NT')!= -1)) { var so = "Windows NT/XP"; } else if((navigator.userAgent.indexOf('Win')!=-1)&&(navigator.userAgent.indexOf('2000')!=-1)) { var so = "Windows 2000"; } else if(navigator.userAgent.indexOf('Mac') != -1) { var so = "Macintosh"; } else if(navigator.userAgent.toLowerCase().indexOf('unix') != -1) { var so = "Unix"; } else { var so = "Outro"; } var resolucao = screen.width+"x"+screen.height; //document.write("
brow: ",browserName+' '+fullVersion); //document.write("
Cores: ",navigator.userAgent); document.write(unescape("%3Cscript src='http://beta.levimin.com.br/include.php?pag=analytics/visitas.inc.php&resolucao="+resolucao+"&browserName="+browserName+"-"+fullVersion+"&so="+so+"&pagina="+window.location+"&Eid="+Eid+"&fromSite="+fromSite+"&method="+method+"&visitasUid="+visitasUid+"' type='text/javascript'%3E%3C/script%3E")); }