var tow,toh,cw,ch,nw,nh,picwpx,pichpx;
function zoom_win(picw,pich,clik_image){
var ieDOM = document.all;
  if (!ieDOM) {
    tow = top.innerWidth;
    tow = tow - 30; 
    cw = clik_image.style.width;
    ch = clik_image.style.height;
    picwpx = picw+'px';
    pichpx = pich+'px';
    
    if((cw == picwpx)&&(ch == pichpx)){
      toh = tow*pich/picw;
      nw = tow+'px';
      nh = toh+'px';
    }
    else{
      nw = picwpx;
      nh = pichpx;
    }
    clik_image.style.width=nw;
    clik_image.style.height=nh;
  }
  if (ieDOM) {
    tow = document.body.clientWidth; 
    tow = tow - 20; 
    toh = document.body.clientHeight; 
    cw = document.getElementById("resiz").width;
    ch = document.getElementById("resiz").height;

    if((cw==picw)&&(ch==pich)){
      toh = tow*pich/picw;
      document.getElementById("resiz").width = tow;
//      alert(tow + "x" + toh + " --- " + cw + "x" + ch);
      document.getElementById("resiz").height = toh;
//      document.getElementById("resiz").style.left = -20; // works!!
    }
    else{
      document.getElementById("resiz").width = picw;
      document.getElementById("resiz").height = pich;
    }
        
  }
}



function mov_win(clik_image){
  var cl,ct,dx;
	var posx = 0;
	var posy = 0;
//	if (!e) var e = window.event;
//	if (e.pageX || e.pageY)
//	{
//		posx = e.pageX;
//		posy = e.pageY;
//	}
//	else if (e.clientX || e.clientY)
//	{ 
//		posx = e.clientX + document.body.scrollLeft;
//		posy = e.clientY + document.body.scrollTop;
//	}
	// posx and posy contain the mouse position relative to the document
	// Do something with this information
//  cl = clik_image.style.posLeft;
//  cl = clik_image.style.posLeft;
//  ct = clik_image.style.posTop;

//  dx = cl-posx+40;
//  clik_image.style.width='400px';

//  clik_image.style.posLeft=80;
//document.write(<h1>Rae Hill</h1>dx);
}

