/**
 * @author nd
 */

var Content = Base.extend({

	activeSubMenu: '',

	options: {},

	initialize: function(element, options){
		this.element = element;
		this.setOptions(options);

		// fetch necessary DOM-Object.
		this.getDomObjects();

		// Add the onclick effect to the Menu and Submenu
		this.addEventOnClick( this.content );

		// Add the onsubmit effect to all forms
		this.addFormEvents( $ES('form', 'body') );

		this.contentIdent();
		
		this.setActiveBrand();

	},

	getDomObjects: function(){
		this.content = $$( '#'+ par.contentId + ' a', '#'+ par.rootlineId + ' a' );
	}
});

Content.implement(new Events());
Content.implement(new Options());
Content.implement(new Chain());