// Scripts for Zulu Leprechauns web site

var backgroundColor = "#45842a";
var backgroundColorHighlight = "#60A040";

function OnMouseEventZulus( over, name )
{
	text = 'Zulu Leprechauns. Serving up Afro-Appalachian Psychedelia since 1995.';
	if ( over )
	{
		switch ( name )
		{
			case 'john':
				text = 'John Shaw sings and plays bass.';
				break;
			case 'jim':
				text = 'Jim Schwellenbach sings and plays dulcimer & banjo.';
				break;
			case 'annegret':
				text = 'Annegret Baier sings and plays percussion, violin and the eponymous kalimba.';
				break;
			case 'jeff':
				text = 'Jeff Howe plays percussion and sings in the car.';
				break;
		}
	}
	
	document.getElementById( 'members-bio' ).innerHTML = text;

	switch ( name )
	{
		case 'john':
		case 'jim':
		case 'annegret':
		case 'jeff':
			if ( over )
			{
				document.getElementById( 'zulu' + name ).style.backgroundColor = backgroundColorHighlight;
			}
			else
			{
				document.getElementById( 'zulu' + name ).style.backgroundColor = backgroundColor;
			}
			break;
			
		case 'zulus':
			break;
			
		default:
			break;
	}
}

function OnMouseEventPhoto( over, id )
{
	if ( over )
	{
		document.getElementById( 'zulu-bigpic' ).innerHTML = '<img src="' + 'Pics/' + id + '.JPG"  class="photo" />';
		document.getElementById( id ).style.backgroundColor = backgroundColorHighlight;
	}
	else
	{
		document.getElementById( 'zulu-bigpic' ).innerHTML = '';
		document.getElementById( id ).style.backgroundColor = backgroundColor;
	}
	
}


// Boilerplate support for frame header
function InsertFrameHeader()
{
	document.write('<div id="header"><h1 id="banner">The Zulu Leprechauns Web Site<\/h1><\/div>' );
}

// insert boiler-plate navigation menu
function InsertNavMenu()
{
	document.write('<div id="site-navigation-main">' );
	document.write('<ul id="site-navigation">' );
	document.write('<li><a href="index.html" target="_top">Home<\/a><\/li>' );
	document.write('<li><a href="members.html" target="_top">About the Band<\/a><\/li>' );
	document.write('<li><a href="recordings.html" target="_top">Recordings<\/a><\/li>' );
	document.write('<li><a href="reviews.html" target="_top">Reviews<\/a><\/li>' );
	document.write('<li><a href="songlist.html" target="_top";>Songlist<\/a><\/li>' );
	document.write('<li><a href="venues.html" target="_top";>Venues<\/a><\/li>' );
	document.write('<li><a href="photos.html" target="_top";>Photos<\/a><\/li>' );
	document.write('<\/ul>' );
	document.write('</div>' );
}

// insert boiler-plate sidebar information
function InsertSideBar()
{
document.write('<div id="sidebar-column"><div id="sidebar">' );
document.write('<div id="small-logo"><p id="small-logo-text">Zulu Leprechauns Logo<\/p><\/div>' );
document.write('<h2>for bookings or CDs:</h2>' );
document.write('<div class="vcard" id="hcard-John-Shaw"><span class="fn">John Shaw<\/span><div class="tel">207-458-1462<\/div><a class="email" href="mailto:zululep@myfairpoint.net">Email John<\/a><\/div>' );
document.write('<div class="vcard" id="hcard-Gary-Canter"><span class="fn">Gary Canter<\/span><div class="tel">207-318-7289<\/div><a class="email" href="mailto:gcanter1@maine.rr.com">Email Gary<\/a><\/div>' );
document.write('<h2> on the web: </h2>' );
document.write('<div id="links"><ul id="nav-main"><li><a href="http://www.facebook.com/pages/Zulu-Leprechauns/125452838323" target="_top";>Facebook<\/a><\/li><li><a href="http://www.flickr.com/photos/47643702@N06" target="_top";>Flickr<\/a><\/li><li><a href="http://www.myspace.com/zululeprechauns" target="_top";>MySpace<\/a><\/li><\/ul><\/div>' );
//<!--					<li><a href="http://www.CDBaby.com/" target="_top";>CDBaby</a></li> -->
document.write('<\/div><\/div>' );
}


