
		var hiddenThings = new Array();
		var thingsAreHidden = true;
		
		
		function hideShowButtonClick() 
		{
			if (thingsAreHidden == true)
			{
				showExtraOptions();
			}
			
			else 
			{
				hideExtraOptions();
			}
		}
		
		function updateHideShowButton()
		{
			var hideShowButton = document.getElementById("hideShowButton");
			if (thingsAreHidden == true)
			{
				hideShowButton.innerHTML = "Show Extra Options";
			}
			
			else 
			{
				hideShowButton.innerHTML = "Hide Extra Options";
			}
			
		}
		
		function showExtraOptions()
		{
			document.cookie =
  			'hiddenOptions=false; path=/'
			var stuffToShow = getElementsByClass("translateLang");
			for (i = 0; i < stuffToShow.length; i++)
			{
				stuffToShow[i].innerHTML = hiddenThings[i];
				stuffToShow[i].style.display = "block";
			}			
			
			thingsAreHidden = false;
			updateHideShowButton();
		}
		
		function hideExtraOptions()
		{
			document.cookie =
  			'hiddenOptions=true; path=/'
		
			var stuffToHide = new Array();
			stuffToHide = getElementsByClass("translateLang")
			for (i = 0; i < stuffToHide.length; i++)
			{
				if (stuffToHide[i].innerHTML.length > 1)
				{
					hiddenThings[i] = stuffToHide[i].innerHTML;
				}
				stuffToHide[i].innerHTML = "";
				stuffToHide[i].style.display = "inline";
			}
			
			thingsAreHidden = true;
			updateHideShowButton();
		}

function setImgLight(icon)
{
	flagImg = document.getElementById(icon+"Icon");
	flagImg.src = "/images/functionBox/" + icon + "_.gif";
}


function setImgDark(icon)
{
	flagImg = document.getElementById(icon+"Icon");
	flagImg.src = "/images/functionBox/" + icon + ".gif";
}

function setFlagIn(flagCode)
{
	flagImg = document.getElementById("flag"+flagCode);
	flagImg.src = "/images/flags/" + flagCode + ".gif";
}

function setFlagOut(flagCode)
{
	flagImg = document.getElementById("flag"+flagCode);
	flagImg.src = "/images/flags/" + flagCode + "_.gif";
}

function popitup(url) {
	newwindow=window.open(url,'name','resizable=1,scrollbars=1,height=800,width=500');
	
	if (window.focus) {newwindow.focus()}
	return false;
}
	
function popitupemail(url) {
	newwindow=window.open(url,'name','resizable=1,height=490,width=398');
	
	if (window.focus) {newwindow.focus()}
	return false;
}

function doSearchBox()
{
	searchTextBox = document.getElementById("searchTextBox");
	if(searchTextBox.value == "Search formacompany.com")
	{
		searchTextBox.value = "";
		searchTextBox.style.fontStyle = "normal";
		searchTextBox.style.color = "black";
	}
}

function blurSearchBox()
{
	searchTextBox = document.getElementById("searchTextBox");
	if(searchTextBox.value == "")
	{
		searchTextBox.value = "Search formacompany.com";
		searchTextBox.style.fontStyle = "italic";
		searchTextBox.style.color = "#777777";
	}
}  

function clickSearch()
{
	searchTextBox = document.getElementById("searchTextBox");
	if(searchTextBox.value == "Search formacompany.com")
	{	  
		searchTextBox.value = "";
	}
}
