/**
 * PageStateCookie
 *
 * A single location for the specification of page-level state cookies.  All page state cookies are created here.
 * should it become necessary to merge them into a single cookie or otherwise change the way page state is retained,
 * this is the place to make the change.
 */

function PageStateCookie(inName)
{
	var theCookie;

	theCookie = new Cookie(
		DocumentCookieManager,
		inName,
		// Take the last two elements of the hostname as the domain.
		"." + window.location.hostname.split(".").slice(-2).join("."),
		"/");

	theCookie = new Cookie(
		new NestedCookieManager(theCookie),
		location.pathname);
	
	return (theCookie);
}


