<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function gotolocation(id){					document.forms.guru.geo.value=id;					map.close();							document.forms.guru.submit();
	}
function showmap(){
	map = window.open('/catalog/map.html','','height=450, width= 400, toolbar = no, location = no, directories = no, status = no, menubar = no, scrollbars = no, resizable = no');						 }

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_swapImageInt() { //v3.0
  var a=MM_swapImageInt.arguments; 
  document.all.index.background=a[1];
}

function ShowImg(sz) {
        subscribe=window.open("","subscribe","width=750,height=550");
        subscribe.document.open();
        subscribe.document.write("<HTML><HEAD><TITLE>Компания 'Новое Качество'</TITLE><META http-equiv=Content-Type content='text/html; charset=windows-1251'></HEAD><BODY bgColor=#cccccc leftMargin=0 background=/images/pp/frame_15.gif topMargin=0 marginheight='0' marginwidth='0'><TABLE cellSpacing=10 cellPadding=0 width='100%' border=0>  <TR>     <TD align=middle> <TABLE cellSpacing=0 cellPadding=0 border=0><TR><TD width=11><IMG height=11 src='/images/pp/frame_01.gif' width=11></TD> <TD background=/images/pp/frame_02.gif><IMG height=11 src='/images/pp/frame_02.gif' width=1></TD><TD width=13><IMG height=11 src='/images/pp/frame_03.gif' width=13></TD></TR><TR><TD background=/images/pp/frame_04.gif><IMG height=2 src='/images/pp/frame_04.gif' width=11></TD><TD> <IMG src='"+sz+"' border=0></TD><TD background=/images/pp/frame_06.gif><IMG height=2  src='/images/pp/frame_06.gif' width=13></TD></TR><TR>   <TD><IMG height=11 src='/images/pp/frame_07.gif' width=11></TD><TD background=/images/pp/frame_08.gif><IMG Height=11 src='/images/pp/frame_08.gif' width=2></TD><TD><IMG height=11 src='/images/pp/frame_09.gif' width=13></TD></TR><TR> <TD vAlign=top align=right>&nbsp; </TD><TD vAlign=top align=right background=/images/pp/frame_bg.gif><TABLE cellSpacing=0 cellPadding=0 border=0><TR> <TD><IMG height=36 src='/images/pp/frame_10.gif' width=7></TD><TD> <TABLE height=36 cellSpacing=0 cellPadding=0 width=166 border=0><TR> <TD colSpan=3 height=9><IMG height=9 src='/images/pp/frame_11.gif' width=166></TD></TR><TR> <TD width=80 height=15><a href='javascript:window.close()'><img height=15 alt='Закрыть окно' src='/images/pp/frame_17.gif' width=80 border=0></a></TD><TD width=6><IMG height=15 src='/images/pp/frame_18.gif' width=6></TD><TD width=80><A href='javascript:window.print()'><IMG height=15 alt=Распечатать src='/images/pp/frame_19.gif' width=80 border=0></A></TD> </TR><TR>  <TD colSpan=3 height=12><IMG height=12 src='/images/pp/frame_20.gif' width=166></TD></TR></TABLE></TD><TD><IMG height=36 src='/images/pp/frame_12.gif' width=10></TD></TR></TABLE></TD><TD><IMG height=36 src='/images/pp/frame_right.gif' width=13></TD></TR></TABLE></TD></TR></TABLE></BODY></HTML>");
        subscribe.document.close();
}
//-->

function hideunhide(){
 if (!document.all("sellrent")[1].checked && !document.all("sellrent")[2].checked && !document.all("sellrent")[3].checked){
   document.all("sellrent")[0].checked=true}
 if (document.all("sellrent")[0].checked){
  document.all("forrent").style.display="none"
  document.all("forsell").style.display="block"
 }
 else{
  document.all("forrent").style.display="block"
  document.all("forsell").style.display="none"
 }
}

function search(){
 if (document.all("sellrent")[0].checked){
  document.forms[0].action=document.forms[0].action+'sale/index.html';
 }
 else if(document.all("sellrent")[1].checked){
  document.forms[0].action=document.forms[0].action+'rent/index.html';
 }
 else if(document.all("sellrent")[2].checked){
  document.forms[0].action=document.forms[0].action+'house/index.html';
 }
 else {
  document.forms[0].action=document.forms[0].action+'finnish/index.html';
 }
 document.forms[0].submit();
}