function scrollMe(to) {
	
	
	toPixel = (to - 1) * 158;
	f_scroll.scrollTo(toPixel,0);
}

function nextSection() {
	//alert(currentSection);
	slideShow = false;
	if (currentSection < slides-2)
	{
		currentSection += 1;
		scrollMe(currentSection);
	}
	else
	{
		//currentSection = 1;
		alert("Slides on end, click Left arrow button");
		//scrollMe(currentSection);
	}
	
//document.getElementById('comment').innerHTML = comments[currentSection];
}

function prevSection() {
	slideShow = false;
	if (currentSection > 1)
	{
		currentSection -= 1;
		scrollMe(currentSection);
	}
	else
	{
		alert("Slides on start, click Right arrow button");
		//currentSection = slides-3;
		//scrollMe(currentSection);
	}
//document.getElementById('comment').innerHTML = comments[currentSection];
}

function runShow() {
	nextSection();
	setTimeout('runShow()', speed);
}

function changepict(pict) {
preLoad0 = new Image();
preLoad0.src = pict;

if (document.all) {
document.images.SlideShow0.style.filter="blendTrans(duration=2)";
document.images.SlideShow0.style.filter="blendTrans(duration=crossFadeDuration)";
document.images.SlideShow0.filters.blendTrans.Apply();
}
//
document.images.SlideShow0.src=preLoad0.src;
//document.getElementById('mnimage').innerHTML="<img name=SlideShow0 src='"+pict+"'  style='border: 1px solid rgb(44, 108, 186);  padding: 2px 2px 2px 2px; margin: 2px 2px 2px 2px;'>";
if (document.all) {
document.images.SlideShow0.filters.blendTrans.Play();
}
}