tinyMCE.init({
    theme : "advanced",
    mode : "textareas",
    theme_advanced_toolbar_location : "top",
    theme_advanced_buttons1 : "bold,italic,underline,strikethrough,forecolor,separator,"
    + "justifyleft,justifycenter,justifyright,justifyfull,formatselect,"
    + "bullist,numlist,outdent,indent",
    theme_advanced_buttons2 : "link,unlink,anchor,image,separator,"
    +"undo,redo,cleanup,code,separator,sub,sup,charmap",
    theme_advanced_buttons3 : "",
    file_browser_callback : 'fileBrowserCallBack'
});
/*function myFileBrowser (field_name, url, type, win) {

    // alert("Field_Name: " + field_name + "\nURL: " + url + "\nType: " + type + "\nWin: " + win); // debug/testing

    /* If you work with sessions in PHP and your client doesn't accept cookies you might need to carry
       the session name and session ID in the request string (can look like this: "?PHPSESSID=88p0n70s9dsknra96qhuk6etm5").
       These lines of code extract the necessary parameters and add them back to the filebrowser URL again. 

    var cmsURL = window.location.toString();    // script URL - use an absolute path!
    var regex = /^(.*\/)[^\./]+\.[^\./]/;
    var match = regex.exec(cmsURL);
    var baseurl = match[1];
    baseurl += "fileSelector.php?type="+type;
    tinyMCE.activeEditor.windowManager.open({
        file : baseurl,
        title : 'File Browser',
        width : 420,  // Your dimensions may differ - toy around with them!
        height : 400,
        resizable : "yes",
        close_previous : "no"
    }, {
        window : win,
        input : field_name
    });
    return false;
}*/


