// JavaScript Document
/*
Copyright © MaXimuS 1999-2000, All Rights Reserved.
Site: http://www.absolutegb.com/maximus
E-mail: maximus@nsimail.com
*/

IE = (document.all)
NS = (navigator.appName=="Netscape" && navigator.appVersion >= "4")

/*
Configure menu styles below
NOTE: To edit the link colors, go to the STYLE tags and edit the ssm3Items colors
*/
hdrFontFamily="Verdana";
hdrFontSize="3";
hdrFontColor="white";
hdrBGColor="#204349";
hdrTextAlign="Center";
linkFontFamily="Verdana";
linkFontSize="1";
linkBGColor="black";
linkOverBGColor="#BAA788";
linkTextAlign="Center";
linkTarget="_self";
YOffset=0;
staticYOffset=0;
XOffset="10";
menuWidth="100";
menuBGColor="black";
menuIsStatic="yes";
menuHeader="Menu";
staticMode="smooth";

lastY = 0;
function makeStatic(mode) {
if (IE) {winY = document.body.scrollTop;var NM=ssm3.style}
if (NS) {winY = window.pageYOffset;var NM=document.ssm3}
if (mode=="smooth") {
if ((IE||NS) && winY!=lastY) {
smooth = .2 * (winY - lastY);
if(smooth > 0) smooth = Math.ceil(smooth);
else smooth = Math.floor(smooth);
if (IE) NM.pixelTop+=smooth;
if (NS) NM.top+=smooth;
lastY = lastY+smooth;}
setTimeout('makeStatic("smooth")', 1)}
else if (mode=="advanced") {
if ((IE||NS) && winY>YOffset-staticYOffset) {
if (IE) {NM.pixelTop=winY+staticYOffset}
if (NS) {NM.top=winY+staticYOffset}}
else {
if (IE) {NM.pixelTop=YOffset}
if (NS) {NM.top=YOffset-7}}
setTimeout('makeStatic("advanced")', 1)}
else {alert('Please choose either the "smooth" or "advanced" static modes!')}}