 /* <![CDATA[ */
/*
/*Static Slide Menu 6.5  MaXimuS 2000-2001, All Rights Reserved.*/
/*Site: http://www.absolutegb.com/maximus*/
/*Script featured on Dynamic Drive (http://www.dynamicdrive.com) */
/*Featured = To Xhtml/-conform -compactiblity - and ECMA-script by f.k, All Rights Reserved*/
var NS6 = (document.getElementById);
var IE = (document.all || document.getElementById);

var tempBar= '';var barBuilt= 0;var ssmItems = new Array();

function truebody(){	
return ([document.compatMode != "BackCompat"]) ? document.documentElement : document.body;
}

var moving = setTimeout('null', 0);
function moveOut() {
if((NS6) && parseInt(ssm.left) < 0 || (IE) && ssm.pixelLeft < 0) {
clearTimeout(moving);moving = setTimeout('moveOut()', slideSpeed);slideMenu(25);
}
else {clearTimeout(moving);moving = setTimeout('null', 1);}
}
function moveBack() {clearTimeout(moving);moving = setTimeout('moveBack1()', waitTime);
}
function moveBack1() {
if((NS6) && parseInt(ssm.left) > (- menuWidth) || (IE) && ssm.pixelLeft > (- menuWidth)) {
clearTimeout(moving);moving = setTimeout('moveBack1()', slideSpeed);slideMenu(-25);
}
else {clearTimeout(moving);moving = setTimeout('null', 1);}
}
function slideMenu(num){
if(IE) {ssm.pixelLeft += num ;}
if(NS6) {ssm.left = parseInt(ssm.left) + num + 'px';}
}
var lastY = 0;
function makeStatic() {	
if(NS6) {winY = window.pageYOffset;}
if(IE) {winY = truebody().scrollTop;}
if(NS6 || IE) {
if(winY != lastY && winY > YOffset - staticYOffset) {
var smooth = .2 * (winY - lastY - YOffset + staticYOffset);}
else if (YOffset - staticYOffset + lastY > YOffset - staticYOffset) {
smooth = .2 * (winY - lastY - (YOffset-(YOffset - winY)));}
else {smooth = 0;}
if(smooth > 0) { smooth = Math.ceil(smooth);}
else {smooth = Math.floor(smooth);}
if(IE) {bssm.pixelTop += smooth;}
if(NS6) {bssm.top = parseInt(bssm.top) + smooth + "px";}
lastY += smooth;
setTimeout('makeStatic()', 0);}
}

function buildBar() {
if(barText.indexOf('<IMG') > -1) {tempBar = barText;}
else{for (var b= 0; b < barText.length; b++) {tempBar += barText.charAt(b) + '<br />';}}
document.write('<td style="text-align:center;width:'+ barWidth +';background-color:'+ barBGColor +';" rowspan="40"><p style="text-align:center;font-family:'+ barFontFamily +';font-size:'+ barFontSize +';color:'+ barFontColor +';font-weight:bold;">'+ tempBar +'</p></td>');
}

function initSlide() {
if(NS6) {ssm = document.getElementById('thessm').style;bssm = document.getElementById('basessm').style;
/*bssm.clip ="rect(0, "+ document.getElementById('thessm').offsetWidth +", "+ document.getElementById('thessm').offsetHeight+", 0)";*/ssm.visibility = 'visible';}
else if(IE) {ssm = document.all.thessm.style;bssm = document.all.basessm.style.
clip="eval(rect(0,"+ thessm.offsetWidth +", "+ thessm.offsetHeight + ", 0))";bssm.visibility = 'visible';}
if(menuIsStatic == 'yes') {makeStatic();}
}

function buildMenu() {
if(IE || NS6) {document.write('<div id="basessm" style="visibility:hidden;position:absolute;left:'+ XOffset +'px;top:'+ YOffset +'px;z-index:12;width:'+(menuWidth + barWidth + 0)+'px;"><div id="thessm" style="position:absolute;left:'+(-menuWidth)+'px;top:5px;z-index:12;" onmouseover="moveOut();" onmouseout="moveBack();">');
document.write('<table cellpadding="0" cellspacing="0" style="margin:0px;padding:0px;width:'+ (menuWidth + barWidth + 0)+'px;background-color:'+ menuBGColor +';border:0px;"><tr><td>');}
document.write('<table cellpadding="0" cellspacing="1" style="margin:0px;padding:0px;width:'+(menuWidth + barWidth + 0)+'px;background-color:'+ menuBGColor +';border:0px;">');
for(var i = 0; i < ssmItems.length; i++) {
if(!ssmItems[i][3]) {ssmItems[i][3] = menuCols;ssmItems[i][5] = menuWidth-1;}
else if(ssmItems[i][3] != menuCols) {ssmItems[i][5] = Math.round(menuWidth * (ssmItems[i][3] / menuCols)-1);}
if(ssmItems[i-1] && ssmItems[i-1][4] != "no") {document.write('</td><tr>');}
if(!ssmItems[i][1]) {
document.write('<td colspan="'+ ssmItems[i][3] + '" style="margin:0px;padding:0px;width:'+ ssmItems[i][5] +';height:'+ hdrHeight +'px;text-align:'+ hdrAlign +';vertical-align:'+ hdrVAlign +';background-color:'+ hdrBGColor +';font-family:'+ hdrFontFamily +';font-size:'+ hdrFontSize +';color:'+ hdrFontColor +';font-weight:bold;"><div>'+ ssmItems[i][0] +'</div></td>');}
else {if(! ssmItems[i][2]) {ssmItems[i][2] = linkTarget;}
document.write('<td bgColor="'+ linkBGColor +'" onmouseover="bgColor=\''+ linkOverBGColor +'\'" onmouseout="bgColor=\''+ linkBGColor + '\'" width="'+ ssmItems[i][5] +'px" colspan="'+ ssmItems[i][3] +'"><div><div onmouseover="bgColor=\''+ linkOverBGColor +'\'" onmouseout="bgColor=\''+ linkBGColor +'\'" width="100%" align="'+ linkAlign +'"><div style="margin:0px;padding:0px;text-align:'+ linkAlign +';font-family:'+ linkFontFamily +';font-size:'+ linkFontSize +';"><a href="'+ ssmItems[i][1] +'" class="ssmItems">'+ ssmItems[i][0] +'</div></div></div></td>');}
if(ssmItems[i][4] != "no" && barBuilt == 0) {buildBar();barBuilt = 1;}
if(ssmItems[i][4] != "no") {document.write('</tr>')}}
document.write('</table>');
if(NS6) {document.write('</td></tr></table>');}
if(IE || NS6) {document.write('</div></div>');}
pixelLeft = -menuWidth;setTimeout('initSlide()', 0);
}
/*target="'+ ssmItems[i][2] +'"*/
/*engine = null;
if (window.navigator.appName == "Microsoft Internet Explorer")
{
   // This is an IE browser. What mode is the engine in?
   if (document.documentMode) // IE8
      engine = document.documentMode;
   else // IE 5-7
   {
      engine = 5; // Assume quirks mode unless proven otherwise
      if (document.compatMode)
      {
         if (document.compatMode == "CSS1Compat")
            engine = 7; // standards mode
		
      }
   }
   // the engine variable now contains the document compatibility mode.
}*/
 /* ]]> */
