/***********************
*** SCENES *************
***********************/
var actionCount = 1;

function ondaload()
{
	scene1();
}

function scene1()
{
	if(this.senderScene != "scene3")
	{
		showScene1();
	}
	
	this.actionCount += 1;	
}

function scene2()
{
	showScene2();
	this.actionCount += 1;
}

/***********************
*** HELP FUNCTIONS *****
***********************/
function showScene1()
{	
	$('scene1').style.opacity = 0;
	$('scene1').style.filter = 'alpha(opacity=0)';
	$('scene1').style.zIndex = this.actionCount;
	new Effect.Opacity('scene1', {from: 0.0, to: 1.0, duration: 0.5}); 

	$('buttonplus').style.backgroundImage = 'url(themes/bevaplast/img/open_01.png)';
}

function showScene2()
{
	$('scene2').style.opacity = 0;
	$('scene2').style.filter = 'alpha(opacity=0)';
	$('scene2').style.zIndex = this.actionCount;
	new Effect.Opacity('scene2', {from: 0.0, to: 1.0, duration: 0.5}); 

	$('buttonplus').style.backgroundImage = 'url(themes/bevaplast/img/open_02.png)';
}

function showOverBevaplast()
{
	alert('naab');
	$('greylayer').style.backgroundImage = 'url(themes/bevaplast/img/backgroundgrey.jpg)';
	$('greylayer').style.width = '10000px';
	$('greylayer').style.height = '10000px';
	$('greylayer').style.zIndex = 1;
}

function hideOverBevaplast()
{

}