var y = YAHOO;
y.namespace("sharq");
var s = y.sharq;

var initialize = function(){
	$ = y.util.Dom.get
	$$ = y.util.Selector.query
	s.notifications = new s.notificationsWidget();
	s.notifications.display_errors();
	y.util.Event.onDOMReady(function(event){
		new y.widget.Logger.enableBrowserConsole();
		new s.rfalse('.rfalse');
		new s.contacts('ul li.users');
		new s.invite('invite').append();
		new s.login().append();
		new s.messages('form.ajax_form').append();
		new s.languages('.languages').append();
	});
}

new y.util.YUILoader({
    'require': ['dom','event','yahoo','yahoo-dom-event','selector','animation','container','logger','connection','json','yuiloader','element','paginator','datasource','datatable'],
    'base': config['MEDIA_URL']+'js/yui/build/',
    'loadOptional': true,
    'filter': "MIN",
    'onSuccess': initialize
}).insert();