// JavaScript Document
function onBtn (myBtn) {
	myBtn.style.cursor="pointer";
	myBtn.style.color = "#88a1bf";
	myBtn.style.backgroundColor = "black";
	return;
}

function offBtn (myBtn) {
	myBtn.style.color = "black";
	myBtn.style.backgroundColor = "#88a1bf";
}

function addToBookmarks() { 
//	var pageURL = document.URL;
	var pageURL = "http://www.jacquelinejules.com/Thornton";
/*	var baseName = "Law Offices of Justin Thornton - ";
	if (pageURL.indexOf("index")!=-1) {pageTitle = baseName + "Home";} 
	if (pageURL.indexOf("bio") != -1) {pageTitle = baseName + "Attorney Biography";}
	if (pageURL.indexOf("clients") != -1) {pageTitle = baseName + "Representative Clients";}
	if (pageURL.indexOf("publications") != -1) {pageTitle = baseName + "Publications";}
	if (pageURL.indexOf("speaking") != -1) {pageTitle = baseName + "Speaking Engagements";}
	if (pageURL.indexOf("directions") != -1) {pageTitle = baseName + "Directions";} */
	var pageTitle = "Law Offices of Justin Thornton";
	if (window.sidebar) { 
		window.sidebar.addPanel(pageTitle,pageURL,"") 
	} 
	
	else { 
	
		if (window.external) {
			window.external.addFavorite(pageURL,pageTitle);
		} else {
			alert("Sorry, your browser doesn't support this feature."); 
		}	
	}
}

function emailer() {
	var myUser = "jat";
	var myRealm ="thorntonlaw.com";
	var where = String.fromCharCode(64);
	var Microsoft = myUser + where + myRealm;
	var mySend = document.location.href = "mailto:" +Microsoft;
	return;
	}
	
function pageMark (pageId) {
	curPage = document.getElementById(pageId);
	curPage.style.color="#fff";
	headerPic = document.getElementById("jtpic");
	switch(pageId) {
		case "clients":
			headerPic.src = "images/" + pageId + "pic.jpg";
			headerPic.width="92";
			break;
		case "speaking":
			headerPic.src = "images/" + pageId + "pic.jpg";
			headerPic.width = "125";
			break;
		case "bio":
			headerPic.style.visibility="hidden";
			break;
		default:
			headerPic.src = "images/thornton photo.jpg";
			break;
	}
/*		if (pageId == "pubs"){
		headerPic.src = "images/thornton pubs pic.jpg";
	}
	if (pageId == "clients"){
		headerPic.src = "images/thornton clients pic.jpg";
		headerPic.width = "92";
	}
	if (pageId == "bio") {
		headerPic.style.visibility = "hidden";	
	}
	if (pageId == "speaking"){
		headerPic.width = "125";
		headerPic.src = "images/thornton photo2.jpg";
	}*/
	}
