<!--

// top menu:
var arrMenuTop=new Array(
"Home","home.html","home",
"Community Mediation","mediation_services.html","medser",
"In-Court Mediation","in_court.html","med",
"Small Claims Advisor","small_claims.html","links",
"Landlord Tenant/Neighbor Counseling","counseling.html","pamp"
);


// right submenus:

// HOME:
var arrSubmenu_home=new Array();

// COMMUNITY MEDIATION:
var arrSubmenu_medser=new Array(
"About mediation and conciliation","mediation_services.html","abo",
"Types of conflicts we can resolve","types_cases.html","types",
"Why use mediation or conciliation?","why_mediation.html","why",
"Opening a case","opening_a_case.html","case",
"The mediation process","mediation_process.html","proc",
"Testimonials","Testimonials.html","test",
"FAQ","FAQ.html","faq",
"Role of the mediator","mediators.html","role",
"About the mediators","about_mediators.html","abomed",
"Mediation links and resources","links.html","mlr"

);

// IN-COURT MEDIATION:
var arrSubmenu_med=new Array(
"In-Court Mediation for Small Claims and Evictions","in_court.html","bpam"
);

// SMALL CLAIMS ADVISOR:
var arrSubmenu_links=new Array(
"Small Claims Advisory Services","small_claims.html","smcl",
"Email the Advisor","email_sc.html","emsc",
"Telephone Consultations","tele_sc.html","tesc",
"Office Hours","hours_sc.html","ofsc",
"Small Claims Clinics","clinics_sc.html","clsc"
);

// LLT/NEIGHBOR COUNSELING:
var arrSubmenu_pamp=new Array(
"Landlord Tenant and Mobilehome Counseling Services","counseling.html","abopamp",
"Typical Questions","contact.html","con",
"Counseling for Neighbor Disputes","neighbor.html","nbr",
"How We Can Help","help.html","help"
);


// ######################### DO NOT EDIT BELOW #########################


if (typeof(menuID)=="undefined") menuID="";
if (typeof(subID)=="undefined") subID="";

// Displaying the top menu:
function WriteTopMenu(){
	var str="";
	var cssclass="";
	
	str+='<font class="menu"><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
	for (var i=0; i<arrMenuTop.length; i+=3){
		j=parseInt(i/3);
		cssclass="navtop";
		if (menuID==arrMenuTop[i+2]) cssclass="navtopact";
		str+='<a href="' + arrMenuTop[i+1] + '" class="' + cssclass + '">' + arrMenuTop[i] + '</a>';
		if (j!=parseInt(arrMenuTop.length/3)-1) str+='&nbsp;&nbsp;|&nbsp;&nbsp;';
	}
	str+='</b></font>';
	document.write(str);
}

// Displaying the right submenu:
function WriteSubmenu(){
	if (menuID!="") {
		var subtitle="";
		for (var i=0; i<arrMenuTop.length; i+=3){
			if (menuID==arrMenuTop[i+2]) {subtitle=arrMenuTop[i];break;}
		}
		
		var arr=eval("arrSubmenu_" + menuID)
		var str="";
		var cssclass="";
		
		str+='<font class="sp"><font class="menu">';
		str+='<font class="section">' + subtitle + "</font><br />";
		str+='<img src="images/bullet_red.jpg" width="185" height="1" border="0" alt="" /><br />';
		for (var i=0; i<arr.length; i+=3){
			j=parseInt(i/3);
			cssclass="navtop";
			if (subID==arr[i+2]) cssclass="navtopact";
			str+='<a href="' + arr[i+1] + '" class="' + cssclass + '">' + arr[i] + '</a><br />';
		}
		str+='</font></font>';
		document.write(str);
	}
}

//-->