/**
 * This javascript is used to set the javascripts locally.
 * 
 * $Revision: 750 $ $Date: 2009-09-07 07:33:17 +0200 (lun., 07 sept. 2009) $
 * $Author: fhelly $
 * 
 * Copyright 2005-2007 Francois Helly <fhelly@bebop-design.net>
 * 
 * See the enclosed file COPYING for license information (GPL). If you did not
 * receive this file, see http://www.fsf.org/copyleft/gpl.html.
 * 
 * @version $Revision: 750 $
 * @package Cefael
 */

var uiload = function() {
    uinit();
    cinit();
    minit();
    winit('main');
    if (pisallowed() == true && window.name != 'main') {
        bbLoader.addCss('/resources/themes/cefael/css/library/popup.css', 'screen');
        var m = $('head').down('ul.util', 0);
        if (m != null) {
            Element.replace(m, '<ul class="util"><li><a id="close" title="' + ui.I18N.popups.close + '" href="javascript:window.close();" class="icon"></a></li></ul>');
        }
    } else {
        tinit();
    }
    tabset();
    /* Start page tracker for this page */
    //ga();
};
if (typeof (bbLoader) != 'undefined') {
    Event.observe(document, 'dom:loaded', uiload, false);
    Event.observe(window, 'unload', pclose);
}
