/* ÄÖÜ_UTF8 */


function gtclk(e) {  e= e>pix ? 1 : e<1 ? pix : e; j= e;
		var myFx = new Fx.Scroll('sblk', {
			wait: false,
			duration: 500,
			offset: {'x': 0, 'y': 0},
			transition: Fx.Transitions.Quad.easeInOut
		});
		myFx.toElement('tn'+e);
}


function tchng(tn) {
	document.getElementById(tn).style.display= 'block'; 
	pout('dply'); 
	pout(tn=='impr' ? 'refs' : 'impr');
	pin(tn);
}


function schng(tn) { 
/*	var i=0;
	do { alert(i);
		document.getElementById('tn' +(i++)).style.display= 'none';
	} while (document.getElementById('tn'+i))
*/	document.getElementById('tn' +tn).style.display= 'block';
}


function pchng(pn, j, i) {  pout('refs'); pout('impr');
	document.pimg= new Image; 
	document.pimg.src= '_pics/fulls/' +pn;

//	for (var j= 0; j<btxt.length; j++) document.getElementById('pn' +j).style.opacity= .6;
	document.getElementById('pn' +j+'_'+i).style.opacity= '1';
//	document.getElementById('binf').innerHTML= '';
	pout('dply');
	window.setTimeout("document.getElementById('bpic').src= '_pics/fulls/" +pn+"';", 250);
//	window.setTimeout("document.getElementById('binf').innerHTML= '" +btxt[j][i]+"';", 500);
	pi= window.setInterval("pin('dply', true);", 350);
}


function pout(a) {
/*	var px = new Fx.Styles(a, {
			wait: false,
			duration: 250
		});
	px.start({
			'opacity': 0,
		});
*/	document.getElementById(a).style.visibility= 'hidden';
}


function pin(a, wt) {
	if (!wt || document.pimg.complete ) {
		if (wt) clearInterval(pi);
/*		var px = new Fx.Styles(a, {
				wait: false,
				duration: 250 
			});
		px.start({
				'opacity': 1,
			});
*/	document.getElementById(a).style.visibility= 'visible';
	}
}




window.addEvent('domready', function(){
});

