﻿$(document).ready(function () {
    /* Required for the FavoriteControl */
    $(".Favorite").click(function (e) {
        e.preventDefault();
        var url = this.href;
        var title = $(".Favorite").attr("customername");

        if ($.browser.mozilla == true) {
            window.sidebar.addPanel(title, url, '');
            return false;
        } else if ($.browser.msie == true) {
            window.external.AddFavorite(url, title);
            return false;
        } else {
            alert('Druk CTRL + D om deze website toe te voegen tot uw favorieten.');
        }
    });
});

tinyMCE.init({
    // General options
    mode: "specific_textareas",
    theme: "advanced", 
    editor_selector: "tinyMce",
    language : "nl" ,
    plugins: "autolink,lists,style,table,advimage,advlink,inlinepopups,preview,searchreplace,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,wordcount,advlist",

    // Theme options
    theme_advanced_buttons1: "fontselect,fontsizeselect,bold,italic,underline,strikethrough,sub,sup,|,forecolor,backcolor,|,bullist,numlist,|,outdent,indent,|,justifyleft,justifycenter,justifyright,justifyfull,formatselect",
    theme_advanced_buttons2: "hr,|,link,unlink,|,blockquote,|,charmap,nonbreaking,|,tablecontrols",
    theme_advanced_buttons3: "cut,copy,paste,pastetext,pasteword,|,search,replace,|,undo,redo,|,visualaid,code,fullscreen",
    theme_advanced_buttons4: "",
    theme_advanced_toolbar_location: "top",
    theme_advanced_toolbar_align: "left",
    theme_advanced_statusbar_location: "bottom",
    theme_advanced_resizing: true,

    // Example content CSS (should be your site CSS)
    content_css: "css/content.css"

});


