// JavaScript Document
// Apply getElementById patch

if ( !document.getElementById ) {
    if ( document.all ) {
        document.getElementById = function( x ) {
            return this.all[x];
        }
    }
    else if ( document.layers ) {
        document.getElementById = function( x ) {
            return this[x];
        }
    }
}

var oldid;

function MAP_toggle( id ) {

	if ( document.getElementById( id ).style.display == 'none' ) 
	{
		document.getElementById( id ).style.display='';
		if( ( oldid != id ) && ( oldid != undefined ) ) 
			document.getElementById(oldid).style.display='none';
			
		oldid = id;
		//return 1;
	} else {
		//return 2;
	}
}