    $(document).ready(function() { 
        $(".table").tablesorter({
            sortClassAsc: 'headerSortUp',       // Class name for ascending sorting action to header
            sortClassDesc: 'headerSortDown',    // Class name for descending sorting action to header
            headerClass: 'tableHeader',          // Class name for headers (th's)
        });
        
        $('a[@title]').leviTip();  
    });  
    
    tinyMCE.init({
        mode : "textareas",
        editor_selector : "mceEditor",
        theme : "advanced",
        theme_advanced_buttons1 : "bold,italic,underline,separator,strikethrough,justifyleft,justifycenter,justifyright,justifyfull,fontsizeselect,spellchecker,forecolor,bullist,numlist,undo,redo,link,unlink,ts_image,code,preview,removeformat", //ibrowser
        theme_advanced_buttons2 : "",
        theme_advanced_buttons3 : "",
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "left",
        theme_advanced_path_location : "bottom",
        extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
        plugins : "ts_advimage,spellchecker,paste,preview", //ibrowser
        theme_advanced_buttons3_add : "pastetext,pasteword,selectall",
        paste_create_paragraphs : false,
        paste_create_linebreaks : false,
        paste_use_dialog : true,
        paste_auto_cleanup_on_paste : true,
        paste_convert_middot_lists : false,
        cleanup : true,
        fix_content_duplication : true,
        doctype: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">",
        convert_newlines_to_brs: false,
        remove_linebreaks : true,
        force_p_newlines : false,
        force_br_newlines: true,            
        paste_unindented_list_class : "unindentedList",
        paste_convert_headers_to_strong : true,
        relative_urls : false, // Default value
        theme_advanced_resize_horizontal : false,
        theme_advanced_resizing : true,
        apply_source_formatting : true,
        width: 600,
        document_base_url : '/',
        spellchecker_languages : "+English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv",
        valid_elements : "" +
        "+a[id|rel|rev|charset|hreflang|dir|lang|tabindex|accesskey|type|name|href|target|title|onfocus|onblur|onclick|" + 
            "ondblclick|onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|onkeydown|onkeyup]," + 
        "-strong/-b[]," + 
        "-em/-i[]," + 
        "-strike[]," + 
        "-u[]," + 
        "#p[id|dir|align]," + 
        "-ol[]," + 
        "-ul[]," + 
        "-li[]," + 
         "br," + 
         "img[id|dir|lang|longdesc|usemap|src|onmouseover|onmouseout|border|alt=|title|hspace|vspace|width|height|align]," + 
        "-sub[style]," + 
        "-sup[style]," + 
        "-blockquote[dir]," + 
        "-table[width|height]," + 
        "-tr[id|lang|dir|rowspan|width|height|align|valign]," + 
         "tbody[id]," + 
         "thead[id]," + 
         "tfoot[id]," + 
        "-td[id|lang|dir|colspan|rowspan|width|height|align|valign]," + 
        "-th[id|lang|dir|colspan|rowspan|width|height|align|valign|scope]," + 
         "caption[id|lang|dir]," + 
        "-div[id|dir|align]," + 
        "-span[style|align]," + 
        "-pre[align]," + 
         "address[align]," + 
        "-h1[id|dir|align]," + 
        "-h2[id|dir|align]," + 
        "-h3[id|dir|align]," + 
        "-h4[id|dir|align]," + 
        "-h5[id|dir|align]," + 
        "-h6[id|dir|align]," + 
         "-font[face|size|style|id|dir|color]," + 
         "hr[]," + 
         "dd[id|title|dir|lang]," + 
         "dl[id|title|dir|lang]," + 
         "dt[id|title|dir|lang]"        
    });       


	tinyMCE.init({
	    mode : "textareas",
	    editor_selector : "mceEditorSimple",
	    theme : "advanced",
        theme_advanced_buttons1 : "bold,italic,underline,separator,formatselect,bullist,numlist,undo,redo,link,unlink,removeformat", //ibrowser
        theme_advanced_buttons2 : "",
        theme_advanced_buttons3 : "",
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "left",
        theme_advanced_path_location : "bottom",	    
        extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
        plugins : "link,unlink,paste,preview",
        theme_advanced_buttons3_add : "pastetext,pasteword,selectall",
        paste_create_paragraphs : false,
        paste_create_linebreaks : false,
        paste_use_dialog : true,
        paste_auto_cleanup_on_paste : true,
        paste_convert_middot_lists : false,
        cleanup : true,
        fix_content_duplication : true,
        doctype: "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">",
        convert_newlines_to_brs: false,
        remove_linebreaks : true,
        force_p_newlines : false,
        force_br_newlines: true,            
        paste_unindented_list_class : "unindentedList",
        paste_convert_headers_to_strong : true,
        relative_urls : false, // Default value
        theme_advanced_resize_horizontal : false,
        theme_advanced_resizing : true,
        apply_source_formatting : false,
        width: 350,
        document_base_url : '/',
        spellchecker_languages : "+English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv",
        valid_elements : "" +
        "+a[id|rel|rev|charset|hreflang|dir|lang|tabindex|accesskey|type|name|href|target|title|onfocus|onblur|onclick|" + 
            "ondblclick|onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|onkeydown|onkeyup]," + 
        "-strong/-b[]," + 
        "-em/-i[]," + 
        "-strike[]," + 
        "-u[]," + 
        "#p[id|dir|align]," + 
        "-ol[]," + 
        "-ul[]," + 
        "-li[]," + 
         "br," + 
         "img[id|dir|lang|longdesc|usemap|src|onmouseover|onmouseout|border|alt=|title|hspace|vspace|width|height|align]," + 
        "-sub[style]," + 
        "-sup[style]," + 
        "-blockquote[dir]," + 
        "-table[width|height]," + 
        "-tr[id|lang|dir|rowspan|width|height|align|valign]," + 
         "tbody[id]," + 
         "thead[id]," + 
         "tfoot[id]," + 
        "-td[id|lang|dir|colspan|rowspan|width|height|align|valign]," + 
        "-th[id|lang|dir|colspan|rowspan|width|height|align|valign|scope]," + 
         "caption[id|lang|dir]," + 
        "-div[id|dir|align]," + 
        "-span[style|align]," + 
        "-pre[align]," + 
         "address[align]," + 
        "-h1[id|dir|align]," + 
        "-h2[id|dir|align]," + 
        "-h3[id|dir|align]," + 
        "-h4[id|dir|align]," + 
        "-h5[id|dir|align]," + 
        "-h6[id|dir|align]," + 
         "-font[face|size|style|id|dir|color]," + 
         "hr[]," + 
         "dd[id|title|dir|lang]," + 
         "dl[id|title|dir|lang]," + 
         "dt[id|title|dir|lang]"        
	});

    /*
    {
        sortClassAsc: 'headerSortUp',       // Class name for ascending sorting action to header
        sortClassDesc: 'headerSortDown',    // Class name for descending sorting action to header
        headerClass: 'header',          // Class name for headers (th's)
        stripingRowClass: ['even','odd'],   // Class names for striping supplyed as a array.
        highlightClass: 'highlightTable',
        stripeRowsOnStartUp: true       // Strip rows on tableSorter init.
    }    
    */
