﻿var navi_on = true;
var timeout = new Array();

function showNavi(strNavi, strLeft) {
    if (navi_on) {
        clearTimeout(timeout[strNavi - 0]);
        selNavi = eval('document.getElementById("div-navi-' + strNavi + '")');

        if (strLeft)
            selNavi.style.left = strLeft;

        selNavi.style.visibility = 'visible';
        if (strNavi=='01') {
            hideNavi('02', 1);hideNavi('03', 1);hideNavi('04', 1);hideNavi('05', 1);
        }
        if (strNavi=='02') {
            hideNavi('01', 1);hideNavi('03', 1);hideNavi('04', 1);hideNavi('05', 1);
        }
        if (strNavi=='03') {
            hideNavi('01', 1);hideNavi('02', 1);hideNavi('04', 1);hideNavi('05', 1);
        }
        if (strNavi=='04') {
            hideNavi('01', 1);hideNavi('02', 1);hideNavi('03', 1);hideNavi('05', 1);
        }
        if (strNavi=='05') {
            hideNavi('01', 1);hideNavi('02', 1);hideNavi('03', 1);hideNavi('04', 1);
        }
    }
}

function hideNavi(strNavi, when) {
    if (navi_on) {
        if (when)
            hideIt(strNavi);
        else
            timeout[strNavi - 0] = setTimeout("hideIt('" + strNavi + "')", 200);
    }
}

function hideIt(strNavi) {
    selNavi = eval('document.getElementById("div-navi-' + strNavi + '")');
    selNavi.style.visibility = 'hidden';
}

