		// TinyMCE
		tinyMCE.init({
			content_css : "css/custom_content.css",
			mode : "exact",
			elements: "contents,moar",
			theme : "advanced",   //(n.b. no trailing comma, this will be critical as you experiment later)
			
			// Theme options
			theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,fontselect,fontsizeselect,|,cut,copy,paste,",
			theme_advanced_buttons2 : "search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,image,cleanup,code,|,forecolor,backcolor,|,link,unlink,",
			theme_advanced_buttons3 : "",
			theme_advanced_toolbar_location : "top",
			theme_advanced_toolbar_align : "left",
			theme_advanced_statusbar : false,
			theme_advanced_resizing : false,
		});

		// Fix column height
		function setEqualHeight(columns)  
			 {  
			 var tallestcolumn = 0;  
			 columns.each(  
			 function()  
			 {  
			 currentHeight = $(this).height();  
			 if(currentHeight > tallestcolumn)  
			 {  
			 tallestcolumn  = currentHeight;  
			 }  
			 }  
			 );  
			 columns.height(tallestcolumn);  
			 }  
			$(document).ready(function() {  
			 setEqualHeight($("#wrapper  > div"));  
			});	

		// Dropdown menu
		var timeout    = 500;
		var closetimer = 0;
		var ddmenuitem = 0;

		function jsddm_open()
			{  jsddm_canceltimer();
			   jsddm_close();
			   ddmenuitem = $(this).find('ul').css('visibility', 'visible');}

		function jsddm_close()
			{  if(ddmenuitem) ddmenuitem.css('visibility', 'hidden');}

		function jsddm_timer()
			{  closetimer = window.setTimeout(jsddm_close, timeout);}

		function jsddm_canceltimer()
			{  if(closetimer)
			   {  window.clearTimeout(closetimer);
				  closetimer = null;}}

			$(document).ready(function()
			{  $('#jsddm > li').bind('mouseover', jsddm_open)
			   $('#jsddm > li').bind('mouseout',  jsddm_timer)});

			//document.onclick = jsddm_close;
			
		// Tooltips
		$(document).ready(function($){
		    tiper();
		}) 
		
		// Sortable tables
		$(document).ready(function() 
		{ 
			$("#roster").tablesorter({
			sortList: [[0,1], [1,0]],
		 }); 
		} 
		); 
		
		// Remove vent status footer
		$(function(){
		$("#server_status_table div:last-child").css("display","none")
		})

	
