// =============================
// thecore:design copyright 2009
// Componente: Core Content
// Version: 0.9.8
// Created: 27-08-09
// =============================
var editor;

$(document).ready(function() {

// Variablen ======================================================================================================
var cIsEdit = false;  // Variable ist TRUE wenn ein Element gerade bearbeitet wird
var core_base_path = $('.core_store_base_url').attr('title');
var core_plugin_path = core_base_path+'core_base/js/core/plugins/';

// Plugins laden ============================================================================

$.lazy({src: core_plugin_path+'core.authorisation.js', name: 'core_authorisation',dependencies: {
	js: [core_plugin_path+'core.overlay.js']
}});
$.lazy({src: core_plugin_path+'core.slideshow.js', name: 'core_slideshow'});
$.lazy({src: core_plugin_path+'core.interface.js', name: 'core_interface'});
$.lazy({src: core_plugin_path+'core.sortable.js', name: 'core_sortable'});
$.lazy({src: core_plugin_path+'core.tip.js', name: 'core_tip'});

// Init-Funktionen ==========================================================================
// Prüft die Authorisierung
$('body').core_authorisation({action:'authorisate'});

// Weist dem Login- und Logout-Button seinen Event zu
$('#core_login').live('click', function() {	$('body').core_authorisation({action:'login'}); });
$('#core_logout').live('click', function() { $('body').core_authorisation({action:'logout'}); });

});
