// JavaScript Document
var subProfilo,subInfissi,subPorte,currentOpen,dir = '';

function init() {
	
	subProfilo = new fx.Height('subprofilo' , { duration: 600 });
	subInfissi = new fx.Height('subinfissi', {duration: 600});
	subPorte = new fx.Height('subporte', {duration: 800});
	
	subProfilo.hide();
	subInfissi.hide();
	subPorte.hide();
	
}

function openDiv(name){
	
	closeDiv();
	eval(name+".toggle()");	
	setCurrentOpen(name);
}

function closeDiv(){
	
	if(currentOpen)
		eval(currentOpen+".toggle()");
}

function setCurrentOpen(name){
	
	if(currentOpen==name)
		currentOpen=null;
	else
		currentOpen=name;
}

function setDir(){
	
	fileLoadingImage = "../gfx/loading.gif";		
	fileBottomNavCloseImage = "../gfx/closelabel.gif";
}

window.onload = function(){
	
	init();
}
