function addLoadEvent(func) {
	var oldonload = window.onload;	
	if (typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function() {
			oldonload();
			func();
		}
	}
}

function showCookbook() {
		var h2s = document.getElementsByTagName("H2");		
		if (h2s.length > 0) 
		{			
			if(h2s[0].innerHTML.indexOf('Diabetes') > 0)
				document.getElementById("diabetes").style.display = "inline";
			if(h2s[0].innerHTML.indexOf('Cancer Society') > 0)
				document.getElementById("cancer").style.display = "inline";			
			if(h2s[0].innerHTML.indexOf('My TurnAround') > 0)
				document.getElementById("watchers").style.display = "inline";
			if(h2s[0].innerHTML.indexOf('Pure Comfort') > 0)
				document.getElementById("watchers2").style.display = "inline";		
			if(h2s[0].innerHTML.indexOf('Pantry to Plate') > 0)
				document.getElementById("watchers3").style.display = "inline";	
			if(h2s[0].innerHTML.indexOf('Best-Ever Desserts') > 0)
				document.getElementById("watchers4").style.display = "inline";
			if(h2s[0].innerHTML.indexOf("DASH of Aloha") > 0)
				document.getElementById("dash").style.display = "inline";
			if(h2s[0].innerHTML.indexOf("130 Almost-From-Scratch") > 0)
				document.getElementById("watchers5").style.display = "inline";
			if(h2s[0].innerHTML.indexOf("Farmers Market Cookbook") > 0)
				document.getElementById("farmers").style.display = "inline";

		}	
	
}

addLoadEvent(showCookbook);
