/**
 * mm_menu 20MAR2002 Version 6.0
 * Andy Finnell, March 2002
 * Copyright (c) 2000-2002 Macromedia, Inc.
 *
 * based on menu.js
 * by gary smith, July 1997
 * Copyright (c) 1997-1999 Netscape Communications Corp.
 *
 * Netscape grants you a royalty free license to use or modify this
 * software provided that this copyright notice appears on all copies.
 * This software is provided "AS IS," without a warranty of any kind.
 */
/* /####################################################################
# LastModified :
# Date        Ref Who Description
# 25 Jan 2005 4.1 WGM Added  removeSelectBoxes()
#                            restoreSelectBoxes()
#                            getRealPos()
# 14 Sep 2007 4.4 YS  Added  showHide()
# 18 Sep 2007 4.4 YS  Added  expandcontent()
#							 highlighttab()
#							 collectddimagetabs()
#							 do_onload()	
# 6  Feb 2009 4.4 YS  Move functions for atlas tabs to atlas.js	
# 5  May 2010 5.0 YS  Remove redundant functions and fix bugs for showHide()	
######################################################################*/
function getExplorerVersion() {
	var ieVers = parseFloat(navigator.appVersion);
	if( navigator.appName != 'Microsoft Internet Explorer' ) return ieVers;
	var tempVers = navigator.appVersion;
	var i = tempVers.indexOf( 'MSIE ' );
	if( i >= 0 ) {
		tempVers = tempVers.substring( i+5 );
		ieVers = parseFloat( tempVers );
	}
	return ieVers;
}

//click to switch between show and hide menu
//var previous_id = '-1';
menu_status = new Array();
//var previous_menu = null; 
function showNav(){

}
function showHide(theid){
    if (document.getElementById) {
    var switch_id = document.getElementById(theid);
    if(!menu_status[theid]) {
        menu_status[theid] = document.getElementById(theid).className;
    } 
    if(menu_status[theid] != 'show') {
           /* if(previous_id != '-1' && previous_id != theid) {
				document.getElementById(previous_id).className = 'hide';
				menu_status[previous_id] = 'hide';
			}*/
			switch_id.className = 'show';
			menu_status[theid] = 'show';
			//previous_id = theid;
        }else{
           switch_id.className = 'hide';
           menu_status[theid] = 'hide';
        }
    }
}



