  var bites = document.cookie.split(";"); // This is to break cookie down into an array of bites

  function getCookie(name)
  {
    for (i=0; i < bites.length; i++)
      {
      nextbite = bites[i].split("="); // break into the "name & value"
      if (nextbite[0] == name) // if the name = true
        return unescape(nextbite[1]); // return this value
      }
    return null; // if there is no match return nothing!
  }


  var today = new Date();
  var expiry = new Date(today.getTime() + 28 * 24 * 60 * 60 * 1000); // 28 days

// Set cookie with given name = value pair
  function setCookie(name, value)
  {
    if (value != null && value != "")
      document.cookie=name + "=" + escape(value) + "; expires=" + expiry.toGMTString();
    bites = document.cookie.split(";"); // update all the bites
  }

 var aqiiicookie = getCookie("aqiiicookie"); // retrieve all the values

 if (aqiiicookie == null || aqiiicookie == "")
    {
    aqiiicookie = "http://www.rhinoprints.net/armorhino/armoquestiii/armoquestiii.html|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x"; //or define default values
    }
 aqarray = aqiiicookie.split("|"); //convert value to an array

  
