/* accions per efectes a caixes laterals */


var accio_temps; // guarda la propera acció que se li ha de fer al layer del temps. 
var accio_com_arribar; // guarda la propera acció que se li ha de fer al layer de com arribar. 
var accio_butlleti; // guarda la propera acció que se li ha de fer al layer de butlleto. 

function efecte_temps()
{
	if(accio_temps=="puja")
	{
		//tmp = new Effect.BlindUp('layer_temps',{duration:1.0});
		tmp = new Effect.SlideUp('layer_temps',{duration:1.0});
		accio_temps = "baixa";
	}
	else
	{
		//tmp = new Effect.BlindDown('layer_temps',{duration:1.0});
		tmp = new Effect.SlideDown('layer_temps',{duration:1.0});		
		accio_temps = "puja";
	}
}


function efecte_com_arribar()
{
	if(accio_com_arribar=="puja")
	{
		tmp = new Effect.SlideUp('layer_com_arribar',{duration:0.5});
		accio_com_arribar = "baixa";
	}
	else
	{
		tmp = new Effect.SlideDown('layer_com_arribar',{duration:0.5});		
		accio_com_arribar = "puja";
	}
}



function efecte_butlleti()
{
	if(accio_butlleti=="puja")
	{
		tmp = new Effect.SlideUp('layer_butlleti',{duration:0.5});
		accio_butlleti = "baixa";
	}
	else
	{
		tmp = new Effect.SlideDown('layer_butlleti',{duration:0.5});		
		accio_butlleti = "puja";
	}
}



// on load inicialitza els layers i els efectes de la pàgina
function ini_efectes()
{
	accio_temps = "baixa";	
	tmp = new Effect.SlideUp('layer_temps',{duration:0});
	accio_com_arribar = "baixa";	
	tmp = new Effect.SlideUp('layer_com_arribar',{duration:0});
	accio_butlleti = "baixa";	
	tmp = new Effect.SlideUp('layer_butlleti',{duration:0});
}






