<!-- //  start of shopping cart support script

// modification history
//
// 03/28/02  Updated to allow for sales
// 04/20/02  Fixed bug in "price" field
// 06/07/02  Added time stamp field, fixed "regularly" display
// 10/21/02  Fixed regularly/sale spacing, updated for some xhtml and styles
// 04/08/03  Updated for root directory relative path to files
// 05/03/08  Updated listItem for margin-top setting on Add To Cart button.
// 05/08/08  Updated cartBar() to complete URLs for images
// 12/04/09  Updated for http://static.rainbo.net
// 04/21/10  Updated for saleCategories discounts
// 04/29/10  Merged with timezone.js

// MS Internet Explorer cookie/privacy controls documentation page:
// http://www.microsoft.com/windows/ie/evaluation/overview/privacy.asp

 if (canCookie()) { cartOK = true; }

 var processPath = "/cgi-bin/cookie.cgi";
 var itemCount = 0;        // init item counter for this page
 var saleExpired = false;  // init sale expired flag
 var regDiscount = 0;      // init discount for regular price mdse
 var saleDiscount = 20;     // init discount for sale price mdse
 var pageDiscount = 0;     // init discount for all mdse on page

 var today = new Date();
 var thisDay = today.getDate();
 var thisMonth = today.getMonth() + 1; // ordinal offset
 var thisYear = today.getYear();

// hopefully fix all the old non-compliant browsers
if (thisYear < 100) { thisYear=thisYear+2000; }
if (thisYear < 1900){ thisYear=thisYear+1900; }
if (thisYear < 2000) { thisYear=thisYear+100; }
if (document.images) { thisYear = today.getFullYear(); } // fix new browsers anyway

months = new Array;
 months[0] = "January";
 months[1] = "February";
 months[2] = "March";
 months[3] = "April";
 months[4] = "May";
 months[5] = "June";
 months[6] = "July";
 months[7] = "August";
 months[8] = "September";
 months[9] = "October";
 months[10] = "November";
 months[11] = "December";

// date sale expires
 var expDay = 30;
 var expMonth = 4;
 var expYear = 2010;

// automatically end sale on expDate


   if (thisYear > expYear) { saleExpired = true; }
       if (thisYear == expYear) {
        if (thisMonth > expMonth) { saleExpired = true; }
        if ((thisMonth == expMonth) && (thisDay > expDay)) { saleExpired = true; }
      }  // endif (thisYear == expYear)

var saleCategories = new Array;
  saleCategories[0] = '01';
  saleCategories[1] = '25';

var salePages = new Array;
 salePages[0] = "pages/ahgupuk.htm";
 salePages[1] = "pages/bakshi.htm";
 salePages[2] = "pages/betty.htm";
 salePages[3] = "pages/cats.htm";
 salePages[4] = "pages/cels.htm";
 salePages[5] = "pages/comic-strip.htm";
 salePages[6] = "pages/dinosaur.htm";
 salePages[7] = "pages/dtv.htm";
 salePages[8] = "pages/filmation.htm";
 salePages[9] = "pages/gallery.htm";
 salePages[10] = "pages/gallery2.htm";
 salePages[11] = "pages/goofy.htm";
 salePages[12] = "pages/hb.html";
 salePages[13] = "pages/jayward.htm";
 salePages[14] = "pages/jungle.htm";
 salePages[15] = "pages/limiteds.htm";
 salePages[16] = "pages/lithos.htm";
 salePages[17] = "pages/lobby-cards.htm";
 salePages[18] = "pages/mgmcels.htm";
 salePages[19] = "pages/model-sheets.htm";
 salePages[20] = "pages/ninja-turtles.htm";
 salePages[21] = "pages/otherart.htm";
 salePages[22] = "pages/others.htm";
 salePages[23] = "pages/poohcels.htm";
 salePages[24] = "pages/robin.htm";
 salePages[25] = "pages/sword.htm";
 salePages[26] = "pages/tvcels.htm";
 salePages[27] = "pages/warner.htm";

 salePage = "/pages/cels.htm"; // the place to start!

 var saleCount = salePages.length;    // number of pages from salePages[x] on sale
// var saleCount = 0; // force sale off!

 var saleTitle = "Mother's Day Art Sale!";
 var saleMessage = "<strong>Save " + saleDiscount + "% on all artwork: cels, prints, and lithographs!";
 saleMessage += " From now until " + months[expMonth-1] + " " + expDay + ", all of our cels " +
                  "are on sale for " + saleDiscount + "% off our regular and existing sale prices.</strong> ";
 saleMessage += " A Disney cel or lithograph is a great gift that will be treasured for years as a cherished rememberance of childhood, family and friendship.<br /><br />";
 saleMessage += "Surely Mom deserves something more thoughtful than a box of chocolates from Walgreens or brunch at the local IHop.<br /><br />";
 saleMessage += "<strong> This offer ends at Midnight on " + months[expMonth-1] + " " + expDay + ", " + expYear + " and is subject to change without notice.</strong><br />";

// saleMessage = "Free Priority Mail shipping on orders of $50.00 or more to US customers.  No coupon required!  See the Rainbo News message on the right side of our product pages for details.<br />";


