if (navigator.userAgent.indexOf("Mozilla/4.0") != -1) {
        version = 4;
} else if (navigator.userAgent.indexOf("Mozilla/3.0") != -1) {
        version = 3;
} else if (navigator.userAgent.indexOf("Mozilla/2.0") != -1) {
        version = 2;
} else if (navigator.userAgent.indexOf("MSIE") != -1) {
        version = 1;
} else {
        version = 0;
}

var zoomwindow;


function deplace_fiche() {
        var scr_x = screen.width;
        if (parseInt(navigator.appVersion) >= 4) {
                if (screen.width == 800 ) {
                zoomwindow.moveTo(150,80)
                                }
                else if (screen.width == 1024 ) {
                zoomwindow.moveTo(320,220);
                                }
				else if (screen.width > 1024 ) {
                zoomwindow.moveTo(454,247);
                                }
				else zoomwindow.moveTo();
                }
        }



function popup_fiche(url,width,height) {
        var features;
        features = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=" + width + ",height=" + height + "'";
        if (zoomwindow != null) {
                if (!zoomwindow.closed)
                        zoomwindow.close();
        }
        zoomwindow = window.open(url,"ZOOMWINDOW",features);
        if (version == 3 || version == 4) {
                zoomwindow.focus();
        }
        deplace_fiche(zoomwindow,width,height);
}


