$(document).ready(function(){
	Cufon.set('fontFamily', 'HNTC').replace('h1');
	$("h1").css("visibility", "visible");
});

function afficheGalerie(id){
	$('#liste_album').hide();
	var galerie_photos = new SWFObject('http://www.lampertheim.fr/flash/imagerotator.swf', 'GaleriePhotos', '580', '435', '9');
	galerie_photos.addParam("allowfullscreen","true");
	galerie_photos.addParam("wmode","transparent");
	galerie_photos.addVariable('showNavigation', 'true');
	galerie_photos.addVariable('file', 'http://www.lampertheim.fr/flash/imageRotator.php?album='+id);
	galerie_photos.addVariable('width', '580');
	galerie_photos.addVariable('height', '435');
	galerie_photos.addVariable('displaywidth', '580');
	galerie_photos.addVariable('displayheight', '435');
	galerie_photos.addVariable('screencolor', '0xffffff');
	//galerie_photos.addVariable('bgcolor', '0xffffff');
	galerie_photos.addVariable('largecontrols', 'true');
	galerie_photos.addVariable('showdigits', 'true');
	galerie_photos.addVariable('showicons', 'true');
	galerie_photos.addVariable('shuffle', 'false');
	galerie_photos.addVariable('transition', 'none');
	galerie_photos.addVariable('rotatetime', '4');
	galerie_photos.write('Galerie_Photos');
	$.post('http://www.lampertheim.fr/ajax/galerie.php',{album:id}, function(data) {
		  $('#nom_album').html(data);
		  $('#Rotator').fadeIn(500);
	});
}

function retour_galerie() {
	$('#Rotator').hide();
	$('#nom_album').innerHTML = '';
	$('#liste_album').fadeIn(500);
}

/*Fonction Visionneuse*/
function appelFlash(movieName) {

    if (navigator.appName.indexOf("Microsoft") != -1) {
		return window[movieName];
    }
    else {
	    return document[movieName];
    }
} 

function afficherPartage(cle){
	appelFlash("laVisionneuse_"+cle).afficherPartage();	
}

function afficherExport(cle){
	appelFlash("laVisionneuse_"+cle).afficherExport();	
}


