curimg = 1;
/**
 * change mid image
 **/
function midImage(no,img,t)
	{
	curimg = no;

	im = new Image;
	im.src = img;

	o = get_element('midimage');
	o.src = im.src;
	//t.blur();

	// show zoom picto
	p = get_element('zoom_image');
	if(big_img[curimg]==0) {
		p.style.visibility = 'hidden';
		}
	else {
		p.style.visibility = 'visible';
		}
	}
/**
 * Open a pop up window with big image
 **/
function bigImage(t)
	{
	// no image
	if(big_img[curimg]==0) {
		return;
		}

	// postfix
	var add = curimg>1 ? '_'+(curimg-1) : '';

	if (this.focus == null) {
		return;
		}
	var win = open('','Image', 'width='+(big_w+0)+',height='+(big_h+0)+',status=no,toolbar=no,menubar=no,resizable=no');
	var d = win.document;
	d.open();

	var heightWin = (screen.height-big_h)/2;
	var widthWin = (screen.width-big_w)/2;
	if (win.moveTo != null) {
		win.moveTo(widthWin,heightWin);
		}
	win.focus();

	d.write("<html><head><title></title></head>");
	d.write("<body bgcolor=#FFFFFF marginwidth=0 marginheight=0 leftmargin=0 topmargin=0>");
	d.write('<img src="'+big_path+big_base+add+'.jpg" width="'+big_w+'" height="'+big_h+'" border="0">');
	d.write('</body></html>');
	d.close();
	t.blur();
	}
/**
 * get element
 */
function get_element(n)
	{
	if (document.getElementById) { // DOM3 = IE5, NS6
		return document.getElementById(n);
		}
	else if (document.layers) { // Netscape 4
			return document[n];
		}
	else { // IE 4
		return document.getElementById(n);
		}
	}
