(function ( mw, $ ) {
	window.toggleVisibilityE = function ( _levelId, _otherId, _linkId, _type ) {
		var thisLevel = document.getElementById( _levelId ),
			otherLevel = document.getElementById( _otherId ),
			linkLevel = document.getElementById( _linkId );

		if ( thisLevel.style.display === 'none' ) {
			thisLevel.style.display = _type;
			otherLevel.style.display = 'none';
			linkLevel.style.display = 'inline';
		} else {
			thisLevel.style.display = 'none';
			otherLevel.style.display = 'inline';
			linkLevel.style.display = 'none';
		}
	};

	window.showUserInfo = function ( sourceVar, targetId ) {
		$( '#' + targetId ).html( mw.config.get( sourceVar ) );
	};
}( mediaWiki, jQuery ) );
