/* © by WebMentor (www.webmentor.de) */


var div_top_height = 275;
var div_bottom_height = 22;
var div_content_minheight = 198;
var div_content_height_minus = div_top_height + div_bottom_height;
function divcontentheight() {
  if (document.compatMode && document.compatMode == 'CSS1Compat') { divcontentheight_return = document.documentElement.offsetHeight; }
  else if (document.body && document.body.offsetHeight) { divcontentheight_return = document.body.offsetHeight; }
  else if (window.innerHeight) { divcontentheight_return = window.innerHeight; }
  else { divcontentheight_return = 0; }
  if (ie && !ie7 && divcontentheight_return > 0) { divcontentheight_return -= 4; }
  return divcontentheight_return; 
}
function divcontentcreate(dcc_h) {
  dcc_left_height = document.getElementById(div_left_var).offsetHeight - 34;
  if (div_content_minheight < dcc_left_height) { div_content_minheight = dcc_left_height; }
  if (dcc_h < div_content_minheight) { dcc_h = div_content_minheight; }
  document.getElementById(div_content_var).style.height = dcc_h + 'px';
  if (document.body.scrollHeight - divcontentheight() > 0) {
    setTimeout('divcontentcreate(document.body.scrollHeight - div_content_height_minus)',0);
  }
}
function divcontentonresize() {
  divcontentcreate(divcontentheight() - div_content_height_minus);
}

nt_scroll	= 'left';
nt_width	= 585;
nt_height	= 20;
nt_speed	= 1500;
nt_effect	= 0;
nt_pausetime	= 3000;
nt_padding_move = 0;
nt_padding	= 0;
nt_style	= '';
nt_style_pad	= '';

menu_level_array = new Array();
ma_array = new Array();
ms_hide_height = 0;
menu_built = true;
mh_timeout = '';
menu_level = 0;
menu_level_min = 1000;
function ma(ma_do,ma_id,ma_level) {
  if (ma_level < menu_level_min) { menu_level_min = ma_level; }
  clearTimeout(mh_timeout);
  if (ma_do == 'show' && ma_array.length == 0 && menu_id_array[ma_id] && menu_level_array[menu_level] != ma_id) { document.getElementById(menu_id_array[ma_id]).style.visibility = 'hidden'; }
  ma_array[ma_array.length] = 'menu_' + ma_do + '(' + ma_id + ',' + ma_level + ');'
  ma_array_run();
}
function ma_array_run() {
  if (ma_array.length > 0) {
    if (menu_built) { ma_array_eval = ma_array[0]; ma_array = ma_array.slice(1); eval(ma_array_eval); }
    else { setTimeout('ma_array_run();',1); }
  }
}
function menu_show(ms_id,ms_level) {
  menu_built = false;
  if (menu_level > ms_level) {
    ma_array = new Array('menu_show(' + ms_id + ',' + ms_level + ');').concat(ma_array);
    ma_array_run();
    document.getElementById(menu_id_array[ms_id]).style.visibility = 'hidden';
    menu_hide_effect(ms_id,'' + menu_level_array[menu_level] + '',menu_level,false);
  }
  else if (menu_level == ms_level && menu_level_array[menu_level] != ms_id) {
    document.getElementById(menu_id_array[ms_id]).style.visibility = 'hidden';
    menu_hide_effect(ms_id,'' + menu_level_array[menu_level] + '',menu_level,true);
  }
  else {
    if (menu_level_array[menu_level] != ms_id) { menu_show_item(ms_id,ms_level); }
    else { menu_built = true; }
  }
}
function menu_show_item(msr_id,msr_level) {
  document.getElementById(menu_id_array[msr_id]).style.visibility = 'visible';
  document.getElementById(menu_id_array[msr_id]).style.clip = 'rect(0px auto 0px 0px)';
  ms_show_height = 0;
  menu_show_effect(msr_id,msr_level);
}
function menu_show_effect(mse_id,mse_level) {
  if (ms_show_height < parseInt(document.getElementById(menu_id_array[mse_id]).offsetHeight)) {
    ms_show_height += 10 + (ms_show_height / 10);
    document.getElementById(menu_id_array[mse_id]).style.clip = 'rect(0px auto ' + ms_show_height + 'px 0px)';
  }
  else {
    document.getElementById(menu_id_array[mse_id]).style.clip = 'rect(0px 5000px 5000px 0px)';
    menu_level_array[mse_level] = mse_id;
    menu_level = mse_level;
    menu_built = true;
    return;
  }
  setTimeout('menu_show_effect(' + mse_id + ',' + mse_level + ');',33);
}
function menu_hide(mh_id,mh_level) {
  if (menu_level + 1 > mh_level) {
    menu_built = false;
    ma_array = new Array('menu_hide(' + mh_id + ',' + mh_level + ');').concat(ma_array);
    ma_array_run();
    menu_hide_effect(mh_id,'' + menu_level_array[menu_level] + '',menu_level,false);
  }
}
function menu_hide_effect(mhe_id,mhe_id_hide,mhe_level,mhe_run_on) {
  if (!ms_hide_height) {
    ms_hide_height = parseInt(document.getElementById(menu_id_array[mhe_id_hide]).offsetHeight);
    document.getElementById(menu_id_array[mhe_id_hide]).style.clip = 'rect(0px auto ' + ms_hide_height + 'px 0px)';
  }
  if (ms_hide_height > 0) {
    ms_hide_height -= 10 + parseInt(ms_hide_height / 10);
    if (ms_hide_height == 0) { ms_hide_height = -1; }
    document.getElementById(menu_id_array[mhe_id_hide]).style.clip = 'rect(0px auto ' + ms_hide_height + 'px 0px)';
  }
  else {
    ms_hide_height = 0;
    document.getElementById(menu_id_array[mhe_id_hide]).style.clip = 'rect(0px 0px 0px 0px)';
    document.getElementById(menu_id_array[mhe_id_hide]).style.visibility = 'hidden';
    if (mhe_run_on) {
      menu_level_array[mhe_level] = '';
      menu_show_item(mhe_id,mhe_level);
    }
    else {
      menu_level--;
      menu_built = true;
    }
    return;
  }
  setTimeout('menu_hide_effect(' + mhe_id + ',' + mhe_id_hide + ',' + mhe_level + ',' + mhe_run_on + ');',22);
}
function mhs() { mh_timeout = setTimeout('menu_hide(1,' + menu_level_min + ');',2000); }
function mhoc() { if (mh_timeout) { clearTimeout(mh_timeout); } menu_hide(1,menu_level_min); }
document.onclick = mhoc;


/* © by WebMentor (www.webmentor.de) */