if ((saleCount != 0) && (!saleExpired)) {
   for (i=0; i<saleCount; i++) {
   if (thisPage == salePages[i]) {
   pageDiscount = saleDiscount;  // set sale discount
      } // endif thisPage == salePages[i]
   } // end for i
 }


  function xshowSale() { // use this code to post announcements - no date checking!

   document.writeln("<div align=\"center\"><br /><table cellpadding=\"4\" width=\"450\" style=\"border: solid 1px black; padding:0; border-collapse:collapse;\"><tr><td bgcolor=\"yellow\">");
   document.writeln("<div class=\"itemtitle\" style=\"text-align:center\"><strong>Walt Disney Classics Collection Sale!</strong></div>");
   document.writeln("<p class=\"smalltext\">");
   document.writeln("We've just put our Walt Disney Classics Collection WDCC inventory online at SALE PRICES!  ");
   document.writeln("We need to clear out our inventory and so I've tried to set the sale prices well below the ");
   document.writeln("current market price.  If you see a piece you want, but the price is too high, make an offer by EMail to rick@rainbo.net.  No reasonable offers refused!</p>");
   document.writeln("<br /><p class=\"stdtext\" style=\"text-align:center\"><strong>Shop now and get a great deal!<br><a href=\"/wdcc/disney-classics.htm\">Click Here Now!</a></strong><br /><br />");
   document.writeln("</p>");
   document.writeln("</td></tr></table></div>");

  }  // end xshowSale

//------------------------------
// Set for vacation
//------------------------------
  function yshowSale() { // use this code to post announcements - no date checking!

   document.writeln("<div style=\"width:455px; margin:0 auto;\"><br /><table cellpadding=\"4\" width=\"450\" style=\"border: solid 1px black; padding:0; border-collapse:collapse;\"><tr><td bgcolor=\"yellow\">");
   document.writeln("<div class=\"itemtitle\" align=\"center\"><strong>Rainbo Animation Art is Closed For Vacation</strong></div>");
   document.writeln("<p class=\"smalltext\">");
   document.writeln("We will not be able to process any new orders until we reopen on September 14, 2009, and ");
   document.writeln("we will not be able to respond to your EMails until then.<br /><br />");
   document.writeln("We are attending the D23 Expo at Disneyland and we'll have");
   document.writeln("lots of great new collectibles to offer you when we return!<br />");
//   document.writeln("We appreciate your patience while we take some time for family and friends.<br /></p>");
//   document.writeln("<br /><p class=\"smalltext\" align=\"center\"><strong>We wish you all a Merry Christmas and Happy New Year!</strong><br /><br />");
   document.writeln("</p>");
   document.writeln("</td></tr></table></div>");

  }  // end yshowSale

  function zshowSale() { // use this code to post announcements - no date checking!

   document.writeln("<center><br /><table cellpadding=\"4\" width=\"450\" style=\"border: solid 1px black; padding:0; border-collapse:collapse;\"><tr><td bgcolor=\"yellow\">");
   document.writeln("<div class=\"itemtitle\" align=\"center\"><strong>Rainbo Animation Art is Closed for Maintenance</strong></div><br>");
   document.writeln("<p class=\"stdtext\">");
   document.writeln("<b>We are making some improvements to our website which requires we close briefly - ");
   document.writeln("It should only take a few hours.</b><br /></p><br />");
   document.writeln("<p class=\"smalltext\" align=\"center\"><b>We apologize for any inconvenience.  We will reopen very soon, so please come back later today!<br /><br /></p>");
   document.writeln("</td></tr></table></center>"); 

  }  // end zshowSale


// standard showSale with date checking - replace with letter prefix to swap with a different one
  function showSale() {

    if ((saleCount>0) && (!saleExpired)) {

   document.writeln("<br /><div style=\"width:550px; margin:2px auto; padding:4px 8px; border:double 3px black; background-color:linen;\">");
   document.writeln("<h2 style=\"margin:2px; text-align:center;\">" + saleTitle + "</h2>");
   document.writeln("<p class=\"smalltext\">" + saleMessage);
       if (pageDiscount > 0) {
   document.writeln("<br /><strong>All items on this page have been reduced by " + pageDiscount + "% through " +
      months[expMonth-1] + " " + expDay + ", " + expYear + ".  Other pages have savings, too!</strong><br /><br />");
         } else {
   document.writeln("</p><br /><p class=\"smalltext\" style=\"text-align:center;\"><a class=\"reg\" href=\"" + salePage + "\">Click here</a> " +
                    "to see the first page of the great deals we have for you!<br /><br />");
            }

   document.writeln("</p></div><br />");

   } // endif ((saleCount>0) && (pageDiscount>0))
 }  // end showSale


///////////
///////////

 buyButtonText = "Add&nbsp;To&nbsp;Cart";

///////////
///////////

