var RecaptchaOptions = {
    theme : 'white'
};

function rollOver(id, state)
{
	switch(state)
	{
		case "on":
			window.document.getElementById(id).src = window.document.getElementById(id).src.replace("_off", "_on");
			break;
			
		case "off":
			window.document.getElementById(id).src = window.document.getElementById(id).src.replace("_on", "_off");
			break;
						
		case "pageOn":
			window.document.getElementById(id).src = window.document.getElementById(id).src.replace("_off", "_pageOn");
			break;
	}
}

		
onArray = new Array();
fireCount = 0;
function funcFireCount()
{
	fireCount++;
	return fireCount;
}
		
function subNavOff()
{
	for(var c in onArray)
	{
		if(c != "ajaxBundle")
		{
			if(onArray[c]['state'] == true)
			{
				$(c).css('display', 'none');						
				onArray[c]['state'] = false;
			}
		}
	}
}
	
function subNavStateMachine(id, hKey, hStart)
{
	if(funcFireCount() == 1)
	{
		for(var c in onArray)
		{
			if(c != "ajaxBundle")
			{
				if(onArray[c]['hKey'] == hKey && onArray[c]['state'] == true)
				{
					$(c).css('display', 'none');						
					onArray[c]['state'] = false;
				}
			}
		}
	
		if($('#navHierarchy_'+id).length)
		{
			onArray['#navHierarchy_'+id] = new Array();
			onArray['#navHierarchy_'+id]['state'] = true;
			onArray['#navHierarchy_'+id]['hKey'] = hKey;
			
			$('#navHierarchy_'+id).css('display', 'block');
		}
	}
	if(hKey == hStart) { fireCount = 0; }
}
		
