// JavaScript Document


var newWindow;
//url supplied from flash
function fLinks(x) {
	
	
//popping up a new window... and re-using/bring to front if already active
	if (!newWindow || newWindow.closed) {
			newWindow = window.open(x,"subwind");
		} else {
		//window is already open, so bring it to the front
			newWindow.location.href = x;
			newWindow.focus();
		}
}

function get_objType(objName)
{
	if (document.getElementById)
		var x = document.getElementById(objName);
	else if (document.all)
		var x = document.all(objName);
	else return;
	return x;
}
function swapImg(objName, imgName)
{	
	var que = get_objType(objName);
	if (que != null)
	{
        que.src = "assets/images/" + imgName;
	}
}
