// JavaScript Document

function navOver( which )
{
	if( which.src.substring( ( which.src.length - 3 ) , ( which.src.length ) ) == "gif" )
		which.src = "/images/" + which.parentNode.id + "-over.gif";
	else if( which.src.substring( ( which.src.length - 3 ) , ( which.src.length ) ) == "png" )
		which.src = "/images/" + which.parentNode.id + "-hover.png";
}

function navOut( which )
{
	which.src = "/images/" + which.parentNode.id + "-link." + which.src.substring( ( which.src.length - 3 ) , ( which.src.length ) );
}

function showMusic()
{
	document.getElementById( 'musicContent' ).style.display = "block";
	window.location.href = "/#music";
}

//pre-cache images

var musicImg = new Image();
musicImg.src = "/images/music-over.gif";
var writingsImg = new Image();
writingsImg.src = "/images/writings-over.gif";
var showsImg = new Image();
showsImg.src = "/images/shows-over.gif";
var newsImg = new Image();
newsImg.src = "/images/news-over.gif";
var bioImg = new Image();
bioImg.src = "/images/bio-over.gif";
var contactImg = new Image();
contactImg.src = "/images/contact-over.gif";