﻿function showfullScreen(swfFile) {
    //Videobox.open('movie/' + swfFile, "", "vidbox 780 496"); //520
    var size = '780 496';
    var swfFileLC = new String('' + swfFile).toLowerCase();
    if (swfFileLC == 'rvo_groot.swf'
         || swfFileLC == 'utrecht_groot.swf'
         || swfFileLC == 'hdj_groot.swf'
         || swfFileLC == 'jvdg_groot.swf'
         || swfFileLC == 'ww_groot.swf') {
        size = '900 550';
    }
    
    /*try {
        console.log('show: ' + swfFile );
    } catch (e) { }*/
    Videobox.open('movie/' + swfFile, "", "vidbox " + size); //520
    
}

function showLeraarProfielOverlay(idOverlay) {
//    $(".divLeraarProfielOverlay").fadeOut('slow');  // hide all
//    $("#" + idOverlay).fadeIn('fast');  // show one

    $j(".divLeraarProfielOverlay").css("display", "none");  // hide all
    $j("#" + idOverlay).css("display", "block");  // hide all

}

function hideLeraarProfielOverlay(idOverlay) {
    //$(".divLeraarProfielOverlay").fadeOut('slow');  // hide all

//    $("#" + idOverlay).fadeOut('slow');  // show one
    $j("#" + idOverlay).css("display", "none");
}

function ChangeBackground(id, color) {
    document.getElementById(id).style.backgroundColor = color;
}

function SureLink(link, message) {
    if (confirm(message))
        location.href = link;
}

function openPraktijkTip(id) {

    //$("div[ispraktijktipdiv='yessir']").css({ display: "none" });   // alles dichtgeklapt
    //$("#" + id).css({ display: "block" });  // geselecteerde uitklappen
    $j("div[ispraktijktipdiv='yessir']").hide("slow");
    $j("#" + id).toggle("slow");
}

var message = 'msg';
var context = 'cntxt';
function ShowServerTime(timeMessage, ccontext) {
    //alert('The time on the server is:\n' + timeMessage + " - " +ccontext);
}

function OnError(mmessage, ccontext) {
    alert('An unhandled exception has occurred:\n' + mmessage) + " - " + ccontext;
}