/* ====================================================================== */
/* ======       <a href="#" onmouseover="mOver(this);"></a>          ================== */
/* ====================================================================== */

var gOpenBlock = '';

function mOver(aObj, newImg){
	imgObj = aObj.getElementsByTagName('img');
	
	if(newImg == undefined){
		newImg = imgObj[0].src.replace("_off.","_on.");
	}	
	imgObj[0].src = newImg;
	
	//aObj.onmouseout = function()
	//{
	//	imgObj[0].src = imgObj[0].src.replace("_on.","_off.");
	//}
}

function mOverInput(aObj, newImg){
	//imgObj = aObj.getElementsByTagName('input');
	
	aObj.src = newImg;
	
	//aObj.onmouseout = function()
	//{
	//	imgObj[0].src = imgObj[0].src.replace("_on.","_off.");
	//}
}

toggleRandomPlayerBlock = function(){
	var randomNumber=Math.floor(Math.random()*3)+1;
	togglePlayerBlock(randomNumber);
}
togglePlayerBlock = function(blockID){
	if (!gOpenBlock) gOpenBlock = $('playerBlock1');
	if (gOpenBlock) gOpenBlock.hide();
	var elem = $('playerBlock' + blockID);
	elem.show();
	gOpenBlock = elem;
}