agent = navigator.userAgent.toLowerCase();

// Flash
function getFlashVersion() {
agent = navigator.userAgent.toLowerCase();

if (navigator.plugins != null && navigator.plugins.length > 0) {
var flashPlugin = navigator.plugins['Shockwave Flash'];
if (typeof flashPlugin == 'object') {
 for (var i = 100; i >= 3; i--) {
  if (flashPlugin.description.indexOf(i + '.') != -1) { flashVersion = i; break; }
 }
}

} else if (agent.indexOf("msie") != -1 && parseInt(navigator.appVersion) >= 4 && agent.indexOf("win")!=-1) {
  var doc = '<scr' + 'ipt language="VBScript"\> \n';
  doc += 'On Error Resume Next \n';
  doc += 'Dim obFlash \n';
  doc += 'For i = ' + 9 + ' To 3 Step -1 \n';
  doc += '   Set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash." & i) \n';
  doc += '   If IsObject(obFlash) Then \n';
  doc += '      flashVersion = i \n';
  doc += '      Exit For \n';
  doc += '   End If \n';
  doc += 'Next \n';
  doc += '</scr' + 'ipt\> \n';
  document.write(doc);
} else {
 return 0;
}
return flashVersion;
}

flashVersion = 0; flashEnabled="";
function initFlash() {
flashVersion = getFlashVersion();
flashEnabled = (flashVersion >= 6) ? true : false;

for (i=0; i < document.getElementsByTagName("div").length; i++) {
 if (document.getElementsByTagName("div")[i].id.indexOf("object-")==-1) continue;
 taginfo = document.getElementsByTagName("div")[i].id.split("-");
 if (! taginfo[4]) taginfo[4] = "jpg";
 document.getElementsByTagName("div")[i].innerHTML = (flashEnabled) ? getFlashHTML(taginfo[1],taginfo[1],taginfo[2],taginfo[3]) : '<img src="/flash/'+ taginfo[1] + "." + taginfo[4] + '" width="'+ taginfo[2] +'" height="'+ taginfo[3] +'" alt="" />';
}
}


function getFlashHTML(fname, idname, width, height) {
 if (fname.indexOf('/flash/')==-1) fname = "/flash/"+fname;
 return "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" id=\""+idname+"\" width=\""+width+"\" height=\""+height+"\"><param name=\"movie\" value=\""+fname+".swf\" /><param name=\"menu\" value=\"false\" /><param name=\"quality\" value=\"high\" /><param name=\"scale\" value=\"noscale\" /><param name=\"wmode\" value=\"transparent\" /><param name=\"bgcolor\" value=\"#ffffff\" /><embed src=\""+fname+".swf\" name=\""+idname+"\" menu=\"false\" quality=\"high\" scale=\"noscale\" wmode=\"transparent\" swliveconnect=\"true\" bgcolor=\"#ffffff\" width=\""+width+"\" height=\""+height+"\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"></embed></object>";
}




function playAni(objid) {
aobj = document.getElementById(objid);
aobj.progress += aobj.stepval;

if (aobj.progress > aobj.maxwidth) aobj.progress = aobj.maxwidth;
else if (aobj.progress < 0) aobj.progress=0;

aobj.childNodes[1].style.width = aobj.progress+"px";

//if ((aobj.stepval > 0 && aobj.progress < aobj.maxwidth) || (aobj.stepval < 0 && aobj.progress>-1)) aobj.t = window.setTimeout("playAni('"+aobj.id+"')",30);
}
aninr=0;
function initAni(e) {
obj = (! e) ? window.event.srcElement : e.target;

if (obj.parentNode.parentNode.parentNode.parentNode.nodeName.toLowerCase()=="a") obj = obj.parentNode;
if (obj.parentNode.parentNode.parentNode.nodeName.toLowerCase()=="a") obj = obj.parentNode;
if (obj.parentNode.parentNode.nodeName.toLowerCase()=="a") obj = obj.parentNode;
if (obj.parentNode.nodeName.toLowerCase()=="a") obj = obj.parentNode;


if (! obj.init) {
obj.init=true;
obj.progress=0;

obj.childNodes[1].style.height = obj.offsetHeight +"px";
if (obj.childNodes[0].nodeName.toLowerCase()=="em") {
obj.childNodes[0].childNodes[1].style.borderRightWidth = ((obj.childNodes[0].childNodes[0].offsetWidth+obj.childNodes[0].childNodes[1].offsetWidth) % 2 == 0) ? "10px" : "11px";
obj.maxwidth = obj.offsetWidth - obj.childNodes[0].childNodes[0].offsetWidth - obj.childNodes[0].childNodes[1].offsetWidth;
}else{
obj.childNodes[0].style.borderRightWidth = ((obj.childNodes[0].offsetWidth) % 2 == 0) ? "10px" : "11px";
obj.maxwidth = obj.offsetWidth - obj.childNodes[0].offsetWidth;
}

aninr++;
obj.id="ani"+aninr;
window.setInterval("playAni('"+obj.id+"')",30);
}
obj.stepval=10;
}
function swapAni(e) {
obj = (! e) ? window.event.srcElement : e.target;
if (obj.parentNode.parentNode.parentNode.parentNode.nodeName.toLowerCase()=="a") obj = obj.parentNode;
if (obj.parentNode.parentNode.parentNode.nodeName.toLowerCase()=="a") obj = obj.parentNode;
if (obj.parentNode.parentNode.nodeName.toLowerCase()=="a") obj = obj.parentNode;
if (obj.parentNode.nodeName.toLowerCase()=="a") obj = obj.parentNode;
obj.stepval = -10;

}


