/* version: 0.1 author: zOrg date: 12.07.2010 */ var jams_server = 'http://jams.doroga.tv'; function region () { } region.backend = 'http://kazan.doroga.tv/'; region.urlname = 'kazan'; region.traffic_type = 1; region.map_type = 0; region.lat = 55.79085921; region.lon = 49.12330627; region.zoom = 12; region.min_zoom = 11; region.max_zoom = 17; region.north_lat = 56.000301; region.south_lat = 55.535237; region.east_lon = 49.373875; region.west_lon = 48.683739; region.arrival_with_jams = true; region.pin = '.QfE-9e80taik7GXBANfxjQ9WuwEta-WQ9NXNvlgqGY='; region.recalcBBox = function(z) { var proj = map.getCurrentMapType().getProjection(); p1 = proj.fromLatLngToPixel(new GLatLng(region.north_lat,region.west_lon), z); p2 = proj.fromLatLngToPixel(new GLatLng(region.south_lat,region.east_lon), z); if(map.getCurrentMapType().getName() == 'DorogaTV' ) { switch(region.urlname) { case 'nnov': p2.x -=128; p2.y -=128; break; case 'dubna': p1.y -=256; p2.y -=256; p2.x -=128; break; default: p1.x -=128; p1.y -=128; break; } } else { p1.x -=128; p1.y -=128; } region.regionBBoxPixels = new GBounds([p1,p2]); } document.write('');