var back_image = "/img/003366.gif";  // background image for site (color behind left navbar...)
var top_px = "95"; //number of pixels from top of window left nav begins
var left_px = "5"; //number of pixels from left side of window left nav begins
var mouse_over_color = "#cccc66"; //Color for left nav links to turn during mouseover (text or hex)


// For the following section, leave blank if you do not know
var entity_name = ""; // Name of entity
var entity_street = ""; // Entity address
var entity_street2 =""; // Entity address 2nd line
var entity_city = ""; // Entity city
var entity_state = ""; // Entity state
var entity_zip = ""; // Entity zip code
var entity_phone = ""; // Entity phone number
var entity_fax = ""; // Entity fax number
var entity_email = ""; // entity email address


//  Don't touch these 2 lines
var menublock=new Array() // no need to change this
var plus_i=0 // no need to change this

// No Submenus
menublock[0]="Arial,Helvetica,sans-serif;"+ 			// font mainlink
			 "2;"+				// fontsize mainlink
			 "FFFFFF;"+			// fontcolor mainlink
             "1;"+				// fontweight mainlink, 1 means bold, 0 means normal
             ";;;;"+ 		    // leave it empty
			 "Juvenile Justice Center Home|/crimjust/juvjus/home.html|;"   // text and URL of mainlink

menublock[1]="Arial,Helvetica,sans-serif;"+ 			// font mainlink
			 "2;"+				// fontsize mainlink
			 "FFFFFF;"+			// fontcolor mainlink
             "1;"+				// fontweight mainlink, 1 means bold, 0 means normal
			 "Arial,Helvetica,sans-serif;"+ 
             "2;"+
			 "FFFFFF;"+
			 "0;"+		
			 "Juvenile Justice Committee|#|;"+   // text and URL of mainlink
			 "Committee Home|/crimjust/juvjus/committee.html|;"+
			 "ABA JJ Policies|/crimjust/juvjus/jjpolicies.html|;"+
			 "Criminal Justice Section|/crimjust/home.html|;"+
			 "Livingston Hall Award|/crimjust/juvjus/livingstonhall.html|;"
			 
menublock[2]="Arial,Helvetica,sans-serif;"+ 			// font mainlink
			 "2;"+				// fontsize mainlink
			 "FFFFFF;"+			// fontcolor mainlink
             "1;"+				// fontweight mainlink, 1 means bold, 0 means normal
			 "Arial,Helvetica,sans-serif;"+ 
             "2;"+
			 "FFFFFF;"+
			 "0;"+		   
			 "National Juvenile Defender Center|#|;"+   // text and URL of mainlink
			 "NJDC Home|/crimjust/juvjus/jdc.html|;"+
			 "Regional Defender Centers|/crimjust/juvjus/jdc/regions.html|;"+
			 "Juvenile Indigent Defense Assessments|/crimjust/juvjus/assessments.html|;"

menublock[3]="Arial,Helvetica,sans-serif;"+ 			// font mainlink
			 "2;"+				// fontsize mainlink
			 "FFFFFF;"+			// fontcolor mainlink
             "1;"+				// fontweight mainlink, 1 means bold, 0 means normal
			 "Arial,Helvetica,sans-serif;"+ 
             "2;"+
			 "FFFFFF;"+
			 "0;"+		   
			 "Juvenile Death Penalty|#|;"+   // text and URL of mainlink
			 "JDP Home|/crimjust/juvjus/juvdp.html|;"+
			 "JDP Cases|/crimjust/juvjus/juvcases.html|;"+
			 "Resources & Information|/crimjust/juvjus/resources.html|;"+
			 "Articles & Publications|/crimjust/juvjus/arts_pubs.html|;"+
			 "JDP Resource Kit|http://justice.policy.net/proactive/newsroom/release.vtml?id=35841|;"
			 
// No Submenus
menublock[4]="Arial,Helvetica,sans-serif;"+ 			// font mainlink
			 "2;"+				// fontsize mainlink
			 "FFFFFF;"+			// fontcolor mainlink
             "1;"+				// fontweight mainlink, 1 means bold, 0 means normal
             ";;;;"+ 		    // leave it empty
			 "MacArthur Juvenile Court Training Curriculum|/crimjust/juvjus/macarthur.html|;"   // text and URL of mainlinkNational Juvenile Defender Center"

// No Submenus
menublock[5]="Arial,Helvetica,sans-serif;"+ 			// font mainlink
			 "2;"+				// fontsize mainlink
			 "FFFFFF;"+			// fontcolor mainlink
             "1;"+				// fontweight mainlink, 1 means bold, 0 means normal
             ";;;;"+ 		    // leave it empty	   
			 "<p>About Us|/crimjust/juvjus/aboutus.html|;"   // text and URL of mainlink
	 
// No Submenus
menublock[6]="Arial,Helvetica,sans-serif;"+ 			// font mainlink
			 "2;"+				// fontsize mainlink
			 "FFFFFF;"+			// fontcolor mainlink
             "1;"+				// fontweight mainlink, 1 means bold, 0 means normal
             ";;;;"+ 		    // leave it empty
			 "Publications|/crimjust/juvjus/pubs.html|;"   // text and URL of mainlink
         
