document.write('');
window.wi2geoResponseScriptElement = function(s)
{
try{
document.body.removeChild(window.wi2geoScriptElement);
delete(window.wi2geoScriptElement);
}catch(e){}
document.getElementById('wi2geoSmsRes'+window.wi2geoR).innerHTML = s;
};
window.wi2geoCreateScriptElement = function(url)
{
window.wi2geoScriptElement = document.createElement('script');
window.wi2geoScriptElement.type = 'text/javascript';
window.wi2geoScriptElement.charset = 'utf-8';
document.body.appendChild(window.wi2geoScriptElement);
window.wi2geoScriptElement.src = 'http://b2b.wi2geo.ru/'+url;
};
window.wi2geoSendSMS4658 = function (id,n)
{
window.wi2geoR = '4658';
document.getElementById('wi2geoPhone4658').value = 'Введите номер телефона';
document.getElementById('wi2geoSMSButton4658').disabled = true;
window.wi2geoCreateScriptElement('sms/'+id+'/'+encodeURIComponent(n.replace('+',''))+'/');
};
window.wi2geoFocusPhone = function(el)
{
if (el.value != 'Введите номер телефона') return;
el.value = '';
};
window.wi2geoBlurPhone = function(el)
{
if (el.value) return;
el.value = 'Введите номер телефона';
};
window.wi2geoKeyUpPhone4658 = function(el,event)
{
document.getElementById('wi2geoSmsRes4658').innerHTML = '';
var v = el.value.replace(/[^0-9+() -]/g,'');
el.value = v;
v =v.replace(/[^0-9]/g,'');
document.getElementById('wi2geoSMSButton4658').disabled = v.length<11;
if (event.keyCode && event.keyCode==13 && !document.getElementById('wi2geoSMSButton4658').disabled)
wi2geoSendSMS4658(154,el.value);
};
document.write('
');
function doInitWi2geoDynamicMap()
{
var c = document.getElementById('wi2geoMap4658');
if (!c) window.setTimeout(doInitWi2geoDynamicMap,1000);
else new Wi2geoDynamicMap4658(c);
}
function initWi2geoDynamicMap()
{
if (document.all || window.opera)
{
document.body.onload = doInitWi2geoDynamicMap;
}
else
{
doInitWi2geoDynamicMap();
}
};
function Wi2geoDynamicMap4658(c)
{
this.hash = {'zoom':'14','clat':'55.806317288711384','clng':'37.5139696583335','size':'2','m':[{'ttl':'','lat':'55.8027908605702',lng:'37.519808707680276'}]};
this.zoom = this.hash.zoom ? parseInt(this.hash.zoom) : 13;
this.lat = this.hash.clat ? this.hash.clat : 55.7522;
this.lng = this.hash.clng ? this.hash.clng : 37.6156;
this.marks = [];
switch(this.hash.size)
{
case '0': c.style.width = '360px'; c.style.height = '260px'; break;
case '1': c.style.width = '400px'; c.style.height = '300px'; break;
case '2': c.style.width = '500px'; c.style.height = '400px'; break;
case '3': c.style.width = '600px'; c.style.height = '450px'; break;
}
this.map = new YMaps.Map(c);
if (this.hash.size && this.hash.size=='0')
{
this.map.addControl(new YMaps.SmallZoom());
}
else
{
this.map.addControl(new YMaps.TypeControl());
this.map.addControl(new YMaps.Zoom(),YMaps.ControlPosition.RIGHT);
}
this.defLatLng =new YMaps.GeoPoint(this.lng, this.lat);
this.map.setCenter(this.defLatLng, this.zoom);
this.map.enableScrollZoom();
this.createMarker = function(h)
{
var m = new YMaps.Placemark(new YMaps.GeoPoint(h.lng, h.lat));
this.map.addOverlay(m);
m.setBalloonContent('ООО \"Элидар\"
Ленинградский пр., д.63');
};
if (this.hash.m && this.hash.m.length)
{
var len = this.hash.m.length;
for(var i=0;i