var vdr_house_array={179608:[[["179608_5","0"],["179608_2","0"],["179608_4","0"],["179608_3","0"],["179608_1","0"]]],179799:[[["179799_2","0"],["179799_1","0"],["179799_4","0"],["179799_3","0"]]],180072:[[["180072_4","0"],["180072_5","0"],["180072_1","0"],["180072_2","0"],["180072_3","0"]]],180139:[[["180139_1","0"],["180139_2","0"],["180139_4","0"],["180139_5","0"],["180139_3","0"]]],180214:[[["180214_5","0"],["180214_2","0"],["180214_3","0"],["180214_1","0"],["180214_4","0"]]],180244:[[["180244_2","0"],["180244_3","0"],["180244_4","0"],["180244_1","0"]]],180518:[[["180518_2","0"],["180518_1","0"],["180518_5","0"],["180518_4","0"],["180518_3","0"]]],182163:[[["182163_3","0"],["182163_1","0"],["182163_2","0"]]],182366:[[["182366_4","0"],["182366_5","0"],["182366_1","0"],["182366_2","0"],["182366_3","0"]]]},vdr_basepath="/area_21/city_1107/street_14135/",vdr_tmp_img=new Image(),vdr_js,vdr_objs={}, vdr_current={cnt:1,index:1,id:0}; vdr_tmp_img.onload=vdrOnImageLoad; if (window.addEventListener){ window.addEventListener('load', vdr_onLoad, false); }else if (window.attachEvent){ window.attachEvent('onload', vdr_onLoad); } var copy=document.getElementById('vdr_copyright'); copy.style.position="absolute"; copy.style.display="block"; copy.style.top="147px"; copy.style.zIndex="5"; copy.href="https://www.vsedomarossii.ru"; copy.innerHTML="©Все дома России"; document.write('
'); function vdr_onLoad(){ var vdr_div=document.createElement('div'); vdr_div.innerHTML=''; document.body.appendChild(vdr_div); vdr_tmp_img.src="https://www.vsedomarossii.ru/photos/area_21/city_1107/street_14135/179608_5.jpg"; vdr_objs.link=document.getElementById('vdr_link'); vdr_objs.light=document.getElementById('vdr_light'); vdr_objs.fade=document.getElementById('vdr_fade'); vdr_objs.iframe=document.getElementById('vdr_iframe'); vdr_objs.img=document.getElementById('vdr_img'); vdr_objs.target=document.getElementById('target'); vdr_objs.loader=document.getElementById('loader'); vdr_objs.loader2=document.getElementById('loader2'); vdr_objs.street=document.getElementById('vdr_street'); vdr_objs.lst=document.getElementById('vdr_house'); vdr_objs.morepics=document.getElementById('vdr_morepics'); vdr_objs.numpics=document.getElementById('vdr_numpics'); vdr_objs.left=document.getElementById('vdr_left'); vdr_objs.right=document.getElementById('vdr_right'); vdr_objs.prev=document.getElementById('vdr_prev'); vdr_objs.next=document.getElementById('vdr_next'); vdr_objs.street.selectedIndex=5; vdr_objs.lst.selectedIndex=0; vdrSetButtons(); } function vdrHouselist(o){ var id=o.options[o.selectedIndex].value; if(id){ vdr_js=document.createElement('script'); document.body.appendChild(vdr_js); vdr_js.src="https://www.vsedomarossii.ru/vdrwidget.php?id_street="+id; } } function vdrOnHouseList(){ vdr_objs.lst.innerHTML=''; for(var i in vdr_house_array){ o=document.createElement('option'); o.text=vdr_house_array[i][1]; o.value=i; vdr_objs.lst.options.add(o); } vdrChangeHouse(vdr_objs.lst); } function vdrChangeHouse(o){ var id=o.options[o.selectedIndex].value, cnt=vdr_house_array[id][0].length, path=vdr_basepath+vdr_house_array[id][0][0][0]; vdr_objs.loader.style.display="block"; vdr_objs.loader2.style.display="block"; if(vdr_house_array[id][0][0][1]*1 === 1){ vdr_objs.img.src='https://tmb200.vsedomarossii.ru'+path+'_200.jpg'; vdr_tmp_img.src='https://photo.vsedomarossii.ru'+path+'.jpg'; vdr_objs.target.href='https://photo.vsedomarossii.ru'+path+'.jpg'; } else { vdr_objs.img.src='https://www.vsedomarossii.ru/photos'+path+'_200.jpg'; vdr_tmp_img.src='https://www.vsedomarossii.ru/photos'+path+'.jpg'; vdr_objs.target.href='https://www.vsedomarossii.ru/photos'+path+'.jpg'; } if(cnt>1){ vdr_objs.numpics.innerHTML=cnt; vdr_objs.morepics.style.display="block"; }else{ vdr_objs.morepics.style.display="none"; } vdr_current.id=id; vdr_current.index=1; vdr_current.cnt=cnt; vdrSetButtons(); } function vdrSetButtons(){ var idx=vdr_objs.lst.selectedIndex, cnt=vdr_objs.lst.options.length-1; vdr_objs.left.style.display = vdr_current.index>1 ? "block" : "none"; vdr_objs.right.style.display = vdr_current.index