
function fpSlideshow ( myID ){

	if(document.CurrentNumber[myID] == undefined)
	document.CurrentNumber[myID] = 1

	if( document.CurrentNumber[myID] >= document.Count[myID])
	document.CurrentNumber[myID]=0


        document.getElementById(myID).innerHTML = document.getElementById(myID+document.CurrentNumber[myID] ).innerHTML;

	nr = parseInt(document.CurrentNumber[myID])
	document.CurrentNumber[myID] = nr+1
}

function fpSlideshow_init (myCount,myID){

if(!document.Count)
	document.Count = new Array();

if(!document.Slideshow)
	document.Slideshow = new Array();



	if(myCount >0)
	document.Count[myID] = myCount;

	if(document.Count[myID] >0)
	eval(" document.Slideshow['"+myID+"'] = setInterval('fpSlideshow(\""+myID+"\")',3000);");


}
function  fpSlideshow_stop(myID){
	if(document.Slideshow[myID]){
		clearInterval(document.Slideshow[myID])
		document.Slideshow[myID] = false
		return true;
	}
	return false;
}

