// <!-- Открытие картинки в новом окне -->
function imgOpen(imgURL,imgWidth,imgHeight,Title, scroll) {

	screenW = screen.width;
	screenH = screen.height;
	leftPos = (screenW - imgWidth)/2;
	topPos = (screenH - imgHeight)/2;
	

    if (scroll)
    {
	  var imgWndw=window.open('','_blank','top='+topPos+',left='+leftPos+',width='+imgWidth+',height='+
		  imgHeight+',toolbar=no,menubar=no,location=no,status=no,resizable=yes,'+'scrollbars=yes');
    }else
	{
	  var imgWndw=window.open('','_blank','top='+topPos+',left='+leftPos+',width='+imgWidth+',height='+
		  imgHeight+',toolbar=no,menubar=no,location=no,status=no,resizable=yes,'+'scrollbars=no');	
	}

	var imgTitle=(Title)?Title:imgURL+": "+imgWidth+'x'+imgHeight;
	with (imgWndw.document){
	  open();
	  write('<ht'+'ml><he'+'ad><ti'+'tle>'+imgTitle+'</ti'+'tle>'+
	  '</he'+'ad><bo'+'dy leftmargin="0" topmargin="0" '+
	  'rightmargin="0" bottommargin="0" marginwidth="0" '+
	  'marginheight="0"><a href="javascript:window.close();"><img src="'+imgURL+'" '+
		//  'width="'+imgWidth+  '" height="'+imgHeight+'" '+
	  ' border="0" alt="'+imgTitle+
	  '"></a></bo'+'dy></ht'+'ml>');
	  close();
	}
	return false
}

// Прячем картинку эскалатора
function HideEscalator() {
   window.onload = function () {
	   var pic = document.getElementById('esc_pic');
	   //alert(pic)
	   pic.style.display ='none';    
   }
}


   function HideDIV( id ) {	
	  div = document.getElementById(id);
	  if (div > '') {
	      div.style.display = 'none';
	  }
   }

  