
function hideProdInfoLinks()
{
	var raySections = new Array();
	raySections[0] = "works";
	raySections[1] = "controlled";
	raySections[2] = "labeled";
	raySections[3] = "specs";
	raySections[4] = "application";
	raySections[5] = "brochure";
	raySections[6] = "questions";
	raySections[7] = "library";
	raySections[8] = "prodfamily";
	raySections[9] = "assetlib";

	
	for (var i=0; i < raySections.length; i++)
	{
		var elemSection = document.getElementById("section_" + raySections[i]);
		var elemSectionLink = document.getElementById("sectionlink_" + raySections[i]);

		if (elemSection)
		{

			if (!elemSection.innerHTML.match(/^\s*<h2>.+<\/h2>\s*$/i))
				elemSectionLink.style.display = "inline";
		}
	}
}

function prodResearchLink() {
	var elemSection = document.getElementById("div_library");
	
	var elemSectionLink = document.getElementById("sectionlink_library");

		if (elemSection)
		{
			if (elemSection.innerHTML.replace(/^\s+|\s+$/g, '').length > 0) {
				elemSectionLink.style.display = "inline";

			} else {
				elemSectionLink.style.display = "hide";

			}

		}

}

function prodHowItWorksSection() {
	var elemSection = document.getElementById("section_works");
	
	var elemDiv = document.getElementById("div_works");
		
		if (elemDiv )
		{
			if (elemDiv.innerHTML.replace(/^\s+|\s+$/g, '').length > 0) {
				
				elemSection.style.display = "inline";

			} else {
				elemSection.style.display = "hide";


			}

		}

}

function prodInfoOnLoad()
{
	prodResearchLink();
	
}

window.onload = prodInfoOnLoad;
