 owner = 'sales@russianhillbookstore.com';

 settings = new Array();
  for (i=0; i<100; i++) {
    settings[i] = 1; // init flags to hidden
   }

rowCount = 0;  // init row counter

  function toggle(theRow) {
    theRowID = "row" + theRow;
    theElement = document.getElementById(theRowID);
   if (settings[theRow] == "1") { 
     theElement.style.display = "none";
     settings[theRow] = 0;
        } else { 
     theElement.style.display = "";
     settings[theRow] = 1;
     }
    return false;
  } // end toggle

 function toggleRows(showRow) {

    for (j=0; j<settings[showRow]; j++) {
  rowStyle = document.getElementById("row" + showRow + "-" + j).style; 
 rowStyle.display = (rowStyle.display? "":"none"); 
     } // end for j

    return false;

   } // end toggleRows

 function get_cookie(name_to_get) {

  var cookie_pair;
  var cookie_name;
  var cookie_value;

// Split all the cookies into an array
  var cookie_array = document.cookie.split("; ");

// Run through the cookies
  for (counter=0; counter < cookie_array.length; counter++) {
   // split the cookie into a name/value pair
   cookie_pair = cookie_array[counter].split("=");
   cookie_name = cookie_pair[0];
   cookie_value = cookie_pair[1];

   // Compare the name with the name we want
    if (cookie_name == name_to_get) {
      return unescape(cookie_value);
   } // endif
  } // endfor counter
// if the cookie doesn't exist, return null
  return null;
 } // end get_cookie