// use when store closed only!
function xyzlistItem(itemNo, desc, baseWt, unitWt, multiple, price, salePrice) {
  document.write("<strong class=\"item\">Item #" + itemNo + "</strong>&nbsp&nbsp;");

      if ((salePrice == null) || (salePrice == 0)) {
  document.write("<strong class=\"item\">$" + makeDollars(price) + "<strong><br />");
    } else {
//  ******** used to have 2 &nbsp; here!  ************
  document.writeln("regularly&nbsp;$" + makeDollars(price) + "  <strong class=\"saleprice\">SALE&nbsp;PRICE:&nbsp;$" + makeDollars(salePrice) + "</strong>  \n");
//  ******** used to have 2 &nbsp; here!  ************
        }  // endif salePrice

  }  // end xyzlistItem

///////////////////////
//
// Working Code Below
//
///////////////////////

  function listItem(itemNo, desc, baseWt, unitWt, multiple, price, salePrice) {
    oldSalePrice = salePrice;
    categoryMatch = false;
   if (!saleExpired) { 

   var itemInfo = itemNo.split('-');
   var itemClass = itemInfo[0];

// Check Sale Categories!
  if ((saleCategories[0] != '') && (pageDiscount == 0)) {  // do catMatch only if pageDis == 0
    for (i=0; i<saleCategories.length; i++) {
     if (itemClass == saleCategories[i]) { pageDiscount = saleDiscount; categoryMatch = true; }
    } // end for i
  } // endif saleCategories[0]

   } else {
  pageDiscount = 0;
  } // endif !saleExpired


   if (cartOK) {  // only display link if cookies are enabled
  itemCount++;
  document.write("<form method=\"post\" action=\"" + processPath + "\" ");
  document.writeln("name=\"item" + itemCount + "\">");
  document.write("<strong class=\"item\">Item #" + itemNo + "</strong>&nbsp&nbsp;");

   if (pageDiscount != 0) {
      if ((salePrice == null) || (salePrice == 0)) {
        salePrice = price - (price*(pageDiscount/100));
       } else {
        if (price == 0) { price = salePrice; }
        salePrice = salePrice - (salePrice*(pageDiscount/100));
      } // endif salePrice == 0
   } // endif pageDiscount != 0

   if ((salePrice == null) || (salePrice == 0)) {
     document.writeln("<b class=\"item\">$" + makeDollars(price) + "</b>&nbsp;&nbsp;");
       } else {
    if (price != 0) {
  document.writeln("regularly&nbsp;$" + makeDollars(price) + "  <strong class=\"saleprice\">SALE&nbsp;PRICE:&nbsp;$" + makeDollars(salePrice) + "</strong>  \n");
       } else {
  document.writeln("<strong class=\"saleprice\">SPECIAL&nbsp;VALUE:&nbsp;$" + makeDollars(salePrice) + "</strong>  \n");
        }
        }

  document.writeln("<input type=\"hidden\" name=\"thisPage\" value=\"" + document.location + "\">\n");
  document.write("<input type=\"hidden\" name=\"command\" value=\"AddItem\">\n");
  document.write("<input type=\"hidden\" name=\"itemNo\" value=\"" + itemNo  + "\">\n");
  document.write("<input type=\"hidden\" name=\"desc\" value=\"" + desc  + "\">\n");
  document.write("<input type=\"hidden\" name=\"baseWt\" value=\"" + baseWt  + "\">\n");
  document.write("<input type=\"hidden\" name=\"unitWt\" value=\"" + unitWt  + "\">\n");

// !!!!!!!!! //
  sellPrice = price;
// !!!!!!!!! //

   if ((salePrice != 0) && (salePrice != null)) { sellPrice = makeDollars(salePrice); }

  document.write("<input type=\"hidden\" name=\"price\" value=\"" + sellPrice  + "\">\n");

  document.write("<br />\n");  // add a hard break before Qty./Add Button
  document.write("<p style=\"margin-top:7px;\">");

   if (multiple) {
  document.write("<b>Qty.</b>&nbsp;&nbsp;<input type=\"text\" size=\"2\" name=\"qty\" value=\"1\" style=\"font-size:9px;\">&nbsp&nbsp;");
     } else {
  document.write("<input type=\"hidden\" name=\"qty\" value=\"1\">\n");
  } // endif multiple

  document.write("<input type=\"hidden\" name=\"clickTime\" value=\"\">\n");
//  document.write("<input type=\"image\" src=\"http://static.rainbo.net/add.gif\" border=\"0\" onclick=\"addClick(this.form);\">\n");
  document.write("<a class=\"addButton\" href=\"#\" onclick=\"javascript:addClick(document.forms.item" + itemCount + ");return false;\">&nbsp;" + buyButtonText + "&nbsp;</a></p>\n");
  document.writeln("</form>");

  } else {
// in case (!cartOK) but JavaScript works
   document.writeln("<strong>Item #" + itemNo + ":&nbsp;$" + makeDollars(price) + "</strong><br>");
   } // endif cartOK
   if (categoryMatch) { pageDiscount = 0; }  // patch for mixed pages
 } // end listItem

 function addClick (form) {
   addTime = new Date();
   addClickTime = addTime.getTime();
   form.clickTime.value = addClickTime;
   form.submit();
  } // end addClick

 function viewButton() {
     if (cartOK) {  // cart requires JavaScript and cookies
   document.writeln("<form method=\"post\" action=\"" + processPath + "\" name=\"viewForm\" style=\"text-align:center\">");
   document.writeln("<input type=\"hidden\" name=\"command\" value=\"ViewCart\">");
   document.writeln("<input type=\"hidden\" name=\"thisPage\" value=\"" + document.location + "\">\n");
   document.writeln("<input type=\"submit\" name=\"viewCart\" value=\"Review Your Order or Checkout\" style=\"font-size: 11px; font-weight:bold;\">");
   document.writeln("</form>");
      }  // 
  } // end viewButton

 function doView() {
   document.forms.viewForm.submit();
    }

 function makeDollars(value) {
   var  dStr = "";
   var  tStr = "";
   var  sValue = 0;
  with (Math) {
    sValue = round(value*100);
    tStr = " " + sValue;
    lValue = tStr.length;
    dStr = tStr.substring(1, lValue-2) + "." + tStr.substring(lValue-2, lValue);
       } // end with(Math)
    return dStr;
  } // end makeDollars

 function listOffer(itemNo,desc,baseWt,unitWt,qty,price) {
 
//      $command = $query->param('command');
//      $itemNo = $query->param('itemNo');    # field 0
//      $desc =  $query->param('desc');       # field 1
//      $baseWt = $query->param('baseWt');    # field 2
//      $unitWt =  $query->param('unitWt');   # field 3
//      $qty =  $query->param('qty');         # field 4
//      $price = $query->param('price');      # field 5

  document.writeln("<form method=\"post\" name=\"offer_" + itemNo +
       "\" action=\"../cgi-bin/makeOffer.cgi\">");
    makeInput("hidden","command","newOffer");
    makeInput("hidden","itemNo",itemNo);
    makeInput("hidden","desc",desc);
    makeInput("hidden","baseWt",baseWt);
    makeInput("hidden","unitWt",unitWt);
    makeInput("hidden","qty",qty);
    makeInput("hidden","price",price);
  document.writeln("<input type=\"image\" src=\"http://static.rainbo.net/offer1.gif\">");
  document.writeln("</form>");

  } // end listOffer

 function makeInput(tmp,tmp1,tmp2) {
// $tmp = TYPE, $tmp1 = NAME, $tmp2 = VALUE
 document.writeln("<input type=\"" + tmp + "\" name=\"" + tmp1 + 
      "\" value=\"" + tmp2 + "\">");
  } // end makeInput

