//	 START SEARCHES

//   To create a new search entry, just add a new line, e.g., select the last entry, hit Copy,
//   hit End, hit Enter, hit Paste -- voila, new entry. Now just replace the original search 
//   title with your new search title, and the name of the page (i.e., position_02 or index) with 
//   the name of the new page you've already created (you've already created it, right?).
   
//   The searches are alphabetized when displayed, so it doesn't matter what order they're in on this page.


var searchesData = new Array( //leave this line alone
// don't forget that the first entry needs to NOT have a comma infront of it
"Global Supply Chain Manager : position_54"
,"VP Operations : position_63"
,"VP Engineering & Quality Assurance : position_68"
,"Director Supply Chain/Operations : position_80"
,"Chief Financial Officer : position_81"
,"Director Purchasing : position_82"
,"Consulting Workshop Leader : position_86"
,"Business Unit Manager : position_88"
,"Lean Engineer : position_89"
,"Operations Manager : position_90"
,"Plant Manager : position_91"
,"Quality Manager : position_92"
,"Quality and Manufacturing Engineering Manager : position_97"
,"VP Operations : position_96"
); // leave this line alone

//
// you will not need to edit anything below this line
//

// alphabetize the array
searchesData.sort();	
		
// pick a random search for the home page
function randomFunc()
{
	var randomSearch = searchesData[Math.floor(Math.random()*searchesData.length)] 

	var randomData = randomSearch.split(' : ');
	
	var str = '<strong class=\"title\">';
	str += randomData[0];
	str += '</strong>';
	str += '<p>';
	str += '[<a href=\"searches/';
	str += randomData[1];
	str += '.shtml\">';
	str += 'more';
	str += '</a>]\n';
	
	document.write(str);
}

/* END SEARCHES FUNCTIONS */

var spotlight = 'home';
var lit = '';

function makeNavGoNow(which)
{
	if (which != spotlight)
	{
		if (document.getElementById(which + 'Sub').style.display == 'block')
		{
			//document.getElementById(which).style.background = '#fff';
			document.getElementById(which + 'Sub').style.display = 'none';
			lit = '';
		}
		else
		{
			if (lit != '') 
			{
				//document.getElementById(lit).style.background = '#fff';
				document.getElementById(lit + 'Sub').style.display = 'none';
			}
			//document.getElementById(which).style.background = '#D8E0E7';
			document.getElementById(which + 'Sub').style.display = 'block';
			lit = which
		}
	}
}

