var detect = navigator.userAgent;
var msie = checkIt('MSIE');
function checkIt(string) {
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}

function imgAnim (n,img) {
	pic = "images/"+img+n+".gif";
	oImg = document.getElementById(img)
	if (msie) {
	    oImg.filters[0].apply();
	 	oImg.src = pic;
		oImg.filters[0].play();

		if (n == 0) {n=1} else {n=0}
		timerID = setTimeout("imgAnim("+n+",'"+img+"');", 5000);
	}
}
