	/*<![CDATA[*/
<!--

		var browserName = navigator.appName;
		var browserVer = parseInt(navigator.appVersion);
		var version = "";
		var msie4 = (browserName == "Microsoft Internet Explorer" && browserVer >= 4);
		if ((browserName == "Netscape" && browserVer >= 3) || msie4 || browserName=="Konqueror" || browserName=="Opera") {version = "n3";} else {version = "n2";}
			// Blurring links:
		function blurLink(theObject)	{	//
			if (msie4)	{theObject.blur();}
		}
		
			// decrypt helper function
		function decryptCharcode(n,start,end,offset)	{
			n = n + offset;
			if (offset > 0 && n > end)	{
				n = start + (n - end - 1);
			} else if (offset < 0 && n < start)	{
				n = end - (start - n - 1);
			}
			return String.fromCharCode(n);
		}
			// decrypt string
		function decryptString(enc,offset)	{
			var dec = "";
			var len = enc.length;
			for(var i=0; i < len; i++)	{
				var n = enc.charCodeAt(i);
				if (n >= 0x2B && n <= 0x3A)	{
					dec += decryptCharcode(n,0x2B,0x3A,offset);	// 0-9 . , - + / :
				} else if (n >= 0x40 && n <= 0x5A)	{
					dec += decryptCharcode(n,0x40,0x5A,offset);	// A-Z @
				} else if (n >= 0x61 && n <= 0x7A)	{
					dec += decryptCharcode(n,0x61,0x7A,offset);	// a-z
				} else {
					dec += enc.charAt(i);
				}
			}
			return dec;
		}
			// decrypt spam-protected emails
		function linkTo_UnCryptMailto(s)	{
			location.href = decryptString(s,-1);
		}




var runOnce;

widget_checkboxWidth = 14;
widget_checkboxHeight = 14;
widget_radioWidth = 14;
widget_radioHeight = 14;
tx_formwidgets_enableFocus = 1;
tx_formwidgets_enableMouseover = 1;

function doFormStyle () {
	if (runOnce) return;
	runOnce=1;

	var x = document.getElementsByTagName('input');
	for (var i=0; i<x.length; i++)	{
		x[i].className = x[i].className + ' form_'+x[i].type;
	}

	var x = document.getElementsByTagName('textarea');
	for (var i=0; i<x.length; i++)	{
		x[i].className = x[i].className + ' form_'+x[i].type;
	}

	var x = document.getElementsByTagName('select');

	for (var i=0; i<x.length; i++)	{
		x[i].className = x[i].className + ' form_'+x[i].type;
	}

	if (document.createElement && document.getElementsByTagName) {
		var img = document.createElement("img");
		img.onload = doCheckRadioStyle;
		img.setAttribute("src", "/fileadmin/template/images/clear.gif");
	}

}

function doCheckRadioStyle () {
var els=document.getElementsByTagName("input");
	for(var i=0; (el=els[i]); i++) {
		if (el.type == "radio") {
			el.style.position = 'absolute';
			el.style.left = '-999px';
			var img=document.createElement("img");
			img.setAttribute("src", "/fileadmin/template/images/clear.gif");
			img.setAttribute("width", widget_radioWidth);
			img.setAttribute("height", widget_radioHeight);
			img.className=((el.checked)?"widget-radio2":"widget-radio1")+((el.disabled)?" widget-radiodisabled":"");
			img.onclick = widget_toggleRadio;
			if (tx_formwidgets_enableMouseover) {
				img.onmouseover = widget_mouseoverRadio;
				img.onmouseout = widget_mouseoutRadio;
			}
			if (tx_formwidgets_enableFocus) {
				el.onfocus = widget_focusRadio;
				el.onblur = widget_blurRadio;
			}
			el.onclick = widget_toggleRadioImage;
			el.parentNode.insertBefore(img, el);
		}
	}

function widget_focusRadio() {
	this.previousSibling.className = ((this.checked)?"widget-radio4":"widget-radio3")+((this.disabled)?" widget-radiodisabled":"");
}
function widget_blurRadio() {
	this.previousSibling.className = ((this.checked)?"widget-radio2":"widget-radio1")+((this.disabled)?" widget-radiodisabled":"");
}
function widget_mouseoverRadio() {
	if (!this.nextSibling.disabled) { this.className = ((this.nextSibling.checked)?"widget-radio4":"widget-radio3"); }
}
function widget_mouseoutRadio() {
	if (!this.nextSibling.disabled) { this.className = ((this.nextSibling.checked)?"widget-radio2":"widget-radio1"); }
}
function widget_toggleRadioImage() {
	if (!this.disabled) {
		els=this.parentNode.parentNode.getElementsByTagName("input");
		for(var i=0; (el=els[i]); i++) {
			if (el.type == "radio") {
				el.previousSibling.className=((el.checked)?"widget-radio2":"widget-radio1")+((el.disabled)?" widget-radiodisabled":"");
			}
		}
	}
}
function widget_toggleRadio() {
	if (!this.nextSibling.disabled) {
		// toggle the radio state:
		this.nextSibling.checked=true;
		els=this.parentNode.parentNode.getElementsByTagName("input");
		for(var i=0; (el=els[i]); i++) {
			if (el.type == "radio") {
				if (el.checked) el.focus();
				el.previousSibling.className=((el.checked)?"widget-radio2":"widget-radio1")+((el.disabled)?" widget-radiodisabled":"");
			}
		}
	}
}
 
var els=document.getElementsByTagName("input");
	for(var i=0; (el=els[i]); i++) {
		if (el.type == "checkbox") {
			el.style.position = 'absolute';
			el.style.left = '-999px';
			var img=document.createElement("img");
			img.setAttribute("src", "/fileadmin/template/images/clear.gif");
			img.setAttribute("width", widget_checkboxWidth);
			img.setAttribute("height", widget_checkboxHeight);
			img.className=((el.checked)?"widget-checkbox2":"widget-checkbox1")+((el.disabled)?" widget-checkboxdisabled":"");
			img.onclick= widget_toggleCheckbox;
			if (tx_formwidgets_enableMouseover) {
				img.onmouseover = widget_mouseoverCheckbox;
				img.onmouseout = widget_mouseoutCheckbox;
			}
			if (tx_formwidgets_enableFocus) {
				el.onfocus = widget_focusCheckbox
				el.onblur = widget_blurCheckbox
			}
			el.onclick= widget_toggleCheckboxImage;
			el.parentNode.insertBefore(img, el);
		}
	}
}

