<!-- // hide script


//
// Click or MouseOver the Thumbnail or any element to progressively Zoom In.
// Click again or MouseOut to progressively Zoom Out.
// The Thumbnail Image may be swapped for the Large Image while Zooming.
//
// The Zoom may be applied to Elements other than Images.
//
// The Zoom can be applied concurrently to any number of Thumbnails on the same page.
// The Zoom In size is specified in the Zoom function call.
//
//
// Application Notes
//
// **** Calling the Zoom Function
//
// Typical application to Zoom onMouseOver/onMouseOut
//    <img "Img1" src="1.gif" width="146"  height="100" border="0"
//     onmouseover="zxcZoom(this,'2.gif',438,300,1,'C');"
//     onmouseout="javascript:zxcZoom(this);"
//    >
// Typical application to Zoom onClick
//    <input type="button" value="Zoom Img1"
//    onclick="zxcZoom('Img1','http://www.vicsjavascripts.org.uk/StdImages/Two.gif',200,200,1,'C');"
//    >
// where
// parameter 0 = the image object or unique ID name                      (object or string)
// parameter 1 = optional, the large image file name to zoom.            (string or null if the origninal image is to be used )
// parameter 2 = the maximum zoom width.                                 (digits)
// parameter 3 = the maximum zoom height or null to retain aspect ratio. (digits or null)
// parameter 4 = optional, the zoom speed.                               (digits, delaults to 1 if omitted or null)
// parameter 5 = optional, 'C' to center the Zoom Image.                 (string, delaults zoom down and right if omitted or null)

// Parameters 1 on are only required for the first call, subsequent calls will toggle the zoom.

// ****  General

// All variable, function etc. names are prefixed with 'zxc' to minimise conflicts with other JavaScripts

// The Functional Code(about 3K) is best as an External JavaScript

// Tested with IE6 and Mozilla FireFox


// **** Customising Variables

var zxcZIndex=0;         // the base Z-Index for the images
var zxcDelay=10;         //  the global zoom speed may be specified in addition to the call
var zxcAddCursor=true;   // true to add a 'hand'/'pointer' cursor to the Zoom Image, false for no cursor
//-->