///////////////////////////
//SCRIPT CONTENT = Vorkunov.K
///////////////////////////
function windowstat(satname){
window.self.status=satname;}

function windhtm(nameimgdes,x,y)
{
var x=640; y=400;
if(screen.width>700){x=700;y=500;}
blankimgnew=window.open('../blank.html','blankimgnew',"toolbar=yes,menubar=yes,resizable=yes,scrollbars=yes,status=yes,directories=no,channelmode=no,location=yes,width="+x+",height="+y);
blankimgnew.closed;
blankimgnew.document.clear();
blankimgnew.location.href=nameimgdes;
blankimgnew.focus();
}

function photowin(namepic,x,y)
{if(winstat==1){photo.close();}
namepics=namepic;
photo=window.open('photo.html','photo',"toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,directories=no,channelmode=no,location=no,width="+x+",height="+y);
photo.closed;
winstat=1;
photo.focus();
}

NS4 = (document.layers) ? 1 : 0;
IE4 = (document.all) ? 1 : 0;
ver4 = (NS4 || IE4) ? 1 : 0;


function bright(LayerName, tnayrb, y)
{
        if(NS4) {
         document.layers[LayerName].document.images[tnayrb].src=eval('"/gif/'+y+'"');
        }
        else {
         document.all[tnayrb].src=eval('"/gif/'+y+'.gif"');
        }
};


NS4 = (document.layers) ? 1 : 0;
IE4 = (document.all) ? 1 : 0;
ver4 = (NS4 || IE4) ? 1 : 0;

function moveLayers() {
                if (NS4) {
                        screenWidth = window.innerWidth;
                        document.layers['Layer1'].left = ((screenWidth-600)/2);
                        document.layers['Layer1'].top = 146;
                } else {
                        screenWidth = document.body.clientWidth + 18;
                        document.all['Layer1'].style.pixelLeft = ((screenWidth-600)/2);
                        document.all['Layer1'].style.pixelTop = 146;
                }
}

function popUp(menuName,on) {
                if (on) {
                        if (NS4) {
                                document.layers['Layer1'].visibility = "show";
                        } else {
                                document.all['Layer1'].style.visibility = "visible";
                        }
                } else {
                        if (NS4) {
                                document.layers['Layer1'].visibility = "hide";
                        } else {
                                document.all['Layer1'].style.visibility = "hidden";
                        }
        }
}


function enlarge(what, width, height)
{
www="/galery/" + what;
width+=20;
height+=20;
window.open(www, 'xxx','width=' + width + ',height=' + height +',resizable=no,topmargin=0,leftmargin=0');
}