// write the navi divs
    document.write('<div id="div-navi-01" onmouseover="showNavi(\'01\')" onmouseout="hideNavi(\'01\')">');
    document.write('    <table border="0" cellpadding="0" cellspacing="0" width="145">');
    document.write('        <tr><td colspan="4"><a href="javascript:void(0);" target="_top"><img src="'+ navi_1st[0].imgOnC +'" alt="" width="125" height="20" border="0"></a></td></tr>');
    document.write('        <tr><td colspan="4" bgcolor="#FFFFFF" style="border-top: 1px solid #CCAA00; border-left:1px solid #CCAA00; border-right:1px solid #CCAA00;"><img src="/images/spacer.gif" alt="" width="107" height="3" border="0"></td></tr>');
    document.write('        <tr><td width="1" bgcolor="#FFFFFF" style="border-left: 1px solid #CCAA00;"><img src="/images/spacer.gif" alt="" width="1" height="1" border="0"></td><td colspan="2" bgcolor="' + navi_1st[0].bgcolor + '"><img src="/images/spacer.gif" alt="" width="1" height="5" border="0"></td><td width="2" bgcolor="#FFFFFF" style="border-right: 1px solid #CCAA00;"><img src="/images/spacer.gif" alt="" width="2" height="1" border="0"></td></tr>');
    if (navi_1st[0]!= "") {
        for(i=0; i<navi_1st[0].navi_2nd.length; i++) {                    
            document.write('<tr valign="top">');
            document.write('<td colspan="4" style="padding-top:1px; padding-left: 5px; padding-right: 5px; border-right: 1px solid #CCAA00; border-left: 1px solid #CCAA00;" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor=\'#FFCC00\'" onMouseOut="this.style.backgroundColor=\'#FFFFFF\'"><a href="' + navi_1st[0].navi_2nd[i].link + '" class="'+ navi_1st[0].style +'" target="_top">' + navi_1st[0].navi_2nd[i].text + '</a></td></tr>');
        }
    }
    document.write('        <tr><td width="1" bgcolor="#FFFFFF" style="border-left: 1px solid #CCAA00;"><img src="/images/spacer.gif" alt="" width="1" height="8" border="0"></td><td colspan="2" bgcolor="' + navi_1st[0].bgcolor + '"><img src="/images/spacer.gif" alt="" width="1" height="5" border="0"></td><td width="2" bgcolor="#FFFFFF" style="border-right: 1px solid #CCAA00;"><img src="/images/spacer.gif" alt="" width="2" height="1" border="0"></td></tr>');
    document.write('        <tr><td colspan="4" bgcolor="#CCAA00"><img src="/images/spacer.gif" alt="" width="1" height="1" border="0"></td></tr>');
    document.write('    </table>');
    document.write('</div>');

    document.write('<div id="div-navi-02" onmouseover="showNavi(\'02\')" onmouseout="hideNavi(\'02\')">');
    document.write('    <table border="0" cellpadding="0" cellspacing="0" width="130">');
    document.write('        <tr><td colspan="4"><a href="javascript:void(0);" target="_top"><img src="'+ navi_1st[1].imgOnC +'" alt="" width="137" height="20" border="0"></a></td></tr>');
    document.write('        <tr><td colspan="4" bgcolor="#FFFFFF" style="border-top: 1px solid #CCAA00; border-left:1px solid #CCAA00; border-right:1px solid #CCAA00;"><img src="/images/spacer.gif" alt="" width="114" height="3" border="0"></td></tr>');
    document.write('        <tr><td width="2" bgcolor="#FFFFFF" style="border-left: 1px solid #CCAA00;"><img src="/images/spacer.gif" alt="" width="1" height="5" border="0"></td><td colspan="2" bgcolor="' + navi_1st[1].bgcolor + '"><img src="/images/spacer.gif" alt="" width="1" height="5" border="0"></td><td width="2" bgcolor="#FFFFFF" style="border-right: 1px solid #CCAA00;"><img src="/images/spacer.gif" alt="" width="2" height="1" border="0"></td></tr>');
    if (navi_1st[1]!= "") {
        for(i=0; i<navi_1st[1].navi_2nd.length; i++) {                    
            document.write('<tr valign="top" bgcolor="#FFFFFF">');
            document.write('<td colspan="4" style="padding-top:1px; padding-left: 5px; padding-right: 5px; border-right: 1px solid #CCAA00; border-left: 1px solid #CCAA00;" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor=\'#FFCC00\'" onMouseOut="this.style.backgroundColor=\'#FFFFFF\'"><a onmouseout="MM_swapImgRestore()" href="' + navi_1st[1].navi_2nd[i].link + '" class="'+ navi_1st[1].style +'" target="_top">' + navi_1st[1].navi_2nd[i].text + '</a></td></tr>');
        }
    }
    document.write('        <tr><td bgcolor="#FFFFFF" style="border-left: 1px solid #CCAA00;"><img src="/images/spacer.gif" alt="" width="1" height="13" border="0"></td><td colspan="2" bgcolor="' + navi_1st[1].bgcolor + '"><img src="/images/spacer.gif" alt="" width="1" height="5" border="0"></td><td bgcolor="#FFFFFF" style="border-right: 1px solid #CCAA00;"><img src="/images/spacer.gif" alt="" width="2" height="1" border="0"></tr>');
    document.write('        <tr><td colspan="4" bgcolor="#CCAA00"><img src="/images/spacer.gif" alt="" width="1" height="1" border="0"></td></tr>');
    document.write('    </table>');
    document.write('</div>');

    document.write('<div id="div-navi-03" onmouseover="showNavi(\'03\')" onmouseout="hideNavi(\'03\')">');
    document.write('    <table border="0" cellpadding="0" cellspacing="0" width="130">');
    document.write('        <tr><td colspan="4"><a href="javascript:void(0);" target="_top"><img src="'+ navi_1st[2].imgOnC +'" alt="" width="117" height="20" border="0"></a></td></tr>');
    document.write('        <tr><td colspan="4" bgcolor="#FFFFFF" style="border-top: 1px solid #CCAA00; border-left:1px solid #CCAA00; border-right:1px solid #CCAA00;"><img src="/images/spacer.gif" alt="" width="115" height="3" border="0"></td></tr>');
    document.write('        <tr><td width="1" bgcolor="#FFFFFF" style="border-left: 1px solid #CCAA00;"><img src="/images/spacer.gif" alt="" width="1" height="5" border="0"></td><td colspan="2" bgcolor="' + navi_1st[2].bgcolor + '"><img src="/images/spacer.gif" alt="" width="1" height="5" border="0"></td><td width="2" bgcolor="#FFFFFF" style="border-right: 1px solid #CCAA00;"><img src="/images/spacer.gif" alt="" width="2" height="5" border="0"></td></tr>');
    if (navi_1st[2]!= "") {
        for(i=0; i<navi_1st[2].navi_2nd.length; i++) {                    
            document.write('<tr valign="top" bgcolor="#FFFFFF">');
            document.write('<td colspan="4" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor=\'#FFCC00\'" onMouseOut="this.style.backgroundColor=\'#FFFFFF\'" style="padding-right: 5px; padding-left: 5px; padding-top:1px; border-right: 1px solid #CCAA00; border-left: 1px solid #CCAA00;"><a href="' + navi_1st[2].navi_2nd[i].link + '" class="'+ navi_1st[2].style +'" target="_top">' + navi_1st[2].navi_2nd[i].text + '</a></td></tr>');
        }
    }
    document.write('        <tr><td bgcolor="#FFFFFF" style="border-left: 1px solid #CCAA00;"><img src="/images/spacer.gif" alt="" width="1" height="10" border="0"></td><td colspan="2" bgcolor="' + navi_1st[2].bgcolor + '"><img src="/images/spacer.gif" alt="" width="1" height="5" border="0"></td><td bgcolor="#FFFFFF" style="border-right: 1px solid #CCAA00;"><img src="/images/spacer.gif" alt="" width="2" height="1" border="0"></td></tr>');
    document.write('        <tr><td colspan="4" bgcolor="#CCAA00"><img src="/images/spacer.gif" alt="" width="1" height="1" border="0"></td></tr>');
    document.write('    </table>');
    document.write('</div>');

    document.write('<div id="div-navi-04" onmouseover="showNavi(\'04\')" onmouseout="hideNavi(\'04\')">');
    document.write('    <table border="0" cellpadding="0" cellspacing="0" width="130">');
    document.write('        <tr><td colspan="4"><a href="javascript:void(0);" target="_top"><img src="'+ navi_1st[3].imgOnC +'" alt="" width="142" height="20" border="0"></a></td></tr>');
    document.write('        <tr><td colspan="4" style="border-top: 1px solid #CCAA00; border-left:1px solid #CCAA00; border-right:1px solid #CCAA00;"><img src="/images/spacer.gif" alt="" width="106" height="3" border="0"></td></tr>');
    document.write('        <tr><td width="3" bgcolor="#FFFFFF" style="border-left: 1px solid #CCAA00;"><img src="/images/spacer.gif" alt="" width="1" height="5" border="0"></td><td colspan="2" bgcolor="' + navi_1st[3].bgcolor + '"><img src="/images/spacer.gif" alt="" width="1" height="5" border="0"></td><td width="2" bgcolor="#FFFFFF" style="border-right: 1px solid #CCAA00;"><img src="/images/spacer.gif" alt="" width="2" height="5" border="0"></td></tr>');
    if (navi_1st[3]!= "") {
        for(i=0; i<navi_1st[3].navi_2nd.length; i++) {                    
            document.write('<tr valign="top" bgcolor="#FFFFFF">');
            document.write('<td colspan="4" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor=\'#FFCC00\'" onMouseOut="this.style.backgroundColor=\'#FFFFFF\'" style="padding-right: 5px; padding-left: 5px; padding-top:1px; border-right: 1px solid #CCAA00; border-left: 1px solid #CCAA00;"><a href="' + navi_1st[3].navi_2nd[i].link + '" class="'+ navi_1st[3].style +'" target="_top">' + navi_1st[3].navi_2nd[i].text + '</a></td></tr>');
        }
    }
    document.write('        <tr><td bgcolor="#FFFFFF" style="border-left: 1px solid #CCAA00;"><img src="/images/spacer.gif" alt="" width="1" height="10" border="0"></td><td colspan="2" bgcolor="' + navi_1st[3].bgcolor + '"><img src="/images/spacer.gif" alt="" width="1" height="5" border="0"></td><td bgcolor="#FFFFFF" style="border-right: 1px solid #CCAA00;"><img src="/images/spacer.gif" alt="" width="2" height="1" border="0"></td></tr>');
    document.write('        <tr><td colspan="4" bgcolor="#CCAA00"><img src="/images/spacer.gif" alt="" width="1" height="1" border="0"></td></tr>');
    document.write('    </table>');
    document.write('</div>');
    
    document.write('<div id="div-navi-05" onmouseover="showNavi(\'05\')" onmouseout="hideNavi(\'05\')">');
    document.write('    <table border="0" cellpadding="0" cellspacing="0" width="130">');
    document.write('        <tr><td colspan="4"><a href="javascript:void(0);" target="_top"><img src="'+ navi_1st[4].imgOnC +'" alt="" width="102" height="20" border="0"></a></td></tr>');
    document.write('        <tr><td colspan="4" style="border-top: 1px solid #CCAA00; border-left:1px solid #CCAA00; border-right: 1px solid #CCAA00;"><img src="/images/spacer.gif" alt="" width="101" height="3" border="0"></td></tr>');
    document.write('        <tr><td width="2" bgcolor="#FFFFFF" style="border-left: 1px solid #CCAA00;"><img src="/images/spacer.gif" alt="" width="2" height="1" border="0"></td><td colspan="2" bgcolor="' + navi_1st[4].bgcolor + '"><img src="/images/spacer.gif" alt="" width="1" height="5" border="0"></td><td width="2" bgcolor="#FFFFFF" style="border-right: 1px solid #CCAA00;"><img src="/images/spacer.gif" alt="" width="2" height="1" border="0"></td></tr>');
    if (navi_1st[4]!= "") {
        for(i=0; i<navi_1st[4].navi_2nd.length; i++) {                    
            document.write('<tr valign="top" bgcolor="#FFFFFF">');
            document.write('<td colspan="4" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor=\'#FFCC00\'" onMouseOut="this.style.backgroundColor=\'#FFFFFF\'" style="padding-top:1px; padding-right: 5px; padding-left: 5px; border-right: 1px solid #CCAA00; border-left: 1px solid #CCAA00;"><a href="' + navi_1st[4].navi_2nd[i].link + '" class="'+ navi_1st[4].style +'" target="_top">' + navi_1st[4].navi_2nd[i].text + '</a></td></tr>');
        }
    }
    document.write('        <tr><td width="2" bgcolor="#FFFFFF" style="border-left: 1px solid #CCAA00;"><img src="/images/spacer.gif" alt="" width="2" height="1" border="0"></td><td colspan="2" bgcolor="' + navi_1st[4].bgcolor + '"><img src="/images/spacer.gif" alt="" width="1" height="5" border="0"></td><td width="2" bgcolor="#FFFFFF" style="border-right: 1px solid #CCAA00;"><img src="/images/spacer.gif" alt="" width="2" height="1" border="0"></td></tr>');
    document.write('        <tr><td colspan="4" bgcolor="#CCAA00"><img src="/images/spacer.gif" alt="" width="2" height="1" border="0"></td></tr>');
    document.write('    </table>');
    document.write('</div>');
    
