var mWidth = 0;
var mHeight = 0;
var mSrc = "";
var timeId = null;
function replaceImage( src, width, height ) {
	var execString = 'replaceImageSrc()';
	mWidth = width;
	mHeight = height;
	mSrc = src;
	
	var img = document.getElementById( "theImage" );
	img.src = 'images/blank.gif';
	
	timeSrc = setTimeout( execString, 500 );
}

function resizeImage( src, width, height ) {
	var execString = 'replaceImageSrc()';
	mWidth = width;
	mHeight = height;
	mSrc = src;
	
	var img = document.getElementById( "theImage" );
	img.src = 'images/blank.gif';
	
	timeSrc = setTimeout( execString, 500 );
}

function replaceImageSrc() {
	var img = document.getElementById( "theImage" );
	img.src = mSrc;
	img.width = mWidth;
	img.height = mHeight;
	//clearTimeout( timeId );
}
