
function getPosition()
{
	var ret = getCookie( 'place' );
	if ( ret == null )
	{
		setPosition( '1' );
		return 0;
	}
	return ret;
}
			
function getCookie( id )
{
	var sCookie = document.cookie;
	var arrCookie = sCookie.split( '; ' );

	for ( var n = 0; n < arrCookie.length; n++ )
	{
		var s = arrCookie[ n ];
		var nPos = s.indexOf( '=' );
		if ( id == s.substring( 0, nPos ) )
		{
			return s.substring( nPos + 1, s.length );
		}
	}
	return null;
}

function setPosition( value )
{
	alert( "getPosition()" );
	document.cookie = 'place=' + value;
	return;
}

function movePosition( value )
{
	setPosition( value );

	alert( "movePosition - value = " + value );
	if ( value == 20 )
	{
		location.href="./company.html";
	}
	if ( value == 30 )
	{
		location.href="./recruit.html";
	}
	if ( value == 40 )
	{
		location.href="./access.html";
	}
	
	if ( value == 11 )
	{
		location.href="./design.html";
	}
	if ( value == 12 )
	{
		location.href="./development.html";
	}
	if ( value == 13 )
	{
		location.href="./network.html";
	}
	if ( value == 14 )
	{
		location.href="./consulting.html";
	}
	
	return; 
}



