/*********************
//* This allows the movement of an image around the desktop
*********************/
<!--
var dragapproved=false
var z,x,y
var zoomfactor=0.25 


function zoomhelper(){
  if (parseInt(whatcache.style.width)>10&&parseInt(whatcache.style.height)>10){
    whatcache.style.width=parseInt(whatcache.style.width)+parseInt(whatcache.style.width)*zoomfactor*prefix ;
    whatcache.style.height=parseInt(whatcache.style.height)+parseInt(whatcache.style.height)*zoomfactor*prefix ;
  }
}
 
function zoom(originalW, originalH, what, state){
  if (!document.all&&!document.getElementById)
    return;
    whatcache=eval("document.images."+what);
    prefix=(state=="in")? 1 : -1 ;
    if (whatcache.style.width==""||state=="reset"){
        whatcache.style.width=originalW+"px";
        whatcache.style.height=originalH+"px";
        if (state=="reset")
           document.getElementById("PIC").style.pixelLeft = 0;
           document.getElementById("PIC").style.pixelTop = 0;
           return;
  }
  else {
    zoomhelper();
  }
  beginzoom=setInterval("zoomhelper()",100) ;
  clearzoom() ;
}
 
function clearzoom(){
  if (window.beginzoom)
    clearInterval(beginzoom);
}


function move(){
  if (event.button==1&&dragapproved){
    z.style.pixelLeft=temp1+event.clientX-x;
    z.style.pixelTop=temp2+event.clientY-y;
    return false
  }
}
function drags(){
  if (!document.all)
    return;
    if (event.srcElement.className=="drag"){
    dragapproved=true;
    z=event.srcElement;
    temp1=z.style.pixelLeft;
    temp2=z.style.pixelTop;
    x=event.clientX;
    y=event.clientY;
    document.onmousemove=move;
  }
}
document.onmousedown=drags ;
document.onmouseup=new Function("dragapproved=false");
-->

