

function includeFlash( url, width, height, title, quality )
{
	document.write( '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + width + '" height="' + height + '" title="' + title + '">' );
	document.write( '<param name="movie" value="' + url + '" />' );
	document.write( '<param name="quality" value="' + quality + '" />' );
	document.write( '<embed src="' + url + '" quality="' + quality + '" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '"></embed>' );
	document.write( '</object>' );
}

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 );
}


