if( typeof jQuery === 'function' )
{
    /** @todo passar esta função para o sistema */
	$( window ).load( function(){
        $( 'button,input[type=submit],input[type=button]' ).button().css( 'padding', '5px 10px' );
		//if( sPathName.match( /^(\/?paginas)/ ) )
        //{
            try{
                $( '#editar_pagina' ).click( function(){
                    $( this ).remove();
                    $( 'form' ).slideUp( 'slow', function(){
                        $( '#texto' ).remove();
                        $( '#content' ).ckeditor( function(){
                            $( '.cke_button_save,.cke_button_print' ).remove();
                            $( '.cke_button_checkspell' ).parent().parent().parent().remove();
                        } );
                        $( '#enviar' ).css( 'display', '' );
                        $( 'form' ).effect( 'highlight' );
                    } );
                } );
            }catch( erro ){}
        //}
	} );
}
