self.name = "mainframe";

nn4 = (document.layers) ? true : false;
ie4 = (document.all) ? true : false;
dom = (document.createTextNode)? true : false;

function pop(fileUrl, winW, winH, winN, scrollB) {
    var winWidth = (winW)? winW : 740;
    var winHeight = (winH)? winH : 520;
    var winName = (winN)? winN : 'popupWin'
    var scrollBars = "yes";
    if (nn4 || ie4 || dom) {
        if (screen.width < winWidth + 50) { winWidth = screen.width - 50; scrollbars = 'yes' }
        if (screen.height < winHeight + 100) { winHeight = screen.height - 100; scrollbars = 'yes' }
        posX = Math.round((screen.width - winWidth)/2);
        posY = Math.round((screen.height - winHeight)/2);
        posCode = (nn4)? "screenX="+posX+",screenY="+posY : "left="+posX+",top="+posY;
    } else {
        posCode = "";
    }
    var popupWin = window.open(fileUrl, winName,"menubar=no,toolbar=no,scrollbars=" + scrollBars + ",status=yes,resizable=yes,width=" + winWidth + ",height=" + winHeight + "," + posCode);
    if (popupWin) popupWin.focus();
}


var imgs = new Array();
var imgs0 = new Array();

imgs[1] = new Image();
imgs[1].src = "/images/partner_a.jpg";
imgs[2] = new Image();
imgs[2].src = "/images/proekti_a.jpg";
imgs[3] = new Image();
imgs[3].src = "/images/vozmojnosti_a.jpg";
imgs[4] = new Image();
imgs[4].src = "/images/komanda_a.jpg";
imgs[5] = new Image();
imgs[5].src = "/images/novosti_a.jpg";
imgs[6] = new Image();
imgs[6].src = "/images/kontakti_a.jpg";

imgs0[1] = "/images/partner.jpg";
imgs0[2] = "/images/proekti.jpg";
imgs0[3] = "/images/vozmojnosti.jpg";
imgs0[4] = "/images/komanda.jpg";
imgs0[5] = "/images/novosti.jpg";
imgs0[6] = "/images/kontakti.jpg";



function fire(n) { 
    o = document.getElementById("s"+n);
    o.src = imgs[n].src;
}

function off(n) { 
    o = document.getElementById("s"+n);
    o.src = imgs0[n];
}
