function ShowSubMenu(div_id)
{
    var divizm=document.getElementById(div_id);
    divizm.style.display="block";
} 

function HideSubMenu(div_id)
{
    var divizm=document.getElementById(div_id);
    divizm.style.display="none";
} 

function OpenPlayer(videoID,pname)
{
    if (pname=='') {
        pname='player.php'
    }
    var path="/System/etc/lib/js/"+pname+"?videoID="+videoID;
    
    /*
    $('#position_black').show();
    $('#position_white').show();
    $('#player').html("<img src='/img/ajax-loader.gif' align='absmiddle' style='margin-left: 10px;'>");
    $.ajax(
    {
        url: path,
        cache: false,
        success: function(html)
        {
            $('#player').html(html);
        }
    });
    */
    window.open (path, "winstvo_add", "width=420,height=320,left=100,top=50,resizable=no,scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no,modal=yes");
} 
function ClosePlayer(videoID)
{
    
} 

function ShowHideDiag(div_id)
{
    var divizm=document.getElementById(div_id);
    
    if (divizm.style.display=="block")
    {
        divizm.style.display="none";
    }
    else
    {
        divizm.style.display="block";
    }
} 

function OpenInstr()
{
    var path="/System/etc/lib/js/instruction.php";
    var black=document.getElementById("position_black");
    var white=document.getElementById("position_white");
    
    /*$('#position_black').show();
    $('#position_white').show();*/
    black.style.display="block";
    white.style.display="block";
    
    $('#instr').html("<img src='/img/ajax-loader.gif' align='absmiddle' style='margin-left: 10px;'>");
    $.ajax(
    {
        url: path,
        cache: false,
        success: function(html)
        {
            $('#instr').html(html);
        }
    });
    return false;
} 

function CloseInstr()
{
    $('#instr').html("");
    $('#position_black').hide();
    $('#position_white').hide();
}