/* © by WebMentor (www.webmentor.de) */


var pseudoframe_table_top_height = 150;
var pseudoframe_content_from_table_top = 40;
var pseudoframe_content_from_table_bottom = 0;
var pseudoframe_table_bottom_height = 28;
var pseudoframe_height_minus = pseudoframe_table_top_height + pseudoframe_content_from_table_top + pseudoframe_table_bottom_height;
function pseudoframeheight() {
  if (window.innerHeight) { pseudoframeheight_return = window.innerHeight; }
  else if (document.body && document.body.offsetHeight) { pseudoframeheight_return = document.body.offsetHeight; }
  else { pseudoframeheight_return = 0; }
  if (ie && pseudoframeheight_return > 0) { pseudoframeheight_return -= 4; }
  return pseudoframeheight_return;
}
function pseudoframecreate(pfc_h) {
  document.getElementById('pseudoframe').style.position = 'absolute';
  document.getElementById('pseudoframe').style.top = pseudoframe_table_top_height + pseudoframe_content_from_table_top;
  document.getElementById('pseudoframe').style.height = pfc_h - pseudoframe_content_from_table_bottom;
  document.getElementById('table_bottom').style.position = 'absolute';
  document.getElementById('table_bottom').style.top = pfc_h + pseudoframe_table_top_height + pseudoframe_content_from_table_top;
  document.getElementById('td_left').style.height = pfc_h + pseudoframe_content_from_table_top;
  document.getElementById('td_right').style.height = pfc_h + pseudoframe_content_from_table_top;
  if (document.body.scrollHeight - pseudoframeheight() > 0) {
    setTimeout('pseudoframecreate(document.body.scrollHeight - pseudoframe_height_minus)',0);
    document.getElementById('td_left').style.paddingBottom = pseudoframe_table_bottom_height;
    document.getElementById('td_right').style.paddingBottom = pseudoframe_table_bottom_height;
  }
  else {
    document.getElementById('td_left').style.paddingBottom = 0;
    document.getElementById('td_right').style.paddingBottom = 0;
  }
}
function pseudoframe_onresize() {
  pseudoframecreate(pseudoframeheight() - pseudoframe_height_minus);
}

var set_div_noscroll = 0;
function set_div_focus_stop() {
  if (nn6) {
    if (!set_div_noscroll) {
      set_div_noscroll = 1;
      setTimeout('set_div_noscroll = 0',2000);
    }
  }
}
function set_div_focus() {
  if (nn6) {
    if (!set_div_noscroll) {
      document.div_focus_form.div_focus.select();
    }
  }
}

var ticker_titel = 'Newsticker';
var ticker_width_border = '134px';
var ticker_width = '134px';
var ticker_height = '70px';
var ticker_bgcolor = '';
var ticker_background = '';

var ticker_content = new Array();
if (ticker_content.length > 2) { i = 2; }
 else { i = 0; }
