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
imageObj = new Image();
images = new Array();
// counter     
var i = 0;

function preloader(size) 
{
	 // start preloading     
	 for(i=0; i<size; i++)      
	 {         
		 imageObj.src=images[i]; 
		 alert("I am here " + i + images[i]);
	 }
}
var loaded = 0;
