
function searchfocus() {

}

webContent = null;
newsContent = null;
peopleContent = null;
jobsContent = null;
main = null;
message = null;

function init() {
	main = document.getElementById("contentCell");

	webContent = document.getElementById("lyrweb");
	main.removeChild(webContent);
	webContent.style.visibility = "visible";

	newsContent = document.getElementById("lyrnews");
	main.removeChild(newsContent);
	newsContent.style.visibility = "visible";

	peopleContent = document.getElementById("lyrpeople");
	main.removeChild(peopleContent);
	peopleContent.style.visibility = "visible";

	jobsContent = document.getElementById("lyrjobs");
	main.removeChild(jobsContent);
	jobsContent.style.visibility = "visible";

	message = document.getElementById("msg")
}

function show(type) {
	try {
		while (main.firstChild != null) main.removeChild(main.firstChild);
		if (type == "web") {
			main.appendChild(webContent);
			f = main.getElementsByTagName("form");
			if (f.length > 0) {
				f.item(0).query.focus();
			}
			message.removeChild(message.firstChild);
			message.appendChild(document.createTextNode("Find products. Find services. Find companies."))
		} else if (type == "news") {
			main.appendChild(newsContent);
			f = main.getElementsByTagName("form");
			if (f.length > 0) {
				f.item(0).query.focus();
			}
			message.removeChild(message.firstChild);
			message.appendChild(document.createTextNode("Find the latest business news stories from the leading sources."))
		} else if (type == "people") {
			main.appendChild(peopleContent);
			f = main.getElementsByTagName("form");
			if (f.length > 0) {
				f.item(0).first.focus();
			}
			message.removeChild(message.firstChild);
			message.appendChild(document.createTextNode("Find profiles of over 22 million people."))
		} else if (type == "jobs") {
			main.appendChild(jobsContent);
			f = main.getElementsByTagName("form");
			if (f.length > 0) {
				f.item(0).query.focus();
			}
			message.removeChild(message.firstChild);
			message.appendChild(document.createTextNode("Find over 250,000 of the best jobs at the best companies."))
		}

		if (type == "jobs") document.getElementById("harvestframe").src = "homepagetrack.asp?varPath=jobsindex";
		else if (type == "news") document.getElementById("harvestframe").src = "homepagetrack.asp?varPath=newsindex";
		else if (type == "people") document.getElementById("harvestframe").src = "homepagetrack.asp?varPath=peopleindex";
		else document.getElementById("harvestframe").src = "homepagetrack.asp?varPath=index";

	} catch (ex) {
		return true;
	}
	return false;
}
