function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { 
	obj=obj.style; 
	v=(v=='show')?'visible':(v='hide')?'hidden':v; 
	}
    obj.visibility=v; 
	obj.top=object1.style.pixelTop +15 ;
	obj.zIndex=10;
	}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}



//configure below variable for menu width, position on page
var menuwidth=110
var offsetleft=0
var offsettop=0

var ns4=document.layers?1:0
var ie4=document.all?1:0
var ns6=document.getElementById&&!document.all?1:0

function makeStatic() {
if (ie4) {object1.style.pixelTop=document.body.scrollTop+offsettop;
	
}

else if (ns6) {document.getElementById("object1").style.top=window.pageYOffset+offsettop}

else if (ns4) {eval(document.object1.top=eval(window.pageYOffset+offsettop));}

	setTimeout("makeStatic()",0);
}

if (ie4||ns6) {

	//document.write('<span ALIGN="CENTER" ID="object1" STYLE="Position:absolute; Top:0; Left:'+offsetleft+'; Z-Index:5;background-color:black;"><TABLE BORDER="1" width="'+menuwidth+'" CELLPADDING="0" CELLSPACING="0" BORDERCOLOR="black" bgcolor="white">')
document.write('<span ALIGN="CENTER" ID="object1" STYLE="Position:absolute; Top:0; Left:'+offsetleft+'; Z-Index:5;background-color:black;"><TABLE BORDER="0" width="100%" CELLPADDING="0" CELLSPACING="0" BORDERCOLOR="black" bgcolor="white">')

}
else if (ns4){ document.write('<LAYER top="20" name="object1" left="'+offsetleft+'" BGCOLOR=white><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="1"><TR><TD><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" width="'+menuwidth+'">')}

if (ie4||ns6||ns4)

document.write('<TR><TD BGCOLOR="#FFFFFF" BORDERCOLORDARK="#FFFFFF" BORDERCOLORLIGHT="#FFFFFF"><P ALIGN=CENTER><img src="images/header.gif" width="752" height="25" align="left" usemap="#Map2" border="0" vspace="0" hspace="0"></TD></TR>')


var menui = new Array();
var menul = new Array();

//configure below for menu items. Extend list as desired

//menui[0]="Dynamic Drive";
//menui[1]="What\'s New?";

//menul[0]="http://dynamicdrive.com";
//menul[1]="http://dynamicdrive.com/new.htm";

for (i=0;i<=menui.length-1;i++)
if (ie4||ns6) {document.write('<TR><TD BORDERCOLOR= "white"ONCLICK="location= \''+menul[i]+'\'"onmouseover="className= \'menuh\'"onMouseout="className=\'menu\'"><CENTER><FONT>'+menui[i]+'</FONT></TD></TR>')}
else if (ns4){document.write('<TR><TD BGCOLOR="white"><ILAYER><LAYER width= "'+menuwidth+'"onmouseover="bgColor= \'yellow\'"onmouseout="bgColor=\'white\'"><CENTER><A HREF="'+menul[i]+'" class=menulinks>'+menui[i]+'</A></CENTER></LAYER></ILAYER></TD></TR>')}

if (ie4||ns6) {document.write('</TABLE></span>')}
else if (ns4){document.write('</TABLE></TD></TR></TABLE></LAYER>')}

function menu3(){
if (ns6||ie4||ns4)
	makeStatic()
}

window.onload=menu3