var mybrow = navigator.appName;
if (mybrow == "Microsoft Internet Explorer"){
document.write("<link type='text/css' rel='stylesheet' href='includes/styles_ie.css'>");
} else {
document.write("<link type='text/css' rel='stylesheet' href='includes/styles.css'>");
}

var leftnav = [
				["Home","index.html"],
				["About","about.html"],
				["Office & Insurance","office.html"],
				["New Patients","newpatients.html"],
				["Praise","praise.html"],
				["Awards","awards.html"],
				["Contact","contact.html"]
				];
				
				

var filepath = window.location.pathname;	
var splitfilepath = filepath.split("/");
var filename = splitfilepath[splitfilepath.length -1];
var splitfilename = filename.split(".");
var subfilename = splitfilename[0];
var splitsubfilename = subfilename.split("_");
var subx = splitsubfilename[0];
var currentnum = "1";
var notitle = 0;

function writeBottom(){
document.write("Dr. George N. Liberis, MD <span style='font-family: helvetica; font-size: 18px;'>&copy;<\/span> 2011 &bull; 180 Phillips Hill Rd, Suite 2B, New City, NY 10956 &bull; (845) 354-8304 &bull; Website by <a href='http://www.spencerlloydweb.com' target='_blank' class='bottomlinks'>Spencer Lloyd<\/a>");
}

function writeNav(){
document.write("<table width='120' cellspacing='0' cellpadding='0' border='0' style='margin-top: 14px' style='text-align: left;'>");

	for (x = 0; x < leftnav.length; x++){
	document.write("<tr>");
	document.write("<td valign='top' class='arrowcell'>");
		if (((filename == "") && (notitle == 0)) || (leftnav[x][1] == filename)){
		document.write("<img src='images/arrow.png'>");
		notitle++;
		} else {
		document.write("<br>");
		}
	document.write("<\/td>");
	document.write("<td class='navcells'><a href='" + leftnav[x][1] + "' class='navlinks'>" + leftnav[x][0] + "<\/a><\/td>");
	document.write("<\/tr>");
	}
document.write("<\/table>");
}
