$(document).ready(function() {	
	$(".pictos li a img").mouseover(function(){
		$("#mo_txt").html("<h2>"+$(this).attr("alt")+"</h2>");
		sifr_entete();
	}).mouseout(function(){
		$("#mo_txt").html("");
	});
	$(".sub").hide();
	window.setTimeout(function() {
		$(".sub").slideDown(1000,"easeout");
	},500);
});

function sifr_entete() {	
	sIFR.replace(futura, {
		selector: '#mo_txt h2',
		wmode: 'transparent',
		css: [
			'.sIFR-root { font-size: 20px; color: #4a4949; text-align: right; letter-spacing: 1; }',
			'strong { font-style: bold; }',
			'em { font-style: normal; color: #'+COULEUR+'; }'
			],
		wmode: 'transparent'
	});
}


/*function open(id,title) {
	Shadowbox.open({
		player: "iframe",
		title: title,
		content: "content/ajax/Ajax_Reference.php?ref="+id,
		width: 640,
		height: 480
	});
}*/

function open(id,title) {
	var items = $("a.sbx_gal"+id);
	Shadowbox.open(items[0]);
}
