// copyright - begin
//
//   Last modified:
//   Time-stamp: <02/09/18 14:37:01 benoit>
//
//   Copyright (C) 2002 espace courbe inc.
//   You are free to modify and redistribute this code as long
//   as the following message is included:
//
//   Portions Copyright (C) 2002 espace courbe inc.
//   Home Page: http://www.espacecourbe.com/
//
//   Author: Benoit Dubuc -- benoit@espacecourbe.com
//   Creation: <2002-09-12 21:23:00 benoit>
//
// copyright - end

// details()
// function to zoom in on the full-sized image
// takes as input:
//    img_url: full-size image url
//    width: width of full-size image
//    height: height of full-size image
//    scrollbar: do we put the scrollbar...
function details (url, width, height, scrollbars) {

	var win_width, win_height, javascript1_2;
	if (screen) {
		win_width = Math.min(screen.availWidth - 50,width);
		win_height = Math.min(screen.availHeight - 50,height);
		javascript1_2 = true;
	}
	else {
		win_width = width;
		win_height = height;
		javascript1_2 = false;
	}

	resizable = (((win_width < width) || (win_height < height))?'yes':'no');

	mf = window.open(url,"detail","width="+
	    win_width + ",height=" + win_height +
	    ",resizable=" + resizable +  scrollbars);
	if (javascript1_2) mf.moveTo(10,10);
	mf.focus();	
}



