/****************************************
|
| Translational Research Centre, CHRI
| Created by: Kevin Biskaborn
| Copyright 2009 ScriptReaction
| http://www.scriptreaction.com
|
****************************************/

var actionHandler_primaryNav = {
	elementPrefix: "nav_primary_option",
	ov: function ( numericId ){
		this.setElementClass( this.getElement( this.getAlphaIdFromNumeric( numericId ) ), "active" );
	},
	ou: function ( numericId ){
		this.setElementClass( this.getElement( this.getAlphaIdFromNumeric( numericId ) ), "" );
	},
	getAlphaIdFromNumeric: function ( id ){
		return String.fromCharCode( id + 64 ); //A=65
	},
	getElement: function ( id ){
		return document.getElementById( this.elementPrefix + id );
	},
	setElementClass: function ( element, classId ){
		element.className = classId;
	}
}
