function tinyMCE_init(){
  tinyMCE.init({
  	mode: "textareas",
  	theme: "advanced",
  	editor_selector: "mceEditor",
  	skin: "o2k7",
  	plugins: plugins,
  	theme_advanced_buttons1: theme_advanced_buttons1,
  	theme_advanced_buttons2: theme_advanced_buttons2,
  	theme_advanced_buttons3: theme_advanced_buttons3,
  	theme_advanced_buttons4: "",
  	theme_advanced_toolbar_location: "top",
  	theme_advanced_toolbar_align: "left",
  	theme_advanced_statusbar_location: "bottom",
  	theme_advanced_resizing: true,
  	content_css: "/stylesheets/public.css",
  	theme_advanced_styles: "green_style=green_style, brown_style=brown_style, yellow_style=yellow_style, grey_style=grey_style",
  	// Drop lists for link/image/media/template dialogs
		//template_external_list_url: "/javascripts/tinymce/examples/lists/template_list.js",
		//external_link_list_url: "/javascripts/tinymce/examples/lists/link_list.js",
		external_image_list_url: "/assets.js",
		//media_external_list_url: "/javascripts/tinymce/examples/lists/media_list.js",
		// Replace values for the template plugin
		template_replace_values: {
			username: "Some User",
			staffid: "991234"
		}
  });
}

Effect.BackgroundScroll = Class.create();
Object.extend(Object.extend(Effect.BackgroundScroll.prototype, Effect.Base.prototype), {
  initialize: function(element) {
    this.element = $(element);
    if(!this.element.currentBackgroundPosition)
      this.element.currentBackgroundPosition = arguments[2];//[0, 0];
    this.offsets = arguments[1];
    this.start(arguments[3] || {});
  },
  setup: function() {
    this.current = this.element.currentBackgroundPosition;
    this.delta = [
      this.offsets[0] - this.current[0],
      this.offsets[1] - this.current[1]];
  },
  update: function(position) {
    this.element.currentBackgroundPosition = [
      Math.round(this.current[0] + (this.delta[0]*position)),
      Math.round(this.current[1] + (this.delta[1]*position)) ];
    this.element.style.backgroundPosition = 
      this.element.currentBackgroundPosition[0] + 'px ' +
      this.element.currentBackgroundPosition[1] + 'px';
  }
});
