var ToolBar_Supported = false;
if (navigator.userAgent.indexOf("MSIE")    != -1 && 
	navigator.userAgent.indexOf("Windows") != -1 && 
	navigator.appVersion.substring(0,1) > 3)
{
	ToolBar_Supported = true;
}

function careersByLocation_onchange()
{
	var dropDown = document.getElementById('careersByLocation');
	if(dropDown)
	{
		if(dropDown.selectedIndex > 0)
		{
			var navigateURL = dropDown[dropDown.selectedIndex].value;
			window.open(navigateURL, '_self');
		}
	}
}
function clikker(a,b)
{
	if ((ToolBar_Supported != null && ToolBar_Supported == true) || (isMac && isDOM))
	{
		if (a.style.display == 'block')
		{
			a.style.display = 'none';
			document.getElementById(b).innerHTML='View';
		}
		else
		{
			a.style.display='block';
			document.getElementById(b).innerHTML='Hide';
		}
	}
}

function openLSFlash()
{ 
	var Xloc = 0;
	var Yloc = 0;

	window.open('/emea/education/learningsuite/flash/dayInTheLives/tour/loader.aspx'); 
}					

function openLGFlash()
{ 
	var Xloc = 0;
	var Yloc = 0;

	window.open('/emea/education/flash/loader.aspx'); 
}


		

function ShowHideAddress()
{
	var y = document.getElementById("CountryList").value;
	var ar = new Array(6);
	ar = ['a','b','c','d','e','f'];
	
	
	document.getElementById("Table1").style.display='block';
	 
	for (x=0;x<100;x++)
	{
		for (z=0;z<6;z++)
		{
			if (y==0)
			{
				if (document.getElementById(x + ar[z]))
				{
					document.getElementById(x + ar[z]).style.display='block';
				}
			}
			else if (x==y)
			{
				if (document.getElementById(x + ar[z]))
				{
					document.getElementById(x + ar[z]).style.display='block';
				}
			}

			else
			{
				if (document.getElementById(x + ar[z]))
				{
					document.getElementById(x + ar[z]).style.display='none';
				}
			}
		}		
	}
}