/*$(document).ready(function() {
//	$('.lightbox').lightBox();
});*/

var jungle = {src: SITE_PATH+'templates/media/fonts/jungle.swf'};
var stick = {src: SITE_PATH+'templates/media/fonts/stick.swf'};
var daniel = {src: SITE_PATH+'templates/media/fonts/daniel.swf'};
var gooddog = {src: SITE_PATH+'templates/media/fonts/gooddog.swf'};

sIFR.activate(jungle);
sIFR.activate(stick);
sIFR.activate(daniel);
sIFR.activate(gooddog);

// TITLE #1
sIFR.replace(jungle, {
	selector: 'h1#title',
	wmode: 'transparent',
	css: [
		'.sIFR-root { font-size: 45px; color: #0062db; }',
		'strong { font-style: bold; }',
		'em { font-style: italic; }'
		],
	wmode: 'transparent'
});

// TITLE #2
sIFR.replace(jungle, {
	selector: 'h2#title',
	wmode: 'transparent',
	css: [
		'.sIFR-root { font-size: 40px; color: #0062db; text-align: center; }',
		'strong { font-style: bold; }',
		'em { font-style: normal; color: #ff008a; }'
		],
	wmode: 'transparent'
});

// TITLE #2
sIFR.replace(jungle, {
	selector: 'h3#title',
	wmode: 'transparent',
	css: [
		'.sIFR-root { font-size: 33px; color: #0062db; text-align: center; }',
		'strong { font-style: bold; }',
		'em { font-style: normal; color: #ff008a; }'
		],
	wmode: 'transparent'
});

// LOGIN #1
sIFR.replace(jungle, {
	selector: 'h3#LoginAccueil',
	wmode: 'transparent',
	css: [
		'.sIFR-root { font-size: 45px; color: #feeb12; text-align: center; }',
		'strong { font-style: bold; }',
		'em { font-style: normal; color: #9ed900; }'
		],
	wmode: 'transparent'
});

// LOGIN #2
sIFR.replace(jungle, {
	selector: 'h3#Login',
	wmode: 'transparent',
	css: [
		'.sIFR-root { font-size: 45px; color: #9337b5; text-align: center; }',
		'strong { font-style: bold; }',
		'em { font-style: normal; color: #c30909; }'
		],
	wmode: 'transparent'
});

// PIED
sIFR.replace(stick, {
	selector: '.pied h1#tel',
	wmode: 'transparent',
	css: [
		'.sIFR-root { font-size: 20px; color: #ffffff; text-align: right; }',
		'strong { font-style: bold; }',
		'em { font-style: normal; color: #feeb12; }'
		],
	wmode: 'transparent'
});
sIFR.replace(stick, {
	selector: '.pied h1',
	wmode: 'transparent',
	css: [
		'.sIFR-root { font-size: 20px; color: #ffffff; }',
		'strong { font-style: bold; }',
		'em { font-style: normal; color: #feeb12; }'
		],
	wmode: 'transparent'
});

sIFR.replace(stick, {
	selector: '.accueil_0 #connexion label',
	css: [
		'.sIFR-root { text-align: right; font-size: 20px; color: #feeb12; }',
		'strong { font-style: bold; }',
		'em { font-style: italic; }'
	],
	wmode: 'transparent'
});

// PHRASE
sIFR.replace(daniel, {
	selector: '.phrase h1',
	css: [
		'.sIFR-root { font-style: bold; font-size: 25px; color: #0e52a6; text-align: center; }',
		'strong { font-style: bold; }',
		'em { font-style: italic; }'
		],
	wmode: 'transparent'
});

// PHRASE
sIFR.replace(gooddog, {
	selector: '.datePrecis',
	css: [
		'.sIFR-root { font-style: bold; font-size: 26px; color: #cf0000; text-align: center; }',
		'strong { font-style: bold; }',
		'em { font-style: italic; }'
		],
	wmode: 'transparent'
});

// jPlayer
function jPause() { $("#jplayer").pause().removeClass("playing"); } 
function jPlay() { $("#jplayer").play().addClass("playing"); }
function jToggle(play,pause) { 
	if($("#jplayer").attr("class")=="playing") { jPause(); $(".jtoggle").html(play); }
	else { jPlay(); $(".jtoggle").html(pause); }
}