	var slideshow_timer1 = null;
	var slideshow_timer2 = null;
	var slideshow_play = false;
	var slideshow_timer = 3500;

	function swapSlide(o) {
		if (slideshow_current) slideshow_current.style.border = '2px white solid';
		myGetObject('slideshow_image').src = o.src;
//		myGetObject('slideshow_text').innerHTML = o.alt;
		slideshow_current=o;
		slideshow_current.style.border = '2px #555555 solid';
	}
	
	function nextSlide() {
		x = slideshow_current.id.split("_");
		num = parseInt(x[1]) + 1;
		n = myGetObject('slideshow_' + num);
		if (!n) n=myGetObject('slideshow_1');
		swapSlide(n);
	}
	
	function lastSlide() {
		x = slideshow_current.id.split("_");
		num = parseInt(x[1]) - 1;
		n = myGetObject('slideshow_' + num);
		if (n) swapSlide(n);
	}	
	
	function goSlide(toggle) {
		if (toggle)	slideshow_play = !slideshow_play;
		if (slideshow_play) {
			slideshow_timer1 = setTimeout("nextSlide()",slideshow_timer);
			slideshow_timer2 = setTimeout("goSlide()",slideshow_timer);
			myGetObject('slideshow_button').src='img/but_pause.gif';	
		} else {	
			clearTimeout(slideshow_timer1);
			clearTimeout(slideshow_timer2);	
			myGetObject('slideshow_button').src='img/but_play.gif';	
		}

	}
	
	function setSpeed(speed) {
		slideshow_timer=speed;
		clearTimeout(slideshow_timer1);
		clearTimeout(slideshow_timer2);
		goSlide()
	}
var isDOM=document.getElementById?1:0;
var isNS4=navigator.appName=='Netscape'&&!isDOM?1:0;
var isIE=document.all?1:0;

function getDOMObj(obj)	{return document.getElementById(obj);}
function getIE4Obj(obj)	{return document.all[obj];}
function getNS4Obj(obj)	{}

if(document.getElementById)	myGetObject = getDOMObj
else if(document.all) myGetObject = getIE4Obj
else if(document.layers) myGetObject = getNS4Obj

function classToggle(o,n) {
	if (n) {
		o.tc=o.className;
		o.className=o.className + " " + n;
	} else {
		o.className=(o.tc) ? o.tc : null;
	}
}