// -->


 function cartBar() {
// draw extra icons in rainbo bar - works only on files in /pages!
  document.write("<td bgcolor=\"red\" width=\"30\"><a href=\"javascript: popHelp();\" onmouseover=\"qmbar.src='http://static.rainbo.net/qmbar2.gif';\" onmouseout=\"qmbar.src='http://static.rainbo.net/qmbar1.gif';\">");
  document.write("<img src=\"http://static.rainbo.net/qmbar1.gif\" border=\"0\" width=\"30\" height=\"20\" alt=\"Help\" title=\"Help\" name=\"qmbar\"></a></td>");

   if (cartOK) {  // can't view cart without cookies and JavaScript
  document.write("</td><td bgcolor=\"red\" width=\"30\"><a href=\"" + processPath + "?command=ViewCart&amp;thisPage=" + document.location + "\" ");
  document.write("onmouseover=\"cartbar.src='http://static.rainbo.net/cartbar2.gif';\" onmouseout=\"cartbar.src='http://static.rainbo.net/cartbar1.gif';\"><img src=\"http://static.rainbo.net/cartbar1.gif\" border=\"0\" width=\"30\" height=\"20\" alt=\"View Your Shopping Cart\" title=\"View Your Shopping Cart\" name=\"cartbar\"></a></td>");
   } // endif cartOK
 } // end cartBar


 function cartBar2() { // was CartBar2
// draw extra icons in rainbo bar - works only on files in /pages!
// relies on document.location for setting thisPage??????
  document.write("<a href=\"javascript: popHelp();\" onmouseover=\"qmbar.src='http://static.rainbo.net/qmbar2.gif';\" onmouseout=\"qmbar.src='http://static.rainbo.net/qmbar1.gif';\">");
  document.write("<img src=\"http://static.rainbo.net/qmbar1.gif\" border=\"0\" width=\"30\" height=\"20\" alt=\"Help\" title=\"Help\" name=\"qmbar\"></a>");

   if (cartOK) {  // can't view cart without cookies and JavaScript
  document.write("</td><td bgcolor=\"red\" width=\"30\"><a href=\"" + processPath + "?command=ViewCart&amp;thisPage=" + document.location + "\" ");
  document.write("onmouseover=\"cartbar.src='http://static.rainbo.net/cartbar2.gif';\" onmouseout=\"cartbar.src='http://static.rainbo.net/cartbar1.gif';\"><img src=\"http://static.rainbo.net/cartbar1.gif\" border=\"0\" width=\"30\" height=\"20\" alt=\"View Your Shopping Cart\" title=\"View Your Shopping Cart\" name=\"cartbar\"></a>");
   } // endif cartOK
 } // end cartBar2

 function cartBar3() {  // for new table-free top bar with no other images
   if (cartOK) {  // can't view cart without cookies and JavaScript
  document.write("<a href=\"" + processPath + "?command=ViewCart&amp;thisPage=" + document.location + "\" ");
  document.write("onmouseover=\"cartbar.src='http://static.rainbo.net/cartbar2.gif';\" onmouseout=\"cartbar.src='http://static.rainbo.net/cartbar1.gif';\"><img src=\"http://static.rainbo.net/cartbar1.gif\" border=\"0\" width=\"30\" height=\"20\" alt=\"View Your Shopping Cart\" title=\"View Your Shopping Cart\" name=\"cartbar\"></a>");
   } // endif cartOK
 }

 function showNoCookies() {
   cookieTitle = "Cookies Can Be Good For You!";
   cookieMessage = "Your browser is not accepting cookies.  Our website uses cookies " +
                   "to deliver special features, including access to our online " +
                   "ordering system.  Please turn cookie support back on in your " +
                   "browser, or at least enable them for our website.  We promise " +
                   "to respect your <a href=\"/about.htm#privacy\">privacy.</a> " +
                   "Once you have turned cookie support back on, please press the <strong>Reload</strong> or <strong>Refresh</strong>" +
                   "button.  Thank-you.";
   document.writeln("<center><table cellpadding=\"4\" width=\"350\" style=\"border: solid 1px black; padding:0px;\"><tr><td bgcolor=\"yellow\">");
   document.writeln("<center><strong class=\"smalltitle\">" + cookieTitle + "</strong></center>");
   document.writeln("<p class=\"smalltext\">" + cookieMessage);
   document.writeln("</p>");
   document.writeln("</td></tr></table></center>");

 } // end showNoCookies


