// JavaScript Document//code for manipulating the hide menusfunction getCookie(){if (document.cookie.length>0)  {  c_start=document.cookie.indexOf('schulichmenu=')  if (c_start!=-1)    {     c_start=c_start + 13    c_end=document.cookie.indexOf(";",c_start)    if (c_end==-1) c_end=document.cookie.length    return unescape(document.cookie.substring(c_start,c_end))    }   }return ""}function setCookie(value) {document.cookie='schulichmenu=' + escape(value) + '; path=/';}function checkCookie(){menustring=getCookie();if (menustring == null) { 	   setCookie('')    }}function addMenuToCookie(menuvalue){menuvalues = getCookie();if (getCookie() == '') {	setCookie(menuvalue)	}else {	if (menuvalues.indexOf(menuvalue) == -1) { 		setCookie(menuvalues + ',' + menuvalue)	}	}}function removeMenuFromCookie(menuvalue){menustring=getCookie();if (menustring != null) { 	var menuarray = new Array();	var menuarray = menustring.split(',');	for (var x = 0; x <= menuarray.length; x++)   	{		if(menuarray[x] == menuvalue) 		{			menuarray.splice(x,1);			setCookie(menuarray.join());			break;		};   	}    }}
