// chrisrail.ca Custom JS Functions


// Update Focused Form Class
var currentFormFocus = "";
function switchState(formItem)
{
	// Determine if element needs switching
	if(currentFormFocus != formItem)
	{
		// Switch ou the old 
		var formBlock = Element.removeClassName($(currentFormFocus), 'bullet_on');
		formBlock = Element.toggleClassName($(currentFormFocus), 'bullet');
		
		if($(formItem).hasClassName('bullet'))
		{
			var formBlock = Element.removeClassName($(formItem), 'bullet');
			formBlock = Element.toggleClassName($(formItem), 'bullet_on');
		}
		else
		{
			var formBlock = Element.removeClassName($(formItem), 'bullet_on');
			formBlock = Element.toggleClassName($(formItem), 'bullet');
		}
		// Update currentForm Focus
		currentFormFocus = formItem;
	}
}