<!-- hide script content from old browsers

// Declare global variable for storing selected country index
var gintSelectedCountry = -1;
// Declare global variable for storing selected state/province via office index
var gstrSelectedState = "Alabama";
var gstrLastState="";

// Declare global associative array between region & region filename
var gobjRegionArray = new Array();

// Store regions into object array  this is from the old country.js
gobjRegionArray[0] = new objRegion("Africa & Middle East", "region_africa.js", "http://emea.3com.com");
gobjRegionArray[1] = new objRegion("Asia", "region_asia.js", "http://ap.3com.com");
gobjRegionArray[2] = new objRegion("Australia & New Zealand", "region_australia.js", "http://ap.3com.com");
gobjRegionArray[3] = new objRegion("Europe", "region_europe.js", "http://emea.3com.com");
gobjRegionArray[4] = new objRegion("Latin America", "region_south_america.js", "http://lat.3com.com/lat/");
gobjRegionArray[5] = new objRegion("North America", "region_north_america.js", "");


// Declare a separate country array for office locators
// because these aren't necessarily the same as the countries listed in the site footer
gobjOfcCountryArray = new Array();
var j = 0;
//Serbia, Montenegro, Macedonia, Albania
gobjOfcCountryArray[j++] = new objCountry("Middle East", "", 0, "");
gobjOfcCountryArray[j++] = new objCountry("Albania", "", 3, "");
//gobjOfcCountryArray[j++] = new objCountry("Argentina", "", 4, "");
gobjOfcCountryArray[j++] = new objCountry("Australia", "", 2, "");
gobjOfcCountryArray[j++] = new objCountry("Austria", "", 3, "");
gobjOfcCountryArray[j++] = new objCountry("Belgium", "", 3, "");
gobjOfcCountryArray[j++] = new objCountry("Bosnia and Hercegovina", "", 3, "");
gobjOfcCountryArray[j++] = new objCountry("Brazil", "", 4, "");
//gobjOfcCountryArray[j++] = new objCountry("Bulgaria", "", 3, "");
gobjOfcCountryArray[j++] = new objCountry("Canada", "", 5, "");
gobjOfcCountryArray[j++] = new objCountry("Chile", "", 4, "");
gobjOfcCountryArray[j++] = new objCountry("China", "", 1, "");
gobjOfcCountryArray[j++] = new objCountry("Colombia", "", 4, "");
gobjOfcCountryArray[j++] = new objCountry("Costa Rica", "", 4, "");
gobjOfcCountryArray[j++] = new objCountry("Croatia", "", 3, "");
gobjOfcCountryArray[j++] = new objCountry("Czech Republic", "", 3, "");
gobjOfcCountryArray[j++] = new objCountry("Denmark", "", 3, "");
gobjOfcCountryArray[j++] = new objCountry("Egypt", "", 0, "");
//gobjOfcCountryArray[j++] = new objCountry("Finland", "", 3, "");
gobjOfcCountryArray[j++] = new objCountry("France", "", 3, "");
gobjOfcCountryArray[j++] = new objCountry("Germany", "", 3, "");
gobjOfcCountryArray[j++] = new objCountry("Greece", "", 3, "");
gobjOfcCountryArray[j++] = new objCountry("Hong Kong", "", 1, "");
//gobjOfcCountryArray[j++] = new objCountry("Hungary", "", 3, "");
gobjOfcCountryArray[j++] = new objCountry("India", "", 1, "");
gobjOfcCountryArray[j++] = new objCountry("Indonesia", "", 1, "");
//gobjOfcCountryArray[j++] = new objCountry("Ireland", "", 3, "");
gobjOfcCountryArray[j++] = new objCountry("Israel", "", 0, "");
gobjOfcCountryArray[j++] = new objCountry("Italy", "", 3, "");
//gobjOfcCountryArray[j++] = new objCountry("Japan", "", 1, "");
gobjOfcCountryArray[j++] = new objCountry("Korea", "", 1, "");
gobjOfcCountryArray[j++] = new objCountry("Luxemburg", "", 3, "");
gobjOfcCountryArray[j++] = new objCountry("Macedonia", "", 3, "");
gobjOfcCountryArray[j++] = new objCountry("Malaysia", "", 1, "");
gobjOfcCountryArray[j++] = new objCountry("Mexico", "", 4, "");
gobjOfcCountryArray[j++] = new objCountry("Montenegro", "", 3, "");
//gobjOfcCountryArray[j++] = new objCountry("Morocco", "", 0, "");
gobjOfcCountryArray[j++] = new objCountry("Netherlands", "", 3, "");
gobjOfcCountryArray[j++] = new objCountry("New Zealand", "", 2, "");
//gobjOfcCountryArray[j++] = new objCountry("Norway", "", 3, "");
//gobjOfcCountryArray[j++] = new objCountry("Peru", "", 4, "");
//gobjOfcCountryArray[j++] = new objCountry("Philippines", "", 1, "");
gobjOfcCountryArray[j++] = new objCountry("Poland", "", 3, "");
gobjOfcCountryArray[j++] = new objCountry("Portugal", "", 3, "");
//gobjOfcCountryArray[j++] = new objCountry("Romania", "", 3, "");
gobjOfcCountryArray[j++] = new objCountry("Russia", "", 3, "");
gobjOfcCountryArray[j++] = new objCountry("Serbia", "", 3, "");
gobjOfcCountryArray[j++] = new objCountry("Singapore", "", 1, "");
gobjOfcCountryArray[j++] = new objCountry("Slovenia", "", 3, "");
//gobjOfcCountryArray[j++] = new objCountry("Slovakia", "", 3, "");
gobjOfcCountryArray[j++] = new objCountry("South Africa", "", 0, "");
gobjOfcCountryArray[j++] = new objCountry("Spain", "", 3, "");
gobjOfcCountryArray[j++] = new objCountry("Sweden", "", 3, "");
gobjOfcCountryArray[j++] = new objCountry("Switzerland", "", 3, "");
gobjOfcCountryArray[j++] = new objCountry("Taiwan", "", 1, "");
gobjOfcCountryArray[j++] = new objCountry("Thailand", "", 1, "");
gobjOfcCountryArray[j++] = new objCountry("Turkey", "", 3, "");
gobjOfcCountryArray[j++] = new objCountry("United Kingdom", "", 3, "");
gobjOfcCountryArray[j++] = new objCountry("United States", "", 5, "");

