//Static Slide Menu 6.5 © MaXimuS 2000-2001, All Rights Reserved.//Site: http://www.absolutegb.com/maximus//E-mail: maximus@nsimail.com//Script featured on Dynamic Drive (http://www.dynamicdrive.com)WC3 = (document.getElementById && !document.all)IE = (document.all)NS = (navigator.appName == "Netscape" && navigator.appVersion.charAt(0) == "4")// Default value for nav bar img src. To override, modify before including ssmItems.jsbarSrc = 'img/navgraphic.gif';tempBar = '';barBuilt = 0;ssmItems = new Array();moving = setTimeout('null', 1);function moveOut() {    if ((WC3 || NS) && parseInt(ssm.left) < 0 || IE && ssm.pixelLeft < 0) {        clearTimeout(moving);        moving = setTimeout('moveOut()', slideSpeed);        slideMenu(10);    }    else {        clearTimeout(moving);        moving = setTimeout('null', 1);    }}function moveBack() {    clearTimeout(moving);    moving = setTimeout('moveBack1()', waitTime);}function moveBack1() {    if ((WC3 || NS) && parseInt(ssm.left) > (-menuWidth) || IE && ssm.pixelLeft > (-menuWidth)) {        clearTimeout(moving);        moving = setTimeout('moveBack1()', slideSpeed);        slideMenu(-10);    }    else {        clearTimeout(moving);        moving = setTimeout('null', 1);    }}function slideMenu(num) {    if (WC3 || IE)    	ssm.left = (parseInt(ssm.left) + num) + 'px';    else if (NS) {        ssm.left = parseInt(ssm.left) + num;        bssm.clip.right += num;        bssm2.clip.right += num;    }}function makeStatic() {    if (NS || WC3) {        winY = window.pageYOffset;    }    if (IE) {        winY = document.body.scrollTop;        if (winY == 0) {        	winY = document.all.tags("HTML")[0].scrollTop;        }    }    if (WC3 || IE || NS) {        if (winY != lastY && winY > YOffset - staticYOffset)            smooth = .2 * (winY - lastY - YOffset + staticYOffset);        else if (lastY > 0)            smooth = .2 * (-lastY);        else            smooth = 0;        if (smooth > 0)            smooth = Math.ceil(smooth);        else if (smooth < 0)            smooth = Math.floor(smooth);        if (WC3 || IE)            bssm.top = (parseInt(bssm.top) + smooth) + 'px';        else if (NS)            bssm.top = parseInt(bssm.top) + smooth;        lastY = lastY + smooth;        if (smooth != 0)        	setTimeout('makeStatic()', 1);        else        	setTimeout('makeStatic()', 500);    }}function buildBar() {    if (barText.indexOf('<img') > -1) {        tempBar = barText;    }    else {        for (b = 0; b < barText.length; b++) {            tempBar += barText.charAt(b) + "<BR>";        }    }    document.write('<td align="center" rowspan="100" width="' + barWidth + '" bgcolor="' + barBGColor + '" valign="'        + barVAlign + '"><p align="center"><font face="' + barFontFamily        + '" Size="' + barFontSize + '" COLOR="' + barFontColor + '"><B>' + tempBar + '</B></font></p></TD>');}function initSlide() {    if (WC3) {        ssm = document.getElementById("thessm").style;        bssm = document.getElementById("basessm").style;        bssm.clip = "rect(0px " + document.getElementById("thessm").offsetWidth            + "px, " + document.getElementById("thessm").offsetHeight + "px, 0px)";        ssm.visibility = "visible";        bssm.visibility = "visible";    }    else if (IE) {        ssm = document.all("thessm").style;        bssm = document.all("basessm").style;        bssm.clip = "rect(0px " + thessm.offsetWidth + "px, " + thessm.offsetHeight + "px, 0px)";        bssm.visibility = "visible";    }    else if (NS) {        bssm = document.layers["basessm1"];        bssm2 = bssm.document.layers["basessm2"];        ssm = bssm2.document.layers["thessm"];        bssm2.clip.left = 0;        ssm.visibility = "show";    }    if (menuIsStatic == "yes")        makeStatic();    moveBack();}function buildMenu () {    if (IE || WC3) {        document.write('<div id="basessm" style="visibility: hidden;'                       + ' position: absolute; left: ' + XOffset + 'px; top: '                       + YOffset + 'px; z-index: 20; width: '                       + (menuWidth + barWidth + 10) + 'px">');        document.write('<div id="thessm" style="position: absolute; left: '                       + (-menuWidth) + 'px; top: 0px; z-index: 20;"'                       + ' onmouseover="moveOut();" onmouseout="moveBack();">');    }    if (NS) {        document.write('<LAYER name="basessm1" top="' + YOffset + '" LEFT='                       + XOffset + ' visibility="show"><ILAYER name="basessm2">');        document.write('<LAYER visibility="hide" name="thessm" bgcolor="'                       + menuBGColor + '" left="' + (-menuWidth)                       + '" onmouseover="moveOut()" onmouseout="moveBack()">');    }    if (WC3) {        document.write('<table border="0" cellpadding="0" cellspacing="0"'                       + ' width="' + (menuWidth + barWidth + 2) + '" bgcolor="'                       + menuBGColor + '"><tr><td>');    }    document.write('<table border="0" cellpadding="0" cellspacing="1" width="'                   + (menuWidth + barWidth + 2) + '" bgcolor="' + menuBGColor                   + '">');    // Write header    document.write('<td bgcolor="' + hdrBGColor + '" height="' + hdrHeight                   + '" align="' + hdrAlign + '" valign="' + hdrVAlign                   + '" width="' + (menuWidth - 1) + '" colspan="1">&nbsp;'                   + '<font face="' + hdrFontFamily + '" size="' + hdrFontSize                   + '" color="' + hdrFontColor + '"><b>' + ssmHeader                   + '</b></font></td>');    buildBar();    // Write each item    for (i = 0; i < ssmItems.length; i++) {				document.write('<tr><td bgcolor="' + linkBGColor + '" onmouseover="'				               + 'bgColor=\'' + linkOverBGColor + '\'" onmouseout="'				               + 'bgColor=\'' + linkBGColor + '\'" width="'				               + (menuWidth - 1) + '" colspan="1">');        if (NS)            document.write('<ILAYER><LAYER onmouseover="bgColor=\'' + linkOverBGColor                           + '\'" onmouseout="bgColor=\'' + linkBGColor + '\'"'                           + ' WIDTH="100%" ALIGN="' + linkAlign + '">');        document.write('<div align="' + linkAlign + '"><font face="'                       + linkFontFamily + '" size="' + linkFontSize + '">&nbsp;'                       + '<a href="' + ssmItems[i][1] + '" class="ssmItems">'                       + ssmItems[i][0] + '</a></font></div>');        if (NS)            document.write('</LAYER></ILAYER>');        document.write('</td></tr>');    }    document.write('</table>');    if (WC3)        document.write('</td></tr></table>');    if (IE || WC3)        document.write('</div></div>');    if (NS)        document.write('</LAYER></ILAYER></LAYER>');    theleft = -menuWidth;    lastY = 0;    setTimeout('initSlide();', 1);}