setCookie = function ( name, value, noExpire )
{
	if ( noExpire != null && noExpire )
	{
		var expires = new Date();
		expires.setTime(expires.getTime() + (1000 * 86400 * 365));
		var stringExpires = expires.toGMTString ();
	}
	document.cookie = name + "=" +  encodeURIComponent (value) + "; expires=" + stringExpires +  "; path=/";
};

getCookie = function ( name )
{
	cookie_name = name + "=";
	cookie_length = document.cookie.length;
	cookie_begin = 0;
	while (cookie_begin < cookie_length)
	{
		value_begin = cookie_begin + cookie_name.length;
		if (document.cookie.substring(cookie_begin, value_begin) == cookie_name)
		{
			var value_end = document.cookie.indexOf (";", value_begin);
			if (value_end == -1)
			{
				value_end = cookie_length;
			}
			return decodeURIComponent(document.cookie.substring(value_begin, value_end));
		}
		cookie_begin = document.cookie.indexOf(" ", cookie_begin) + 1;
		if (cookie_begin == 0)
		{
			break;
		}
	}
	return null;
};

delCookie = function ( name )
{
	var expireNow = new Date();
	document.cookie = name + "=" + "; expires=Thu, 01-Jan-70 00:00:01 GMT" +  "; path=/";
};
get=function(name)
{
	var get  = [location.search,location.hash].join('&');
	var start	=get.indexOf(name + '=');
	if (start == -1) return '';
	var len = start + name.length + 1;
	var end = get.indexOf('&',len);
	if (end == -1) end = get.length;
	return decodeURIComponent(get.substring(len,end));
}
showTopHtml = function ()
{
	if ( typeof ( topNaviIndex ) == 'undefined' ) topNaviIndex = 0;
	topNaviIndex = parseInt ( topNaviIndex );
	if ( !isNaN ( topNaviIndex ) )
	{
		var navObj = document.getElementById ( 'top_navi_' + topNaviIndex );
		if ( navObj ) navObj.className = 'nav_on';
	}	
};
var urs_Login = getCookie('urs');
var uid_Login = getCookie('uid');
var pass_hex_Login = getCookie('pass_hex');
var login_hex_Login = getCookie('login_hex');
var isLogin = urs_Login && pass_hex_Login && login_hex_Login;