arrPictures = new Array();
intCurrentImage = 0;

function checkBrowserIE() {
	if (window.navigator.appName == 'Microsoft Internet Explorer') {
		return true;
	}
	
	return false;
}

function changeTopPicture(p_strPicture) {
	document.getElementById('pictureTopChange').src = './images-layout/picture_' + p_strPicture + '.png';
}

function startSlideShow(p_strPage) {
	if (intCurrentImage == (arrPictures.length -1)) {
		intCurrentImage = -1;
	}
	intCurrentImage++;
	
	if (checkBrowserIE()) {
		document.getElementById('imgSlideShow').filters.blendTrans.apply();
	}
	document.getElementById('imgSlideShow').src = './images/slideshow/' + p_strPage + '/' + arrPictures[intCurrentImage];
	if (checkBrowserIE()) {
		document.getElementById('imgSlideShow').filters.blendTrans.play();
	}
	
	setTimeout('startSlideShow(\'' + p_strPage + '\')', 5000);
}