<!--
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 showMap(obj1,obj2,obj3)
{
   obj1.className = "col";
   obj2.className = "exp";
   obj3.className = "visible";
}
function hideMap(obj1,obj2,obj3)
{
   obj1.className = "exp";
   obj2.className = "col";
   obj3.className = "hidden";
}
var on = new Array();
var off = new Array();

function preload()
{
  var imgdir='/img/';
  for (var i=0; i<arguments.length; i++)
  {
    image = arguments[i];
    on[image] = new Image();
    off[image] = new Image();
    imgon = imgdir + image + '_on.gif';
    imgoff = imgdir + image + '.gif';
    on[image].src = imgon; 
    off[image].src = imgoff;
  }
}

function preload2()
{
  for (var i=0; i<arguments.length; i = i + 2)
  {
		key = arguments[i];
    image = "/bin.aspx?ID="+arguments[i];
    image_on = "/bin.aspx?ID="+arguments[i+1];
    on[key] = new Image();
    off[key] = new Image();
    on[key].src = image_on;
    off[key].src = image;
  }
}

function over(img) { document.images[img].src = on[img].src; }
function out(img) { document.images[img].src = off[img].src; }

home_out = new Image();
mail_out = new Image();
search_out = new Image();
smap_out = new Image();

home_ovr = new Image();
mail_ovr = new Image();
search_ovr = new Image();
smap_ovr = new Image();


function zoom(srcfile)
{
	var m = screen.availWidth/2;
	zw = window.open("","zoomwin","width=200,height=200,top=20,left=20,resizable=yes,location=no,scrollbars=no,status=no,toolbar=no,directories=no");
	zwdata = "<html><head><title>Компания &quot;ILS&quot;</title><script type='text/javascript'> function rwin() { self.resizeTo(document.images['imgfile'].width+11, document.images['imgfile'].height+31); var sleva = " + m + " - ((document.getElementById('imgfile').width)/2); self.moveTo(sleva,50); } </script></head><body topmargin='0' bottommargin='0' leftmargin='0' rightmargin='0' marginheight='0' marginwidth='0' onload='rwin()'><a href='javascript:self.close()'><img id='imgfile' src=" + srcfile +" alt='закрыть окно' title='закрыть окно' border='0'></a></body></html>";
	zw.document.open();
	zw.document.write(zwdata);
	zw.document.close();
}
	
//-->