//########################################################
//
// Start of timezone.js
//
//########################################################

// rainbo.net version 05/12/08
// modified for static.rainbo.net images 12/03/09

var rainboPink = "#ff0084";
var rootURL = "http://www.rainbo.net/";
var secureRootURL = "https://www.rainbo.net/";
var picsPath = "pics/";

//  time zone globals

   var fileScript = true;  //  show script read
   var now = new Date();
   var time1 = "";
   var time2 = "";

var storeOffset = 5;     // GMTOffset for store (fixed)
var localOffset = now.getTimezoneOffset()/60;    // local user GMT offset (calculated)
var openBase = 9;        // store open hour military time
var closeBase = 17;      // store close hour military time

function local2GMT(localHour) {
   var GMTHour = localHour + storeOffset;
     if (GMTHour >= 24) { GMTHour -= 24; }
     if (GMTHour < 0) { GMTHour += 24; }
   return GMTHour;
 }

function GMT2Local(GMTHour) {
   var localHour = GMTHour - localOffset;
     if (localHour >= 24) { localHour -= 24; }
     if (localHour < 0) { localHour += 24; }
   return localHour;
 }

function timeString(hourNum) {
   var meridien = ":00 AM";
    if (hourNum > 12) {
      meridien = ":00 PM";
      hourNum -= 12;
     }
   var hourString = String(hourNum);
   hourString = hourString.substr(hourString.length-2,2)
   return hourString.concat(meridien);
 } // end timeString

function showLocal() {
  if (document.images) {  // test for really old browsers
    time1 = timeString(GMT2Local(local2GMT(openBase)));
    time2 = timeString(GMT2Local(local2GMT(closeBase)));
 if (localOffset != storeOffset) { // if user's offset not pacific time
   document.writeln(", which is from " + time1 + " to " + time2 + " your local time,");
       } // endif (localOffset != storeOffset)
     else {
   document.writeln(", which is also your local time, ");
       } // end else
  } // endif document.images
} // end showLocal()


//  test for advanced browsers
    var canShine = true;
    var canDynamic = true;

    var ns4 = false;
    var ns6 = false;
    var ie4 = false;
    var ie5 = false;

    var agt=navigator.userAgent.toLowerCase();
    var ieIndex = agt.indexOf("msie ");
     if (ieIndex != -1) {  // we have new IE!
       ieVersion = parseInt(agt.substr(ieIndex + 5));
        }

      if (document.layers) { ns4 = true; }
      if (document.all) { ie4 = true; }
      if (document.getElementById && !document.all) { ns6 = true; }
      if (document.getElementById && document.all) { ie5 = true; }

 function shine(fname, iname)  {
     document.images[iname].src=fname;
	}

 function unshine(fname, iname)  {
     document.images[iname].src=fname;
	}


//////////////////////////////////////
//  EMail address link support code
//////////////////////////////////////

reason = "";
myAddress = "bounce@";
myAddress += "rainbo.net";

function nameLink() {
    document.writeln("<a href=\"/feedbk.htm\">Contact Rainbo Animation Art</a>");
   }  // end nameLink

function mailLink() {
    document.writeln("<a href=\"/feedbk.htm\">\n");
    document.writeln("<img src=\"/pics/mailicon.jpg\" width=\"36\" height=\"36\" " +
                     "alt=\"\" align=\"left\" border=\"0\" />\n");
    document.writeln("Comments or Questions?<br />\n" +
                     "Contact Rainbo Animation Art</a>");
  } // end mailLink