function tick1(whichlayer) {
  tlayer = eval(whichlayer);
  if (tlayer.top > 0 && tlayer.top <= 5) {
    tlayer.top = 0;
    setTimeout('tick1(tlayer)',3000);
    setTimeout('tick2(document.main.document.second)',3000);
    return;
  }
  if (tlayer.top >= tlayer.document.height * -1) {
    tlayer.top -= 5;
    setTimeout('tick1(tlayer)',50);
  }
  else {
    tlayer.top = parseInt(ticker_height);
    tlayer.document.write(ticker_content[i]);
    tlayer.document.close();
    if (i == ticker_content.length - 1) { i = 0; }
     else { i++; }
  }
}
function tick2(whichlayer) {
  tlayer2 = eval(whichlayer);
  if (tlayer2.top > 0 && tlayer2.top <= 5) {
    tlayer2.top = 0;
    setTimeout('tick2(tlayer2)',3000);
    setTimeout('tick1(document.main.document.first)',3000);
    return;
  }
  if (tlayer2.top >= tlayer2.document.height * -1) {
  tlayer2.top -= 5;
    setTimeout('tick2(tlayer2)',50);
  }
  else {
    tlayer2.top = parseInt(ticker_height)
    tlayer2.document.write(ticker_content[i]);
    tlayer2.document.close();
    if (i == ticker_content.length - 1) { i = 0; }
     else { i++; }
  }
}
function tick3(whichdiv) {
  tdiv = eval(whichdiv);
  if (parseInt(tdiv.style.top) > 0 && parseInt(tdiv.style.top) <= 5) {
    tdiv.style.top = 0 + 'px';
    setTimeout('tick3(tdiv)',3000);
    setTimeout('tick4(second2_obj)',3000);
    return;
  }
  if (parseInt(tdiv.style.top) >= tdiv.offsetHeight * -1) {
    tdiv.style.top = parseInt(tdiv.style.top) - 5 + 'px';
    setTimeout('tick3(tdiv)',50);
  }
  else {
    tdiv.style.top = parseInt(ticker_height);
    tdiv.innerHTML = ticker_content[i];
    if (i == ticker_content.length - 1) { i = 0; }
     else { i++; }
  }
}
function tick4(whichdiv) {
  tdiv2 = eval(whichdiv);
  if (parseInt(tdiv2.style.top) > 0 && parseInt(tdiv2.style.top) <= 5) {
    tdiv2.style.top = 0 + 'px';
    setTimeout('tick4(tdiv2)',3000);
    setTimeout('tick3(first2_obj)',3000);
    return;
  }
  if (parseInt(tdiv2.style.top) >= tdiv2.offsetHeight * -1) {
    tdiv2.style.top = parseInt(tdiv2.style.top) - 5 + 'px';
    setTimeout('tick4(second2_obj)',50);
  }
  else{
    tdiv2.style.top = parseInt(ticker_height);
    tdiv2.innerHTML = ticker_content[i];
    if (i == ticker_content.length - 1) { i = 0; }
     else { i++; }
  }
}
function ticker_start() {
  if (browser_all || browser_dom) {
    if (browser_all) { first2_obj = first2; } else { first2_obj = document.getElementById('first2'); }
    if (browser_all) { second2_obj = second2; } else { second2_obj = document.getElementById('second2'); }
    tick3(first2_obj);
    second2_obj.style.top = ticker_height;
    second2_obj.style.visibility = 'visible';
  }
  else if (document.layers) {
    document.main.visibility = 'show';
    tick1(document.main.document.first);
    document.main.document.second.top = parseInt(ticker_height) + 5;
    document.main.document.second.visibility = 'show';
  }
}
function ticker_return() {
  document.write('\n<ilayer id=main width=' + ticker_width_border + ' height=' + ticker_height + ' bgColor=' + ticker_bgcolor + ' background=' + ticker_background + ' visibility=hide>');
  document.write('\n<layer id=first left=0 top=1 width=' + ticker_width + '>');
  if (document.layers) { document.write(ticker_content[0]); }
  document.write('\n</layer>');
  document.write('\n<layer id=second left=0 top=0 width=' + ticker_width + ' visibility=hide>');
  if (document.layers) { document.write(ticker_content[dyndetermine=(ticker_content.length==1) ? 0 : 1]); }
  document.write('\n</layer>');
  document.write('\n</ilayer>');
  if (browser_all || browser_dom) {
    document.writeln('<div id=main2 style="position:relative;width:' + ticker_width_border + ';height:' + ticker_height + ';overflow:hidden;background-color:' + ticker_bgcolor + ' ;background-image:url(' + ticker_background + ');">');
    if (ticker_titel) { document.writeln('<font style="font-size:3px;"><br></font><font class=css_ticker_title>' + ticker_titel + '<br></font><font style="font-size:4px;"><br></font>'); }
    document.writeln('<div id=main2 style="position:relative;width:' + ticker_width + ';height:' + ticker_height + ';overflow:hidden;background-color:' + ticker_bgcolor + ' ;background-image:url(' + ticker_background + ');">');
    document.writeln('<div style="position:absolute;width:' + ticker_width + ';height:' + ticker_height + ';clip:rect(0 ' + ticker_width + ' ' + ticker_height + ' 0);left:0px;top:0px;">');
    document.writeln('<div id=first2 style="position:absolute;width:' + ticker_width + ';left:0px;top:1px;">');
    document.write(ticker_content[0]);
    document.writeln('</div>');
    document.writeln('<div id=second2 style="position:absolute;width:' + ticker_width + ';left:0px;top:0px;visibility:hidden;">');
    document.write(ticker_content[dyndetermine=(ticker_content.length==1)? 0 : 1]);
    document.writeln('</div>');
    document.writeln('</div>');
    document.writeln('</div>');
  }
}


/* © by WebMentor (www.webmentor.de) */