/*
***********************************************************
	whichLink()

	- function that opens subLinks
***********************************************************
*/

	function whichLink(link) {
		if(link == "index") {
			this.location.href = link + ".html";
		}
		else {
			this.location.href = link + ".htm";
		}
	}

/*
************************************************************
	end whichLink()
************************************************************
*/

/*
***********************************************************
	about(), email()

	- functions that display appropriate information
***********************************************************
*/

	function about(whatPage) {
		var printShop = '<a href="prints.htm" class="left">';
		var aboutUs = '<a href="about.htm" class="left">';
		var contact = '<a href="contact.htm" class="left">';
		
//		document.write(printShop + 'Print Shop</a> | ' + aboutUs + 'About the Artist</a> | ' + contact + 'Contact</a>');
		document.write(aboutUs + 'About the Artist</a> | ' + contact + 'Contact</a>');
	}

	function email() {
		email = '<a href="mailto:dani@daniweiner.com" class="left">';

		document.write(email + 'dani@daniweiner.com' + '</a>');
	}

/*
************************************************************
	end about(), email()
************************************************************
*/

/*
***********************************************************
	dispTurtle()

	- function that displays diving turtle info
***********************************************************
*/

	function dispTurtle() {
		var email = '<a href="http://www.divingturtledesign.com" class="left">';
		var bold = '<span class="bold">';

		var endAnchor = '</a>';
		var endSpan = '</span>';

		document.write('Site Design by ' + email + bold + 'Diving Turtle' + endSpan + endAnchor);
	}

/*
************************************************************
	end dispTurtle()
************************************************************
*/

/*
***********************************************************
	dispCopyright()

	- function that displays copyright info
***********************************************************
*/

	function dispCopyright() {
		document.write('<span class="light">Copyright © 2004 Daniel Weiner</span>');
	}

/*
************************************************************
	end dispCopyright()
************************************************************
*/


/*
***********************************************************
	OpenWin()

	- function for opening new window
	- size is determined at function call
	- centers window
***********************************************************
*/

	function OpenWin(whatPage, whatName, width, height, scroll, toolbar, menubar, location, resize) {
		var newWin = null;

		leftPos = (screen.width) ? (screen.width - width) / 2 : 0;
		topPos = (screen.height) ? (screen.height - height) / 2 : 0;

		settings = 'height=' + height + ',width=' + width + ',top=' + topPos + ',left=' + leftPos + ',scrollbars=' + scroll + ',toolbar=' + toolbar + ',menubar=' + menubar + ',location=' + location + ',resizeable=' + resize;

		newWin = window.open(whatPage, whatName, settings);
	}

/*
************************************************************
	end OpenWin()
************************************************************
*/



/*
***********************************************************
	prevPage()

	- function that loads previous page
***********************************************************
*/

	function prevPage() {
		window.history.back();
	}
/*
************************************************************
	end prevPage()
************************************************************
*/
