var nomeFrecciaGoogle = 'myIMG';
var nomeFrecciaFlash = 'myIMG2';
var collapse1;
var collapse2;
var collapse_banche;
var products;
var inc = 0;
    
ddaccordion.init({headerclass: "silverheader",contentclass: "submenu", 	revealtype: "click", mouseoverdelay: 200, collapseprev: true, defaultexpanded: [0], onemustopen: true, animatedefault: true, persiststate: false, toggleclass: ["", "selected"],togglehtml: ["", "", ""],animatespeed: "normal",
			oninit:function(expandedindices){
				//do nothing
			},
			onopenclose:function(header, index, state, isuseractivated){
				//do nothing
			}
		})
ddaccordion.init({headerclass: "silverheader_group", contentclass: "submenu_group", revealtype: "click", mouseoverdelay: 200, collapseprev: true, 	defaultexpanded: [100],	onemustopen: false, animatedefault: true, persiststate: false, toggleclass: ["", "selected_group"], togglehtml: ["", "", ""], animatespeed: "normal",

			oninit:function(expandedindices){ //custom code to run when headers have initalized
				//do nothing
			},
			onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
				//do nothing
			}
		})

function slideit(){

	if(products) {

		if(inc == 1){
			products.slideup();
			inc = 0;
		}
			products.slidedown();
			inc++;
	}
}


function loadPageComponents() {	

//loading(true);

		try
		 {
			collapse1	= new animatedcollapse("aperto", 600, true, "block" ,"horizontal",level_1,'hidden');
			collapse2	= new animatedcollapse("sotto", 700, true, 'block' ,"horizontal",level_1,'hidden');
			products 	= new animatedcollapse("silverheader_footer", 600, true, "none","vertical",'','auto');

			document.getElementById('silverheader_footer').style.display = 'block';
			document.getElementById('footer').style.display = 'block';

			var myTabs1 = new mootabs('myTabs', {height: '120px', width: '205px', changeTransition: 'none', activateOnLoad:	'ABAflex', mouseOverClass: 'over'});

			var accordion = new Accordion('h3.atStart', 'div.atStart', {
			opacity: false,
			onActive: function(toggler, element){
				toggler.setStyle('color', '#f57421');
			},

			onBackground: function(toggler, element){
				toggler.setStyle('color', '#f57421');
			}

		}, $('myTabs1'));
				if($('myTabs')) new mootabs('myTabs', {height: '120px', width: '205px', changeTransition: 'none', mouseOverClass: 'over'});
		}catch(e){}

	}//fine onload
