Behaviour.register({
	'#menu IMG, #language IMG': function( obj ) {
		// Preload hover image
		if( obj.src.indexOf( '_over' ) == -1 )
		{
			var img		= new Image();
			img.src		= obj.src.replace( /\.gif/, '_over.gif' );
			obj._on		= img.src;
			_preload[_preload.length]	= img;
		}
		else
		{
			obj._on		= obj.src;
		}
		obj._off	= obj.src;

		// Register mouseover & mouseout
		obj.onmouseover	= function() {
			this.src	= this._on;
		}
		obj.onmouseout	= function() {
			this.src	= this._off;
		}
	},
	'.listing': function( obj ) {
		for( var i=0; i<obj.childNodes.length; i++ )
		{
			var child	= obj.childNodes[i];

			// Register mouseover & mouseout
			child.onmouseover	= function() {
				Element.addClassName( this, 'active' );
			}
			child.onmouseout	= function() {
				Element.removeClassName( this, 'active' );
			}
		}
	}
});

var _preload	= new Array();