
function positionIndicator()
{
	var scrollLeft = document.body.scrollLeft || document.documentElement.scrollLeft;
	var scrollTop  = document.body.scrollTop  || document.documentElement.scrollTop;
	
	$('global_menu').style.left = Math.round(document.body.clientWidth*0.93) - $('global_menu').getWidth() + 'px';
	$('global_menu').style.top = 15 + scrollTop + 'px';
}

Event.observe( window, 'resize', function( ev ) {
	positionIndicator();
} );
Event.observe( window, 'scroll', function( ev ) {
	positionIndicator();
} );
Event.observe( window, 'load', function( ev ) {
	$$('#global_menu dd').each( function( tag ) { $( tag ).hide(); } );
	$('global_menu').style.display = "block";
	positionIndicator();
	
	Event.observe( $$('#global_menu dt')[0], 'mouseover', function( ev ) {
		$$('#global_menu dd').each( function( tag ) { $( tag ).show(); } );
	} );
	
	Event.observe( $$('dl#global_menu dt')[0], 'mouseout', function( ev ) {
		$$('#global_menu dd').each( function( tag ) { $( tag ).hide(); } );
	} );
	
	$$('#global_menu dd').each( function( tag ) {
		Event.observe( $( tag ), 'mouseover', function( ev ) {
			$$('#global_menu dd').each( function( tag ) { $( tag ).show(); } );
		} );
		Event.observe( $( tag ), 'mouseout', function( ev ) {
			$$('#global_menu dd').each( function( tag ) { $( tag ).hide(); } );
		} );
	} );
	
} );

