function menuOver(tag)
{
	tag.style.backgroundImage = 'url(images/menuoverbgr.png)';
	tag.style.cursor = 'hand';
}

function menuOut(tag)
{
	tag.style.backgroundImage = 'url(images/menuoutbgr.png)';
}

function gotoUrl(url)
{
	window.location.href = url;
}


// START Write small clickable image in the navbar below Google ad.

var totalGoogleLeftImages = 4;
var googleLeftImageArray = new Array();

function googleLeftImageObj(image, gamelink)
{
	this.image = image;
	this.gamelink = gamelink;
}

googleLeftImageArray[0]  = new googleLeftImageObj("images/google_left_img1.png", "game-projects.htm");
googleLeftImageArray[1]  = new googleLeftImageObj("images/google_left_img2.png", "game-projects.htm");
googleLeftImageArray[2]  = new googleLeftImageObj("images/google_left_img3.png", "space-invaders.htm");
googleLeftImageArray[3]  = new googleLeftImageObj("images/google_left_img4.png", "game-projects.htm");

function writeGoogleLeftImage()
{
	//randNr = 0;
	var minNr = -1;
	var maxNr = googleLeftImageArray.length - 1;
	
	randNr = minNr + Math.ceil(Math.random()*(maxNr-minNr));
	
	document.write("<a href='" + googleLeftImageArray[randNr].gamelink + "'>");
	document.write("<img src='" + googleLeftImageArray[randNr].image + "' border='0' />");
	document.write("</a>");
}

// END