	/************************************************************************************************************
	(C) www.dhtmlgoodies.com, November 2005

	This is a script from www.dhtmlgoodies.com. You will find this and a lot of other scripts at our website.

	Terms of use:
	You are free to use this script as long as the copyright message is kept intact. However, you may not
	redistribute, sell or repost it without our permission.

	Thank you!

	www.dhtmlgoodies.com
	Alf Magne Kalleland

	************************************************************************************************************/

	var slideshow03_noFading = false;
	var slideshow03_timeBetweenSlides = 2000;	// Amount of time between each image(1000 = 1 second)
	var slideshow03_fadingSpeed = 10;	// Speed of fading	(Lower value = faster)

	var slideshow03_galleryContainer;	// Reference to the gallery div
	var slideshow03_galleryWidth;	// Width of gallery
	var slideshow03_galleryHeight;	// Height of galery
	var slideshow03_slideIndex = -1;	// Index of current image shown
	var slideshow03_slideIndexNext = false;	// Index of next image shown
	var slideshow03_imageDivs = new Array();	// Array of image divs(Created dynamically)
	var slideshow03_currentOpacity = 100;	// Initial opacity
	var slideshow03_imagesInGallery = false;	// Number of images in gallery
	var Opera = navigator.userAgent.indexOf('Opera')>=0?true:false;
	function createParentDivs03(imageIndex03)
	{
		if(imageIndex03==slideshow03_imagesInGallery){
			showGallery03();
		}else{
			var imgObj = document.getElementById('galleryImage03' + imageIndex03);
			if(Opera)imgObj.style.position = 'static';
			slideshow03_imageDivs[slideshow03_imageDivs.length] =  imgObj;
			imgObj.style.visibility = 'hidden';
			imageIndex03++;
			createParentDivs03(imageIndex03);
		}
	}

	function showGallery03()
	{

		if(slideshow03_slideIndex==-1)slideshow03_slideIndex=0; else slideshow03_slideIndex++;	// Index of next image to show
		if(slideshow03_slideIndex==slideshow03_imageDivs.length)slideshow03_slideIndex=0;
		slideshow03_slideIndexNext = slideshow03_slideIndex+1;	// Index of the next next image
		if(slideshow03_slideIndexNext==slideshow03_imageDivs.length)slideshow03_slideIndexNext = 0;

		slideshow03_currentOpacity=100;	// Reset current opacity

		// Displaying image divs
		slideshow03_imageDivs[slideshow03_slideIndex].style.visibility = 'visible';
		if(Opera)slideshow03_imageDivs[slideshow03_slideIndex].style.display = 'inline';
		if(navigator.userAgent.indexOf('Opera')<0){
			slideshow03_imageDivs[slideshow03_slideIndexNext].style.visibility = 'visible';
		}

		if(document.all){	// IE rules
			slideshow03_imageDivs[slideshow03_slideIndex].style.filter = 'alpha(opacity=100)';
			slideshow03_imageDivs[slideshow03_slideIndexNext].style.filter = 'alpha(opacity=1)';
		}else{
			slideshow03_imageDivs[slideshow03_slideIndex].style.opacity = 0.99;	// Can't use 1 and 0 because of screen flickering in FF
			slideshow03_imageDivs[slideshow03_slideIndexNext].style.opacity = 0.01;
		}


		setTimeout('revealImage03()',slideshow03_timeBetweenSlides);
	}

	function revealImage03()
	{
		if(slideshow03_noFading){
			slideshow03_imageDivs[slideshow03_slideIndex].style.visibility = 'hidden';
			if(Opera)slideshow03_imageDivs[slideshow03_slideIndex].style.display = 'none';
			showGallery03();
			return;
		}
		slideshow03_currentOpacity--;
		if(document.all){
			slideshow03_imageDivs[slideshow03_slideIndex].style.filter = 'alpha(opacity='+slideshow03_currentOpacity+')';
			slideshow03_imageDivs[slideshow03_slideIndexNext].style.filter = 'alpha(opacity='+(100-slideshow03_currentOpacity)+')';
		}else{
			slideshow03_imageDivs[slideshow03_slideIndex].style.opacity = Math.max(0.01,slideshow03_currentOpacity/100);	// Can't use 1 and 0 because of screen flickering in FF
			slideshow03_imageDivs[slideshow03_slideIndexNext].style.opacity = Math.min(0.99,(1 - (slideshow03_currentOpacity/100)));
		}
		if(slideshow03_currentOpacity>0){
			setTimeout('revealImage03()',slideshow03_fadingSpeed);
		}else{
			slideshow03_imageDivs[slideshow03_slideIndex].style.visibility = 'hidden';
			if(Opera)slideshow03_imageDivs[slideshow03_slideIndex].style.display = 'none';
			showGallery03();
		}
	}

	function initSlide03()
	{
		slideshow03_galleryContainer = document.getElementById('slide03');
		slideshow03_galleryWidth = slideshow03_galleryContainer.clientWidth;
		slideshow03_galleryHeight = slideshow03_galleryContainer.clientHeight;
		galleryImgArray03 = slideshow03_galleryContainer.getElementsByTagName('IMG');
		for(var no=0;no<galleryImgArray03.length;no++){
			galleryImgArray03[no].id = 'galleryImage03' + no;
		}
		slideshow03_imagesInGallery = galleryImgArray03.length;
		createParentDivs03(0);

	}