/*
	uniteam/pagine/index
*/

function form_area_riservata(){
	var status = {
		'true': 'open',
		'false': 'close'
	};

	var myVerticalSlide = new Fx.Slide('vertical_slide');
	
	myVerticalSlide.hide();//nasconde form
	$('div_accesso').setStyle('visibility','visible');//visualizza pulsante per slide

	/*$('v_slidein').addEvent('click', function(e){
		e.stop();
		myVerticalSlide.slideIn();
	});
	$('v_slideout').addEvent('click', function(e){
		e.stop();
		myVerticalSlide.slideOut();
	});*/

	$('area_ris').addEvent('click', function(e){
		e.stop();
		myVerticalSlide.toggle();
	});

	// When Vertical Slide ends its transition, we check for its status
	// note that complete will not affect 'hide' and 'show' methods
	myVerticalSlide.addEvent('complete', function() {
		//$('vertical_status').set('html', status[myVerticalSlide.open]);
	});
}


function menu_foto_gallery(){
	var obj = new Swiff('/uniteam/app/webroot/flash/gallery/gallery.swf', {
		container :$('menu_foto_gallery'),
		width: 980,
		height: 170,
		params: {
			
		},
		vars: {
			url_xml_gallery :'/uniteam/app/webroot/img/pagine/foto/index/'+lingua_sessione+'/gallery.xml',
			url_cartella_foto :'/uniteam/app/webroot/img/pagine/foto/index/'+lingua_sessione+'/',
			colore_frecce : '0x5e5e5e'
		},
		callBacks: {
			
			
		}

	});	
}


function gallery_header(){
	var obj = new Swiff('/uniteam/app/webroot/flash/head/v4/header.swf', {
		container :$('gallery_header'),
		width: 990,
		height: 300,
		params: {},
		vars: {
                    hide_text :'true',//cambia il testo tra una foto e l'altra
                    url_xml_gallery : '/uniteam/common/get_header_info_xml/'+nome_controller+'/'+lingua_sessione
		},
		callBacks: {}
	});	
}

window.addEvent('domready', function() {
	form_area_riservata();

    if($type(gallery_header)){
        gallery_header();
    }

    menu_foto_gallery();      
});