/**
 * fncUnescape
 * ===============
 *
 * Unencodes URL data for cboSelectState
 * 
 *
 * Parameters
 * ----------
 * in		strSelectedState - gstrSelectedState value from QueryString
 *
 * Return value
 * ------------
 * out		strSelectedState - unencoded gstrSelectedState value from QueryString
 */
 
 function fncUnescape (strSelectedState)
{
	strSelectedState = "" + strSelectedState;
	while (true)
	{
		var i = strSelectedState . indexOf ('+');
		if (i < 0)
			break;
			strSelectedState = strSelectedState . substring (0, i) + '%20' +
			strSelectedState . substring (i + 1, strSelectedState . length);
	}
	return unescape (strSelectedState);
}


/**
 * fncBuildSelectCountry
 * ===============
 *
 * Builds country dropdown for contact us and office locator pages
 *
 * Parameters
 * ----------
 * in     	strHeader 		- If not omitted/null, then uses specified string as header option for initial display
 *
 * Return value
 * ------------
 * 
 */
 function fncSelectCountry(strHeader)
 {
	// Build country dropdown
	document.write("<select name='cboSelectCountry' onchange='javascript:document.frmSelectCountry.submit();'>");
	if (strHeader)
	{
		document.write("<option value='-1'>" + strHeader + "</option>");
	}
	for(i=0; i<gobjOfcCountryArray.length; i++)
	{
		if (i == gintSelectedCountry)
		{
			document.write("<option value=" + i + " selected>" + gobjOfcCountryArray[i].name + "</option>");
		}
		else
		{
			
			document.write("<option value=" + i + ">" + gobjOfcCountryArray[i].name + "</option>");
		}
	}
	document.write("</select>&nbsp&nbsp");
 }

/**
 * fncBuildSelectState
 * ===============
 *
 * Builds state/province dropdown for office locator page
 *
 * Parameters
 * ----------
 * in     	strHeader 		- If not omitted/null, then uses specified string as header option for initial display
 *
 * Return value
 * ------------
 * 
 */
 function fncSelectState(strHeader)
 {
	// Build country dropdown
	document.write("<select name='cboSelectState' onchange='javascript:document.frmSelectCountry.submit();'>");
	if (strHeader)
	{
		document.write("<option value='-1'>" + strHeader + "</option>");
	}
	for(i=0; i<gobjOfficeArray.length; i++)
	{
		if (gobjOfficeArray[i].country.value == gobjOfcCountryArray[gintSelectedCountry].value)
		{	
			if ((gobjOfficeArray[i].state == gstrSelectedState)&&(gobjOfficeArray[i].state!=gstrLastState))
			{
				document.write("<option value='" + gobjOfficeArray[i].state + "' selected>" + gobjOfficeArray[i].state + "</option>");
				gstrLastState=gobjOfficeArray[i].state;
			}
			else if(gobjOfficeArray[i].state!=gstrLastState)
			{
				document.write("<option value='" + gobjOfficeArray[i].state + "'>" + gobjOfficeArray[i].state + "</option>");
				gstrLastState=gobjOfficeArray[i].state;
			}
		}
	}
	document.write("</select>");
	
 }

