var RunningIE4 = (msieversion() >=4);

function msieversion() {
	var ua = window.navigator.userAgent
	var msie = ua.indexOf ( "MSIE " )
	if ( msie > 0 )		// is Microsoft Internet Explorer; return version number
		return parseInt ( ua.substring ( msie+5, ua.indexOf ( ".", msie ) ) )
	else
		return 0	// is other browser
}

if (RunningIE4) {
  changePic = dissolvePix
  } else {
  changePic  = switchPic}

function switchPic(picObj, newSrc) {
  picObj.src = newSrc}

function dissolvePix(picObj, imgfile){
// This is for IE4 or later, and dissolves the images together using a visual filter.
picObj.filters.revealTrans.Apply();        
picObj.src = imgfile
picObj.filters.revealTrans.Play()   
}  // end of function
