var ie6 = (navigator.userAgent.toLowerCase().indexOf("msie 6") != -1) ? true : false;
var mac = (navigator.userAgent.toLowerCase().indexOf("mac") != -1) ? true : false;
var pho = (navigator.userAgent.toLowerCase().indexOf("phoenix") != -1) ? true : false;
var ie = (navigator.userAgent.toLowerCase().indexOf("msie") != -1) ? true : false;
var ie55 = (ie && (navigator.userAgent.toLowerCase().indexOf("5.5") != -1)) ? true : false;
var moz = (navigator.appName == "Mozilla" || (navigator.appName == "Netscape" && navigator.appVersion.indexOf("4.") == -1)) ? true : false;	

/**
 * Protection against submittal of the form from both the timer and user click.
 */
var submittedForm = false;
function submitQuestionForm()
{
	if (false == submittedForm)
	{
		submittedForm = true;
		document.getElementById('questionForm').submit();
	}
}

function partyOver(argTagId,argIntAnswer)
{
	argTagId.className="partyActive";
	if(argIntAnswer)
	{
		document.getElementById('answer' + argIntAnswer).className="btnAnswerOver";
	}
}

function partyOut(argTagId,argIntAnswer)
{
	argTagId.className="party";
	if(argIntAnswer)
	{
		document.getElementById('answer' + argIntAnswer).className="btnAnswer";
	}
}

function closeExperts()
{
	document.getElementById('ExpertsSaying').className="cntExpertsSayingHidden";
}

function openExperts()
{
	document.getElementById('ExpertsSaying').className="cntExpertsSaying";
}

function colorNormal(argId,argColor)
{
	if(ie)
	{
		document.getElementById(argId).style.color=argColor;
	}
}

function colorHover(argId,argColor)
{
	if(ie)
	{
		document.getElementById(argId).style.color=argColor;
	}
}

function leftboxActive(argId)
{
	document.getElementById('box' + argId).className="leftBoxActiveIndicator leftBoxActive";
}

function leftboxInactive(argId)
{
	document.getElementById('box' + argId).className="leftBoxActiveIndicator leftBoxInactive";
}



