var isExtended = 0;
var isExtended2 = 0;

function slideTopBar(){

	new Effect.toggle('loginpanel', 'slide');
	
	if(isExtended==0){
		isExtended++;
		new Effect.toggle('openpanel', 'appear', { duration: 0.0 });
		new Effect.toggle('closepanel', 'appear', { duration: 0.0 });
	}
	else{
		isExtended=0;
		new Effect.toggle('closepanel', 'appear', { duration: 0.0 });
		new Effect.toggle('openpanel', 'appear', { duration: 0.0 });
	}
}

function slideMainMenuSecondOptions(){

	
	//new Effect.toggle('loginpanel', 'slide');
	
	if(isExtended2==0){
		isExtended2++;
		new Effect.BlindDown('mainmenu_second', { duration: '0.4'});
		new Effect.toggle('invspacer_up', 'appear', { duration: 0.0 });
		new Effect.toggle('invspacer_down', 'appear', { duration: 0.0 });
	}
	else{
		isExtended2=0;
		new Effect.BlindUp('mainmenu_second', { duration: '0.4'});
		new Effect.toggle('invspacer_down', 'appear', { duration: 0.0 });
		new Effect.toggle('invspacer_up', 'appear', { duration: 0.0 });
	}
}

function slideNewContactClient(){
	new Effect.toggle('newclientcontactTitle', 'appear', { duration: 0.0 });
	new Effect.toggle('newclientcontact', 'appear', { duration: 0.4 });
}


