function showDiv(carry)
	{ document.getElementById(carry).style.display = "block"; }
function hideDiv(carry)
	{ document.getElementById(carry).style.display = "block"; }
function showMore(carry)
	{
		if (document.getElementById) {
			var visId = document.getElementById(carry);
			var vis = visId.style;
			if (vis.display == "block"){
				vis.display = "none";
			} else {
				vis.display = "block";
			}
			return false;
		} else {
			return true;
		} 
	}

function hideIndustryDiv() { 
	document.getElementById('Industry1').style.display = "none";             
}

var theWidth = getBrowserWidth();

function getBrowserWidth()
{
	if (window.innerWidth)
	{
		return window.innerWidth;
	}
	else if (document.documentElement && document.documentElement.clientWidth != 0)
	{
		return document.documentElement.clientWidth;
	}
	else if (document.body)
	{
		return document.body.clientWidth;
	}
	
	return 0;
};

function write800CSS()
	{
		if (theWidth < 1020 )
		{
		 document.write("<link rel='stylesheet' type='text/css' href='/css/eyMain800.css' />");
		}
		else
		{
		 
		}
	}
	
function openDir( form ) { 
	var newIndex = form.fieldname.selectedIndex; 
	if ( newIndex == 0 ) { 
		alert( "Please select a location!" ); 
	} else { 
		cururl = form.fieldname.options[ newIndex ].value; 
		window.location.assign( cururl ); 
	} 

} 
