active_step = null;
previous_step = "welcome";
next_step = "whatisPMP";
execNextStep = true; 

stepsH = {
	"welcome" : function(){
					mapform.panTo(new GLatLng(0,0));
					mapform.setZoom(3);
					showHideInFoSection("infoWelcome",true);
					} , 
	"whatisPMP" : function(){
					showHideInFoSection("infoWhatIsPMP",true);
					} , 
	"colab" : function(){
					showHideInFoSection("infoColaborating",true);
					} , 
	"contribute" : function(){
					showHideInFoSection("infoHowContribute",true);
					},
	"design" : function(){
					showHideInFoSection("infoDesign",true);
					},
	"addmap" : function(){
					mapform.panTo(new GLatLng(45, 82));
					showHideInFoSection("infoHowAddMap",true);
					}
};

function sceneStepper( step ){
	previous_step = (active_step) ? active_step : "welcome";
	if(!step)
		step = next_step;
	else
		next_step = "";
		
	active_step = step;
	var found = false;
	var count = 0;
	var sold ="";
	for(s in stepsH){
		
		if(found){
			next_step = s;
			break;
		}
		if( !found && s == active_step ){
			found = true;
			previous_step = sold;
		}
		sold = s;
	}
	//alert(previous_step+"/"+active_step+"/"+next_step);
	stepsH[step]();
	if(execNextStep && found && next_step != active_step)
		sceneStepper(next_step);
}

function whatisPMP(){
	
	alert("toto");
}