
function new_showsource()
{var d=ElementByID('srefer');d.style.display='none';d=ElementByID('sourceloaderframe');var a=ElementByID('sourcecontainer');var obj=d;var doc=obj.contentDocument;if(doc==undefined||doc==null)
doc=obj.contentWindow.document;a.innerHTML=doc.body.innerHTML;}
function new_ssrcon()
{var d=ElementByID('srefer');d.innerHTML='Источник';d.href='javascript:new_showsource()';new_showsource();}
function PlaceBanner(id,w,h)
{if(w==468)
{w+=20;document.write("<nobr><a href='http://www.i-stroy.ru/docu/facility/Razmeschenie_bannernoy_reklamyi/7028.html'><img border=0 src=im/reklam.gif></a><iframe src='show_banner/"+id+"/"+window.location.href+"' style='width:"+w+";height:"+h+"' FRAMEBORDER=0 SCROLLING=no></iframe></nobr>\n");}
else
document.write("<iframe src='show_banner/"+id+"/"+window.location.href+"' style='width:"+w+";height:"+h+"' FRAMEBORDER=0 SCROLLING=no></iframe>\n");}
function inmenu_showloginform()
{var obj=document.getElementById('siteloginform');new Effect.SlideDown('siteloginform');}
function hypergloss_hide(id,caller)
{$("hypergloss_popup").style.display='none';}
function hypergloss_show(id,caller)
{return;var x=getRealOffsetX(caller);var y=getRealOffsetY(caller);$("hypergloss_popup").style.left=x;$("hypergloss_popup").style.top=y+20;$("hypergloss_popup").innerHTML='<?YellowStart("<font style=\"font-size:70%\">загрузка описания</font>",0);YellowClose()?>';$("hypergloss_popup").style.display='';var ajao=new Ajax.Updater("hypergloss_popup","hyper_get.php?GetAbout",{method:'post',parameters:{'id':id}});}
function addBookmark(title,url){if(window.sidebar){window.sidebar.addPanel(title,url,"");}else if(document.all){window.external.AddFavorite(url,title);}else if(window.opera&&window.print){return true;}}
var mtl_pop_timer=0;var mtl_objects=new Array("cat","addo","qad");function mtl_show(obj)
{$(obj+"_mtl_popup").style.left=getRealOffsetX($(obj+"_mtl_parent"));$(obj+"_mtl_popup").style.top=19;$(obj+"_mtl_popup").show();Element.setStyle($(obj+"_mtl_parent"),{backgroundColor:'#c6e2f7'})
for(i in mtl_objects)
{var on=mtl_objects[i];if(on!=obj&&$(on+"_mtl_popup"))
{$(on+"_mtl_popup").hide();Element.setStyle($(on+"_mtl_parent"),{backgroundColor:'transparent'})}}}
function mtl_pop(obj)
{clearTimeout(mtl_pop_timer);mtl_pop_timer=setTimeout("mtl_show('"+obj+"')",10);}
function mtl_fadein(obj)
{$(obj+"_mtl_popup").hide();Element.setStyle($(obj+"_mtl_parent"),{backgroundColor:'transparent'})}
function mtl_fade(obj)
{clearTimeout(mtl_pop_timer);mtl_pop_timer=setTimeout("mtl_fadein('"+obj+"')",1000);}
var mosTreeNodes=new Array();var mosTreeRoots=new Array();var mosTreeChilds=new Array();mosTreeNodes[277]='Заседания Архитектурного совета г. Москвы';mosTreeRoots[277]=270;mosTreeNodes[303]='Ипотека';mosTreeRoots[303]=270;mosTreeNodes[304]='Мероприятия';mosTreeRoots[304]=270;mosTreeNodes[290]='Московская городская дума';mosTreeRoots[290]=270;mosTreeNodes[300]='Московская недвижимость';mosTreeRoots[300]=270;mosTreeNodes[295]='Новости строительного комплекса';mosTreeRoots[295]=270;mosTreeNodes[278]='Общественный совет при Мэре Москвы по проблемам формирования градостроительного и архит-художественного облика города';mosTreeRoots[278]=270;mosTreeNodes[288]='Органы управления городом';mosTreeRoots[288]=270;mosTreeNodes[293]='Планы развития города';mosTreeRoots[293]=270;mosTreeNodes[292]='Распорядительные документы';mosTreeRoots[292]=270;mosTreeNodes[299]='Хроника реформы ЖКХ';mosTreeRoots[299]=270;mosTreeChilds[270]=new Array(277,303,304,290,300,295,278,288,293,292,299,0);mosTreeNodes[524]='Дальневосточный';mosTreeRoots[524]=271;mosTreeNodes[529]='Приволжский';mosTreeRoots[529]=271;mosTreeNodes[525]='Северо-Западный';mosTreeRoots[525]=271;mosTreeNodes[523]='Сибирский';mosTreeRoots[523]=271;mosTreeNodes[528]='Уральский';mosTreeRoots[528]=271;mosTreeNodes[522]='Центральный';mosTreeRoots[522]=271;mosTreeNodes[526]='Южный';mosTreeRoots[526]=271;mosTreeChilds[271]=new Array(524,529,525,523,528,522,526,0);mosTreeNodes[334]='Дума Московской области';mosTreeRoots[334]=276;mosTreeNodes[336]='Муниципальные образования';mosTreeRoots[336]=276;mosTreeNodes[331]='Органы управления Московской областью';mosTreeRoots[331]=276;mosTreeChilds[276]=new Array(334,336,331,0);mosTreeNodes[885]='Азербайджан';mosTreeRoots[885]=880;mosTreeNodes[886]='Армения';mosTreeRoots[886]=880;mosTreeNodes[887]='Беларусь';mosTreeRoots[887]=880;mosTreeNodes[888]='Грузия';mosTreeRoots[888]=880;mosTreeNodes[889]='Казахстан';mosTreeRoots[889]=880;mosTreeNodes[890]='Кыргызстан';mosTreeRoots[890]=880;mosTreeNodes[891]='Молдова';mosTreeRoots[891]=880;mosTreeNodes[892]='Таджикистан';mosTreeRoots[892]=880;mosTreeNodes[893]='Туркменистан';mosTreeRoots[893]=880;mosTreeNodes[894]='Узбекистан';mosTreeRoots[894]=880;mosTreeNodes[895]='Украина';mosTreeRoots[895]=880;mosTreeChilds[880]=new Array(885,886,887,888,889,890,891,892,893,894,895,0);var mos_timeout=0;var mos_now_shown=new Array();function mos_startdown(deep,rubric)
{clearTimeout(mos_timeout);if(mos_now_shown[deep]==rubric)return;mos_timeout=setTimeout("mos_popdown("+deep+","+rubric+")",100);}
function mos_stopdown(deep,rubric)
{clearTimeout(mos_timeout);mos_timeout=setTimeout("mos_popfade("+deep+","+rubric+")",1000);}
function mos_popfade(deep,rubric)
{mos_now_shown[deep]=0;var md=ElementByID("mosdiv_popup");md.style.display='none';md.innerHTML="";if(deep>0)
{mos_now_shown[0]=0;mos_now_shown[1]=0;mos_now_shown[2]=0;md=ElementByID("mosdiv_popup_rf");md.style.display='none';}}
function mos_popdown(deep,rubric)
{mos_now_shown[deep]=rubric;{if(deep==1)
{mos_now_shown[0]=0;mos_now_shown[2]=0;var md=ElementByID("mosdiv_popup");md.style.display='none';md=ElementByID("mosdiv_popup_rf");var so=ElementByID("mostr"+rubric+"_");}
else
{var md=ElementByID("mosdiv_popup_rf");if(deep!=2){md.style.display='none';mos_now_shown[1]=0;mos_now_shown[2]=0;}
md=ElementByID("mosdiv_popup");var so=ElementByID("mostr"+rubric);}
md.style.left=getRealOffsetX(so);if(deep==2)md.style.left=getRealOffsetX(so)+80;md.style.top=getRealOffsetY(so)+15;if(deep==2)md.style.top=getRealOffsetY(so);if(deep!=1)
{var data="";var bg="";data="<table "+bg+" border=0 class=mmenu onmouseover=mos_startdown("+deep+","+rubric+") onmouseout=mos_stopdown("+deep+","+rubric+")>";for(i=0;i<mosTreeChilds[rubric].length;i++)
{var id=mosTreeChilds[rubric][i];if(id==0)break;data+="<tr><td><a href=rubric"+id+"_0.html>"+mosTreeNodes[id]+"</a></td></tr>\n";}
data+="</table>";md.innerHTML="";md.innerHTML=data;}
else
{md.innerHTML="<table border=0 class=mmenu onmouseout=mos_stopdown(1,271)>"+"<tr><td><a id=mostr271 href=rubric271_0.html onmouseover=mos_startdown(2,271) onmouseout=mos_stopdown(2,271)>Регионы России</a></td></tr>"+"<tr><td><a id=mostr880 href=rubric880_0.html onmouseover=mos_startdown(2,880) onmouseout=mos_stopdown(2,880)>Страны СНГ</a></td></tr>"+"</table>";}
md.style.display='';}}
var rubslot_timeout=0;var rubslot_now_shown=0;function rcson(rubric,block)
{clearTimeout(rubslot_timeout);if(rubslot_now_shown==rubric)return;rubslot_timeout=setTimeout("rubslot_popdown("+rubric+","+block+")",50);}
function rcsoff(rubric)
{clearTimeout(rubslot_timeout);rubslot_timeout=setTimeout("rubslot_popfade("+rubric+")",1000);}
function rubslot_popfade(rubric)
{var md=ElementByID("rcslotfor"+rubslot_now_shown);rubslot_now_shown=0;if(md)
md.style.display='none';}
function rubslot_popdown(rubric,block)
{if(rubslot_now_shown)
$("rcslotfor"+rubslot_now_shown).hide();rubslot_now_shown=rubric;var md=ElementByID("rcslotfor"+rubslot_now_shown);if(md)
{var t1=ElementByID("outtablerubric"+rubric);var t2=ElementByID("intablerubric"+rubric);t1.style.display='';var so=ElementByID("rcs"+rubric);md.style.top=getRealOffsetY(so)-19;if(rubric>12&&rubric!=856)
md.style.top=getRealOffsetY(so)-2;md.style.zindex=-1;if(block==0)
md.style.left=getRealOffsetX(so)-200-18;else
md.style.left=getRealOffsetX(so)-200-12;md.style.zindex=100;t2.style.height=t1.clientHeight;md.style.display='';t2.style.height=t1.clientHeight;}
else
{rubslot_now_shown=0;}}<!--
function getRealOffsetX(objName){var tmpX=0;var tmpObj=objName.offsetParent;if(tmpObj)
while(tmpObj.tagName!='BODY'){tmpX+=(tmpObj.offsetLeft);tmpObj=tmpObj.offsetParent;}
return tmpX+(objName.offsetLeft);}
function getRealOffsetY(objName){var tmpY=0;var tmpObj=objName.offsetParent;if(tmpObj)
while(tmpObj.tagName!='BODY'){tmpY+=(tmpObj.offsetTop);tmpObj=tmpObj.offsetParent;}
return tmpY+(objName.offsetTop);}<!--
var ie4=(document.all)?true:false;var dom=(document.getElementById)?true:false;var ns4=(document.layers)?true:false;function ElementByID(strID){var ret=null;if(ie4)ret=(document.all[strID]);else
if(dom)ret=(document.getElementById(strID));else
if(ns4)ret=(eval('document.'+strID));if(ret)return ret;return null;}
function ElementByIDFrom(objFrom,strID){if(ie4)return(eval(objFrom+'.all["'+strID+'"]'));if(dom)return(eval(objFrom+'.getElementById("'+strID+'")'));if(ns4)return(eval(objFrom+'.'+strID));return null;}
function ElementWrite(obj,strString){if(ns4){obj=obj.document;obj.open();obj.write(strString);obj.close();}else{obj.innerHTML=strString;}}
function GO(a)
{window.location.href=a;}
function addEvent(elm,evType,fn,useCapture){if(elm.addEventListener){elm.addEventListener(evType,fn,useCapture);return true;}
else if(elm.attachEvent){var r=elm.attachEvent('on'+evType,fn);return r;}
else{elm['on'+evType]=fn;}}
function addLoadEvent(func){var oldonload=window.onload;if(typeof window.onload!='function'){window.onload=func;}
else{window.onload=function(){oldonload();func();}}}
function getElementsByClass(searchClass,node,tag){var classElements=new Array();if(node==null)
node=document;if(tag==null)
tag='*';var els=node.getElementsByTagName(tag);var elsLen=els.length;var pattern=new RegExp("(^|\s)"+searchClass+"(\s|$)");for(i=0,j=0;i<elsLen;i++){if(pattern.test(els[i].className)){classElements[j]=els[i];j++;}}
return classElements;}
function toggle(obj){var el=document.getElementById(obj);if(el.style.display!='none'){el.style.display='none';}
else{el.style.display='';}}
function insertAfter(parent,node,referenceNode){parent.insertBefore(node,referenceNode.nextSibling);}
function getCookie(name){var start=document.cookie.indexOf(name+"=");var len=start+name.length+1;if((!start)&&(name!=document.cookie.substring(0,name.length))){return null;}
if(start==-1)return null;var end=document.cookie.indexOf(";",len);if(end==-1)end=document.cookie.length;return unescape(document.cookie.substring(len,end));}
function setCookie(name,value,expires,path,domain,secure){var today=new Date();today.setTime(today.getTime());if(expires){expires=expires*1000*60*60*24;}
var expires_date=new Date(today.getTime()+(expires));document.cookie=name+"="+escape(value)+
((expires)?";expires="+expires_date.toGMTString():"")+
((path)?";path="+path:"")+
((domain)?";domain="+domain:"")+
((secure)?";secure":"");}
function deleteCookie(name,path,domain){if(getCookie(name))document.cookie=name+"="+
((path)?";path="+path:"")+
((domain)?";domain="+domain:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT";}
function InnerFrameResize(obj,w,h)
{var doc=obj.document;if(doc==undefined||doc==null)
doc=obj.contentWindow.document;if(w>0)obj.style.width=w;if(h>0)obj.style.height=h;}
function doexpandiframe(obj,addx,addy)
{if(obj)
{var doc=obj.contentDocument;if(doc==undefined||doc==null)
doc=obj.contentWindow.document;var E=doc.getElementById("frameENDANCHOR");var W=getRealOffsetX(E)
var H=getRealOffsetY(E);if(W<addx+1)W=-addx;if(H<addy+1)H=-addy;InnerFrameResize(obj,W+addx,H+addy);}}
function expandiframe(obj,expandx,expandy,onload)
{if(obj)
{var doc=obj.contentDocument;if(doc==undefined||doc==null)
doc=obj.contentWindow.document;doc.body.innerHTML="<table border=0 cellpadding=0 cellspacing=0 ><tbody><tr><td valign=top>"+doc.body.innerHTML+"</td>"+"<td valign=bottom width=1><a id=frameENDANCHOR href=# fontsize=1></a></td></tr></tbody></table>";doexpandiframe(obj,5,5)
obj.scrolling='no';if(onload=='hide')
obj.style.display="none";return;}
else
document.write("not found object"+obj);}
var expframeind=0;function DEEEP(ii,ind,off)
{if(ind>0)return;for(i in ii)
{if(ii[i]!=null)
{document.write(ind+off+"found loc "+i+" ="+ii[i]+"<BR>\b");if(ii[i].toString().indexOf("[")!=-1)
{DEEEP(ii[i],ind+1,off+"&nbsp;&nbsp;");}}}}
function expandedframe(loc,expandx,expandy,style,onload)
{if(expandx!=0)expandx=1;if(expandy!=1)expandx=0;document.write("<IFRAME onload='javascript:expandiframe(this,"+expandx+","+expandy+",\""+onload+"\")' id=iexpframe"+expframeind+" src='"+loc+"' style='"+style+"' frameborder=0 MARGINWIDTH=0 SCROLLING=auto>iframe</iframe>");var ret="iexpframe"+expframeind;expframeind++;return ret;}
var kdcu_reminder_count;var kdcu_reminder_num;if(kdcu_reminder_count==null)
document.write(' <style type="text/css">'+"\n"+'.kdcu_reminder_box {position: fixed; width: 100%; left: 0; top: 0; background: #ffffe1; margin: 0; color: black; font-family: "Tahoma", arial; font-size: 13px; border-bottom: 1px solid #A7A6AA; z-index: 101;}'+"\n"+'.kdcu_reminder { width: 100%; left: 0;  background: #ffffe1; margin: 0; color: black; font-family: "Tahoma", arial; font-size: 13px; border-bottom: 1px solid #A7A6AA; z-index: 101;}'+"\n"+'* html .kdcu_reminder {}'+"\n"+'.kdcu_reminder table{width: 100%; border:0; font-size: 13px}'+"\n"+'.kdcu_reminder td{verical-align: middle; border:0;}'+"\n"+'.kdcu_reminder img{border: 0;}'+"\n"+'.kdcu_reminder a{text-decoration: underline;}'+"\n"+'.kdcu_reminderplace {height: 30px;}'+"\n"+'</style>'+"\n"+'<div class="kdcu_reminder_box" id=kdcu_reminder_box style="display:none"></div> ');else
{kdcu_reminder_count=0;kdcu_reminder_num=0;}
function kdcu_reminder_close(obj)
{if(obj)
{obj.style.display='none';obj.innerHTML="";kdcu_reminder_num--;if(!kdcu_reminder_num)
{var ddst=document.getElementById('kdcu_reminder_box');ddst.style.display='none';ddst.innerHTML="";}}}
function kdcu_reminder_close_id(a)
{kdcu_reminder_close(document.getElementById('kdcu_reminder'+a));}
function kdcu_reminder_inject(a)
{var dsrc=document.getElementById('src_kdcu_reminder'+a);return kdcu_reminder_inject_from(dsrc,a);}
function kdcu_reminder_inject_from(dsrc,a)
{if(a==0)
{kdcu_reminder_count++;a=kdcu_reminder_count;}
var ddst=document.getElementById('kdcu_reminder_box');ddst.innerHTML+='<div class="kdcu_reminder" id="kdcu_reminder'+a+'">'+dsrc.innerHTML+'</div>';dsrc.innerHTML="";kdcu_reminder_num++;ddst.style.display='';return document.getElementById('kdcu_reminder'+a);}
var kdcu_reminder_css_is_set=1000;function NoticeBox(a,inparent)
{kdcu_reminder_css_is_set++;var ddst=document.getElementById('kdcu_reminder_box');ddst.innerHTML+=('<div class="kdcu_reminder" id="kdcu_reminder'+kdcu_reminder_css_is_set+'" >'+'<table border=1 class="kdcu_reminder"><tr><td style="padding-left: 7px" width=20 ><img src="'+KCOREPATH+'imgs/icon-notice.gif" alt="" />'+'</td><td align=left><div id="kdcu_reminder_innertext'+kdcu_reminder_css_is_set+'">'+
a+'</div><td align=right><img src="'+KCOREPATH+'imgs/close16x16.png" width="16" height="16" alt="" onClick="kdcu_reminder_close_id('+kdcu_reminder_css_is_set+')" />'+'</td></tr></table></div>');kdcu_reminder_num++;ddst.style.display='';return document.getElementById('kdcu_reminder'+kdcu_reminder_css_is_set);}
