

var leftnav = [
				["home","index.html"],
				["about nina","about.html"],
				["resum&#233;","resume.html"],
				["projects","projects.html"],
				["reviews","reviews.html"],
				["writing","writing.html"],
				["gallery","gallery.html"],
				["contact","contact.html"],
				["links","links.html"]
				];
				
				

var filepath = window.location.pathname;	
var splitfilepath = filepath.split("/");
var filename = splitfilepath[splitfilepath.length -1];

var currentnum = "1";
var notitle = 0;

function writeBottom(){
document.write("");
}

function writeNav(){
document.write("<table width='130' cellspacing='0' cellpadding='0' border='0'>");

	for (x = 0; x < leftnav.length; x++){
	document.write("<tr>");
	document.write("<td style='width: 12px'><\/td>");
	document.write("<td class='navlinks'><a href='" + leftnav[x][1] + "' class='navlinks'>" + leftnav[x][0] + "<\/a><\/td>");
	document.write("<td valign='top' class='arrowcell'>");
		if ((filename == "") && (notitle == 0)){
		document.title = "nina mehta - home";
		document.write("<img src='images/arrow.gif'>");
		notitle++;
		}
		if(leftnav[x][1] == filename){
		document.write("<img src='images/arrow.gif'>");
			if (leftnav[x][0] == "resum&#233;"){
			document.title = "nina mehta - resume"
			} else {
			document.title = "nina mehta - " + leftnav[x][0];
			}
		}
	document.write("<\/td>");
	document.write("<\/tr>");
	}
document.write("<\/table>");
}

var lrcolors = new Array("#E9E9A2","#FFFFCD");

function writePlays(){
var playrowcolor = 0;
document.write("<table width='720' cellpadding='0' cellspacing='0' border='0'>");
document.write("<tr><td class='restext'><b>Play<\/b><\/td><td class='restext'><b>Character<\/b><\/td><td class='restext'><b>Theater<\/b><\/td><\/tr>");
	for (playloop = 0; playloop < theplays.length; playloop++){
	if (playrowcolor == 2){
	playrowcolor = 0;
	}
	document.write("<tr style='background-color: " + lrcolors[playrowcolor] + "'>");
	document.write("<td class='restext'>" + theplays[playloop][0] + "<\/td>");
	document.write("<td class='restext'>" + theplays[playloop][1] + "<\/td>");
	document.write("<td class='restext'>" + theplays[playloop][2] + "<\/td>");
	document.write("<\/tr>");
	playrowcolor++;
	}
document.write("<\/table>");
}

function writeFilms(){
var filmrowcolor = 0;
document.write("<table width='720' cellpadding='0' cellspacing='0' border='0'>");
document.write("<tr><td class='restext'><b>Film<\/b><\/td><td class='restext'><b>Character<\/b><\/td><td class='restext'><b>Producers<\/b><\/td><\/tr>");
	for (filmloop = 0; filmloop < thefilms.length; filmloop++){
	if (filmrowcolor == 2){
	filmrowcolor = 0;
	}
	document.write("<tr style='background-color: " + lrcolors[filmrowcolor] + "'>");
	document.write("<td class='restext'>" + thefilms[filmloop][0] + "<\/td>");
	document.write("<td class='restext'>" + thefilms[filmloop][1] + "<\/td>");
	document.write("<td class='restext'>" + thefilms[filmloop][2] + "<\/td>");
	document.write("<\/tr>");
	filmrowcolor++;
	}
document.write("<\/table>");
}

function writeGal(whichgal){
var rownum = 0;
document.write("<table width='720' cellpadding='0' cellspacing='6' border='0'><tr>");
	for (galloop = 0; galloop < whichgal[0].length; galloop++){
		if (rownum == 6){
		rownum = 0;
		document.write("<\/tr><tr>");
		}
	document.write("<td><div onClick='window.open(\"" + whichgal[0][galloop][0] + ".html\",\"" + whichgal[0][galloop][0] + "\",\"width=" + whichgal[0][galloop][1] + ",height=" + whichgal[0][galloop][2] + ",toolbar=0,location=0,directories=0,status=0,menubar=0,resizeable=no,scrollbars=0\");' style='cursor: hand'><img src='images/gallery/" + whichgal[0][galloop][0] + "sm.jpg'><\/div><\/td>");
	rownum++;
	}
document.write("<\/tr><\/table>");
}

function changeImage(num){
var obj = document.getElementById('bigimg');
if (filename != "websites.html"){
obj.innerHTML = "<img src='images/" + imagedir + "/" + num + ".jpg' border='0'>";
} else {
	if (theurl[num -1] != "null"){
	obj.innerHTML = "<img src='images/" + imagedir + "/" + num + ".jpg' border='0'><br><center><div style='height: 10px'><\/div><a href='http://" + theurl[num -1] + "' target='_blank' class='websites'>http://" + theurl[num-1] + "<\/a><\/center>";
	} else {
	obj.innerHTML = "<img src='images/" + imagedir + "/" + num + ".jpg' border='0'>";
	}
}
}






