var clicked=""
var gtype=".gif"
var selstate="_over"
if (typeof(loc)=="undefined" || loc==""){
	var loc=""
	if (document.body){
		var tt = document.body.innerHTML.toLowerCase();
		var last = tt.indexOf("rams_navigation.js\"");
		if (last>0){
			var first = tt.lastIndexOf("\"", last);
			if (first>0 && first<last) loc = document.body.innerHTML.substr(first+1,last-first-1);
		}
	}
}

document.write("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr>");
document.write("<td><img src=\""+loc+"rams_navigation_top.gif\" alt=\"\" width=\"154\" height=\"10\"></td>");
tr(false);
writeButton(loc+"","index.html","rams_navigation_b1",154,20,"","",0);
writeButton(loc+"","varsity_baseball.html","rams_navigation_b2",154,20,"","",0);
writeButton(loc+"","varsity_roster.html","rams_navigation_b3",154,20,"Varsity Roster","",0);
writeButton(loc+"","jv_baseball.html","rams_navigation_b4",154,20,"","",0);
writeButton(loc+"","jv1_roster.html","rams_navigation_b5",154,20,"JV 1 Roster","",0);
writeButton(loc+"","freshman_baseball.html","rams_navigation_b6",154,20,"","",0);
writeButton(loc+"","jv2_roster.html","rams_navigation_b7",154,20,"JV 2 Roster","",0);
writeButton(loc+"","8th_grade.html ","rams_navigation_b8",154,20,"7th & 8th Grade","",0);
writeButton(loc+"","clarke_history.html","rams_navigation_b9",154,20,"Rams History","",0);
writeButton(loc+"","coaches_corner.html","rams_navigation_b10",154,20,"Coaches' Corner","",0);
writeButton(loc+"","winter_workout.html","rams_navigation_b11",154,20,"Winter Workout","",0);
writeButton(loc+"","contact.html","rams_navigation_b12",154,20,"Contact Information","",0);
writeButton(loc+"","directions2.html","rams_navigation_b13",154,20,"Away Field Directions","",0);
writeButton(loc+"","directions.html","rams_navigation_b14",154,20,"Directions to Clarke","",0);
writeButton(loc+"","links.html","rams_navigation_b16",154,20,"Useful Links","",0);
tr(true);
document.write("<td><img src=\""+loc+"rams_navigation_bottom.gif\" alt=\"\" width=\"154\" height=\"10\"></td>");
document.write("</tr></table>")
loc="";

function tr(b){if (b) document.write("<tr>");else document.write("</tr>");}

function turn_over(name) {
	if (document.images != null && clicked != name) {
		document[name].src = document[name+"_over"].src;
	}
}

function turn_off(name) {
	if (document.images != null && clicked != name) {
		document[name].src = document[name+"_off"].src;
	}
}

function reg(gname,name)
{
if (document.images)
	{
	document[name+"_off"] = new Image();
	document[name+"_off"].src = loc+gname+gtype;
	document[name+"_over"] = new Image();
	document[name+"_over"].src = loc+gname+"_over"+gtype;
	}
}

function evs(name){ return " onmouseover=\"turn_over('"+ name + "')\" onmouseout=\"turn_off('"+ name + "')\""}

function writeButton(urld, url, name, w, h, alt, target, hsp)
{
	gname = name;
	while(typeof(document[name])!="undefined") name += "x";
	reg(gname, name);
	tr(true);
	document.write("<td>");
	if (alt != "") alt = " alt=\"" + alt + "\"";
	if (target != "") target = " target=\"" + target + "\"";
	if (w > 0) w = " width="+w; else w = "";
	if (h > 0) h = " height="+h; else h = "";	
	if (url != "") url = " href=\"" + urld + url + "\"";
	
	document.write("<a " + url + evs(name) + target + ">");	
	
	if (hsp == -1) hsp =" align=right";
	else if (hsp > 0) hsp = " hspace="+hsp;
	else hsp = "";
	
	document.write("<img src=\""+loc+gname+gtype+"\" name=\"" + name + "\"" + w + h + alt + hsp + " border=0></a></td>");
	tr(false);
}

