
function changePicture(current) {
	if(current < Gpics.length-1)
		newpic = Gpics[next = current+1];
	else
		newpic = Gpics[next = 0];
	
	image = document.getElementById('Showpic');
	image.src = newpic;
	return next;
}



function changeImages() {
	if (preloadFlag == true) {
		for (var i=0; changeImages.arguments.length > i; i+=2) {
			if (changeImages.arguments[i])
				document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;

function preloadImages() {
	if (document.images) {
		preloadFlag = true;
	}
}

function change(el, val) {
	document.getElementById(el).innerHTML = val;
}


<!-- Original: CodeLifter.com (support@codelifter.com) -->
<!-- Web Site: http://www.codelifter.com -->


<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->


<!-- Begin
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 10000;
// Duration of crossfade (seconds)
var crossFadeDuration = 5;
// Specify the image files
var Pic = new Array();
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = '/img/front/1.jpg'
Pic[1] = '/img/front/2.jpg' 
Pic[2] = '/img/front/3.jpg'
Pic[3] = '/img/front/4.jpg'
Pic[4] = '/img/front/5.jpg'


// do not edit anything below this line
var t;
var j = 0;
var p = Pic.length;
var preLoad = new Array();
for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoad[i].src = Pic[i];
}

function runSlideShow() {
	if (document.all) {
		document.images.SlideShow.style.filter="blendTrans(duration=10000)";
		try {
			document.images.SlideShow.style.filter="blendTrans(5)";
			document.images.SlideShow.filters.blendTrans.Apply();
		} catch (e) {}
	}
	document.images.SlideShow.src = preLoad[j].src;
	if (document.all) {
		try {
			document.images.SlideShow.filters.blendTrans.Play();
		} catch(e) {}
	}
	j = j + 1;
	if (j > (p - 1)) j = 0;
	t = setTimeout('runSlideShow()', slideShowSpeed);
}
// End -->


