// spacer=new Image(); spacer.src="/images/frame/spacer.gif";
  var url="http://www.ruburo.ru/";
  var titel="www.ruburo.ru  -  Помощь в получении кредита";
  var scroll_body;

  function bookmark()
   {if (document.all)
    window.external.AddFavorite(url,titel)}


function submit_quick_subscribe()
{
 form1.pass2.value=form1.pass1.value;
 form1.submit();
}

function tester()
{

 alert(scroll_body);
}

function Point(arg) {

//      eval("document."+arg).Play();

  //      document.all[arg.Play();
       document.location.replace("#"+arg);
      //  return false;

    }

function show_news_pic(dir,name)
{
  //  sampWin= open("/show_pics1.php3?dir="+dir+"&pic="+name, "displayWindow",
//    "width="+10+",height="+10+",status=no,toolbar=no,menubar=no,left=0,top=0,scrollbars=yes");
}


function show_pic(dir,name)
{
//    sampWin= open("/show_realty_pics.php3?dir="+dir+"&pic="+name, "displayWindow",
//    "width="+10+",height="+10+",status=no,toolbar=no,menubar=no,left=0,top=0,scrollbars=yes");

    sampWin= open("/show_pics.php3?dir="+dir+"&pic="+name, "displayWindow",
    "width="+10+",height="+10+",status=no,toolbar=no,menubar=no,left=0,top=0,scrollbars=yes");
}

function settip(text)
{
 scroll_body=document.body.scrollTop ;
// var scroll_body=0;
 smallTip.style.visibility='visible';
// txt = "<table high=15 width=140 border=1 cellspacing=0 cellpadding=0 bordercolor=#006600 bordercolordark=#000000 bgcolor=#000000><tr><td align=center  background=/images/tip/up_bg.gif> <IMG SRC='/images/tip/tip_03.gif' WIDTH=11 HEIGHT=9> <IMG SRC='/images/tip/tip_03.gif' WIDTH=11 HEIGHT=9> <IMG SRC='/images/tip/tip_03.gif' WIDTH=11 HEIGHT=9> <IMG SRC='/images/tip/tip_03.gif' WIDTH=11 HEIGHT=9> <IMG SRC='/images/tip/tip_03.gif' WIDTH=11 HEIGHT=9> <IMG SRC='/images/tip/tip_03.gif' WIDTH=11 HEIGHT=9></td></tr></table><table high=15 width=140 border=1 cellspacing=0 cellpadding=0 bordercolor=#006600 bordercolordark=#000000 bgcolor=#000000><tr><td align=center> <IMG SRC='/images/tip/tip_03.gif' WIDTH=11 HEIGHT=9> <IMG SRC='/images/tip/tip_03.gif' WIDTH=11 HEIGHT=9> <IMG SRC='/images/tip/tip_03.gif' WIDTH=11 HEIGHT=9> <IMG SRC='/images/tip/tip_03.gif' WIDTH=11 HEIGHT=9> <IMG SRC='/images/tip/tip_03.gif' WIDTH=11 HEIGHT=9> <IMG SRC='/images/tip/tip_03.gif' WIDTH=11 HEIGHT=9></td></tr></table><table high=15 width=140 border=1 cellspacing=0 cellpadding=0 bordercolor=#006600 bordercolordark=#000000 bgcolor=#000000><tr><td align=center> <IMG SRC='/images/tip/tip_03.gif' WIDTH=11 HEIGHT=9> <IMG SRC='/images/tip/tip_03.gif' WIDTH=11 HEIGHT=9> <IMG SRC='/images/tip/tip_03.gif' WIDTH=11 HEIGHT=9> <IMG SRC='/images/tip/tip_03.gif' WIDTH=11 HEIGHT=9> <IMG SRC='/images/tip/tip_03.gif' WIDTH=11 HEIGHT=9> <IMG SRC='/images/tip/tip_03.gif' WIDTH=11 HEIGHT=9></td></tr></table>"
// document.all['small_tip_text'].innerHTML = text;
 document.all['tip_text'].innerHTML = text;
}

