/* ***********************************************************
** DOCUMIZE.JS
** ===========
** This library contains code to enable an HTML document
** to be DocuMized by The DocuMizer. You may use/modify the 
** library as long as you faithfully maintain this header!
**
** Usage
** =====
** In the HEAD of the doc to be DocuMized, code:
**   <SCRIPT SRC="cookies.js" LANGUAGE="JavaScript"></SCRIPT>
**   <SCRIPT SRC="documize.js" LANGUAGE="JavaScript"></SCRIPT>
**
** Author      Ver  Date     Comments
** ======      ===  ====     ========
** Rick Scott  1.0  11/1/99  First release
**
** Copyright 1999, Rick Scott, all rights reserved.
*********************************************************** */

// first check to see if dmCookie already exists
var dmCookieExists = false;
var dmCookie = new Cookie("dmCookie", new Date(2009,11,1));
if ((dmOptionsStr = dmCookie.get()) != "")
  dmCookieExists = true;



if (dmCookieExists)  // if dmCookie does exist, use bigwhite.css as style sheet
  {
  document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="bigwhite.css">');
  document.write('<span style="font-family:Arial;' +
                 'font-size:large;font-weight:bold">' +
                 '<A HREF="javascript:restoretext()">' + 
                 'Return Text to Normal</A><BR><BR></span>');
  }
else  // if dmCookie doesn't exist, use basegray.css as a default style sheet
  {
  document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="basegray.css">');
  document.write('<span style="font-family:Arial;' +
                 'font-size:large;font-weight:bold">' +
                 '<A HREF="javascript:expandtext()">' + 
                 'Enlarge Text on This Page</A><BR><BR></span>');
  }

function expandtext(){
  dmCookie = new Cookie("dmCookie", new Date(2009,11,1));
  dmCookie.store(new Date(2009,11,1));
  document.location = location;
}

function restoretext(){
  dmCookie = new Cookie("dmCookie");
  dmCookie.del();
  document.location = location;
}