// write the navi buttons

if (current_section == 0)
    navi_1st[0].show = false
else if (current_section == 1)
    navi_1st[1].show = false
else if (current_section == 2)
    navi_1st[2].show = false
else if (current_section == 3)
    navi_1st[3].show = false
else if (current_section == 4)
    navi_1st[4].show = false

document.write('    <table border="0" cellpadding="0" cellspacing="0" width="470"><tr>');
document.write('        <td>' + ((navi_1st[0].show && navi_1st[0] != '')?'<div class="div-navi" onmouseover="showNavi(\'01\',this.offsetLeft-0);"><a href="javascript:void(0);">':'') + '<img src="' + ((navi_1st[0] != '')?((current_section == 0)?navi_1st[0].imgOnC:navi_1st[0].imgOffC):'/images/spacer.gif') + '" alt="" width="125" height="20" border="0">' + ((navi_1st_t[0].show && navi_1st[0] != '')?'</a>':'') + '</div></td>');
document.write('        <td width="4" valign="bottom"><img src="/images/spacer.gif" border="0" width="73" height="1" alt=""></td>');
document.write('        <td>' + ((navi_1st[1].show && navi_1st[1] != '')?'<div class="div-navi" onmouseover="showNavi(\'02\',this.offsetLeft-0);"><a href="javascript:void(0);">':'') + '<img src="' + ((navi_1st[1] != '')?((current_section == 1)?navi_1st[1].imgOnC:navi_1st[1].imgOffC):'/images/spacer.gif') + '" alt="" width="137" height="20" border="0">' + ((navi_1st_t[0].show && navi_1st[0] != '')?'</a>':'') + '</div></td>');
document.write('        <td width="4" valign="bottom"><img src="/images/spacer.gif" border="0" width="73" height="1" alt=""></td>');
document.write('        <td>' + ((navi_1st[2].show && navi_1st[2] != '')?'<div class="div-navi" onmouseover="showNavi(\'03\',this.offsetLeft-0);"><a href="javascript:void(0);">':'') + '<img src="' + ((navi_1st[2] != '')?((current_section == 2)?navi_1st[2].imgOnC:navi_1st[2].imgOffC):'/images/spacer.gif') + '" alt="" width="117" height="20" border="0">' + ((navi_1st_t[0].show && navi_1st[0] != '')?'</a>':'') + '</div></td>');
document.write('        <td width="4" valign="bottom"><img src="/images/spacer.gif" border="0" width="73" height="1" alt=""></td>');
document.write('        <td>' + ((navi_1st[3].show && navi_1st[3] != '')?'<div class="div-navi" onmouseover="showNavi(\'04\',this.offsetLeft-0);"><a href="javascript:void(0);">':'') + '<img src="' + ((navi_1st[3] != '')?((current_section == 3)?navi_1st[3].imgOnC:navi_1st[3].imgOffC):'/images/spacer.gif') + '" alt="" width="142" height="20" border="0">' + ((navi_1st_t[0].show && navi_1st[0] != '')?'</a>':'') + '</div></td>');
document.write('        <td width="4" valign="bottom"><img src="/images/spacer.gif" border="0" width="73" height="1" alt=""></td>');
document.write('        <td>' + ((navi_1st[4].show && navi_1st[4] != '')?'<div class="div-navi" onmouseover="showNavi(\'05\',this.offsetLeft-0);"><a href="javascript:void(0);">':'') + '<img src="' + ((navi_1st[4] != '')?((current_section == 4)?navi_1st[4].imgOnC:navi_1st[4].imgOffC):'/images/spacer.gif') + '" alt="" width="102" height="20" border="0">' + ((navi_1st_t[0].show && navi_1st[0] != '')?'</a>':'') + '</div></td>');
document.write('    </tr></table>');

