// $Id: tools.js,v 1.3 2009/06/14 15:03:32 mike Exp $
popBoxRevertImage = "/tools/popbox/images/magminus.gif";
popBoxPopImage = "/tools/popbox/images/magplus.gif";
popBoxRevertText = "Click the image to shrink it.";
popBoxRevertBarAbove = true;
popBoxShowCaption = true;
popBoxCaptionBelow = true;
popBoxShowPopImage = false;
popBoxShowRevertImage = false;

//##############################################################################
function PostPopProcessing(obj) {
/*##############################################################################

   We don't define the cursor definition in the stylesheet. This avoids giving
   misleading information to users without JavaScript, we apply it here instead.
*/

obj.style.cursor = 'url("/tools/popbox/images/magminus.gif"), pointer';

/* The title attribute is inherited from the original thumbnail image. This
   results in the need to provide a generic "Click to magnify/shrink" text. By
   setting it here we can use a more specific "Click to magnify" title for the
   thumbnail.
*/

obj.title = "Click the image to shrink it.";

/* By default the text above the popped image inherits its style from the
   original thumbnail image. This includes the magplus cursor but we've only
   applied magminus to the popped image area and we've also disabled the
   event handler for this text area so we remove the confusing magplus cursor.
*/

title_obj = document.getElementById("popBoxDivText"+obj.style.zIndex+"1");
title_obj.style.cursor = "";
}
