	function get_cookie(Name) 
	{
		var search = Name + "="
		var returnvalue = "";
		if (document.cookie.length > 0) 
		{
			offset = document.cookie.indexOf(search)
			if (offset != -1) 
			{ 
				offset += search.length
				end = document.cookie.indexOf(";", offset);
				if (end == -1) 
					end = document.cookie.length;
				returnvalue=unescape(document.cookie.substring(offset, end))
			}
		}
		return returnvalue;
	}

	function SetCookie (name, value) 
	{	  
      var argv = SetCookie.arguments;
      var argc = SetCookie.arguments.length;
      var expires = (argc > 2) ? argv[2] : null;
      var path = (argc > 3) ? argv[3] : null;
      var domain = (argc > 4) ? argv[4] : null;
      var secure = (argc > 5) ? argv[5] : false;
      
      document.cookie = name + "=" + escape (value) +
        ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
        ((path == null) ? "" : ("; path=" + path)) +
        ((domain == null) ? "" : ("; domain=" + domain)) +
        ((secure == true) ? "; secure" : "");
     
    }

    function DeleteCookie (name) 
    {
      var exp = new Date();
      exp.setTime (exp.getTime() - 1);  // This cookie is history
      var cval = GetCookie (name);
      document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
    }
    
     function setSiteSettings()
    {	
		var width;
		var height;
		
		if (document.all)	// Internet Explorer
		{
			width = document.body.clientWidth;
			height = document.body.clientHeight;
		}
		else
		{
			width = window.innerWidth;
			height = window.innerHeight;
		}

        SetCookie('cookieBrowserWindowX',width); 
        SetCookie('cookieBrowserWindowY',height);
    }