function saveThisPage() {
		url = this.location.href;
		document.execCommand("saveAs", true,"sekretaria");
		this.location.href = url;
	}


function sek_popUp(URL, WIDTH, HEIGHT) {
	Wnd=window.open(URL,"a","toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=" + WIDTH + ",height=" + HEIGHT + ",alwaysRaised=1,dependent=1,directories=no,personalbar=0");

	if (Wnd.opener==null)
	Wnd.opener = window;
	Wnd.opener.name = "mainaponame";
	Wnd.focus();
}

function hide_container(id) {
	container = document.getElementById(id);
	container.style.display = "none";
	container.style.visibility = "hidden";
}

/* ====================================================================================================
Special: Schneeballschlacht
==================================================================================================== */
/*	============================================================
	Auf Flash-Plugin prüfen
	========================================================= */
function checkForPlugin(MM_contentVersion){
	var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
	if(plugin){
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
		for(var i = 0; i < words.length; ++i){
			if(isNaN(parseInt(words[i]))){
				continue;
			} // if
			var MM_PluginVersion = words[i];
		} // for
		return (MM_PluginVersion >= MM_contentVersion);

	} else if(navigator.userAgent && navigator.userAgent.indexOf("MSIE") >=0 && (navigator.appVersion.indexOf("Win") != -1)){
		document.write("<scr" + "ipt language=\"VBScript\"\>\n"); //FS hide this from IE4.5 Mac by splitting the tag
		document.write("on error resume next\n");
		document.write("MM_FlashCanPlay = (IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.\" & MM_contentVersion)))\n");
		document.write("</scr" + "ipt\> \n");
	} // if
} // function


function fenster(url, name, breite, hoehe, scrolling, links, oben){
	var screenWidth = screen.availWidth - 10;
	var screenHeight = screen.availHeight - 30;

	var breite = '640';
	var hoehe = hoehe + 80 ;

	if (breite == "_max") breite = screenWidth;
	if (hoehe == "_max") hoehe = screenHeight;

	if (!links) links = Math.round((screen.availWidth - breite) / 2);
	if (!oben) oben = Math.round((screen.availHeight - hoehe) / 2);

	window.open(url, name, 'width='+breite+',height='+hoehe+'resizeable=yes,scrollbars=' + scrolling + ',top='+oben+',left='+links);
}


function click (e) {
  if (!e)
    e = window.event;
   	tar=(!e.target?e.srcElement:e.target);

  	if ((e.type && e.type == "contextmenu") || (e.button && e.button == 2) || (e.which && e.which == 3)) {
		if (tar.className == "nodownload" || tar.tagName == "IMG") {
    		if (e.type && e.type != "contextmenu") {
    			if (window.opera) {
	      			window.alert("Die Bilder sind leider nicht zum Download verfügbar..");
	    		} else {
	    			alert("Die Bilder sind leider nicht zum Download verfügbar.");
	    		}
    		}
			return false;
		}

  	}
}
if (document.layers) {
	document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown = click;
document.oncontextmenu = click;