function HideTip()
{
 document.all['smallTip'].style.visibility='hidden';
}

function HideColTip()
{
 document.all['colTip'].style.visibility='hidden';
}

function move_vac()
{

  var x_coords = window.event.x;
//  if(x_coords>1000){x_coords=1000;}
  tip=smallTip.style;
  tip.pixelLeft = document.body.scrollLeft+x_coords-240;
  tip.pixelTop = window.event.y+scroll_body+20;
}

function move()
{

  var x_coords = window.event.x;
//  if(x_coords>1000){x_coords=1000;}
  tip=smallTip.style;
  tip.pixelLeft = document.body.scrollLeft+x_coords-190;
  tip.pixelTop = window.event.y+scroll_body-30;

  if(tip.pixelLeft+tip.width > document.body.width)
  {
    tip.pixelLeft = document.body.width-tip.width;
  }

}

function move_()
{

  var x_coords = window.event.x;

  tip=smallTip.style;
  tip.pixelLeft = document.body.scrollLeft+x_coords-220;
  tip.pixelTop = window.event.y+scroll_body-30;


}

function show_help(targetId)
{
var targetElement;
       targetElement = document.getElementById(targetId);
if (targetElement.style.display == "none")
{
 targetElement.style.display = "";
}
else
{
 targetElement.style.display = "none";
}
}

function Hide_sub(targetId)
{
var targetElement;
       targetElement = document.getElementById(targetId);
 targetElement.style.display = "none";
}

function Show_sub(targetId)
{
 var targetElement;
 var hide;

 for(i=1;i<7;i++)
 {
  hide = "faq"+i;
  targetElement=document.getElementById(hide);
  targetElement.style.display = "none";
 }

 targetElement = document.getElementById(targetId);
 targetElement.style.display = "";

}


function Movr(imageName){
if(document.images){
     document[imageName].src=eval(imageName + "_ovr.src");
}}
function Mout(imageName){
 if(document.images){
     document[imageName].src=eval(imageName+"_out.src");
}}

var LinkDivActive = 0;
var onDiv='company';
var timeOnDiv;
var layerRef;
var styleRef;
var showVar;
var hideVar;

if (navigator.appName == "Netscape") {
 layerRef="document.";
 styleRef="";
 showVar="'show'";
 hideVar="'hide'";
} else {
 layerRef="document.all.";
 styleRef=".style";
 showVar="'visible'";
 hideVar="'hidden'";
}

//Divisions Show | Hide
function hideDiv(divn) {
//  Mout('b_' + onDiv);
 eval(layerRef+divn+styleRef+'.visibility = '+hideVar);
}

function showDiv(divn) {
 eval(layerRef+divn+styleRef+'.visibility = '+showVar);
}

//Link Divisions Stuff
function showLinkDiv(divn) {
 if (timeOnDiv != null) {
  clearTimeout(timeOnDiv);
  hideDiv(onDiv);
 }
 showDiv(divn);
 onDiv = divn;
}

function divTimer() {
 timeOnDiv = setTimeout("divOut()",500)
}

function divOut() {
 if (LinkDivActive == 0) {
  hideDiv(onDiv);
 }
}

function LinkDivOver() {
 LinkDivActive = 1;
 clearTimeout(timeOnDiv);
}

function LinkDivOut() {
 LinkDivActive = 0;
 timeOnDiv = setTimeout("divOut()",500)
}

function Drag()
{
 menu1 = catalog.style;
 menu2 = client.style;

 var a=document.body.clientWidth;
 if(a<841){a=841;};
 a=a/2;
 menu1.pixelLeft=a+38;
 menu2.pixelLeft=a+155;
}


function ShowGogMap()
{
 page="../about/map/map.php3";
 window.open(page,'','scrollbars=yes,resizable=no,menubar=yes,width=520,height=500,left=0,top=0');
}


