var ua = navigator.userAgent;
if ((ua.indexOf("MSIE") >=0) && (ua.indexOf("Mac") >=0)) {
} 
else {
	stripeTables();

}
	displayDownloads();
	formsDoitlive();


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function JSrot13(text) {var text = text.replace(/%/, "@");var rot13text_rotated = ""; /* the function will return this string */;for (i = 1 ; i < (text.length + 1); i++) {k = text.charCodeAt(i-1);if (k >= 97 && k <= 109) {k = k + 13;} else if (k >= 110 && k <= 122) {k = k - 13;} else if (k >= 65 && k <= 77) {k = k + 13;} else if (k >= 78 && k <= 90) {k = k - 13;}rot13text_rotated = rot13text_rotated + String.fromCharCode(k);}return rot13text_rotated;}function Securemail(maillink){var maillink_output;maillink_output = JSrot13(maillink);location.href= 'mailto:' + maillink_output;}function displaymailaddress(linktext){var linktext_output;linktext_output = JSrot13(linktext);linktext_output = linktext_output.replace(/@/, "<span style='display:none'> [SECURE E-MAIL - REWRITE MANUALLY] </span>@");document.write(linktext_output);}

function stripeTables() {

var tables = document.getElementsByTagName("table");

for (var i=0; i<tables.length; i++) {

  if (tables[i].className.search(/edit_Abwechselnde_Tabelle/)) {

    var rows = tables[i].getElementsByTagName("tr");

	 for (var j=0; j<rows.length; j=j+1) {

      rows[j].className = rows[j].className.replace(/ row_dark/, "");

    }

    for (var j=0; j<rows.length; j=j+2) {

      if (rows[j].className.search(/row_dark/) == -1) {

        rows[j].className =rows[j].className + " row_dark"  ;

      }

    }

    }

  }

}

//Script for Displaying Downloads with Items Tag 

function displayDownloads() {
  var download = document.getElementsByTagName("input");
  for (var i=0; i<download.length; i++) {
var ischeck = download[i].name.substr(0, 5);  
    if ((ischeck == "check") && (download[i].value!="")){
      	var itemid = "download" + download[i].name.substring(6);
	document.getElementById(itemid).style.display="block";
                      }
          }
}



function formsDoitlive_en(){

//format input types submit and reset
var inputs = document.getElementsByTagName("input");
for (var i=0; i<inputs.length; i++) {
	if (inputs[i].type == "submit") {
		inputs[i].style.width = "auto";
		inputs[i].style.margin = "0px 0px 0px 0px";
		inputs[i].style.backgroundColor = "#ffffff";
		inputs[i].style.borderWidth = "1px";
		inputs[i].style.borderStyle = "solid";
		inputs[i].style.color = "006699";
		inputs[i].style.borderColor = "006699";
		inputs[i].value = "submit";
	}  else if (inputs[i].type == "reset") {
		inputs[i].style.width = "1px";
		inputs[i].style.display = "none";
		inputs[i].value = "reset";
	}
}
var tables = document.getElementsByTagName("table");
for (var i=0; i<tables.length; i++) {
	if (tables[i].cellSpacing == 7) {
		tables[i].cellSpacing = 0;
	}
}
var tables = document.getElementsByTagName("table");
for (var i=0; i<tables.length; i++) {
  if (tables[i].className=="form") {
   tables[i].getElementsByTagName("tr")[0].style.display= "none";
  }
}
}

function formsDoitlive(){

//format input types submit and reset
var inputs = document.getElementsByTagName("input");
for (var i=0; i<inputs.length; i++) {
	if (inputs[i].type == "submit") {
		inputs[i].style.width = "auto";
		inputs[i].style.margin = "0px 0px 0px 0px";
		inputs[i].style.backgroundColor = "#ffffff";
		inputs[i].style.borderWidth = "1px";
		inputs[i].style.borderStyle = "solid";
		inputs[i].style.color = "006699";
		inputs[i].style.borderColor = "006699";
		inputs[i].value = "senden";
	}  else if (inputs[i].type == "reset") {
		inputs[i].style.width = "1px";
		inputs[i].style.display = "none";
		inputs[i].value = "zurücksetzen";
	}
}
var tables = document.getElementsByTagName("table");
for (var i=0; i<tables.length; i++) {
	if (tables[i].cellSpacing == 7) {
		tables[i].cellSpacing = 0;
	}
}
var tables = document.getElementsByTagName("table");
for (var i=0; i<tables.length; i++) {
  if (tables[i].className=="form") {
   tables[i].getElementsByTagName("tr")[0].style.display= "none";
  }
}





}
