var weather = '';
_mapgo_BrowserDetect.init();
var version = _mapgo_BrowserDetect.version;
var dictionary = new Array();
dictionary ['Bernardy'] = "Bernardyńska";
dictionary ['Komunikacyjna'] = "Komunikacja";
dictionary ['Lazurowa'] = "Lazurowa";
dictionary ['Poraj'] = "Porajów";
dictionary ['WaT'] = "Targówek";
dictionary ['To'] = "Tolstoja";
dictionary ['WaU'] = "Ursynów";
dictionary ['WARSZAWABERNARDYSKA'] = "Berdardyńska";
dictionary ['WaKo'] = "Komunikacyjna";
dictionary ['WaKr'] = "Krucza";
dictionary ['NO2'] = 'NO2';
dictionary ['NOX'] = 'NOx';
dictionary ['SO2'] = 'SO2';
dictionary ['O3'] = 'O3';
dictionary ['PM10'] = 'PM10';
dictionary[108] = "Bielany"
dictionary[109] = "Krakowska"
dictionary[110] = "ZOO"
dictionary[111] = "Torwar"
dictionary[112] = "Czecha"
dictionary[138] = "Puławska"
dictionary[139] = "Jerozolimskie"
dictionary[140] = "Modlińska"
dictionary[154] = "Wilanów"
dictionary[155] = "Most Grota"
dictionary[156] = "Jelonki"
dictionary[157] = "Radzymińska"
dictionary[158] = "Toruńska"
var roadEvents = 'nothing';
function addIconsToMap (icons, layerName, from, to) {
if (typeof (from) == 'undefined') { from = 3; }
if (typeof (to) == 'undefined') { to = 20; }
if (!mapobject.searchLayer (layerName)){
mapobject.addIconsToMap(icons,layerName,false,from,to);
} else {
mapobject.showLayerByName (layerName);
}
}
function currDate(){
//var today = new Date( );
//var czas =" [ "+today.getUTCDate( )+"-"+today.getUTCMonth( )+"-"+today.getUTCFullYear( )+" "+today.getUTCHours( )+":"+today.getUTCMinutes( )+"]";
//document.getElementById('time').innerHTML = czas;
//alert(czas);
};
//var weather =0;
//parseWeather (ans)
//zmiany w getWeather
//mapobject.setAfterTipShow(test); //akca po wywyołaniu tt
function pageIt (object, page, height, obType) {
var obj = object.getElementsByTagName (obType);
var aPage = 0;
var aHeight = 0;
var dataP = Array();
dataP[0] = '';
for (var a=0; a height) {
aPage++;
aHeight = 0;
dataP.push ('');
}
aHeight += obj[a].offsetHeight;
if (aPage == page) {
obj[a].style.display = "block";
} else {
obj[a].style.display = "none";
}
}
if (page == 0) {
var previous = ' < ';
} else {
var previous = '';
}
if (page == aPage) {
var next = ' > ';
} else {
var next = '';
}
var pager = previous + ' ' + (page+1) + '/'+(aPage+1)+' ' + next;
spany = object.getElementsByTagName ('span');
if (typeof (spany[0]) == 'object') {
var o = false;
for (var f=0; f