function rollImage(objID, imgPath, txt) {
	document.getElementById(objID).src = imgPath;
	document.getElementById("toolBarTopTitle").innerHTML = txt;
}

function buildTools() {
	var toolArray = new Array();
	var clickArray = new Array();
	toolArray[0] = "<span class=\"toolBarLink\" onclick=\"@Click\" onmouseover=\"rollImage('toolBarBookmark','http://attorneys.phillipsmurrah.com/Tools/images/t-bookmark2.gif','Bookmark ')\" onMouseOut=\"rollImage('toolBarBookmark','http://attorneys.phillipsmurrah.com/Tools/images/t-bookmark1.gif', 'TOOLS ')\"><img src=\"http://attorneys.phillipsmurrah.com/Tools/images/t-bookmark1.gif\" id=\"toolBarBookmark\" border=\"0\" alt=\"Bookmark this page\"></span>";
	clickArray[0] = "window.external.AddFavorite(location.href, document.title)";
	toolArray[1] = "<span class=\"toolBarLink\" onclick=\"@Click\" onmouseover=\"rollImage('toolBarPrint','http://attorneys.phillipsmurrah.com/Tools/images/t-print2.gif','Print ')\" onMouseOut=\"rollImage('toolBarPrint','http://attorneys.phillipsmurrah.com/Tools/images/t-print1.gif', 'TOOLS ')\"><img src=\"http://attorneys.phillipsmurrah.com/Tools/images/t-print1.gif\" id=\"toolBarPrint\" border=\"0\" alt=\"Print this page\"></span>";
	clickArray[1] = "window.print()";
	toolArray[2] = "<span class=\"toolBarLink\" onclick=\"window.open('http://attorneys.phillipsmurrah.com/Tools/Email.aspx?title=@Click&location=' + location.href,'_blank','width=426,height=575')\" onmouseover=\"rollImage('toolBarEmail','http://attorneys.phillipsmurrah.com/Tools/images/t-email2.gif','Email ')\" onMouseOut=\"rollImage('toolBarEmail','http://attorneys.phillipsmurrah.com/Tools/images/t-email1.gif', 'TOOLS ')\"><img src=\"http://attorneys.phillipsmurrah.com/Tools/images/t-email1.gif\" id=\"toolBarEmail\" border=\"0\" alt=\"Email this page\"></span>";
	clickArray[2] = "";
	//toolArray[3] = "<span class=\"toolBarLink\" onclick=\"@Click\" onmouseover=\"rollImage('toolBarContact','http://attorneys.phillipsmurrah.com/Tools/images/t-contact2.gif','Contact: ')\" onMouseOut=\"rollImage('toolBarContact','http://attorneys.phillipsmurrah.com/Tools/images/t-contact1.gif', 'TOOLS ')\"><img src=\"http://attorneys.phillipsmurrah.com/Tools/images/t-contact1.gif\" id=\"toolBarContact\" border=\"0\" alt=\"Contact Us\"></span>";
	//clickArray[3] = "location.href='contactus.aspx'";
	var toolBarElements = "";
	for(i=0; i < 3; i++) {
		if(arguments[i]) {
			if(arguments[i + 3] != "") {
				toolBarElements += toolArray[i].replace(/@Click/, arguments[i + 3]);
			} else {
				toolBarElements += toolArray[i].replace(/@Click/, clickArray[i]);
			}
		}
	}
	document.getElementById("toolBarTopOptions").innerHTML = toolBarElements;
}