// Implmenets custom tiny mce callbacks for this cms

function hsscms_FileBrowser(field_name, url, type, win) {
    var cmsURL = "/cms/tinyMCE_handler.php?siteID="+17+"&fcid=0&jsclass=fph_tinyMCE";
	if (cmsURL.indexOf("?") < 0) {
        cmsURL = cmsURL + "?type=" + type;
    }
    else {
        cmsURL = cmsURL + "&type=" + type;
    }

    tinyMCE.activeEditor.windowManager.open({
        file : cmsURL,
        title : 'My File Browser',
        width : 620,  
        height : 600,
        resizable : "yes",
        inline : "yes",  // This parameter only has an effect if you use the inlinepopups plugin!
        close_previous : "no"
    }, {
        window : win,
        input : field_name
    });
    return false;
  }
