
var prevClass = new String("");
var subbed = false;

function menu_mouse_over(obj) {
	if(!subbed) {
		prevClass = obj.className;
		obj.className = "menu_item_front_ovr";
	}
}

function menu_mouse_out(obj) {
	if(!subbed) {
		obj.className = prevClass;
	}
}

function menu_on_click(target) {
	if(!subbed) {
		window.location = target;
		subbed = true;
	}
}

function login_click() {
	if(!subbed) {
		subbed = true;
		killButtons();
		return true;
	}
	else
	{
		return false;
	}
}

function killButtons() {
	for(var i = 0; i < butArray.length; i++)
	{
		butObj = document.getElementById(butArray[i]);
		butObj.className = clsArray[i] + "_dead";
	}
}

function mouse_over(but) {
	if(!subbed) {
		butObj = document.getElementById(but);
		prevClass = butObj.className;
		butObj.className = prevClass + "_ovr";
	}
}

function mouseOver(but) {
	if(!subbed) {
		prevClass = but.className;
		but.className = prevClass + "_ovr";
	}
}

function mouse_out(but) {
	if(!subbed) {
		butObj = document.getElementById(but);
		butObj.className = prevClass;
	}
}

function mouseOut(but) {
	if(!subbed) {
		but.className = prevClass;
	}
}

/* show hide time line and desc */
function timeDesc(type, ident)
{
	document.getElementById("gametimeline" + ident).className = "gametimehide";
	document.getElementById("gametimedesc" + ident).className = "gametimeshow";
}

function timeLine(type, ident)
{
	document.getElementById("gametimedesc" + ident).className = "gametimehide";
	document.getElementById("gametimeline" + ident).className = "gametimeshow";
}

/* Standard submit button click */
function submitForm()
{
        if(!subbed)
        {
                subbed = true;
                killButtons();
                killLocalSelection();
                return true;
        }
        else
        {
                return false;
        }
}

function submitConditionalForm()
{
        if(!subbed)
        {
        	if(checkLocalCondition() == true)
        	{
                subbed = true;
                killButtons();
                killLocalSelection();
                return true;
             }
             else
             {
             	return false;
             }
        }
        else
        {
                return false;
        }

}

/* End */


