// JavaScript Document
var contentClassName = "content";
var contentFontSize = 10;

function adjustFontSize(direction)
	{
		var objContent = document.getElementById("main_content");
		var currentFontSize = contentFontSize;

		switch (direction)
		{
			case "smaller":
			{
				if (currentFontSize > 7)
				{
				currentFontSize = parseInt(currentFontSize) - 1;
				objContent.style.fontSize = currentFontSize + "pt";
				contentFontSize = currentFontSize;
				}
				break;
			}
			case "larger":
			{
				if (currentFontSize < 24)
				{
				currentFontSize = parseInt(currentFontSize) + 1;
				objContent.style.fontSize = currentFontSize + "pt";
				contentFontSize = currentFontSize;
				}
				break;
			}
		}

	}
	


function swapImage(id,status)
	{
		objImage = document.getElementById(id);

		switch (status)
		{
			case "on":
			{
				if (id == "print")
				{
					if (current_mode == "normal")
					{
						objImage.src = "images/tool_print_highlight.gif";
					} else
					{
						objImage.src = "images/tool_return_highlight.gif";
					}	
				} else
				{
					objImage.src="images/tool_" + id + "_highlight.gif";
				}
				break;
			}
			case "off":
			{
				if (id == "print")
				{
					if (current_mode == "normal")
					{
						objImage.src = "images/tool_print.gif";
					} else
					{
						objImage.src = "images/tool_return.gif";
					}	
				} else
				{
					objImage.src="images/tool_" + id + ".gif";
				}
				break;
			}
		}
	}

	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
