Ms=screen;Mw=Ms.width;

if(Mw==640) {
	Mas=1;Maw=155;
	Mbs=108;Mbw=171;
	Mcs=230;Mcw=179;
	Mds=326;Mdw=128;
} else if (Mw==720) {
	Mas=1;Maw=155;
	Mbs=112;Mbw=170;
	Mcs=240;Mcw=180;
	Mds=390;Mdw=144;
} else if (Mw==800) {
	Mas=1;Maw=161;
	Mbs=151;Mbw=171;
	Mcs=311;Mcw=179;
	Mds=473;Mdw=141;
} else if (Mw==1024) {
	Mas=1;Maw=210;
	Mbs=210;Mbw=211;
	Mcs=420;Mcw=211;
	Mds=630;Mdw=208;
} else if (Mw==1152) {
	Mas=1;Maw=250;
	Mbs=250;Mbw=251;
	Mcs=500;Mcw=251;
	Mds=750;Mdw=216;
} else if (Mw==1280) {
	Mas=1;Maw=280;
	Mbs=280;Mbw=281;
	Mcs=560;Mcw=281;
	Mds=840;Mdw=254;
} else if (Mw==1600) {
	Mas=1;Maw=400;
	Mbs=400;Mbw=401;
	Mcs=800;Mcw=351;
	Mds=1150;Mdw=264;
} else if (Mw==1920) {
	Mas=1;Maw=400;
	Mbs=400;Mbw=401;
	Mcs=800;Mcw=401;
	Mds=1200;Mdw=534;
} else if (Mw==2048) {
	Mas=1;Maw=500;
	Mbs=500;Mbw=501;
	Mcs=1000;Mcw=501;
	Mds=1500;Mdw=362;
} else {
	Mas=1;Maw=161;
	Mbs=151;Mbw=171;
	Mcs=311;Mcw=179;
	Mds=473;Mdw=141;
}

var color_num1 = "#F2E6DA"
var color_num2 = "#dac7b4"
var color_num3 = "#B2826B"
var color_num4 = "#593523"
var color_num5 = "#593523"
var color_num6 = "#dac7b4"

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">&nbsp;'+Link_info+'</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: Arial; font-size: 8pt} ',
'.',  MenuID,  'link{COLOR: #B2826B; TEXT-DECORATION: none; CURSOR: Hand;} ',
'</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="', menuhues[V][2], '">',
  '<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, Sans serif" style="font-size:12px">', 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]+=20
                        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] > 20){
                clearTimeout(menutimer[V])
                menustatus[V]-=20
                        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)}
        }