function showbigmap()
{
  sampWin= open("", "displayWindow",
    "width="+462+",height="+269+",status=no,toolbar=no,menubar=no,left=0,top=0");
  sampWin.document.open();
  sampWin.document.write("<html><head><title>Карта проезда</title>");
  sampWin.document.write("<meta http-equiv='Content-Type' content='text/html; charset=windows-1251'></head><body BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>");
  sampWin.document.write("<img src='../../images/map_big.gif' border=0 width=462 height=269>");
  sampWin.document.write("</body></html>");
  sampWin.document.close();
}

function showbigmap_kharkov()
{
  sampWin= open("", "displayWindow",
    "width="+569+",height="+378+",status=no,toolbar=no,menubar=no,left=0,top=0");
  sampWin.document.open();
  sampWin.document.write("<html><head><title>Карта проезда</title>");
  sampWin.document.write("<meta http-equiv='Content-Type' content='text/html; charset=windows-1251'></head><body BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>");
  sampWin.document.write("<img src='../../images/kharkov_map.gif' border=0 width=569 height=378>");
  sampWin.document.write("</body></html>");
  sampWin.document.close();
}

function SendQuest()
{
  if(client_mail.value=="")
  {
   words = "Не указан обратный email адрес";
  }
  else
  {
   words="Ваш вопрос отправлен";
  }
  sampWin= open("", "displayWindow",
    "width="+400+",height="+150+",status=no,toolbar=no,menubar=no,left=0,top=0");
  sampWin.document.open();
  sampWin.document.write("<html><head><title></title>");
  sampWin.document.write("<meta http-equiv='Content-Type' content='text/html; charset=windows-1251'></head><body BGCOLOR=#FFFFFF LEFTMARGIN=20 TOPMARGIN=20 MARGINWIDTH=0 MARGINHEIGHT=0 onblur='close()'>");
  sampWin.document.write("<font face=Tahoma size=5px>"+words+"</font>");
  sampWin.document.write("</body></html>");
  sampWin.document.close();
}


function Flash_Button(button_name,link)
{
 document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="100" height="104" id="uc1" align="middle">');
 document.write('<param name="allowScriptAccess" value="sameDomain" />');
 document.write('<param name="movie" value="/swf/button.swf?button_name='+button_name+'&link='+link+'" />');
 document.write('<param name="quality" value="high" />');
 document.write('<param name="bgcolor" value="#ffffff" />');
 document.write('<embed src="/swf/button.swf?button_name='+button_name+'&link='+link+'" quality="high" bgcolor="#ffffff" width="100" height="104" name="uc1" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
 document.write('</object>');
}

function Flash_Button_(button_name,link)
{
 document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="100" height="104" id="uc1" align="middle">');
 document.write('<param name="allowScriptAccess" value="sameDomain" />');
 document.write('<param name="movie" value="/swf/button_.swf?button_name='+button_name+'&link='+link+'" />');
 document.write('<param name="quality" value="high" />');
 document.write('<param name="bgcolor" value="#ffffff" />');
 document.write('<embed src="/swf/button_.swf?button_name='+button_name+'&link='+link+'" quality="high" bgcolor="#ffffff" width="100" height="104" name="uc1" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
 document.write('</object>');
}

function Flash_Banner_(banner_name,link)
{
 document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="579" height="250" id="ipoteka" align="middle">');
 document.write('<param name="allowScriptAccess" value="sameDomain" />');
 document.write('<param name="movie" value='+banner_name+'?link1='+link+' />');
 document.write('<param name="quality" value="high" />');
 document.write('<param name="bgcolor" value="#ffffff" />');
 document.write('<embed src='+banner_name+'?link1='+link+' quality="high" bgcolor="#ffffff" width="579" height="250" name="ipoteka" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
 document.write('</object>');
}

function Flash_Banner_w(banner_name,link)
{
 document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="579" height="228" id="ipoteka" align="middle">');
 document.write('<param name="allowScriptAccess" value="sameDomain" />');
 document.write('<param name="movie" value='+banner_name+'?link1='+link+' />');
 document.write('<param name="quality" value="high" />');
 document.write('<param name="bgcolor" value="#ffffff" />');
 document.write('<embed src='+banner_name+'?link1='+link+' quality="high" bgcolor="#ffffff" width="579" height="228" name="ipoteka" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
 document.write('</object>');
}