function anim_details_show()
{
    return dojo.animateProperty({
        node: "panneau_transp",
        delay: 0,
        duration: 1000,
        properties:
        {
            opacity: { end: 0.65 }
        }
    });
}
function anim_details_hide()
{
    return dojo.animateProperty({
        node: "panneau_transp",
        delay: 0,
        duration: 1000,
        properties:
        {
            opacity: { end: 0.2 }
        }
    });
}

function anim_copyright_show()
{
    return dojo.animateProperty({
        node: "copyright_transp",
        delay: 0,
        duration: 1000,
        properties:
        {
            opacity: { end: 0.9 }
        }
    });
}
function anim_copyright_hide()
{
    return dojo.animateProperty({
        node: "copyright_transp",
        delay: 0,
        duration: 1000,
        properties:
        {
            opacity: { end: 0.4 }
        }
    });
}

function recalc_menu_gauche()
{
    if (screen_size.h > 641) 
    {
        dojo.style("menu_gauche_fond_div", "position", "fixed");
        dojo.style("menu_gauche_fond_div", "top", screen_size.h-641+"px");
        
        dojo.style("menu_gauche_div", "position", "fixed");
        dojo.style("menu_gauche_div", "top", screen_size.h-641+"px");
    }
    else 
    {
        dojo.style("menu_gauche_fond_div", "position", "absolute");
        dojo.style("menu_gauche_fond_div", "top", "0px");
        
        dojo.style("menu_gauche_div", "position", "absolute");
        dojo.style("menu_gauche_div", "top", "0px");
    }
    
}

function recalc_fond()
{
    dojo.byId("fond").setAttribute("width", screen_size.w);
    dojo.byId("fond").setAttribute("border-left", "0px");
    dojo.byId("fond").setAttribute("height", screen_size.h);
}

function init_details()
{
    dojo.style("panneau_transp","opacity","0"); // hide it 
    
	var anim_details = dojo.animateProperty({
		node: "panneau_transp", delay: 2000, duration: 2000, 
		properties:{
			// fade back in and make text bigger
			opacity: { end: 0.65 }
		}
	});
	anim_details.play();
	var anim_details_toggler = new dojo.fx.Toggler(
	{
    	node: "panneau_transp",
    	showFunc: anim_details_show,
	    hideFunc: anim_details_hide
	});
    dojo.connect(dojo.byId("panneau_transp"),"onmouseover",function(e){
        //dojo.stopEvent(e);
        e.preventDefault();
        b_fade_in = false;
        anim_details_toggler.show();
    });
    dojo.connect(dojo.byId("panneau_transp"),"onmouseout",function(e){
        //dojo.stopEvent(e);
        e.preventDefault();
        b_fade_in = true;
        anim_details_toggler.hide();
    }); 
    
}

function init_copyright()
{
    dojo.style("copyright_transp","opacity","0"); // hide it 
    
	var anim_copyright = dojo.animateProperty({
		node: "copyright_transp", delay: 2000, duration: 2000, 
		properties:{
			// fade back in and make text bigger
			opacity: { end: 0.9 }
		}
	});
	anim_copyright.play();
	var anim_copyright_toggler = new dojo.fx.Toggler(
	{
    	node: "copyright_transp",
    	showFunc: anim_copyright_show,
	    hideFunc: anim_copyright_hide
	});
    dojo.connect(dojo.byId("copyright_transp"),"onmouseover",function(e){
        //dojo.stopEvent(e);
        e.preventDefault();
        b_fade_in = false;
        anim_copyright_toggler.show();
    });
    dojo.connect(dojo.byId("copyright_transp"),"onmouseout",function(e){
        //dojo.stopEvent(e);
        e.preventDefault();
        b_fade_in = true;
        anim_copyright_toggler.hide();
    }); 
}