$(window).ready(function()
{
	$("#picto ul li img[title]").tooltip({ 
        // use single tooltip element for all tips 
        tip: '#tooltip',  
        // tweak the position 
        offset: [10, 2],  
        // use "slide" effect 
        effect: 'slide' 
    // add dynamic plugin  
    }).dynamic( { 
        // customized configuration on bottom edge 
        bottom: { 
            // slide downwards 
            direction: 'down', 
            // bounce back when closed 
            bounce: true 
        } 
    }); 

	$(".erreurs").dialog({
			bgiframe: true,
			height: "auto",
			modal: true
		});

	$(".ui-widget-overlay").click(function()
	{
		$(".erreurs").dialog( 'close' );
	});
	
	$("#infos_vr,#bginfo_vr").click(function()
	{
		$("#infos_vr,#bginfo_vr").fadeOut();
	});

});

function load_info(param,reload)
{	
	$("#right").fadeOut(function()
	{
		$("#right").load("infos/"+param+".html",function(){$("#right").fadeIn();})
	});
	
	if(reload!=undefined)
	{
		$("#gallery").fadeOut(function(){
			swfobject.embedSWF(param+".swf", "gallery", "650px", "354px", "9.0.0", param+".swf",flashvars,params,attributes);
		$("#gallery").fadeIn();
		});
	}
}
