﻿var FullScreenMode = false;
var fullScreen = new Object;
var parentOfNavPort;

function goFullScreen() {
    parentOfNavPort = $("#navPort").parent().attr('id');
    $("tr#rowBottom").hide();
    $("#topContent").hide();
    $("#fsCenter").hide();
    $("#fhCenter").show();
    $("tr#navParts").length>0 ? 0: $("table#cont td:first").append($("#navPort"));
    //~ $("#navPath").hide();    $("#navPath + br").hide();    $("#pageView").attr('id','fpView');
    FullScreenMode = true;
}

function leaveFullScreen() {
    $("tr#rowBottom").show();
    $("#topContent").show();
    $("tr#navParts").length>0 ? 0 : $('#'+parentOfNavPort).append($("#navPort"));
    $("#fhCenter").hide();
    $("#fsCenter").show();
    //~ $("#navPath").show();    $("#navPath + br").show();    $("#fpView").attr('id','pageView');
    FullScreenMode = false;
}

function toggleFullScreen() {
    if (FullScreenMode == true) 
        leaveFullScreen();
    else 
        goFullScreen();
    
    refreshClientInfo();
    sendClientInfo({fullScreen:FullScreenMode});
}

$(document).ready(function() {    
    $("#fullScr").click(toggleFullScreen);
    
});



