var started = false;

function loadApplet(appletName, c, w, h) {
	if (!started) {
		if (navigator.userAgent.search("Firefox") > 0) {
			MeinFenster = window.open("applets/"+appletName+".html", "Applet Window", "menubar=no,width="+w+",height="+h);
			MeinFenster.focus();
		} else {
			var applet = document.createElement("applet");
			applet.code = c;
			applet.archive = "applets/"+appletName+".jar";
			applet.width = w;
			applet.height = h;
			var applet_div = document.getElementById("applet_"+appletName);
			applet_div.replaceChild(applet, applet_div.firstChild);
			started = true;
		}
	}
}

function fadeOut(obj) {
	new Effect.Opacity(obj,{duration: 0.5, from: 1.0, to: 0.0 });
}
