function initBubble()
{
	if (!document.getElementsByTagName)
	{
		return;
	}
	var anchor = document.getElementById("homelink");
	if (anchor)
	{
		anchor.onmouseover = function () {showBubble(1); return false;}
		anchor.onmouseout = function () {hideBubble(); return false;}
	}
	var anchor = document.getElementById("navSpidey");
	if (anchor)
	{
		anchor.onmouseover = function () {showBubble(2); return false;}
		anchor.onmouseout = function () {hideBubble(); return false;}
	}
	var anchor = document.getElementById("navGallery");
	if (anchor)
	{
		anchor.onmouseover = function () {showBubble(3); return false;}
		anchor.onmouseout = function () {hideBubble(); return false;}
	}
	var anchor = document.getElementById("navHellCrew");
	if (anchor)
	{
		anchor.onmouseover = function () {showBubble(4); return false;}
		anchor.onmouseout = function () {hideBubble(); return false;}
	}
	var anchor = document.getElementById("navKissArt");
	if (anchor)
	{
		anchor.onmouseover = function () {showBubble(5); return false;}
		anchor.onmouseout = function () {hideBubble(); return false;}
	}
	var anchor = document.getElementById("navNetSurfer");
	if (anchor)
	{
		anchor.onmouseover = function () {showBubble(6); return false;}
		anchor.onmouseout = function () {hideBubble(); return false;}
	}
	var anchor = document.getElementById("navTrueBrit");
	if (anchor)
	{
		anchor.onmouseover = function () {showBubble(7); return false;}
		anchor.onmouseout = function () {hideBubble(); return false;}
	}
	var anchor = document.getElementById("artforsale");
	if (anchor)
	{
		anchor.onmouseover = function () {showBubble(8); return false;}
		anchor.onmouseout = function () {hideBubble(); return false;}
	}
	var anchor = document.getElementById("commissions");
	if (anchor)
	{
		anchor.onmouseover = function () {showBubble(9); return false;}
		anchor.onmouseout = function () {hideBubble(); return false;}
	}
	var anchor = document.getElementById("bio");
	if (anchor)
	{
		anchor.onmouseover = function () {showBubble(10); return false;}
		anchor.onmouseout = function () {hideBubble(); return false;}
	}
	var anchor = document.getElementById("email");
	if (anchor)
	{
		anchor.onmouseover = function () {showBubble(11); return false;}
		anchor.onmouseout = function () {hideBubble(); return false;}
	}
	var anchor = document.getElementById("links");
	if (anchor)
	{
		anchor.onmouseover = function () {showBubble(12); return false;}
		anchor.onmouseout = function () {hideBubble(); return false;}
	}
}

function showBubble(step)
{
	var offset=(182*step)+step;
//	alert (offset);
	var logo = document.getElementById("divLogo");
	if (logo)
		logo.style.backgroundPosition="0px -"+offset+"px";
}
function hideBubble()
{
	var logo = document.getElementById("divLogo");
	if (logo)
		logo.style.backgroundPosition='0px 0px';
}
//
// addLoadEvent()
// Adds event to window.onload without overwriting currently assigned onload functions.
// Function found at Simon Willison's weblog - http://simon.incutio.com/
//
function addLoadEvent(func)
{	
	var oldonload = window.onload;
	if (typeof window.onload != 'function')
	{
    	window.onload = func;
	}
	else
	{
		window.onload = function(){
		oldonload();
		func();
		}
	}
}

addLoadEvent(initBubble);	// run initLightbox onLoad