function widget_focusCheckbox() {
	this.previousSibling.className = ((this.checked)?"widget-checkbox4":"widget-checkbox3")+((this.disabled)?" widget-checkboxdisabled":"");
}
function widget_blurCheckbox() {
	this.previousSibling.className = ((this.checked)?"widget-checkbox2":"widget-checkbox1")+((this.disabled)?" widget-checkboxdisabled":"");
}
function widget_mouseoverCheckbox() {
	if (!this.nextSibling.disabled) { this.className = ((this.nextSibling.checked)?"widget-checkbox4":"widget-checkbox3"); }
}
function widget_mouseoutCheckbox() {
	if (!this.nextSibling.disabled) { this.className = ((this.nextSibling.checked)?"widget-checkbox2":"widget-checkbox1"); }
}
function widget_toggleCheckboxImage() {
	if (!this.disabled) { this.previousSibling.className=(this.checked)?"widget-checkbox2":"widget-checkbox1"; }
}
function widget_toggleCheckbox() {
	if (!this.nextSibling.disabled) {
		this.nextSibling.focus();
		if (this.nextSibling.checked) {
			this.className="widget-checkbox1";
			this.nextSibling.checked=false;
		}
		else {
			this.className="widget-checkbox2";
			this.nextSibling.checked=true;
		}
	}
}

// Script for fixed navigation
// ---------------------------
leftSideDefaultTop = 0;
lastScrollY = 0;

function Init()
{
	doFormStyle ();
	if (window.pageYOffset != null)
	{
		leftSideDefaultTop = document.getElementById("navcontainer").offsetTop;
		lastScrollY = 0;
		lastScrollX = 0;
		OnScroll();
 		window.addEventListener("scroll", OnScroll, false);
	}
	if (msie4)
	{
		leftSideDefaultTop = document.getElementById("navcontainer").offsetTop;
		lastScrollY = 0;
		lastScrollX = 0;
		OnScroll();
		window.onscroll = OnScroll;
	}
}

function OnScroll()
{
	if (window.pageYOffset != lastScrollY)
	{
		var leftSide = document.getElementById("navcontainer");
		lastScrollY = window.pageYOffset;
		if (lastScrollY > leftSideDefaultTop - 5)
		{
			leftSide.style.position = "fixed";
			leftSide.style.top = "5px";
		}
		else
		{
			leftSide.style.position = "absolute";
			leftSide.style.top = "";
		}
	}
	if (msie4 && (document.body.scrollTop != lastScrollY))
	{
		var leftSide = document.getElementById("navcontainer");
		lastScrollY = document.documentElement.scrollTop;

		if (lastScrollY > leftSideDefaultTop - 5)
		{
			leftSide.style.position = "absolute";
			leftSide.style.top = lastScrollY+5 +"px";
		}
		else
		{
			leftSide.style.position = "absolute";
			leftSide.style.top = "";
		}
	}
}

window.onload = Init;

// -->
	/*]]>*/
