function init() 
	{
	if(typeof sIFR == "function")
		{
		sIFR.replaceElement("div#main h2", "/dinengschrift.swf", "#CC5F1A", null, null, null, 0, 0, 0, 0);
		sIFR.replaceElement("h1#title", "/dinengschrift.swf", "#A66707", null, null, null, 0, 0, 0, 0);
		}
	
	if (navigator.userAgent.indexOf("Safari") > 0) 
		{
		var labels = document.getElementsByTagName('label');
		for (i=0; i< labels.length; i++)
			{
			labels[i].addEventListener("click",addLabelFocus,false);
			}
		}
	if (document.getElementById) 
		{
		correctHeight();
		}
	}
	
function correctHeight() 
	{
	var leftDiv = document.getElementById("left");
	var mainDiv = document.getElementById("main");

	if (leftDiv.offsetHeight > mainDiv.offsetHeight) 
		{
		mainDiv.style.height = (leftDiv.offsetHeight + 1) + "px";
		}
	}


function addLabelFocus()
	{
	var item = document.getElementById(this.getAttribute("for"));
	item.focus();
	if (item.getAttribute("type") == "text")
		{
		item.value = item.value;
		}
	else if (item.getAttribute("type") == "checkbox")
		{
		if (!item["checked"])
			{
			item["checked"] = true;
			}
		else
			{
			item["checked"] = false;
			}
		}
	else if (item.getAttribute("type") == "radio")
		{
		var allInputs = document.getElementsByTagName("input");
		var radios = new Array();
		for (i = 0; i < allInputs.length; i++)
			{
			if (allInputs[i].getAttribute("name") == item.getAttribute("name"))
				{
				radios.push(allInputs[i]);
				}
			}
		for (i = 0; i < radios.length; i++)
			{
			if (radios[i]["checked"] && radios[i].getAttribute("id") != item.getAttribute("id"))
				{
				radios[i]["checked"] = false;
				}
			}
		item["checked"] = true;
    	}
	}
	
function isNonStandard()
	{
	is_opera = (agt.indexOf("opera") != -1);
	var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
                && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
                && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
    is_nav2 = (is_nav && (is_major == 2));
    is_nav3 = (is_nav && (is_major == 3));
    is_nav4 = (is_nav && (is_major == 4));
	}

function embedIt(movie, width, height)
	{
	if(is_opera) 
		{
		document.write('</script><embed src="'+movie+'" menu="false" quality="high" bgcolor="#D4DDE4"  width="'+width+'" height="'+height+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed> <!--');
		} 
	else  
		{
		document.write('</script><embed src="'+movie+'" menu="false" quality="high" bgcolor="#D4DDE4"  width="+width+" height="'+height+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>');
		}
	}
