function simpleRollover()
{
	var img_tags   = document.getElementsByTagName( "img" );

	for( var i = 0, j = img_tags.length; i < j; i ++ )
	{
		var img_tag = img_tags[ i ];

		if( img_tag.className.match( 'rollover' ) )
		{
			img_tag.onmouseover = function()
			{
				this.src = this.src.replace( /\_off\.(gif|jpg|jpeg|png)$/, '_on.$1' );
				return false;
			}

			img_tag.onmouseout = function()
			{
				this.src = this.src.replace( /\_on\.(gif|jpg|jpeg|png)$/, '_off.$1' );
				return false;
			}
		}
	}

	var input_tags   = document.getElementsByTagName( "input" );

	for( var i = 0, j = input_tags.length; i < j; i ++ )
	{
		var input_tag = input_tags[ i ];

		if( input_tag.type == 'image' && input_tag.className.match( 'rollover' ) )
		{
			input_tag.onmouseover = function()
			{
				this.src = this.src.replace( /\_off\.(gif|jpg|jpeg|png)$/, '_on.$1' );
				return false;
			}

			input_tag.onmouseout = function()
			{
				this.src = this.src.replace( /\_on\.(gif|jpg|jpeg|png)$/, '_off.$1' );
				return false;
			}
		}
	}
}

if( window.addEventListener )
{
    window.addEventListener( 'load', simpleRollover, false );
}
else if( window.attachEvent )
{
    window.attachEvent( 'onload', simpleRollover );
}