// Functie voor het weergeven van de duikboot
function showSubmarine()
{
    // We gaan de html aanmaken
    // Container maken
    var workhtml = '<div id="submarine_container">';
        
        // Content
        workhtml += '<div id="submarine_paper">&nbsp;</div>';
        workhtml += '<div id="submarine_periscoop">';
            workhtml += '<object height="264" width="352" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"><param value="/images/flash/wesensitDuikbootFlv.swf" name="movie"/> <param value="high" name="quality"/> <param value="true" name="loop"/> <param value="noborder" name="scale"/> <param value="transparent" name="wmode"/> <param value="always" name="AllowScriptAccess"/> <embed height="264" width="352" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" allowscriptaccess="always" wmode="transparent" scale="noborder" loop="true" quality="high" src="/images/flash/wesensitDuikbootFlv.swf"/></object>';        
        workhtml += '</div>';
        workhtml += '<a href="/" onclick="hideSubmarine();return false;" id="submarine_btnback">&nbsp;</a>';
        
    // Container afsluiten
    workhtml += '</div>';
    
    // We gaan de hoogte overschot ophalen
    var overHeight = (($(window).height() - 759) / 2);
    
    // We gaan de content ophalen
    $.ajax({
        type: "POST",
        url: "/includes/main/main_ajax.php?action=submarineContent",
        cache: false,
        async: true,
        success: function(msg) {
            $("#submarine_paper").html(unescape(msg));
        }
    });
       
    // We gaan de html plaatsen
    $("#site_container").after(workhtml);

    // We gaan de hoogtes instellen
    $("#submarine_container").css("top", overHeight + "px");
}

// Functie voor het verbergen van de duikboot popup
function hideSubmarine()
{
    // We gaan de gehele container verwijderen
    $("#submarine_container").remove();
}