function switchOn(){
	document.getElementById("menu").style.zIndex = 5;
	//alert("On");
}

function switchOff(){
	document.getElementById("menu").style.zIndex = 1;
	//alert("Off");
}

function SetCookie(cookieName,cookieValue) {
	var today = new Date();
	var expire = new Date();
	expire.setTime(today.getTime() + 3600000*24*30); //1 month
	document.cookie = cookieName+"="+escape(cookieValue)+";expires="+expire.toGMTString();
	location.href = location.href;
}

function ToggleSize(){
	var fs = Get_Cookie('fontsize');
	if(fs == 'normal'){
		SetCookie('fontsize', 'large');
	} else {
		SetCookie('fontsize', 'normal');
	}
}

function Get_Cookie( name ) {
	var start = document.cookie.indexOf( name + "=" );
	var len = start + name.length + 1;
	if ( ( !start ) &&	( name != document.cookie.substring( 0, name.length ) ) )
	{
		return null;
	}
	if ( start == -1 ) return null;
	var end = document.cookie.indexOf( ";", len );
	if ( end == -1 ) end = document.cookie.length;
	return unescape( document.cookie.substring( len, end ) );
}
	