/*****************************************************************************
** Copyright (C) 2006, Stephen Gould
**
** FILENAME:	shortcuts.js
** AUTHOR:	    Stephen Gould
** COMMENCED:	01 May 2002
** MODIFIED:	14 Jul 2006
** DESCRIPTION:	javascript for shortcut menus
**
*****************************************************************************/

/* System Variables **********************************************************/

var stdBrowser = (document.getElementById) ? true : false;

/* Style Sheet ***************************************************************/

var sytleSheet;
styleSheet = "<style type=\"text/css\">\n";

styleSheet += ".shorttext {font:10pt tahoma, arial, helvetica; " +
	"color:\"#7f7f7f\"; display:none };\n";

styleSheet += "</style>\n";

document.write(styleSheet);

/* Functions *****************************************************************/

function SetShortcutText(id, bVisible) {
	var textObjl

	if (stdBrowser) {
		textObj = document.getElementById("shorttext" + id).style;
	} else if (document.all) {
		textObj = eval("document.all.shorttext" + id + ".style");
	} else {
		textObj = eval("document.shorttext" + id);
	}

	if (bVisible) {
		textObj.display = "block";
	} else {
		textObj.display = "none";
	}
}

/*****************************************************************************
** END OF FILE:	shortcut.js
*****************************************************************************/
