<!--

var nW, nH, oH, oW, WhichImg, WichWay, Zoom, testW, testH;
Zoom = false;
function zoomHelper() {

 var speed = 5;
 if(WichWay == 1) {
  tW = parseInt(WhichImg.style.width);
  tW += speed;
  if(tW > nW) {
   tW = nW;
   testW = true;
  }
  WhichImg.style.width = tW;
  if(tW >= nW && testH == true) {
   clearInterval(beginzoom);
   Zoom=false;
   return;
  }
  tH = parseInt(WhichImg.style.height);
  tH+=speed;
  if(tH > nH) {
   tH = nH;
   testH = true;
  }
  WhichImg.style.height = tH;
  if(tH >= nH && testW == true) {
   clearInterval(beginzoom);
   Zoom=false;
   return;
  }
 } else {
  tW = parseInt(WhichImg.style.width);
  tW-=speed;
  if(tW < nW) {
   tW = nW;
   testW = true;
  }
  WhichImg.style.width = tW;
  if(tW <= nW && testH == true) {
   clearInterval(beginzoom);
   Zoom=false;
   return;
  }
  tH = parseInt(WhichImg.style.height);
  tH-=speed;
  if(tH < nH) {
   tH = nH;
   testH = true;
  }
  WhichImg.style.height = tH;
  if(tH <= nH && testW == true) {
   clearInterval(beginzoom);
   Zoom=false;
   return;
  }
 }
}
function zoomToggle(iWideSmall, iHighSmall, iWideLarge, iHighLarge, whichImage) {

 if(Zoom == true) {return;}
 Zoom = true;

 WhichImg = whichImage;
 oW = parseInt(whichImage.style.width);
 oH = parseInt(whichImage.style.height);
 if(isNaN(oW)) {
  whichImage.style.width = iWideSmall;
  oW = parseInt(whichImage.style.width);
 }
 if(isNaN(oH)) {
  whichImage.style.height = iHighSmall;
  oH = parseInt(whichImage.style.height);
 }
 if((oW == iWideLarge) || (oH == iHighLarge)) {
  nW = iWideSmall;
  nH = iHighSmall;
  WichWay = 0;
 } else {
  nW = iWideLarge;
  nH = iHighLarge;
  WichWay = 1;
 }
 testW = false;
 testH = false;
 beginzoom = setInterval("zoomHelper()",1);
}
//-->

