	var lc_thumb_tempImage=new Image();
	function lc_thumb_checkProperTag(obj){
		if (obj.attributes.otherthumbs==null) return false;
		if (obj.attributes.otherthumbs.value=="") return false;
		if (lc_thumb_getNumberOfThumbs(obj)*1<1) return false;
		return true;
	}
	function lc_thumb_startChange(obj){
		if (!lc_thumb_checkProperTag(obj))return;
		if (obj.showing == null){
			obj.showing = 0;
		}
		if (obj.srcOriginal == null){
			obj.srcOriginal=obj.attributes.src.value;
		}
		if (obj.intervalId == null){
			obj.itervalId=0;
		}
		lc_thumb_preloadNextSrc(obj);
		obj.intervalId = setInterval(function (){
			obj.showing++;
			if (obj.showing>lc_thumb_getNumberOfThumbs(obj)){
				obj.showing=1;	
			}
			lc_thumb_setSrc(obj);
		},1000);
	}
	function lc_thumb_preloadNextSrc(obj){
		var i = (obj.showing==lc_thumb_getNumberOfThumbs(obj))?1:obj.showing;
		i++;
		lc_thumb_tempImage.src=lc_thumb_getThumbByIndex(obj,i-1);
	}
	function lc_thumb_getSrc(obj){
		return lc_thumb_getThumbByIndex(obj,obj.showing-1);
	}
	function lc_thumb_setSrc(obj){
		obj.src=lc_thumb_getSrc(obj);
		lc_thumb_preloadNextSrc(obj);
	}
	function lc_thumb_stopChange(obj){
		if (!lc_thumb_checkProperTag(obj))return;
		obj.src=obj.srcOriginal;
		obj.showing=0;
		clearInterval(obj.intervalId);
	}
	function lc_thumb_getNumberOfThumbs(obj){
		return obj.attributes.otherthumbs.value.split(":").length;
	}
	function lc_thumb_getThumbByIndex(obj,i){
		return obj.attributes.otherthumbs.value.split(":")[i];
	}

