/*
son of suckerfish menu script from:
http://www.htmldog.com/articles/suckerfish/dropdowns/
 */
 
 sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
			this.style.zIndex=200; //this line added to force flyout to be above relatively positioned stuff in IE
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);





function showbuttons() {   

    var agt       = navigator.userAgent.toLowerCase();
    var IEMAC     = ((agt.indexOf("msie") != -1) && agt.indexOf("mac")!=-1);
    var N6        = (agt.indexOf("netscape6") != -1 || (agt.indexOf("netscape/6") !=-1 ));

    if ( N6 ) {
		      return "Netscape 6 is unable to support our detailed reports.  Please upgrade to Nescape 7 or higher.<P>";
		          }
			      if ( IEMAC ) {
			            return "<P>";
				        }

return "<P><FORM><INPUT TYPE='button' value='Calculate' Name='btnCallCalc' onClick='document.calculator.calculate()'></FORM>";
					    }

					    function openNote()
					     { 
					      
					       var agt=navigator.userAgent.toLowerCase(); 
					        var is_aol   = (agt.indexOf("aol") != -1);

						 leftpos=0;
						  if (screen) {
						     leftpos=screen.width/2 - 300;
						      } 

						       if (is_aol) {
						          var s = " ";
							     s=document.calculator.sJavaScriptReport('HTML');
							         document.write(s);
								  }
								   else {
								      var OpenWindow=window.open("","newwin","toolbar=yes,menubar=yes,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=600,height="+(screen.height-120)+",left="+leftpos+",top=5");
								         var s = " ";
									    s=document.calculator.sJavaScriptReport('HTML');
									       OpenWindow.document.write(s);
									          OpenWindow.document.close(); 
										     OpenWindow.focus();
										      }
										       }


