function getInternetExplorerVersion()
// Returns the version of Internet Explorer or a -1
// (indicating the use of another browser).
{
  var rv = -1; // Return value assumes failure.
  if (navigator.appName == 'Microsoft Internet Explorer')
  {
    var ua = navigator.userAgent;
    var re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
    if (re.exec(ua) != null)
      rv = parseFloat( RegExp.$1 );
  }
  return rv;
}


function checkVersion()
{
  var ver = getInternetExplorerVersion();

  if ( ver > -1 )
  {
    if ( ver >= 8.0 )  {
	AddTitleAttributeToImages() ;	
	}
  }
  
}



		function AddTitleAttributeToImages() {
			for ( var i = 0; i < document.images.length ; i++) 
			{

				if ( document.images[ i ].title == null  || document.images[ i ].title == "")  
				{
				
				var alt = document.images[ i ].alt;
					if (alt != "") {
						document.images[ i ].title = alt;				
					}
				}
			}
		}
		

if ( typeof window.addEventListener != "undefined" )
	{
		window.addEventListener( "load", checkVersion, false );
	}
	else
	{
		if ( typeof window.attachEvent != "undefined" )
		{
			window.attachEvent( "onload", checkVersion );
		}
		else
		{
			AddTitleAttributeToImages_addLoadFunction()
		}
	}

	function AddTitleAttributeToImages_addLoadFunction()
	{
		var oldonload = window.onload;
		if (typeof window.onload != 'function') 
		{
			window.onload = checkVersion		
		} 
		else 
		{
			window.onload = function() {

			checkVersion();
			}
  		}
	}