// No Submenus
menublock[7]="Arial,Helvetica,sans-serif;"+ 			// font mainlink
 			 "2;"+				// fontsize mainlink
			 "FFFFFF;"+			// fontcolor mainlink
             "1;"+				// fontweight mainlink, 1 means bold, 0 means normal
             ";;;;"+ 		    // leave it empty	   
			 "Current Events|/crimjust/juvjus/jjnews.html|;"   // text and URL of mainlink

// No Submenus
menublock[8]="Arial,Helvetica,sans-serif;"+ 			// font mainlink
 			 "2;"+				// fontsize mainlink
			 "FFFFFF;"+			// fontcolor mainlink
             "1;"+				// fontweight mainlink, 1 means bold, 0 means normal
             ";;;;"+ 		    // leave it empty	  	   
			 "<p>Site Map|/crimjust/juvjus/sitemap.html|;"   // text and URL of mainlink
 

// No need to change anything below	 
//  **********************************************************************************
	 
	 
var menusplit
var urlsplit
var font_weight_main
var font_weight_sub
var font_weight_sub

var minusimg=new Image()
minusimg.src="/img/minus131.gif"

var plusimg=new Image()
plusimg.src="/img/plus131.gif"
			 
var showsubmenus=new Array()
for (i=0;i<=menublock.length-1;i++) {
	showsubmenus[i]=-1
}

var plusminusimg=new Array()
for (i=0;i<=menublock.length-1;i++) {
	plusminusimg[i]=plusimg.src
}

function openandclose(visi) {
	showsubmenus[visi]=(-1)*showsubmenus[visi]
    var menucontent=""
    if (showsubmenus[visi]==1) {plusminusimg[visi]=minusimg.src}
    if (showsubmenus[visi]==-1) {plusminusimg[visi]=plusimg.src}
    menucontent+="<table width=138>"
	for (i=0;i<=menublock.length-1;i++) {
		menusplit=menublock[i].split(";")
		urlsplit=menusplit[8].split("|")
		if (menusplit[3]==1) {font_weight_main="<b>"}
		if (menusplit[3]==0) {font_weight_main=""}
		if (menusplit[7]==1) {font_weight_sub="<b>"}
		if (menusplit[7]==0) {font_weight_sub=""} 
		menucontent+="<tr><td valign=top>"

        
       if (menusplit[9].length==0) {
            menucontent+="&nbsp;</td>"
            menucontent+="<td>"
            menucontent+=font_weight_main
            menucontent+="<a style='text-decoration:none' href="+urlsplit[1]+" target="+urlsplit[2]+">"
            menucontent+="<font onMouseOver=\"this.style.color = '" + mouse_over_color + "'\" onMouseOut=\"this.style.color = 'white'\" face="+menusplit[0]+" color="+menusplit[2]+" size="+menusplit[1]+">"
            menucontent+=urlsplit[0]
            menucontent+="</font></a></td></tr>"
            plus_i++ 
        }
        
        if (menusplit[9].length!=0) {
            var thismainmenu=i+plus_i
            menucontent+="<a style='text-decoration:none' href='javascript:openandclose("+i+")'>"
            menucontent+="<img src='"+plusminusimg[i]+"' border=0></a></td>"
            menucontent+="<td>"
            menucontent+=font_weight_main
            menucontent+="<a style='text-decoration:none' href='javascript:openandclose("+i+")'>"
            menucontent+="<font onMouseOver=\"this.style.color = '" + mouse_over_color + "'\" onMouseOut=\"this.style.color = 'white'\" face="+menusplit[0]+" color="+menusplit[2]+" size="+menusplit[1]+">"
            menucontent+=urlsplit[0]
            menucontent+="</font></a></td></tr>"
   
		    if (showsubmenus[i]==1) {
			    for (ii=9;ii<=menusplit.length-1;ii++) {
				    urlsplit=menusplit[ii].split("|")
                    menucontent+="<tr><td></td><td>"
    			    menucontent+=font_weight_sub
                    menucontent+="<a style='text-decoration:none' href="+urlsplit[1]+" target="+urlsplit[2]+">"
                    menucontent+="<font onMouseOver=\"this.style.color = '" + mouse_over_color + "'\" onMouseOut=\"this.style.color = 'white'\" face="+menusplit[4]+" color="+menusplit[6]+" size="+menusplit[5]+">"
                    menucontent+=urlsplit[0]
                    menucontent+="</font></a></td></tr>"
			    }
		    }
        }    
	}
    menucontent+="</table>"
	if (document.all) {
		menu2.innerHTML='<z>' + menucontent + '</z>'  
	}
	if (document.layers) {
		document.menu2.document.open()
		document.menu2.document.write(menucontent)
		document.menu2.document.close()
	}
	
	var isNS6 = (navigator.userAgent.indexOf("Gecko")    > 0) ? 1 : 0;
	
	if (isNS6)
	document.getElementById("menu2").innerHTML = menucontent;

 
	
}


