$(document).ready(function () {
        $("#intern-menu").wijmenu({
            trigger: ".wijmo-wijmenu-item",
            triggerEvent: "click",
            showDelay: 1
        });
        
        $(":input[type='text'], :input[type='password']").wijtextbox();
        $(":input[type='submit']").button();
        
        $("#sidebar-overview").wijaccordion({
            header: "h3"
        });
        
        $('.icon-button').hover(
			function(){ $(this).addClass('ui-state-hover'); }, 
			function(){ $(this).removeClass('ui-state-hover'); }
		);
        
        $('textarea.tinymce').tinymce({
			// Location of TinyMCE script
			script_url : '/plugins/tinymce/tiny_mce.js',

			// General options
			theme : "advanced",
            skin : "o2k7",
            language : "de",
			plugins : "autolink,table,inlinepopups,media,fullscreen",
            width: "525px",

			// Theme options
			theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,bullist,numlist,|,justifyleft,justifycenter,justifyright,justifyfull,|,link,unlink,|,outdent,indent,|,forecolor,|,undo,redo,|,code,|,fullscreen,",
			theme_advanced_buttons2 : "formatselect,tablecontrols,|,image,charmap,media",
            theme_advanced_buttons3 : "",
			theme_advanced_toolbar_location : "top",
			theme_advanced_toolbar_align : "left",
			theme_advanced_statusbar_location : "bottom",
			theme_advanced_resizing : false,

			// Example content CSS (should be your site CSS)
			content_css : "/style-editor.css"
		});
        
        $("a.gallery").fancybox();
    });

