/* Tabs */

var active = '1';

function ToggleReiter(id)
{
//	alert("id: "+id+" / active: "+active);
	if(id == active)
	{
		return;
	}
	document.getElementById("box_"+id).style.display = "";
	document.getElementById("nav_"+id).className="ontab";
	
	if(active!=null)
	{
		document.getElementById("box_"+active).style.display = "none";
		document.getElementById("nav_"+active).className="";
	}
	active = id;
//	alert("id: "+id+" / active: "+active);
}

function MM_openBrWindow(theURL,winName,features) 
{ //v2.0
  window.open(theURL,winName,features);
}

tinyMCE.init({
mode : "textareas",
theme : "advanced",
editor_selector : "mceAdvanced",
plugins : "safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager,filemanager",

// Theme options
	theme_advanced_buttons1 : "bold,italic,underline,separator,strikethrough,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,bullist,numlist,separator,undo,redo,separator,link,unlink,separator,undo,redo,removeformat",
	theme_advanced_buttons2 : "fullscreen,code",
	theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_resizing : true

});
 
function toggleEditor(id) {
if (!tinyMCE.get(id))
tinyMCE.execCommand('mceAddControl', false, id);
else
tinyMCE.execCommand('mceRemoveControl', false, id);
}



