function init() {
	$('#menuSecondary ul.navigation li:last').css({'border-right':'0px'});
	$('#menu ul.navigation li:last').css({'border-right':'0px'});
	
	$(".zend_form legend").each(function() {
        var newText = '<span>'+$(this).text()+'</span>';
        $(this).html(newText);            
    });

}

/**
 * Shows UI dialog alert window with the given message.
 * 
 * @param msg $msg 
 * @access public
 * @return void
 */
function sysShowAlert(msg, actionJS, dialogTitle) {

    // insert dialog element used as holder for cms messages
    if ($('#sys-message').size() == 0) {
        $('body').append('<div id="sys-message" title="System message"></div>\n');
    }

    // destroy any existing dialog first, we don't do this on close event so that we can keep nice closing effects
    $('#sys-message').dialog('destroy');
    
   
    // show status message 
    $('#sys-message').html(msg);
    $('#sys-message').dialog({
        autoOpen: false,
        closeOnEscape: false,
        show: 'blind',
        hide: 'blind',
        modal: true,
        buttons: {
            Ok: function() {
                $(this).dialog('close');
                
                // execute optional javascript code after OK has been pressed
                if (actionJS) {
                    eval(actionJS);
                }
            }
        }
    });
    if (dialogTitle) {
    	$('#sys-message').dialog('option', 'title', dialogTitle);
    }
    $('#sys-message').dialog('open');
}