//document.write (location.pathname);
var dir = location.pathname;
var path = dir.split("\/");

//document.write (path[1]);
//if ((test[2] == 'frontstep') || (test[1] == 'frontstep')){
//if (test[2] == 'frontstep'){

        document.write ("\&nbsp\;\&nbsp\;<font class=locatorgrey>Current Location: </font><font class=locator><a href=http://www.mapics.com/ class=locator>Home</a>")

if (path[1] == 'focus'){
	document.write (" > <A class=locator>Focus</a>")
		if (path[2] == 'reduce'){
			document.write (" > <A href=/focus/reduce/ class=locator>Reduce Lead Times</a>")
		}
		if (path[2] == 'cut'){
			document.write (" > <A href=/focus/cut/ class=locator>Cut Operations Costs</a>")
		}
		if (path[2] == 'exceed'){
			document.write (" > <A href=/focus/exceed/ class=locator>Exceed Customer Expectations</a>")
		}
		if (path[2] == 'manage'){
			document.write (" > <A href=/focus/manage/ class=locator>Manage the Global Enterprise</a>")
   		}
		if (path[2] == 'streamline'){
			document.write (" > <A href=/focus/streamline/ class=locator>Streamline Outsourcing Processes</a>")
   		}
		if (path[2] == 'speed'){
			document.write (" > <A href=/focus/speed/ class=locator>Speed Time-to-market for New Products</a>")
   		}
		if (path[2] == 'improve'){
			document.write (" > <A href=/focus/improve/ class=locator>Improve Business Performance Visibility</a>")
   		}
}
else if (path[1] == 'industries'){
	document.write (" > <A href=/industries/ class=locator>Industries</a>")
		if (path[2] == 'IndustrialEquipment'){
			document.write (" > <A href=/industries/IndustrialEquipment/ class=locator>Industrial Equipment</a>")
		}
		if (path[2] == 'Electronics'){
			document.write (" > <A href=/industries/Electronics/ class=locator>Electronics</a>")
		}
		if (path[2] == 'Automotive'){
			document.write (" > <A href=/industries/Automotive/ class=locator>Automotive</a>")
		}
		if (path[2] == 'FabricatedMetals'){
			document.write (" > <A href=/industries/FabricatedMetals/ class=locator>Fabricated Metals</a>")
		}
		if (path[2] == 'FurnitureAndFixtures'){
			document.write (" > <A href=/industries/FurnitureAndFixtures/ class=locator>Furniture \&amp\; Fixtures</a>")
		}
		if (path[2] == 'Aerospace'){
			document.write (" > <A href=/industries/Aerospace/ class=locator>Aerospace</a>")
		}
		if (path[2] == 'SpecialtyVehicles'){
			document.write (" > <A href=/industries/SpecialtyVehicles/ class=locator>Specialty Vehicles</a>")
		}
		if (path[2] == 'MedicalDevices'){
			document.write (" > <A href=/industries/MedicalDevices/ class=locator>Medical Devices</a>")
		}
		if (path[2] == 'ControlInstruments'){
			document.write (" > <A href=/industries/ControlInstruments/ class=locator>Control Instruments</a>")
		}
}
else if (path[1] == 'solutions'){
	document.write (" > <A href=/solutions/ class=locator>Solutions</a>")
		if (path[2] == 'IBM'){
			document.write (" > <A href=/solutions/IBM/ class=locator>IBM</a>")
		}
		if (path[2] == 'Microsoft'){
			document.write (" > <A href=/solutions/Microsoft/ class=locator>Microsoft</a>")
		}
		if (path[2] == 'Oracle'){
			document.write (" > <A href=/solutions/Oracle/ class=locator>Oracle</a>")
		}
		if (path[2] == 'Progress'){
			document.write (" > <A href=/solutions/Progress/ class=locator>Progress</a>")
		}
}
else if (path[1] == 'software'){
	document.write (" > <A href=/software/ class=locator>Software</a>")
		if (path[2] == 'EE'){
			document.write (" > <A href=/software/EE/ class=locator>ERP</a>")

			if (path[3] == 'XA'){
				document.write (" > <A href=/software/EE/iSeries/ class=locator>XA</a>")
			}

			if (path[3] == 'SyteLine'){
				
				document.write (" > <A href=/software/EE/SyteLine/ class=locator>SyteLine</a>")
			}
		}

		if (path[2] == 'CRM'){
			document.write (" > <A href=/software/CRM/ class=locator>Customer Relationship Management</a>")
		}
		if (path[2] == 'SCM'){
			document.write (" > <A href=/software/SCM/ class=locator>Supply Chain Management</a>")
		}
		if (path[2] == 'PLM'){
			document.write (" > <A href=/software/PLM/ class=locator>Product Lifecycle Management</a>")
		}
		if (path[2] == 'BPM'){
			document.write (" > <A href=/software/BPM/ class=locator>Business Process Management</a>")
		}
		if (path[2] == 'FBA'){
			document.write (" > <A href=/software/FBA/ class=locator>Financial\/Business Analytics</a>")
		}
		if (path[2] == 'FSM'){
			document.write (" > <A href=/software/FSM/ class=locator>Field Service Management</a>")
		}
		if (path[2] == 'MCM'){
			document.write (" > <A href=/software/MCS/ class=locator>Maintainance and Calibration Management</a>")
		}
}
else if (path[1] == 'services'){
	document.write (" > <A href=/services/ class=locator>Services</a>")
		if (path[2] == 'ServiceLines'){
			document.write (" > <A href=/services/ServiceLines/ class=locator>Service Lines</a>")
		}
		if (path[2] == 'MAPICSeducation'){
			document.write (" > <A href=/services/MAPICSeducation/ class=locator>Education</a>")
		}
		if (path[2] == 'MAPICSsupport'){
			document.write (" > <A href=/services/MAPICSsupport/ class=locator>Support</a>")
		}
}
else if (path[1] == 'customers'){
	document.write (" > <A href=http://www.mapics.com/customers/ class=locator>Customers</a>")
		if (path[2] == 'SuccessStories'){
			document.write (" > <A href=/customers/SuccessStories/ class=locator>Success Stories</a>")
		}
		if (path[2] == 'ResourceCenter'){
			document.write (" > <A href=/customers/ResourceCenter/secure/ class=locator>Resource Center</a>")
			if (path[4] == 'iSeries'){
				document.write (" > <A href=/customers/ResourceCenter/secure/iSeries/news.asp class=locator>iSeries</a>")
			}
			if (path[4] == 'Extended'){
				document.write (" > <A href=/customers/ResourceCenter/secure/Extended/news.asp class=locator>Extended Systems</a>")
			}
			if (path[4] == 'SCM'){
				document.write (" > <A href=/customers/ResourceCenter/secure/SCM/news.asp class=locator>Supply Chain Management</a>")
			}
			if (path[4] == 'SyteLine'){
				document.write (" > <A href=/customers/ResourceCenter/secure/SyteLine/default.asp class=locator>SyteLine</a>")
			}
		}
		if (path[2] == 'Support'){
			document.write (" > <A href=/customers/Support/ class=locator>Customer Support</a>")
		}
		if (path[2] == 'MWM'){
			document.write (" > <A href=/customers/MWM/ class=locator>Made with MAPICS</a>")
		}
}
else if (path[1] == 'company'){
	document.write (" > <A href=/company/ class=locator>Company</a>")
//		if ((path[2] == 'Partners') && (path[3] == 'Channel')){
//			document.write (" > <A href=/company/Partners/ class=locator>Locations</a>")
//		}
		if (path[2] == 'Overview'){
			document.write (" > <A href=/company/Overview/ class=locator>Overview</a>")
		}
		if (path[2] == 'SalesOffices'){
			document.write (" > <A href=/company/SalesOffices/ class=locator>Sales Offices</a>")
		}
		if (path[2] == 'Partners'){
			document.write (" > <A href=/company/Partners/ class=locator>Partners &amp; Alliances</a>")
		}
		if (path[2] == 'Careers'){
			document.write (" > <A href=/company/Careers/ class=locator>Careers</a>")
		}
		if (path[2] == 'Events'){
			document.write (" > <A href=/company/Events/ class=locator>Events</a>")
		}
		if (path[2] == 'Investor'){
			document.write (" > <A href=/company/Investor/ class=locator>Investor Relations</a>")
		}
		if (path[2] == 'PressRoom'){
			document.write (" > <A href=/company/PressRoom/ class=locator>Press Room</a>")
		}
		if (path[2] == 'Store'){
			document.write (" > <A href=/company/Store/ class=locator>Store</a>")
		}
		if (path[2] == 'Contact'){
			document.write (" > <A href=/company/Contact/ class=locator>Contact</a>")
		}
}
else if (path[1] == 'search'){
	document.write (" > <A href=/search/ class=locator>Search</a>")
}
else if (path[1] == 'worldwide'){
	document.write (" > <A href=/worldwide/ class=locator>Worldwide</a>")
		if (path[2] == 'au'){
			document.write (" > <A href=/worldwide/au/ class=locator>Australia</a>")
		}
		if (path[2] == 'de'){
			document.write (" > <A href=/worldwide/de/ class=locator>Deutschland</a>")
		}
}
else if (path[1] == 'sitemap'){
	document.write (" > <A href=/sitemap/ class=locator>Site Map</a>")	
}
else if (path[1] == 'soa'){
	document.write (" > <A href=/soa/ class=locator>Sarbanes-Oxley</a>")			
}
else if (path[1] == 'customerfocus'){
	document.write (" > <A href=/customerfocus/ class=locator>Customer Focus Package</a>")		
}
else if (path[1] == 'scorecard'){
	document.write (" > <A href=/scorecard/ class=locator>Performance Scorecard Package</a>")	
}
else if (path[1] == 'packages'){
	document.write (" > <A href=/scorecard/ class=locator>Solutions Packages</a>")	
}
else
{
	document.write ("")
}



document.write ("</font>")