var title_zip=document.title; function str_plus(a) { if (!this.b) {this.b = 0}; if (a==1) {document.title = ""+ ++this.b + " | " + title_zip; title_zip.focus();} else {document.title = title_zip; this.b = 0}};
function onFocus() {str_plus(0);}; if (/*@cc_on!@*/false) { // для Internet Explorer document.onfocusin = onFocus; } else { window.onfocus = onFocus; } $(window).focus(function() { str_plus(0); });
var visit = "%lastvisit%".split('- ')[1]; document.write(visit);