// JavaScript Document

tinyMCE.init({
	mode : "exact",
	elements : "article_1",
	theme : "advanced",
	skin : "o2k7",
	skin_variant : "black",
	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_advanced_buttons1 : "bold,italic,underline,separator,strikethrough,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,bullist,numlist,separator,outdent,indent,separator,formatselect",
	theme_advanced_buttons2 : "undo,redo,separator,cut,copy,paste,pastetext,pasteword,separator,link,unlink,separator,sub,sup,charmap,hr,anchor,separator,removeformat,cleanup,code,fullscreen",
	theme_advanced_buttons3 : "",
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "left",
	tab_focus : ':prev,:next'
});

/* Tabs */

var active = 1;

function ToggleReiter(id)
{
	//alert("id: "+id+" / active: "+active);
    if(active == null)
    {
        active = 1;
    }
	if(id == active)
	{
		return;
	}

    document.getElementById("box_"+active).style.display = "none";
    document.getElementById("nav_"+active).className="";

	document.getElementById("box_"+id).style.display = "";
	document.getElementById("nav_"+id).className="ontab";
	
	active = id;
//	alert("id: "+id+" / active: "+active);
}

/* Bookmark */

function bookmark()
{
	var a="Bookmark: ";
	var b=document.title;
	var c=document.URL;
 	var n=navigator.userAgent.indexOf("Opera",1);if(n!=-1){a+='<kbd>STRG-T</kbd>'};
	 if(document.all&&n ==-1)
	{a+="<a href=\"javascript:window.external.addfavorite('"+c+"','"+b+"')\">Klick hier</a>"}
	 else{if(navigator.appName=="Netscape"){a+='<kbd>STRG-D</kbd>'}}
	document.writeln(a);
}

