// JavaScript Document
//??? ??????? ??? ?????? ? ????????? ????? ???? ???????? (??????? ?????????? ??? ??????? ?? ????????? ????????
// ? HTML <A href='javascript:show("licenses/LICENSE2005-2010_UA_MAIN_sheet00_n",450,600)'></a>)
function show(file, width, height) 
{ 
file=file + ".jpg"; 
//window.open(file, "_blank", "width="+width+",height="+height+",titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no"); 
window.open(file, "_blank", "width="+width+",height="+height+",titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,top=1,left=1"); 
}
//--> 
// dla pokaa uvelisenoi kartinki radom s malenki 
//? HTML <div id="thumb" style="position: absolute; visibility: hidden; border: 1px solid black"></div><a href="nw_projects_ru.html" onMouseOver="showThumbnail('projects/alchevsk.jpg',event)" onMouseOut="closeThumbnail()"><IMG src="imj/foto/alchevsk1.jpg" width="160" height="107" hspace="20" vspace="30" border="0"></a> 
    var thumb = null;
    function showThumbnail(which,e)
    {
        thumb = document.getElementById('thumb');
        if( thumb && thumb.style.visibility == 'hidden' )
        {
            thumb.style.left       = e.pageX ? pageXOffset + e.clientX - 370 : document.body.scrollLeft + e.x - 370;
            thumb.style.top        = e.pageY ? pageYOffset + e.clientY : document.body.scrollTop  + e.y;
            thumb.style.visibility = 'visible';
            thumb.innerHTML        = '<img src="' + which + '">';
        }
    }
    function closeThumbnail()
    {
        if( thumb )
            thumb.style.visibility = 'hidden';
    }
//-->
//dla novosti nazal na kartinku - podgruzil iz faila
//v HTML <a href="#" onclick="load();"><IMG src="imj/buton21.jpg" width="300" height="40" vspace="10" border="0"></a><br><div id=d1></div>  ????? div ????? ?????????? ??????? ???????????? ?? ????? text.html
function view(a){
d1.innerHTML=a;
}

function load(){
d1.innerHTML='???? ????????';
document.body.startDownload('text.html', view);
} 
//-->
//dla procrutki iz podgruzaemogo faila

function scrollUp(s)
{
  document.frames['textw'].scrollBy(0,-s);
}

function scrollDown(s)
{
  document.frames['textw'].scrollBy(0,s);
}


