//
//

	function toggle(selectedObj){
		var obj = document.getElementById(selectedObj);
		if (obj.style.display == "none") {
			obj.style.display = "block";
		} else {
			obj.style.display = "none";
		}
		return false;
	}

	function menuToggle(selectedObj){
		var obj = document.getElementById(selectedObj);
		if (obj.style.display == "none") {
			obj.style.display = "block";
			writeCookie(selectedObj, "1", 24);
		} else {
			obj.style.display = "none";
			writeCookie(selectedObj, "0", 24);
		}
		return false;
	}
	
	function setmenubuttons(){
		var arrMenu = new Array("menu1","menu2","menu3","menu4","menu5");
		for(x=0; x<=arrMenu.length; x++){
			if(readCookie(arrMenu[x]) == 1){ toggle(arrMenu[x]) }
		}
	}
	
	// Example:
	// alert( readCookie("myCookie") );
	function readCookie(name)
	{
	  var cookieValue = "";
	  var search = name + "=";
	  if(document.cookie.length > 0)
	  { 
		 offset = document.cookie.indexOf(search);
		 if (offset != -1)
		 { 
			offset += search.length;
			end = document.cookie.indexOf(";", offset);
			if (end == -1) end = document.cookie.length;
			cookieValue = unescape(document.cookie.substring(offset, end))
		 }
	  }
	  return cookieValue;
	}
	// Example:
	// writeCookie("myCookie", "my name", 24);
	// Stores the string "my name" in the cookie "myCookie" which expires after 24 hours.
	function writeCookie(name, value, hours)
	{
	  var expire = "";
	  if(hours != null)
	  {
		 expire = new Date((new Date()).getTime() + hours * 3600000);
		 expire = "; expires=" + expire.toGMTString();
	  }
	  document.cookie = name + "=" + escape(value) + expire;
	}
<!-- // hide from older browsers
function video(jsTarget, jsWidth, jsHeight)
{
	if (jsWidth == null)
	{
		jsWidth = 630;
	}
	if (jsHeight == null)
	{
		jsHeight = 370;
	}
	window.open(jsTarget,"console","width=" + jsWidth + ",height=" +
jsHeight + ",toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no");
}
//-->