navi_on = true;

/*********************************************************************************************************************************/
    

// start seite
function writeNewsServices() { 
 document.write('<div id="div-navi-06">');
 document.write(' <table border="0" cellpadding="0" cellspacing="0" width="281">');
 document.write('  <tr><td colspan="4" style="border-right: 1px solid #CCAA00;" bgcolor="#CCAA00"><a href="javascript:void(0);" target="_top"><img src="'+ navi_1st[5].imgOnC +'" alt="" width="280" height="26" border="0"></a></td></tr>');
 document.write('  <tr><td colspan="4" bgcolor="#FFFFFF" style="border-top: 1px solid #CCAA00; border-left:1px solid #CCAA00; border-right:1px solid #CCAA00;"><img src="/images/spacer.gif" alt="" width="100" height="3" border="0"></td></tr>');
 document.write('  <tr><td width="1" bgcolor="#FFFFFF" style="border-left: 1px solid #CCAA00;"><img src="/images/spacer.gif" alt="" width="1" height="1" border="0"></td><td colspan="2" bgcolor="' + navi_1st[0].bgcolor + '"><img src="/images/spacer.gif" alt="" width="1" height="5" border="0"></td><td width="2" bgcolor="#FFFFFF" style="border-right: 1px solid #CCAA00;"><img src="/images/spacer.gif" alt="" width="2" height="1" border="0"></td></tr>');
 if (navi_1st[5]!= "") {
  
  for(i=0; i<navi_1st[5].navi_2nd.length; i++) {     
   document.write('<tr valign="top">');
   document.write('<td colspan="4" style="padding-top:1px; padding-left: 5px; padding-right: 5px; border-right: 1px solid #CCAA00; border-left: 1px solid #CCAA00;" bgcolor="#FFFFFF"><a href="' + navi_1st[5].navi_2nd[i].link + '" class="'+ navi_1st[5].style +'-'+navi_1st[5].navi_2nd[i].l_type+'" target="'+((navi_1st[5].navi_2nd[i].l_type=="news")?'_top':'_blank')+'">' + navi_1st[5].navi_2nd[i].text + '</a></td></tr>');
  }
  
 }
 document.write('  <tr><td width="1" bgcolor="#FFFFFF" style="border-left: 1px solid #CCAA00;"><img src="/images/spacer.gif" alt="" width="1" height="8" border="0"></td><td colspan="2" bgcolor="' + navi_1st[0].bgcolor + '"><img src="/images/spacer.gif" alt="" width="1" height="5" border="0"></td><td width="2" bgcolor="#FFFFFF" style="border-right: 1px solid #CCAA00;"><img src="/images/spacer.gif" alt="" width="2" height="1" border="0"></td></tr>');
 document.write('  <tr><td colspan="4" bgcolor="#CCAA00"><img src="/images/spacer.gif" alt="" width="1" height="1" border="0"></td></tr>');
 document.write(' </table>');
 document.write('</div>');
}