maxConversationAllowed = 3;
noMoreConversationAlert = "Non č possibile aprire pių di " + maxConversationAllowed + " conversazioni contemporaneamente.";
signInControl_backColor="#313131";
signInControl_linkColor="#FFFFFF";
signInControl_buttonBackColor="#d90128";
signInControl_buttonForeColor="#FFFFFF";
signInControl_foreColor="#000000";
PersonalMessageInputBackground="#555";
customizationFolderPath="/images/webmessenger/virginradio/";
changeStatusContainerTop="40px";
changeStatusContainerLeft="145px";
boxEmoticonTop="424px";
boxEmoticonLeft="68px";


function manageElementsVisibility ( state )
{
	////console.warn(state);

	var elToDisplayNone = [];
	var elToDisplayBlock = [];
	var i;
	
	switch( state )
	{
		case "snifferBadDetect":
			elToDisplayNone = [ "bannerPromo", "customer_openbox", "customer_clientwrapper", "addContactBox", "changeStatusContainer", "boxEmoticon", "msgrmessage", "header", "profilecontainer", "separator", "actionList", "searchBox", "contactlist", "msgrtabcontainer", "msgrtabsid" ];
			elToDisplayBlock = [ "notsupportedmessage" ];
		break;
		case "onInit":
			elToDisplayNone = ["bannerPromo", "customer_openbox", "customer_clientwrapper", "notsupportedmessage", "addContactBox", "changeStatusContainer", "boxEmoticon", "msgrmessage", "header", "profilecontainer", "separator", "actionList", "searchBox", "contactlist", "msgrtabcontainer", "msgrtabsid" ];
			elToDisplayBlock = [];
		break;
		case "onLoggingIn":
			elToDisplayNone = ["bannerPromo", "customer_openbox", "customer_clientwrapper", "notsupportedmessage", "addContactBox", "changeStatusContainer", "boxEmoticon", "header", "profilecontainer", "separator", "actionList", "searchBox", "contactlist", "msgrconnect", "msgrtabcontainer", "msgrtabsid" ];
			elToDisplayBlock = [ "msgrmessage" ];
		break;
		case "onLogged":
			elToDisplayNone = [ "notsupportedmessage", "addContactBox", "changeStatusContainer", "boxEmoticon", "signinframe", "msgrmessage", "msgrconnect" ];
			elToDisplayBlock = [ "bannerPromo", "customer_openbox", "customer_clientwrapper", "header", "profilecontainer", "actionList", "separator", "searchBox", "contactlist", "msgrtabcontainer", "msgrtabsid" ];
		
			fillEmoticonPanel();
			fillPresencePanel();
		break;
		case "onLogout":
			elToDisplayNone = [ "bannerPromo", "customer_openbox", "customer_clientwrapper", "notsupportedmessage", "addContactBox", "changeStatusContainer", "boxEmoticon", "msgrmessage", "header", "profilecontainer", "separator", "actionList", "searchBox", "contactlist", "msgrtabcontainer", "msgrtabsid" ];
			elToDisplayBlock = [ "signinframe", "msgrconnect" ];		
		break;
	}
	
	for( i = 0; i < elToDisplayNone.length; i++) 	document.getElementById( elToDisplayNone[ i ] ).style.display = "none";
	for( i = 0; i < elToDisplayBlock.length; i++) 	document.getElementById( elToDisplayBlock[ i ] ).style.display = "block";
}
