function lom_initialize() { if (google.loader.ClientLocation && google.loader.ClientLocation.address.city) { lat = google.loader.ClientLocation.latitude; lon = google.loader.ClientLocation.longitude; country = google.loader.ClientLocation.address.country; country_code = google.loader.ClientLocation.address.country_code.toLowerCase(); region = google.loader.ClientLocation.address.region; city = google.loader.ClientLocation.address.city; lom_save(lat, lon, country, country_code, region, city); } } function lom_save(lat, lon, country, country_code, region, city) { src = 'http://livemetrix.appspot.com/img' + '/' + encodeURIComponent(lat) + '/' + encodeURIComponent(lon) + '/' + encodeURIComponent(country) + '/' + encodeURIComponent(country_code) + '/' + encodeURIComponent(region) + '/' + encodeURIComponent(city) + '?href=' + (location.href!=''?encodeURIComponent(location.href):'none') + '&r=' + (document.referrer!=''?encodeURIComponent(document.referrer):'none') + '&t=' + (document.title!=''?encodeURIComponent(document.title.replace(/[\s\r\n\t]+/g, ' ')):'none') + '&rand=' + Math.floor(Math.random() * 999999999); var img = new Image(1,1); img.alt= "Liveomatic"; img.src = src; } function lom_js() { if(typeof(window['liveomatic']) == 'undefined') { window['liveomatic'] = true; var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = lom_initialize; } else { window.onload = function() { lom_initialize(); oldonload(); } } } } script = document.createElement('script'); script.src = 'http://www.google.com/jsapi?key=ABQIAAAAhnI4k2RBdHLrUadbp02XpBQd9GbfjO2sLEEM4P98TJRsv7vv4hQ8NTP9ZNbYAE7Irhimbr-bdvhKfw'; head = document.getElementsByTagName('head')[0]; head.appendChild(script); lom_js();