var stayInformedHTML

function hideHelp() {
	z = readCookie('localechanged');
	if ( z == "yes" ) {
		createCookie('localechanged', 'no');
		var hhs = document.getElementById('helpHideShow');
		hhs.innerHTML = "Talk to someone about this";
		var x = document.getElementById('helpAbout');
		x.style.display = "block";
	} else {
		var n = document.getElementById('helpAbout');
		if (n != null) {		
			n.style.display = "none";
		}
	}
}

function showHelp() {

	var hhs = document.getElementById('helpHideShow');
	hhs.innerHTML = "Talk to someone about this";
	var x = document.getElementById('helpAbout');
	x.style.display = "block";
	return false;
}

function createLocaleChangedCookie() {
	createCookie('localechanged', 'yes');
}

function hideStayInformed() {
	if ( location.href.indexOf('errorRegisterEmail') < 0 ) {
		var x = dgei("siteUpdateBox");
		if ( x ) {
			var q = x.getElementsByTagName('H1')[0]
			stayInformedHTML = q.innerHTML
			q.innerHTML = '<a href="#" onclick="showStayInformed()">' + stayInformedHTML + "</a>"
			// x.onclick = showStayInformed
			var n = x.getElementsByTagName('FORM')[0]
			n.style.display = "none"
		}
	}
}

function showStayInformed() {
	var x = dgei("siteUpdateBox");
	var q = x.getElementsByTagName('H1')[0]
	var h = q.innerHTML
	q.innerHTML = stayInformedHTML
	var n = x.getElementsByTagName('FORM')[0]
	n.style.display = "block"
	mkilnks()
}
