function photo(path, w, h){

hWnd = window.open("about:blank", "", "menubar=0,resizable=0,status=0,tollbar=0,scrollbars=0,width="+w+",height="+h+"");

hWnd.document.open();
hWnd.document.writeln( "<html>" );
hWnd.document.writeln( "<head><title>ДИП-Центр | Постоянные выставки</title></head>" );
hWnd.document.writeln( "<body bgcolor=#FFFFFF leftmargin=0 topmargin=0 rightmargin=0 bottommargin=0>" );
hWnd.document.writeln( "<img src='"+path+"' alt='' width='"+w+"' height='"+h+"' border='0'>" );
hWnd.document.writeln( "</body>" );
hWnd.document.writeln( "</html>" );
hWnd.document.close();

       }
	   
var i = 0;
var timerID = null;
var timerRunning = false;

if( parseInt(navigator.appVersion) >= 3 ) compat = true;
if( compat )
  {
  pic0     = new Image;   with(pic0)    {src="img/show0.jpg"; width="146"; height="335";  }
  pic1     = new Image;   with(pic1)    {src="img/show1.jpg"; width="146"; height="335";  }
  pic2     = new Image;   with(pic2)    {src="img/show2.jpg"; width="146"; height="335";  }
  pic3     = new Image;   with(pic3)    {src="img/show8.jpg"; width="146"; height="335";  }
  pic4     = new Image;   with(pic4)    {src="img/show4.jpg"; width="146"; height="335";  }
  pic5     = new Image;   with(pic5)    {src="img/show5.jpg"; width="146"; height="335";  }
  pic6     = new Image;   with(pic6)    {src="img/show6.jpg"; width="146"; height="335";  }
  pic7     = new Image;   with(pic7)    {src="img/show7.jpg"; width="146"; height="335";  }
  pic8     = new Image;   with(pic8)    {src="img/show3.jpg"; width="146"; height="335";  }
  pic9     = new Image;   with(pic9)    {src="img/show9.jpg"; width="146"; height="335";  }
  pic10     = new Image;   with(pic10)    {src="img/show10.jpg"; width="146"; height="335";  }
  }

function SetImg(Name,Img)
  {
  if(compat)
    {
      document.images[Name].src=eval(Img + '.src');
    }
  }

function stopclock(){
	if (timerRunning) clearTimeout(timerID);
	timerRunning = false;
}

function startclock(){
	stopclock();
	change_pic();
}

function change_pic(){
	var pic_num = 'pic'+i;
	SetImg('pic',pic_num);
	timerID = setTimeout("startclock()", 3000);
	timerRunning = true;
	if (i == 10) i=0;
	else i++;
}

