function Draw_menu()
{
document.write("<p align=\"center\" style=\"margin-bottom:0; padding-top:0;\"><img src=\"graphics/cloggys.png\" width=\"668\" height=\"69\"></p>");
document.write("<div id='navcontainer'>")
document.write("<ul id='navlist'>")
document.write("<li><a href='index.html'>HOME</a></li>")
document.write("<li><a href='d3dfunc.html'>D3DFUNC</a></li>")
document.write("<li><a href='snippets.html'>SNIPPETS</a></li>")
document.write("<li><a href='models.html'>MODELS</a></li>")
document.write("<li><a href='textures.html'>TEXTURES</a></li>")
document.write("<li><a href='links.html'>LINKS</a></li>")
document.write("</ul>")
document.write("</div>")
/*
document.write("<p align=\"center\" style=\"margin-top:4; padding-top:0; margin-bottom:0;\" align=\"center\">");
document.write("<a href=\"index.html\" OnMouseOut=\"na_restore_img_src('Home', 'document')\" OnMouseOver=\"na_change_img_src('Home', 'document', 'graphics/homeon.png', true);\"><img src=\"graphics/homeoff.png\" width=\"96\" height=\"16\" border=\"0\" name=\"Home\"></a>&nbsp");
document.write("<a href=\"d3dfunc.html\" OnMouseOut=\"na_restore_img_src('d3dfunc', 'document')\" OnMouseOver=\"na_change_img_src('d3dfunc', 'document', 'graphics/d3don.png', true);\"><img src=\"graphics/d3doff.png\" width=\"96\" height=\"16\" border=\"0\" name=\"d3dfunc\"></a>&nbsp");
document.write("<a href=\"snippets.html\" OnMouseOut=\"na_restore_img_src('CodeSnippets', 'document')\" OnMouseOver=\"na_change_img_src('CodeSnippets', 'document', 'graphics/cson.png', true);\"><img src=\"graphics/csoff.png\" width=\"96\" height=\"16\" border=\"0\" name=\"CodeSnippets\"></a>&nbsp");
document.write("<a href=\"models.html\" OnMouseOut=\"na_restore_img_src('Models', 'document')\" OnMouseOver=\"na_change_img_src('Models', 'document', 'graphics/modelson.png', true);\"><img src=\"graphics/modelsoff.png\" width=\"96\" height=\"16\" border=\"0\" name=\"Models\"></a>&nbsp");
document.write("<a href=\"textures.html\" OnMouseOut=\"na_restore_img_src('textures', 'document')\" OnMouseOver=\"na_change_img_src('textures', 'document', 'graphics/textureson.png', true);\"><img src=\"graphics/texturesoff.png\" width=\"96\" height=\"16\" border=\"0\" name=\"textures\"></a>&nbsp");			
document.write("<a href=\"links.html\" OnMouseOut=\"na_restore_img_src('image1', 'document')\" OnMouseOver=\"na_change_img_src('image1', 'document', 'graphics/linkson.png', true);\"><img src=\"graphics/linksoff.png\" width=\"96\" height=\"16\" border=\"0\" name=\"image1\"></a>&nbsp<br></p>");
*/
}

function na_preload_img()
{ 
  var img_list = na_preload_img.arguments;
  if (document.preloadlist == null) 
    document.preloadlist = new Array();
  var top = document.preloadlist.length;
  for (var i=0; i < img_list.length; i++) {
    document.preloadlist[top+i] = new Image;
    document.preloadlist[top+i].src = img_list[i+1];
  } 
}

function na_change_img_src(name, nsdoc, rpath, preload)
{ 
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img) {
    img.altsrc = img.src;
    img.src    = rpath;
  } 
}

function na_restore_img_src(name, nsdoc)
{
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img && img.altsrc) {
    img.src    = img.altsrc;
    img.altsrc = null;
  } 
}
function togglevis(obj) {
    var browser=navigator.appName;
    var dispmode='';
    if ( browser == 'Microsoft Internet Explorer' ) {
        dispmode='';
    }
    else {
        dispmode='table';
    }
	var el = document.getElementById(obj);
	if ( el.style.display != 'none' ) {
		el.style.display = 'none';
	}
	else {
		el.style.display = dispmode;
	}
}
