<!-- Begin
var ival, imgname, total, steps, minx, miny, currentx, currenty, dx, dy, PageID;
function zoomImg(imgname, total, steps, minx, miny, PageID)	{
// convert the total from seconds to miliseconds
total = total * 500;
objref = eval("window.document.getElementById('"+imgname+"')");
currentx = objref.width;
currenty = objref.height;
// work out how much we need to increase the image by each step
// devide image sizes by number of steps to get the amount we need to change each step
stepx = 10;
stepy = 8;
// devide the total time (in ms) by the number of steps to get the interval time
inttime = total / steps;
// set the interval to increase the size of the image by the required pixels 
functionRef = "resizeImg('"+imgname+"', "+stepx+", "+stepy+", "+minx+", "+miny+", "+PageID+")";
ival = setInterval(functionRef, inttime);
}
function resizeImg(imgname, dx, dy, minx, miny, PageID) {
objref = eval("window.document.getElementById('"+imgname+"')");
currentx = objref.width;
currenty = objref.height;
if ((currentx>minx+dx) && (currenty>miny+dy)) {
objref.height = currenty - dy;
objref.width = currentx - dx;
}
else {
clearInterval(ival);
objref.height = miny;
objref.width = minx;
window.location.href='index.cfm?PageID=' + PageID;
   }
}
//  End -->
