
function enlarge(img) {
	var imgWin				= window.open("orlykunst-images.html");
	imgWin.document.write("<img src=\"" + img + "\" alt=\"orlykunst.com\"/>");
}

function target(url) {
	window.open(url);	
}

function initializeToolbar(baseurl) {
	image_path				= baseurl+"/general/";
	HomeOn					= new Image();
	HomeOn.src				= image_path+"indexOn.gif";

	HomeOff				= new Image();
	HomeOff.src				= image_path+"index.gif";
	HomeOff.name				= "index";

	AboutOn				= new Image();
	AboutOn.src				= image_path+"aboutOn.gif";

	AboutOff				= new Image();
	AboutOff.src				= image_path+"about.gif";
	AboutOff.name				= "about";

	PortfolioOn				= new Image();
	PortfolioOn.src			= image_path+"portfolioOn.gif";

	PortfolioOff				= new Image();
	PortfolioOff.src			= image_path+"portfolio.gif";
	PortfolioOff.name			= "portfolio";

	ContactOn				= new Image();
	ContactOn.src				= image_path+"contactOn.gif";

	ContactOff				= new Image();
	ContactOff.src			= image_path+"contact.gif";
	ContactOff.name			= "contact";

	/* for the contact form send button */
	SendOn					= new Image();
	SendOn.src				= image_path+"sendOn.gif";

	SendOff				= new Image();
	SendOff.src				= image_path+"send.gif";
}

function pagehighlight() {
	switch( currentPage )
	{
		case "index":
			highlight("Home");
		break;
		case "about":
			highlight("About");
		break;
		case "portfolio":
			highlight("Portfolio");
		break;
		case "contact":
			highlight("Contact");
		break;
	};
}

function highlight(imgName){
	imgOn					= eval(imgName + "On.src");
	document.getElementById(imgName).src = imgOn;
}

function turnoff(imgName) {
	if ( currentPage == (eval(imgName + "Off.name")) )
		return;
	imgOff					= eval(imgName + "Off.src");
	document.getElementById(imgName).src = imgOff;
}
