// JavaScript Document
function ope (hght) {
//        hght=100 /* ÂÛÑÎÒÀ ÔÈËÜÌÀ  */

        var theBody = document.getElementsByTagName('body')[0];
//        var pageCoords = getPageCoords();
/* îïðåäåëåíèå ðàçìåðîâ îòêðûòîãî îêíà áðàóçåðà*/

function getClientHeight()
{
  return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientHeight:document.body.clientHeight;
}


    height = getClientHeight();

        document.getElementById('fon').style.height = (height + 'px');
        document.getElementById('fon').style.display='block'

//        mg=(pageCoords[1]-hght)
        mg = height-hght;
        mg=mg/2
        document.getElementById('ppt').style.paddingTop=mg+'px'
        }

function clozet () {
        parent.document.getElementById('fon').style.display='none'
        }


function getPageCoords() {
        var coords = [0, 0, 0];
        if (window.innerHeight) {
                coords[0] = window.innerHeight;
                coords[2] = window.pageYOffset;
        }
        else if (document.documentElement && document.documentElement.clientHeight != 0) {
                coords[0] = document.documentElement.clientHeight;
                coords[2] = document.documentElement.scrollTop;
        }
        else if (document.body) {
                coords[0] = document.body.clientHeight;
                coords[2] = document.body.scrollTop;
        }
        var test1 = document.body.scrollHeight;
        var test2 = document.body.offsetHeight;
        if (test1 > test2) {
                coords[1] = document.body.scrollHeight;
        } else {
                coords[1] = document.body.offsetHeight;
        }
        if (coords[1] < coords[0]) coords[1] = coords[0];
        return coords;
}
