/*----------------------------------------------------------------------------//
// Javascript pour le site client  -------------------------------------------//
//----------------------------------------------------------------------------//
// Client : -
// Note   : -
// Date   : -
//----------------------------------------------------------------------------*/

/*----------------------------------------------------------------------------*/
// 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 + '" />');
}

/*----------------------------------------------------------------------------*/
// IMPORTATION DE FICHIERS
/*----------------------------------------------------------------------------*/
importJavascript("/includes/js/plugins/abso.thickbox.js");
importCss("/includes/js/plugins/abso.thickbox.css", "screen");

/*----------------------------------------------------------------------------*/
// DÉCLARATIONS JQUERY
/*----------------------------------------------------------------------------*/
$(document).ready(function(){
	$(this).find(".VideoPopup").each(function() {
        var videoPath = $(this).attr("href");
		$(this).attr("href", "#TB_inline?height=546&amp;width=720&amp;inlineId=TB_Popup");
        $(this).click(function() {
           	LoadVideo(videoPath);
            return false;
        });
    });
	// ------------------------------------------------------------------------------
	// FONCTION PROFILE --------------------------------------------
	// ------------------------------------------------------------------------------
	$(".About").each(function() {
		var current = $(this);		
			$("a.More", current).click(function() {
			$(".Bio", current).slideToggle("fast");								
		});
	});
	
});

// ------------------------------------------------------------------------------
// FONCTION POUR AFFICHER UNE VIDÉO ---------------------------------------------
// ------------------------------------------------------------------------------
function LoadVideo(videoPath) {
	$("#VideoContent").html(
		"<embed src='/includes/smhPlayer.swf' width='720' height='546' type='application/x-shockwave-flash' wmode='transparent' allowfullscreen='true' flashvars='isLIVE=false&aname=silanistech&sname=" + videoPath + "&playerwidth=720&playerheight=546&autohide=false' allowscriptaccess='always' quality='high' allownetworking='all' bgcolor='#000000'></embed>"
	);	
}