function secureMailLink() {
    document.writeln("<a href=\"/feedbk.htm\">\n");
    document.writeln("<img src=\"" + secureRootURL + picsPath + "mailicon.jpg\" width=\"36\" height=\"36\" " +
                     "alt=\"\" align=\"left\" border=\"0\" />\n");
    document.writeln("Comments or Questions?<br />\n" +
                     "Contact Rainbo Animation Art</a>");
  } // end mailLink

//////////////////////////////////////
// Zoom Functions
//////////////////////////////////////

zoomButImg = 'zoom_mag.gif';
zoomButWidth = 30;
zoomButHeight = 30;

 function autoZoomLink(tWidth, bigPict, bigWidth, bigHeight) {
  var bigPURL = bigPict;
   if (bigPict.substr(0,3) == "../") { bigPURL = bigPict.substr(3,bigPict.length-3); }
  zRef = "<a href=\"javascript:popZoom('" + bigPict + "', " +
    bigWidth + ", " + bigHeight + ")\">";
   document.write(zRef + "<img src=\"/cgi-bin/makeThumb.cgi?command=resize&file=" + bigPURL +
                         "&width=" + tWidth + "\" width=\"" + tWidth + "\" height=\"" +
                         Math.round((tWidth/bigWidth)*bigHeight) + "\" " +
        "alt=\"Click Here to see a larger image\" title=\"Click Here to see a larger image\" /><br />\n");
    document.write("&nbsp;<br /><p style=\"text-align:center;\"><img src=\"http://static.rainbo.net/zoom1.gif\" width=\"80\" height=\"19\" border=\"0\" alt=\"Pop-Up Zoom\" title=\"Pop-Up Zoom\" />&nbsp;</a></p>\n");
   }

 function nszoomLink(thumb, tWidth, tHeight, bigPict, bigWidth, bigHeight) {
  zRef = "<a href=\"javascript:popZoom('" + bigPict + "', " +
    bigWidth + ", " + bigHeight + ")\">";
   document.write(zRef + "<img src=\"" + thumb + "\" " +
        "width=\"" + tWidth + "\" height=\"" + tHeight + "\" " +
        "alt=\"Click Here to see a larger image\" title=\"Click Here to see a larger image\" border=\"0\" /><br />\n");
    document.write("&nbsp;<br /><p style=\"text-align:center;\"><img src=\"http://static.rainbo.net/zoom1.gif\" width=\"80\" height=\"19\" border=\"0\" alt=\"Pop-Up Zoom\" title=\"Pop-Up Zoom\" />&nbsp;</a></p>\n");
   }


 function zoomLink(thumb, tWidth, tHeight, bigPict, bigWidth, bigHeight) {
  bMargin = 6;
  zRef = "<a href=\"javascript:popZoom('" + bigPict + "', " + bigWidth + ", " + bigHeight + ")\">";

    // make outer div
   document.write("<div class=\"js_outer\" style=\"width:" + (tWidth + bMargin + bMargin) + "px; height:" +
    (tHeight + bMargin + bMargin) + 
    "px; background-color:white; border:solid 1px #c0c0c0; margin:1px auto; padding:0; position:relative; top:0; left:0;\">");

    // make image div
//   document.write("<div style=\"position:absolute; top:0; left:0; margin:0; padding:0; z-index:3; width:" + tWidth + "px; height:" + tHeight + "px;\">\n");
   document.write("<div style=\"position:absolute; top:0; left:0; margin:" + bMargin + "px; padding:0; z-index:3; width:" + tWidth + "px; height:" + tHeight + "px;\">\n");
   document.write(zRef + "<img src=\"" + thumb + "\" " +
        "width=\"" + tWidth + "\" height=\"" + tHeight + "\" " +
        "alt=\"Click Here to see a larger image\" title=\"Click Here to see a larger image\" border=\"0\" /><br />\n");
    document.write("</div>\n"); // close image div

//     // make shadow div
//    document.write("<div style=\"position:absolute; top:" + bMargin + "px; left:" + bMargin + "px; z-index:1; width:" + tWidth + "px; height:" + tHeight + "px; background-color:black;\">\n");
//    document.write("&nbsp;</div>\n"); // close shadow div

//    document.write("</div>\n"); // close outer div
    document.write("</div>\n"); // close outer div
    document.write("&nbsp;<br />");
    document.write("<p style=\"text-align:center;\"><img src=\"http://static.rainbo.net/zoom1.gif\" width=\"80\" height=\"19\" border=\"0\" alt=\"Click here to see larger image\" title=\"Click here to see larger image\" />&nbsp;</a></p>\n");
   }

 function popZoom(pictURL, pWidth, pHeight) {
  var sWidth = 790;
   if ((ns4) || (ie4) || (ns6)) { sWidth = screen.availWidth; }
  var x1 = pWidth+30;
  var y1 = pHeight+30;
  var pZoomStr = "height=" + y1 + ",width=" + x1 + ",left=" + ((sWidth-x1)/2) +
      ",top=60,scrollbars=0,menubar=0";

  picIndex = pictURL.indexOf('pics/', 0);
  npictURL = 'http://www.rainbo.net/wm.php?src=' + pictURL.slice(picIndex, pictURL.length);
// alert(pictURL);
    pZoom = window.open("","", pZoomStr);
    pZoom.document.open();
    pZoom.document.writeln("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">");
    pZoom.document.writeln("<html>\n<head>\n<title>Rainbo Animation Art: Zoom View</title>");
    pZoom.document.writeln("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />");
    pZoom.document.writeln("</head>\n<body bgcolor=\"white\"");
    pZoom.document.writeln(" onblur='self.close();'");
    pZoom.document.writeln(">");
    pZoom.document.writeln("<p style=\"text-align:center;\"><img src=\"" + npictURL + "\" width=\"" + pWidth + "\" height=\"" + pHeight + "\" />\n");
    pZoom.document.writeln("<img src=\"/cgi-bin/imgCount.cgi?file=pics/spacer.gif&amp;page=" + pictURL + "\" />\n");
    pZoom.document.writeln("</p></body>\n</html>\n");
    pZoom.document.close();

 } // end popZoom


 function autoZoomLink(thumb, bigPict) {
  tGraphic = new Image();
  tGraphic.src = thumb;
  tWidth = tGraphic.width;
  tHeight = tGraphic.height;
  document.write("<br>Width: " + tWidth + "<br>");
  zRef = "<a href=\"javascript:autoPopZoom('" + bigPict + "')\">";
   document.write(zRef + "<img src=\"" + thumb + "\" " +
        "width=\"" + tWidth + "\" height=\"" + tHeight + "\" " +
        "alt=\"Click Here to see a larger image\" title=\"Click Here to see a larger image\" /><br />\n");
    document.write("&nbsp;<br /><p style='margin:0px; text-align:center;'><img src=\"" + rootURL + picsPath + "zoom1.gif\" width=\"80\" height=\"19\" border=\"0\" alt=\"Pop-Up Zoom\" title=\"Pop-Up Zoom\" />&nbsp;</a></p>\n");
   }


 function autoPopZoom(pictURL) {
  graphic = new Image();
  graphic.src = pictURL;
  pWidth = graphic.width;
  pHeight = graphic.height;
  var sWidth = 770;
   if ((ns4) || (ie4) || (ns6)) { sWidth = screen.availWidth; }
  var x1 = pWidth + 30;
  var y1 = pHeight + 30;
  var pZoomStr = "height=" + y1 + ",width=" + x1 + ",left=" + ((sWidth-x1)/2) +
      ",top=60,scrollbars=0,menubar=0";
    pZoom = window.open("","", pZoomStr);
    pZoom.document.open();
    pZoom.document.writeln("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">");
    pZoom.document.writeln("<html>\n<head>\n<title>Rainbo: Zoom View of " + pictURL + "</title>");
    pZoom.document.writeln("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />");
    pZoom.document.writeln("</head>\n<body bgcolor=\"skyblue\" onblur='self.close();'>");
    pZoom.document.writeln("<p style='margin:0px; text-align:center;'><img src=\"" + pictURL + "\" width=\"" + pWidth + "\" height=\"" + pHeight + "\" />");
    pZoom.document.writeln("</p></body>\n</html>\n");
    pZoom.document.close();

 } // end autoPopZoom



 function popHelp() {
  var sHeight = 400;
   if ((ns4) || (ie4) || (ns6)) { sHeight = screen.availHeight; }
  var pHZoomStr = "width=750,height=650,left=40,top=20,scrollbars=1,menubar=1";
    pHZoom = window.open("http://www.rainbo.net/help.htm","", pHZoomStr);

 } // end popHelp

///////////////////////
// Cookies Library
///////////////////////

var db = (ie4) ? 1 : 0;                  // test for MSIE (was document.body)
var hasCookies = false;                  // global cookies flag

function canCookie(temp) {
    setCookie("test", "1");
    temp = getCookie("test");
    if (temp != null) {
        hasCookies = true;
        deleteCookie("test");
       }  else { 
    hasCookies = false; } // endIf
   return hasCookies;
 } // end canCookie


function setCookie(name, value, expires, path, domain, secure) {
  var curCookie = name + "=" + escape(value) +
    ((expires) ? "; expires=" + expires.toGMTString() : "") +
    ((path) ? "; path=" + path : "") +
    ((domain) ? "; domain=" + domain : "") +
    ((secure) ? "; secure" : "");
  document.cookie = curCookie;
}

function getCookie(name) {
  var dc = document.cookie;
  var prefix = name + "=";
  var begin = dc.indexOf("; " + prefix);
  if (begin == -1) {
    begin = dc.indexOf(prefix);
    if (begin != 0) return null;
  } else {
    begin += 2;
  }
  var end = document.cookie.indexOf(";", begin);
  if (end == -1) end = dc.length;
  return unescape(dc.substring(begin + prefix.length, end));
}

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();
 } // end deleteCookie

 function getDomain() {
  var dName = unescape(document.location);
  var len = dName.length;
  var start = dName.indexOf("/");  // find the first forward slash
   for (i = start; i <= len; i++) {
      if (dName.substring(i, i+1) != "/") { break; }
     }
  if (i == len) { return null }
  dName = dName.substring(i, dName.lastIndexOf("/"));
  dot = dName.lastIndexOf(".");
  if (dot == -1) { return null; }
  dType = dName.substring(dot, dName.length);
  if ((dType != ".com") && (dType != ".net")) { return null }
 return dName;
 } // end getDomain


 function getDocName() { 
  var loc = unescape(document.location); // our current location
  var lloc = loc.length;                 // string length
  var slashIndex = 0;                    // index of slash

  for (i=lloc; i>0; i--) {
    c = loc.substring(i-1,i);
     if ((c == "/") || (c == "\\")) { 
            slashIndex = i; 
            break;
          } // endIf
     }  // end for
     return loc.substring(slashIndex, lloc);
 }  // end getDocName

  var reason = "Invalid or Misspelled EMail Address";

 function checkEMail(form, userEMail)  {
   var sendMail = false;
   var reg_exp = /^[a-z][\w-\.]*@[\w-\.]+\.[a-z]{2,3}/i;
   form.email.value = userEMail.toLowerCase();
   form.browser.value = navigator.appName + " v" + navigator.appVersion;
   sendMail = reg_exp.test(userEMail.toLowerCase());
   reason = "Invalid EMail address";
 return sendMail;
   } // end checkEMail


   function setTrans(elementName,opacity) {
        if (document.getElementById) {
          theElement = document.getElementById(elementName);
            if(document.all) { // msie 5.5+
              theElement.filters.alpha.opacity=opacity;
            } else { // ns6+
              theElement.style.MozOpacity=opacity/100;
            } // endif document.all
         } // endif (document.getElementById)
    } // end setTrans


 function makeTitle(str) {
   str = str.toLowerCase();
   var words = str.split(' ');
   x = new Array();
    for (i=0; i<words.length; i++) {
    x[i] = ucfirst(words[i]);
    } // end for i
    return x.join(' ');
  } // end makeTitle

  function ucfirst(str) {
  l = str.length;
  var tmp = new String;
  if (l>0) {
  for (j=0; j<l; j++) {
   c = str.charAt(j);
   if (j==0) { c = c.toUpperCase(); }
   tmp += c;
  } // end for j
  } // endif l>0
  return tmp;
  } // end ucfirst


////////////////////////////
//  Footer Nav Box Links
////////////////////////////

 function artFootLinks() {

 document.write("<div id=\"footMenu\">" +
"<p>" +
"<a href=\"http://www.rainbo.net/pages/cels.htm\" rel=\"nofollow\">Disney Cels &amp; Art</a> | " +
"<a href=\"http://www.rainbo.net/pages/limiteds.htm\" rel=\"nofollow\">Disney Limited Edition Cels</a> | " +
"<a href=\"http://www.rainbo.net/pages/gallery.htm\" rel=\"nofollow\">Disney Gallery Art</a> | " +
"<a href=\"http://www.rainbo.net/pages/lithos.htm\" rel=\"nofollow\">Disney Lithos</a> | " +
"<a href=\"http://www.rainbo.net/pages/otherart.htm\" rel=\"nofollow\">Other Disney Artwork</a> | " +
"<a href=\"http://www.rainbo.net/pages/lobby-cards.htm\" rel=\"nofollow\">Disney Lobby Cards</a> | " +
"<a href=\"http://www.rainbo.net/pages/posters.htm\" rel=\"nofollow\">Disney Posters</a> | " +
"<a href=\"http://www.rainbo.net/pages/others.htm\" rel=\"nofollow\">Non-Disney Cels</a> | " +
"<a href=\"http://www.rainbo.net/feedbk.htm\" target=\"_blank\" rel=\"nofollow\">Contact Us</a>" +
"</p>" +
"</div>\n");

 } // end artFootLinks

 function colFootLinks() {

 document.write("<div id=\"footMenu\">" +
"<p>" +
"<a href=\"http://www.rainbo.net/pages/cool.htm\" rel=\"nofollow\">Disney Collectibles</a> | " +
"<a href=\"http://www.rainbo.net/pages/cool2.htm\" rel=\"nofollow\">Disney Figures</a> | " +
"<a href=\"http://www.rainbo.net/pages/coolmedia.htm\" rel=\"nofollow\">Disney Videos &amp; CDs</a> | " +
"<a href=\"http://www.rainbo.net/autographs/\" rel=\"nofollow\">Disney Voice Autographs</a> | " +
"<a href=\"http://www.rainbo.net/watches/watch1.htm\" rel=\"nofollow\">Disney Watches</a> | " +
"<a href=\"http://www.rainbo.net/pins/\" rel=\"nofollow\">Disney Pins</a> | " +
"<a href=\"http://www.rainbo.net/books/disney-books.htm\" rel=\"nofollow\">Disney Books</a> | " +
"<a href=\"http://www.rainbo.net/wdcc/disney-classics.htm\" rel=\"nofollow\">WDCC Figures</a> | " +
"<a href=\"http://www.rainbo.net/pages/toys.htm\" rel=\"nofollow\">Toy Story Toys/Collectibles</a> | " +
"<a href=\"http://www.rainbo.net/feedbk.htm\" target=\"_blank\" rel=\"nofollow\">Contact Us</a>" +
"</p>" +
"</div>\n");

 } // end colFootLinks