function initNavi() {
 mn = document.getElementById("mainnavi");
 for (i=0;i < mn.childNodes.length;i++) if (mn.childNodes[i].nodeName.toLowerCase()=="a") initElement(mn.childNodes[i]);
}
function initElement(obj) {
 try {
  obj.title='';
  obj.innerHTML='<strong>'+obj.innerHTML+'</strong>';
 obj.appendChild(document.createElement("span"));
 if (obj.className=="active") {

obj.childNodes[1].style.height = obj.offsetHeight +"px";
if (obj.childNodes[0].nodeName.toLowerCase()=="em") {
obj.childNodes[0].childNodes[1].style.borderRightWidth = ((obj.childNodes[0].childNodes[0].offsetWidth+obj.childNodes[0].childNodes[1].offsetWidth) % 2 == 0) ? "10px" : "11px";
obj.childNodes[1].style.width = obj.offsetWidth - obj.childNodes[0].childNodes[0].offsetWidth - obj.childNodes[0].childNodes[1].offsetWidth +"px";
}else{
obj.childNodes[0].style.borderRightWidth = ((obj.childNodes[0].offsetWidth) % 2 == 0) ? "10px" : "11px";
obj.childNodes[1].style.width = obj.offsetWidth - obj.childNodes[0].offsetWidth +"px";
}

 } else {
 obj.onmouseover = initAni;
 obj.onmouseout= swapAni;
 }
 } catch (e) {}
}



var isie = navigator.appName.indexOf("Microsoft") != -1;
function test_DoFSCommand(c, a) {
// if (c=="getpath") document['headfla'].SetVariable("path",path);
}
if (isie) document.write('<script language="vbscript"\>\non error resume next\nSub test_FSCommand(ByVal c, ByVal a)\ncall test_DoFSCommand(c, a)\nend sub\n</script\>\n');


function setFlashPath() {
/*pathcode = encodeURIComponent(pathcode);
document.getElementById('flashpath').innerHTML = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\"600\" height=\"32\"><param name=\"movie\" value=\""+templpath+"/flash/fufpfad.swf?code="+ pathcode +"\" /><param name=\"menu\" value=\"false\" /><param name=\"quality\" value=\"high\" /><param name=\"wmode\" value=\"transparent\" /><embed src=\""+templpath+"/flash/fufpfad.swf?code="+pathcode+"\" menu=\"false\" quality=\"high\" wmode=\"transparent\" width=\"600\" height=\"32\" type=\"application/x-shockwave-flash\"></embed></object>";
*/
}


pathcode="";
function addP(comp) {
 comp = comp.toUpperCase();
 if (pathcode!="") pathcode += "// ";
	pathcode += comp + " ";
 /* if (String(paddr[comp])=="undefined") {
 } else {
    pathcode += '<a href="'+paddr[comp]+'">' + comp +' </a>';
 } */
}


function init() {


initFlash();
initNavi();
if (flashEnabled) setFlashPath();


/* Track Downloads */
j=0;
while (this_a = document.getElementsByTagName('a')[j++]) {
 if (this_a.className.indexOf('ownload')>0) this_a.onmousedown = function(){ET_Event.download(this.href, 'Download');};
 else if (this_a.className.indexOf('ink')>0) this_a.onmousedown = function(){ET_Event.eventStart('Link', this.href, 'Link');};
}
/* End Track Downloads */



}



if (agent.indexOf("safari") != -1) document.write("<style type=\"text/css\">.fix {height:200px !important;} #head {height:150px !important;} #tipdiv {height:34px !important; width: 104px!important;}</style>");

if (navigator.appVersion.toLowerCase().indexOf("win") == -1) document.write("<style type=\"text/css\">#mainnavi a {height: 12px !important;}</style>");