	// ====================================================
	// script: Gerard Ferrandez - Ge-1-doot - JANUARY 2005
	// news://news.leibowitz.org/nzn.fr.html
	// http://www.dhteumeuleu.com/
	// crossbrowser DOM
	// ====================================================
	
	window.onerror         = new Function("return true");
	document.onselectstart = new Function("return false");
	screen.bufferDepth     = 16;
	O   = new Array();
	box = 0;
	img = 0;
	txt = 0;
	tit = 0;
	W   = 0;
	H   = 0;
	nI  = 0;
	sel = 0;
	si  = 0;
	
	//////////////////
	ZOOM  = 4;
	rImg  = 1;
	speed = .2;
	//////////////////
	
	function dText(){
		txt.style.textAlign = tit.style.textAlign = (sel<nI/2)?"left":"right";
//		txt.style.align = tit.style.align= (sel<nI/2)?"right":"left";
		txt.innerHTML = O[sel].tx;
		tit.innerHTML = O[sel].ti;
	}
	
	function CObj(n, s, x, tx, ti){
		this.n    = n;
		this.dim  = s;
		this.tx   = tx;
		this.ti   = ti;
		this.is   = img[n];
		this.vz   = 0;
		this.sx   = 0;
		this.x0   = x;
		this.x1   = 0;
		this.zo   = 0;
		this.clic = function(hlink) {
			with(this){
				if(n!=sel){
					O[sel].is.style.cursor = "pointer";
					if(!hlink)O[n].is.style.cursor = "default";
					O[sel].dim = 100;
					O[n].dim = ZOOM * 100;
					sel = n;
					l = 0;
					for(k=0; k<nI; k++){
						O[k].x0 = l;
						l += O[k].dim;
					}
					txt.innerHTML = tit.innerHTML = "";
					setTimeout("dText()", 32);
				} else {
					// ==== open hyperlink window
					if(hlink)window.open(hlink,"_blank");
				}
			}
		}
		this.anim = function () {
			with(this){
				vz  = speed*(vz+(x1-sx)*.5);
				x1 -= vz;
				sx  = (n==0)?0:O[n-1].x0+O[n-1].dim;
				zo -= (zo-dim)*speed;
				l   = Math.round((x1*si)+6*(n+1));
				w   = Math.round(zo*si);
				is.style.left   = l;
				is.style.top    = (H-w*rImg)*.5;
				is.style.width  = w;
				is.style.height = w*rImg;
				if(sel == n){
					if(sel<nI*.5)tit.style.left = txt.style.left = l+w+6;
					else tit.style.left = txt.style.left = l-(nx*.20)-6;
					txt.style.top = -(w*rImg)*.30;
					tit.style.top =  (w*rImg)*.33;
				}
			}
		}
	}
	
	function run(){
		for(j in O)O[j].anim();
		setTimeout("run()", 16);
	}
	
	function doResize(){
		tit.style.width = nx*.20;
		txt.style.width = nx*.20;
		tit.style.fontSize = (nx / 40) + "px";
		txt.style.fontSize = (nx / 70) + "px";
		with(box.style){
			width  = W;
			height = H;
			//left   = nx / 2 - W / 2;
			//top    = ny / 2 - H / 2;
			left = 0;
			top = H+20;
			
		}
	}
	
	function resize(){
		nx = document.body.offsetWidth;
		ny = document.body.offsetHeight;
		// W  =  nx * 90 / 100; // force width to 90%
		W = 761;
		si = (W-((nI+1)*6))/((ZOOM*100)+((nI-1)*100));
		H  = (100 * si * rImg) + 14;
		setTimeout("doResize()", 16);
	}
	onresize = resize;
	
	onload = function(){
		box = document.getElementById("box");
		tit = document.getElementById("tit");
		txt = document.getElementById("txt");
		img = box.getElementsByTagName("img");
		nI  = img.length;
		resize();
		s = ZOOM * 100;
		x = 0;
		tit.innerHTML = img[0].title;
		txt.innerHTML = img[0].alt;
		for(i=0; i<nI; i++) {
			O[i] = new CObj(i, s, x, img[i].alt, img[i].title);
			img[i].alt = "";
			img[i].title = "";
			img[i].onmousedown = new Function("return false;");
			x += s;
			s = 100;
		}
		O[0].is.style.cursor = "default";
		setTimeout("box.style.visibility='visible';",100);
		run();
	}

	//-->