/**
 * fncGetOffices
 * ===============
 *
 * Sets global variable for selected country index
 * and loads corresponding javascript file for region
 *
 * Parameters
 * ----------
 *
 * Return value
 * ------------
 * 
 */
 
 
function fncGetOffices()
{
	// Check if url contains a selected country
	if (document.URL.indexOf("cboSelectCountry=") != -1)
	{
		// Get specified country from submitted form variable
		var intCountryStart = document.URL.indexOf("cboSelectCountry=") + "cboSelectCountry=".length;
		var intCountryEnd = document.URL.indexOf("cboSelectState=");
		if (intCountryEnd != -1)
		{
			gintSelectedCountry = document.URL.substring(intCountryStart, intCountryEnd-1);
			// Get specified state from submitted form variable
			var intStateStart = document.URL.indexOf("cboSelectState=") + "cboSelectState=".length;
			gstrSelectedState = document.URL.substring(intStateStart, document.URL.length);
			gstrSelectedState=fncUnescape(gstrSelectedState);
		}
		else
		{
			gintSelectedCountry = document.URL.substring(intCountryStart, document.URL.length);
		}
		// Load corresponding region js file containing office information
		// document.write("<script type='text/javascript' language='JavaScript1.1' src='" + "/scripts/infra/corpinfo/en_US/" + gobjOfcCountryArray[gintSelectedCountry].region.file + "'></script>");
	}

	// if no cboSElectedCountry set, set default region to north america:
	else {
		gintSelectedCountry = fncGetCountryIndex("United States");
	}

	// Load corresponding region js file containing office information
	document.write("<script type='text/javascript' language='JavaScript1.1' src='" + "/scripts/infra/corpinfo/en_US/" + gobjOfcCountryArray[gintSelectedCountry].region.file + "'></script>");


	
}

/**
 * fncListOffices
 * ===============
 *
 * List offices and corresponding contact information for appropriate region
 *
 * Parameters
 * ----------
 *
 * Return value
 * ------------
 * 
 */
function fncListOffices()
{
	if ((gblnState) && (gintSelectedCountry != fncGetCountryIndex("Canada")))
	{
		document.write("<font class='normal'>and</font>&nbsp;&nbsp;");
		//fncSelectState();
		fncSelectState("Select State");
		document.write("<br><br><img src='/images/common/en_US/greypixel.gif' width='304' height='1' alt='' border='0'>");
	}
	else
	{
		document.write("<br><br><img src='/images/common/en_US/greypixel.gif' width='151' height='1' alt='' border='0'>");
	}
	document.write("<br>");
	for (i=0; i<gobjOfficeArray.length; i++)
	{
		if (gobjOfficeArray[i].country.name == gobjOfcCountryArray[gintSelectedCountry].name)
		{
			if ((gobjOfficeArray[i].state == "") || (gobjOfficeArray[i].state == gstrSelectedState))
			{
				if (gobjOfficeArray[i].name)
				{
					document.write("<br><font class='hdrGrey'><b>" + gobjOfficeArray[i].name + "</b></font>");
				}
				else
				{
					document.write("<br><font class='hdrGrey'><b>3Com Corporation</b></font>");
				}
				if (gobjOfficeArray[i].address)
				{
					document.write("<br><font class='normal'>" + gobjOfficeArray[i].address + "</font>");
				}
				if (gobjOfficeArray[i].phone)
				{
					document.write("<br><font class='normal'>Phone: " + gobjOfficeArray[i].phone + "</font><br>");
				}
				if (gobjOfficeArray[i].fax)
				{
					document.write("<font class='normal'>Fax: " + gobjOfficeArray[i].fax + "</font><br>");
				}
			}
		}
	}	
}

// functions used by region files:

/**
 * objOffice
 * ===============
 *
 * Constructor function for office object
 *
 * Parameters
 * ----------
 * in     	strName 				- Office name
 * in     	intCountry 				- Country index
 *
 * Return value
 * ------------
 * 
 */
 
function objOffice(strIndex, strState, strName, strAddress, strPhone, strFax)
{
	this.country = gobjOfcCountryArray[strIndex];
	this.state = strState;
	this.name = strName;
	this.address = strAddress;
    this.phone = strPhone;
    this.fax = strFax;
}

/**
 * fncGetCountryIndex
 * ===============
 *
 * Function to get country index for specified country
 *
 * Parameters
 * ----------
 * in     	strValue 				- Country value
 *
 * Return value
 * ------------
 * 
 */
 
function fncGetCountryIndex(strValue)
{
	for(i=0; i<gobjOfcCountryArray.length; i++)
	{
		if (gobjOfcCountryArray[i].name == strValue)
		{
			return i;
		}
	}
}
// end hiding -->