var image1_alpha = 100;
	var image2_alpha = 0;
	
	var	image_current = 1;
	var image_maximum = 1;
	
	var image_start = 1;
	
	var image1_id = null;
	var image2_id = null;
	
	var stopit = 2000;
	
	function image()
	{
		//alert('pix/0'+(image_current)+'.jpg');
		if(image_current>image_maximum) { image_current = image_start; }
		if(image_current<10)
		{
			//alert('pix/0'+(imgc)+'.jpg');
			return('pix/0'+(image_current++)+'.jpg');
		}
		else
		{
			//alert('pix/0'+(imgc)+'.jpg');
			return('pix/'+(image_current++)+'.jpg');
		}
	}
	
	function slideshow(bild1,bild2,minimum,maximum,stoptime)
	{
		image1_id = bild1;
		image2_id = bild2;
		image_start = minimum;
		image_current = minimum;
		image_maximum = maximum;
		stopit = stoptime;
		document.getElementById(image1_id).src = image();
		document.getElementById(image2_id).src = image();
		if (navigator.appName.indexOf("Netscape")!=-1  &&parseInt(navigator.appVersion)>=5)
		{
			document.getElementById(image2_id).style.opacity = (image2_alpha+1)/100;
		}
		else
		{
			//element.style.MsFilter = '"progid:DXImageTransform.Microsoft.Alpha(opacity=' + value + ')"'; /* For IE8 */
			//element.style.filter = "alpha(opacity=" + value + ")"; /* For IE 6 and IE7 */
			document.getElementById(image2_id).style.MsFilter = '"progid:DXImageTransform.Microsoft.Alpha(opacity=' + image2_alpha + ')"';
			document.getElementById(image2_id).style.filter = /*image2_alpha*/ "alpha(opacity=" + image2_alpha + ")";

		}
		setTimeout('fade_in()',stopit);
		
	}
	
	function plus() { image2_alpha+=5; fade_in();};
	function minus() { image2_alpha-=5; fade_out();};
	
	function fade_in()
	{
		if(image2_alpha<101)
		{
			if (navigator.appName.indexOf("Netscape")!=-1  &&parseInt(navigator.appVersion)>=5)
			{
				document.getElementById(image2_id).style.opacity = (image2_alpha+1)/100;
			}
			else
			{
				//element.style.MsFilter = '"progid:DXImageTransform.Microsoft.Alpha(opacity=' + value + ')"'; /* For IE8 */
          		//element.style.filter = "alpha(opacity=" + value + ")"; /* For IE 6 and IE7 */
				document.getElementById(image2_id).style.MsFilter = '"progid:DXImageTransform.Microsoft.Alpha(opacity=' + image2_alpha + ')"';
				document.getElementById(image2_id).style.filter = /*image2_alpha*/ "alpha(opacity=" + image2_alpha + ")";

			}
			setTimeout('plus()',100);
			return('');
		}
		else
		{
			
			
			document.getElementById(image1_id).src = image();
			setTimeout('fade_out()',4000);
			return('');
		}
		
	}
	
	function fade_out()
	{
		if(image2_alpha>-1)
		{
			if (navigator.appName.indexOf("Netscape")!=-1  &&parseInt(navigator.appVersion)>=5)
			{
				document.getElementById(image2_id).style.opacity = (image2_alpha+1)/100;
			}
			else
			{
				document.getElementById(image2_id).style.MsFilter = '"progid:DXImageTransform.Microsoft.Alpha(opacity=' + image2_alpha + ')"';
				document.getElementById(image2_id).style.filter = /*image2_alpha*/ "alpha(opacity=" + image2_alpha + ")";
			}
			setTimeout('minus()',100);
			return('');
		}
		else
		{
			
			
			document.getElementById(image2_id).src = image();
			setTimeout('fade_in()',4000);
			return('');
		}
		
	}
