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() {
	var scr_x = screen.width;
	if (parseInt(navigator.appVersion) >= 4) {
		if (screen.width == 800 ) {
		zoomwindow.moveTo(80, 30)
				}
		if (screen.width > 800 ) {
		zoomwindow.moveTo(200, 150);
				}
		}
	}
	

function popup (url,width,height) {
	var features;
	features = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,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(zoomwindow);
}

function deplacev() {
	var scr_x = screen.width;
	if (parseInt(navigator.appVersion) >= 4) {
		if (screen.width == 800 ) {
		zoomwindow.moveTo(150, 10)
				}
		if (screen.width > 800 ) {
		zoomwindow.moveTo(260, 40);
				}
		}
	}
	

function popupv (url,width,height) {
	var features;
	features = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,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();
	}
	deplacev(zoomwindow);
}


