function updateImages() { var map = Map1.GetOpenLayersMap(); var panzoombar = map.getControlsByClass('OpenLayers.Control.PanZoomBar')[0]; var img = document.getElementById(panzoombar.id + '_zoomin_innerImage'); if (img) { img.setAttribute('src', '/theme/default/img/zoom_plus_mini.png'); img.setAttribute('style', 'position: relative; height: 22px; width: 23px;'); } else { setTimeout(updateImages, 250); return; } img = document.getElementById(panzoombar.id + '_zoomout_innerImage'); if (img) { img.setAttribute('src', '/theme/default/img/zoom_minus_mini.png'); img.setAttribute('style', 'position: relative; width: 22px; height: 23px;'); } else { setTimeout(updateImages, 250); return; } img = document.getElementById(panzoombar.id + '_pandown_innerImage'); if (img) { img.setAttribute('src', '/theme/default/img/south_mini.png'); } else { setTimeout(updateImages, 250); return; } img = document.getElementById(panzoombar.id + '_panup_innerImage'); if (img) { img.setAttribute('src', '/theme/default/img/north_mini.png'); } else { setTimeout(updateImages, 250); return; } img = document.getElementById(panzoombar.id + '_panleft_innerImage'); if (img) { img.setAttribute('src', '/theme/default/img/west_mini.png'); } else { setTimeout(updateImages, 250); return; } img = document.getElementById(panzoombar.id + '_panright_innerImage'); if (img) { img.setAttribute('src', '/theme/default/img/east_mini.png'); } else { setTimeout(updateImages, 250); return; } img = document.getElementById(panzoombar.id + '_zoomworld_innerImage'); if (img) { img.setAttribute('src', '/theme/default/img/zoom_world_mini.png'); } else { setTimeout(updateImages, 250); return; } img = document.getElementById(panzoombar.id + '_' + map.id + '_innerImage') if (img) { img.setAttribute('src', '/theme/default/img/slider.png') img.setAttribute('style', 'position: relative; width: 22px; height: 16px;'); } else { setTimeout(updateImages, 250); return; } var zoombarId = 'OpenLayers_Control_PanZoomBar_Zoombar' + map.id; if (OpenLayers.Util.alphaHack()) { zoombarId = panzoombar.id + "_" + map.id } var div = document.getElementById(zoombarId) if (div) { //div.setAttribute('style', 'background-image: url(/theme/default/img/zoombar.png) !important; left: 25px !important; top: 81px; width: 16px !important; height: 110px; position: absolute;'); div.style.backgroundImage = 'url(/theme/default/img/zoombar.png)'; } else { setTimeout(updateImages, 250); return; } }