Event.observe( window, 'load', function() {
$$('pre').each( function( ePre ) {
	var aCode = ePre.innerHTML.split( '\n' );
	
	var eList = document.createElement( "ol" );
	eList.className = 'code';
	aCode.each( function( sLine ) {
		var eLine = document.createElement( "li" );
		eLine.innerHTML = sLine;
		eList.appendChild( eLine );
	} );

	ePre.parentNode.replaceChild( eList, ePre );
	
});
} );

window.onload = function() {
	MouseOver();
	
}

function MouseOver()
{
	if ( document.createElement && document.getElementsByTagName )
	{
		var l_aImages = document.getElementsByTagName("img");
		for ( var i = 0; i < l_aImages.length; i++ )
		{
			var l_eImage = l_aImages[i];
			if( l_eImage.getAttribute( "rel" ) == "mouseover" )
			{
				l_eImage.onmouseover = function() {
					this.src = 'wp-content/themes/ajaxorized/images/menu/' + this.getAttribute( 'name' ) + '_ov.gif';
				}

				l_eImage.onmouseout = function() {
					this.src = 'wp-content/themes/ajaxorized/images/menu/' + this.getAttribute( 'name' ) + '.gif';
				}
			}
		}
	}
}
