//for image viewer slide show

myCount = 0;

function UpdateCounter( currentCount )
{
	myCount = currentCount;
}

function loadImgArray( strList ){
	myImgList = strList.split(",");
}
function NextSlideShow( maxCount ){
	if(myCount >= maxCount){
		myCount = 0;
	}else{
		myCount++;
	}
	//alert( myImgList[myCount] );
	show('MainPhoto',myImgList[myCount]);
}
function PrevSlideShow( maxCount ){
	if(myCount <= 0){
		myCount = maxCount;
	}else{
		myCount--;
	}
	//alert( myImgList[myCount] );
	show('MainPhoto',myImgList[myCount]);
}

function show(name,src) {
    if (document.images)
        document.images[name].src = src;
}

function fillLabel(inField,inValue){
    if(document.layers)    //NN4+
    {
       document.layers[inField].innerHTML = inValue;
    }
    else if(document.getElementById)      //gecko(NN6) + IE 5+
    {
        var obj = document.getElementById(inField);
        obj.innerHTML = inValue;
    }
    else if(document.all)       // IE 4
    {
        document.all[inField].innerHTML = inValue;
    }
}

