
var color_num5 = "#FFFFFF"
var color_num6 = color_num2

function DetectOS() {
  if(navigator.userAgent.indexOf('Linux') != -1)
    { var OpSys = "Linux"; }
  else if((navigator.userAgent.indexOf('Win') != -1) &&
  (navigator.userAgent.indexOf('95') != -1))
    { var OpSys = "Windows95"; }
  else if((navigator.userAgent.indexOf('Win') != -1) &&
  (navigator.userAgent.indexOf('98') != -1))
    { var OpSys = "Windows98"; }
  else if(navigator.userAgent.indexOf('Win') != -1)
    { var OpSys = "Windows3.1 or NT"; }
  else if(navigator.userAgent.indexOf('Mac') != -1)
    { var OpSys = "Macintosh"; }
  else { var OpSys = "other"; }
  return OpSys;
}

var OpSys = DetectOS();

if(navigator.userAgent.indexOf('Netscape6') != -1){isNS6 = 1}else{isNS6 = 0}

if(parseInt(navigator.appVersion) >= 4 && OpSys != "Linux" && OpSys != "Macintosh" && OpSys != "other" && isNS6 != 1){greenlight = true}else{greenlight = false}


var ie = document.all ? 1 : 0
var ns = document.layers ? 1 : 0

if(ns){doc = "document."; sty = ""}
if(ie){doc = "document.all."; sty = ".style"}

menucontent = new Array()
menustatus = new Array()
menutimer = new Array()
menuhues = new Array()

for(blip=0; blip<1000; blip++){
menutimer[blip] = ""
menucontent[blip] = ""
}

slash = "/"
start = "<"
fnctn = "func"
nmos = " onMouse"
open_c = "("
open_cc = "{"

function createContent(huh, MenuID, V, Link_info, URL_info){
if(huh == "add"){
menucontent[V] = menucontent[V] + '<TR><TD CLASS="' +MenuID+ 'cell" onMouseover="mOver(this, ' +
"'"+ color_num6 +"'"+ ')" onMouseout="mOut(this, ' +"'"+ menuhues[V][0] +"', " +"'"+ menuhues[V][2] +"'" + ')" onMouseDown="mDown(this, ' +
"'"+ color_num6 +"'"+')" onMouseUp="mUp('+ "'" +URL_info+ "'" +')">' + '<A HREF="'+ URL_info +'" onFocus="this.blur()" CLASS="' +
MenuID+ 'link"><B>&nbsp;'+Link_info+'</B></A></TD></TR>'}

}

function mOver(elem, clr)
{elem.style.backgroundColor = clr;
elem.children.tags('A')[0].style.color = color_num5;}

function mOut(elem, clr, clr2)
{elem.style.backgroundColor = clr;
elem.children.tags('A')[0].style.color = clr2;}

function mDown(elem, clr)
{elem.style.backgroundColor = clr;
elem.children.tags('A')[0].style.color = color_num5;}

function mUp(path)
{location.href = path;}

function createMenu(MenuID, V, fromtop, fromleft, divWidth, max_drop, topclip, Title){
document.write('<style type="text/css">#', MenuID, '{position:absolute; width:', divWidth,
'px; top:', fromtop, 'px; left:', fromleft, 'px; clip:rect(0,', divWidth, ',', topclip, ',0); z-index:3; visibility:visible} ',
'.',  MenuID,  'table{BACKGROUND-COLOR: #000000;} ',
'.',  MenuID,  'neutral{CURSOR: Default;} ',
'.',  MenuID,  'cell{BACKGROUND-COLOR: ', menuhues[V][0], '; COLOR: #000000; CURSOR: Default; font-family: verdana; font-size: 8pt} ',
'.',  MenuID,  'link{COLOR: ', menuhues[V][2], '; TEXT-DECORATION: none; CURSOR: Default;} ',
'</style>',

'<div ID=', MenuID,
' onMouseover="', 'scrolldown(', "'", MenuID,  "'",  ", '",  V, "' ", ", '", divWidth, "' ", ', ', max_drop, ')"',
' onMouseout="',  'scrollup(',   "'", MenuID,  "'",  ", '",  V, "' ", ", '", divWidth, "' ", ')">',

start, 'SCR', 'IPT', '>',
     fnctn, 'tion', nmos, 'Over', open_c, ') ', open_cc, 'scrolldown',  open_c,  "'", MenuID, "'",  ", '",  V, "' ", ", '", divWidth, "' ",  ',  ', max_drop, ')', '}',
     fnctn, 'tion', nmos, 'Out',  open_c, ') ', open_cc, 'scrollup',    open_c,  "'", MenuID, "'",  ", '",  V, "' ", ", '", divWidth, "' ",  ')',                  '}',
start, slash, 'SCR', 'IPT', '>',


'<table border="0" width=', divWidth, ' cellspacing="0" cellpadding="0" bgcolor="#000000">',
  '<tr>',
    '<td width="100%">',
      '<table border="0" width="100%" cellspacing="1" cellpadding="2">',
        '<tr>',
          '<td CLASS="', MenuID, 'neutral" width="100%" bgcolor="', menuhues[V][1], '"><b><font color="', menuhues[V][3], '" face="Verdana" size="-5">&nbsp;', Title, '</font></b></td></tr>',
         menucontent[V], '</table>',
    '</td>',
  '</tr>',
'</table>',


'</div>')
}



function scrolldown(MenuID, V, divWidth, max_drop)
	{
	if(menustatus[V] < max_drop){
		clearTimeout(menutimer[V])
		menustatus[V]+=22
			if(ie){eval("document.all."+MenuID+".style").clip="rect(0,"+ divWidth +","+ menustatus[V] +",0)"}
			else{eval("document."+MenuID+".clip.bottom="+menustatus[V])}
		menutimer[V]=setTimeout('scrolldown("' +MenuID+ '", ' +V+ ',' +divWidth+ ',' +max_drop+ ')',5)}
	}


function scrollup(MenuID, V, divWidth)
	{
	if(menustatus[V] > 22){
		clearTimeout(menutimer[V])
		menustatus[V]-=22
			if(ie){eval("document.all."+MenuID+".style").clip="rect(0,"+ divWidth +","+ menustatus[V] +",0)"}
			else{eval("document."+MenuID+".clip.bottom="+menustatus[V])}
		menutimer[V]=setTimeout('scrollup("' +MenuID+ '", ' +V+ ',' +divWidth+ ')',5)}
	}



