﻿/*----------------------------------------------------------------------------//
// Javascript pour le site client  -------------------------------------------//
//----------------------------------------------------------------------------//
// Client : Academie Lafontaine
// Note   : -
// Date   : 23 septembre 2009
//----------------------------------------------------------------------------*/

/*----------------------------------------------------------------------------*/
// Inclusion dynamique des fichiers externes javascripts
/*----------------------------------------------------------------------------*/
function importJavascript(src) {
    document.write("<script type=\"text/javascript\" src=\"" + src + "\"></scr" + "ipt>");
}
function importCss(href, media) {
    document.write('<link rel="stylesheet" type="text/css" media="' + media + '" href="' + href + '" />');
}

importCss("/includes/js/plugins/abso.thickbox.css", "screen");
importJavascript("/includes/js/plugins/abso.thickbox.js");

/* - Fonction : Reload SRC video
------------------------------------*/
function StopVideoPlayer() {
    if (jQuery.browser.msie) {
        jQuery("div.VideoBloc").each(function() {
            if (jQuery(this).children("div").attr("title") == "winmedia") {
                var src = jQuery(this).html();
                jQuery(this).empty();
                jQuery(this).html(src);
            }
        });
    }
}