function OpenFile(url,width,height)
{
        var Left = (screen.width - width) / 2 - 5;
        var Top = (screen.height - height) / 2 - 29;
        var Scroll = typeof(arguments[3])=='undefined'?'no':arguments[3];
        shown=window.open(url,"","top="+Top+",left="+Left+",width="+width+",height="+height+",scrollbars="+Scroll+",status=no,resizable=yes,high");

        return false;
}

function show_detail()
{
        document.getElementById("short_descr").style.display="none";
        document.getElementById("detail_descr").style.display="block";
        document.getElementById("hide_detail").style.display="block";
        document.getElementById("show_detail").style.display="none";
}
function hide_detail()
{
        document.getElementById("short_descr").style.display="block";
        document.getElementById("detail_descr").style.display="none";
        document.getElementById("hide_detail").style.display="none";
        document.getElementById("show_detail").style.display="block";
}

function hide_video()
{
        document.getElementById("video").style.display="none";
        document.getElementById("video_hide").style.display="none";
}

timerUp = 0;
timerDown = 0;

function sup()
{
    timerUp = setTimeout("scrollUp()", 100);
}

function ssup()
{
    clearTimeout(timerUp);
}

function sdown()
{
    timerDown = setTimeout("scrollDown()", 100);
}

function ssdown()
{
    clearTimeout(timerDown);
}


function scrollUp()
{
    d=4;
    el = document.getElementById("screenscroll");
    x = parseInt(el.style.marginTop);
    if (!x || x == "NaN")
    {
        x = 0;
    }
    if ( x <= -240 ) x = -240;
    el.style.marginTop = ( x - d )+"px";
    timerUp = setTimeout("scrollUp()", 100);
}

function scrollDown()
{
    d=4;
    el = document.getElementById("screenscroll");
    x = parseInt(el.style.marginTop);
    if (!x || x == "NaN")
    {
        x = 0;
    }
    if ( x >= -0 ) x = -0;
    el.style.marginTop = ( x + d )+"px";
    timerDown = setTimeout("scrollDown()", 100);
}

