function view_slide(i){
	if(gX[i]) {
		clearInterval(gInt);
		clearTimeout(gTO);
		Effect.Fade(gX[gIndex], {duration: 0.5});
		gIm[gIndex].style.display='none';
		gIndex=i;
		gTO=setTimeout("Effect.Appear(gX[gIndex], {duration: 0.5});gIm[gIndex].style.display='';", 850);
		gInt=setInterval("switch_slide()",gDelay);
	}
}
    
function display_talk(e){
	return (function(){
		e.style.display='';
	})
}
    
function switch_slide(){
	Effect.Fade(gX[gIndex], {duration: 0.5});
	gIm[gIndex].style.display='none';

	gIndex++;
	if (gIndex == gX.length) {
		gIndex=0;
	}
	gTO=setTimeout("Effect.Appear(gX[gIndex], {duration: 0.5});gIm[gIndex].style.display='';", 850);    
}

function highlight(name,color){
	var x=document.getElementsByName(name);
	for (i=0;i<x.length;i++){
  	if (i%2==1) {
			x[i].style.background=color;
		}
	}
}