[jQuery] un-PanView

[jQuery] un-PanView

Hi all,
I'm using PanView (<a href="http://motherrussia.polyester.se/jquery/panview/">http://motherrussia.polyester.se/jquery/panview/</a>) like a "zoom" :
function zoom () {
    var img = $("#divImg img").get(0);
    var imgSrc = img.src;
    var oldi = new Image();
    oldi.src = imgSrc;
    var iWidth = oldi.width;
    var iHeight = oldi.height;
   
    var i = new Image();
    i.src = "inc/do.php?a=img&id="+img.id.substr(4);
    var imageWidth = i.width;
    var imageHeight = i.height;
       i.onload = function() {
            img.src = i.src;
            plopImg(iWidth + 12, iHeight + 12);
        };
}
function plopImg (w, h) {
    panViewEnable = 1;
    $("img.imagePan").panView(w, h);
}
But, I want unzoom too ! :D
How to "desactived" panView ? I added a var to unable "MouseEvent", but the wrap stay and I can't re-zoom because its create a panview in other panview...
Do you understand what I mean ?
Sry for language... :)
Thx,
Florian
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/