// java script katalog zimmerlin

//test

var fading_addr = new Array("#FFFFFF", 
                                        "#F3F3F3", 
                                        "#E7E7E7", 
                                        "#DBDBDB", 
                                        "#CFCFCF", 
                                        "#C3C3C3", 
                                        "#B7B7B7", 
                                        "#ABABAB", 
                                        "#9F9F9F", 
                                        "#939393", 
                                        "#878787", 
                                        "#7B7B7B", 
                                        "#6F6F6F", 
                                        "#636363", 
                                        "#575757", 
                                        "#4B4B4B",
                                        "#3F3F3F",
                                        "#333333",
                                        "#272727",
                                        "#1B1B1B",
                                        "#0F0F0F",
                                        "#030303",
                                        "#030303",
                                        "#030303",
                                        "#030303",
                                        "#030303",
                                        "#030303",
                                        "#030303",
                                        "#030303",
                                        "#030303",
                                        "#030303",
                                        "#030303");

var fading_text = new Array("#FFFFFF", 
                                        "#F3F3F3", 
                                        "#E7E7E7", 
                                        "#DBDBDB", 
                                        "#CFCFCF", 
                                        "#C3C3C3", 
                                        "#B7B7B7", 
                                        "#ABABAB", 
                                        "#9F9F9F", 
                                        "#939393", 
                                        "#878787", 
                                        "#7B7B7B", 
                                        "#6F6F6F", 
                                        "#636363", 
                                        "#575757", 
                                        "#4B4B4B",
                                        "#3F3F3F",
                                        "#333333",
                                        "#272727",
                                        "#1B1B1B",
                                        "#0F0F0F",
                                        "#030303",
                                        "#030303",
                                        "#030303",
                                        "#030303",
                                        "#030303",
                                        "#030303",
                                        "#030303",
                                        "#030303",
                                        "#C3C3C3",
                                        "#C3C3C3",
                                        "#030303");

var fade_in_addr = new Array("#FFFFFF", 
                                        "#F3F3F3", 
                                        "#E7E7E7", 
                                        "#DBDBDB", 
                                        "#CFCFCF", 
                                        "#C3C3C3", 
                                        "#B7B7B7", 
                                        "#ABABAB", 
                                        "#9F9F9F", 
                                        "#939393", 
                                        "#878787", 
                                        "#7B7B7B", 
                                        "#6F6F6F", 
                                        "#636363", 
                                        "#575757", 
                                        "#4B4B4B",
                                        "#3F3F3F",
                                        "#333333",
                                        "#272727",
                                        "#1B1B1B",
                                        "#0F0F0F",
                                        "#030303");


var my_idx = 0;
var my_addr_fader_idx = 0;

function fade_in_text() {

// for(var i = 0; i < document.getElementById("ID_ZIMMERLIN").length; i++) {
//   document.getElementsByTagName("h2")[i].style.color = fading_text[my_idx];
// }

document.getElementById("ID_ZIMMERLIN_GMBH").style.color = fading_text[my_idx];
document.getElementById("ID_ZIMMERLIN_ADDR").style.color = fading_addr[my_idx];
 
 for(var j = 0; j < document.getElementsByTagName("a").length; j++) {
   document.getElementsByTagName("a")[j].style.color = fading_addr[my_idx];
 }

 
 if (my_idx < fading_text.length) { window.setTimeout("fade_in_text()", 150); my_idx++; }

}

function fade_in_list() {

document.getElementById("ID_ZIMMERLIN_GMBH").style.color = fading_text[my_idx];
 
if (my_idx < fading_text.length) { window.setTimeout("fade_in_list()", 150); my_idx++; }

}

function fade_addr_in() {

// for(var i = 0; i < document.getElementById("ID_ZIMMERLIN").length; i++) {
//   document.getElementsByTagName("h2")[i].style.color = fading_text[my_idx];
// }
document.getElementById("ID_ZIMMERLIN_GMBH").style.color = fade_in_addr[my_addr_fader_idx];
document.getElementById("ID_ADDR").style.color = fade_in_addr[my_addr_fader_idx];
 
 for(var j = 0; j < document.getElementsByTagName("a").length; j++) {
   document.getElementsByTagName("a")[j].style.color = fade_in_addr[my_addr_fader_idx];
 }

 
 if (my_addr_fader_idx < fade_in_addr.length) { window.setTimeout("fade_addr_in()", 150); my_addr_fader_idx++; }

}



////// global var - selected language - default "de" - range "de", "en", "fr"

var sel_lang = "de";

function select_lang(l) {
 sel_lang = l;
}

function prod_menu( item_name, prod_idx, sub_menu) {

 this.name = item_name;
 this.prd_idx = prod_idx;
 this.sub_menu = sub_menu;

}


var prod03_menu = new Array();
var prod11_menu = new Array();
var prod15_menu = new Array();
var prod16_menu = new Array();

var prod_main_menu = new Array();

prod_main_menu [0] = new prod_menu("Runde Druckverschlüsse bis 10/-1bar", "0", "");
prod_main_menu [1] = new prod_menu("Runde Druckverschlüsse über 10/-1bar", "1", "");
prod_main_menu [2] = new prod_menu("Runde Druckverschlüsse bis 1/-1bar", "", prod03_menu);

prod03_menu [0] = new prod_menu(" mit EG-Einzelprüfung", "2", "");
prod03_menu [1] = new prod_menu(" ohne EG-Einzelprüfung", "3", "");

prod_main_menu [3] = new prod_menu("Ovale Druckverschlüsse bis 10/-1bar", "4", "");
prod_main_menu [4] = new prod_menu("Runde Konusverschlüsse bis 6/-1bar", "5", "");
prod_main_menu [5] = new prod_menu("Runde Druck-Glasverschlüsse bis 12/-1bar", "6", "");
prod_main_menu [6] = new prod_menu("Glasdeckel mit Metaglasplatte", "7", "");
prod_main_menu [7] = new prod_menu("Meta-Flanschschauglas", "8", "");
prod_main_menu [8] = new prod_menu("Runde drucklose Glasverschlüsse", "9", "");
prod_main_menu [9] = new prod_menu("Runde drucklose Domdeckel", "10", "");
prod_main_menu [10] = new prod_menu("Ovale Mannlochverschlüsse", "", prod11_menu);

prod11_menu [0] = new prod_menu(" mit Baumusterprüfung nach PED 97/23/EG", "11", "");
prod11_menu [1] = new prod_menu(" ohne Baumusterprüfung", "12", "");

prod_main_menu [11] = new prod_menu("Ovale Handlochverschlüsse", "13", "");
prod_main_menu [12] = new prod_menu("Runde Blockflanscharmatur DIN 28120", "14", "");
prod_main_menu [13] = new prod_menu("Runde Schraubschauglasarmatur DIN 11851", "15", "");
prod_main_menu [14] = new prod_menu("Ersatzteile, Zubehör", "", prod15_menu);

prod15_menu [0] = new prod_menu(" Sicherheitsrost", "16", ""); 
prod15_menu [1] = new prod_menu(" Sicherheitskreuz", "17", "");

prod_main_menu [15] = new prod_menu("Tankfüsse", "", prod16_menu);

prod16_menu [0] = new prod_menu(" Fußkalotte gerollt", "18", ""); 
prod16_menu [1] = new prod_menu(" Bundmuffe", "19", "");
prod16_menu [2] = new prod_menu(" Kontermutter", "20", "");
prod16_menu [3] = new prod_menu(" Kalottenplatte mit Nocken", "21", "");
prod16_menu [4] = new prod_menu(" Kalotte, komplett", "22", "");

////////////////////////// english version ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
var prod03_menu_en = new Array();
var prod11_menu_en = new Array();
var prod15_menu_en = new Array();
var prod16_menu_en = new Array();

var prod_main_menu_en = new Array();

prod_main_menu_en [0] = new prod_menu("round pressure dome covers up to 10/-1bar", "0", "");
prod_main_menu_en [1] = new prod_menu("round pressure dome covers over 10/-1bar", "1", "");
prod_main_menu_en [2] = new prod_menu("round pressure dome covers up to 1/-1bar", "", prod03_menu_en);

prod03_menu_en [0] = new prod_menu(" with EG-approval", "2", "");
prod03_menu_en [1] = new prod_menu(" without EG-approval", "3", "");

prod_main_menu_en [3] = new prod_menu("oval pressure covers up to 10/-1bar", "4", "");
prod_main_menu_en [4] = new prod_menu("round cone covers up to 6/-1bar", "5", "");
prod_main_menu_en [5] = new prod_menu("round pressure covers with glass pane up to 12/-1bar", "6", "");
prod_main_menu_en [6] = new prod_menu("glass covers with Metaglass pane", "7", "");
prod_main_menu_en [7] = new prod_menu("Meta-Flange-Sightglass", "8", "");
prod_main_menu_en [8] = new prod_menu("round pressureless glass pane covers", "9", "");
prod_main_menu_en [9] = new prod_menu("round pressureless dome covers", "10", "");
prod_main_menu_en [10] = new prod_menu("oval manhole covers", "", prod11_menu_en);

prod11_menu_en [0] = new prod_menu(" with EC type-examination acc. to PED 97/23/EG", "11", "");
prod11_menu_en [1] = new prod_menu(" without EC type-examination", "12", "");

prod_main_menu_en [11] = new prod_menu("oval handhole covers", "13", "");
prod_main_menu_en [12] = new prod_menu("round sight-glasses DIN 28120 (bolted type)", "14", "");
prod_main_menu_en [13] = new prod_menu("round sight-glasses DIN 11851 (screwed type)", "15", "");
prod_main_menu_en [14] = new prod_menu("spare parts, safety grill and safety cross", "", prod15_menu_en);

prod15_menu_en [0] = new prod_menu(" safety grill", "16", ""); 
prod15_menu_en [1] = new prod_menu(" safety cross", "17", "");

prod_main_menu_en [15] = new prod_menu("tank feet", "", prod16_menu_en);

prod16_menu_en [0] = new prod_menu(" threated spindle rolled", "18", ""); 
prod16_menu_en [1] = new prod_menu(" collar socket", "19", "");
prod16_menu_en [2] = new prod_menu(" check nut", "20", "");
prod16_menu_en [3] = new prod_menu(" cup plate with securing dimples", "21", "");
prod16_menu_en [4] = new prod_menu(" complete assembly", "22", "");
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////// french version ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
var prod03_menu_fr = new Array();
var prod11_menu_fr = new Array();
var prod15_menu_fr = new Array();
var prod16_menu_fr = new Array();

var prod_main_menu_fr = new Array();

prod_main_menu_fr [0] = new prod_menu("Trappe à pression ronde de -1/10 bars", "0", "");
prod_main_menu_fr [1] = new prod_menu("Trappe à pression ronde supérieure à 10 bars", "1", "");
prod_main_menu_fr [2] = new prod_menu("Trappe ronde +/- 1 bars", "", prod03_menu_fr);

prod03_menu_fr [0] = new prod_menu(" Avec réception suivant DESP", "2", "");
prod03_menu_fr [1] = new prod_menu(" Sans réception DESP", "3", "");

prod_main_menu_fr [3] = new prod_menu("Trappe à pression ovale jusqu'à -1/10 bars", "4", "");
prod_main_menu_fr [4] = new prod_menu("Trappe à pression conique jusqu'à -1/6 bars", "5", "");
prod_main_menu_fr [5] = new prod_menu("Trappe hublot à pression jusqu'à -1/12 bars", "6", "");
prod_main_menu_fr [6] = new prod_menu("Trappe hublot Metaglas", "7", "");
prod_main_menu_fr [7] = new prod_menu("Trappe hublot pharma Metaglas", "8", "");
prod_main_menu_fr [8] = new prod_menu("Trappe hublot hors pression", "9", "");
prod_main_menu_fr [9] = new prod_menu("Trappe hors pression", "10", "");
prod_main_menu_fr [10] = new prod_menu("Trou d'homme 340 x 440", "", prod11_menu_fr);

prod11_menu_fr [0] = new prod_menu(" Avec réception suivant DESP 97/23/CE", "11", "");
prod11_menu_fr [1] = new prod_menu(" Sans réception DESP", "12", "");

prod_main_menu_fr [11] = new prod_menu("Trou de poing 190 x 240", "13", "");
prod_main_menu_fr [12] = new prod_menu("Brides hublot DIN 28120", "14", "");
prod_main_menu_fr [13] = new prod_menu("Hublot DIN 11851", "15", "");
prod_main_menu_fr [14] = new prod_menu("Accessoires", "", prod15_menu_fr);

prod15_menu_fr [0] = new prod_menu(" Grille de protection", "16", ""); 
prod15_menu_fr [1] = new prod_menu(" Croix de protection", "17", "");

prod_main_menu_fr [15] = new prod_menu("Pieds de cuve inox", "", prod16_menu_fr);

prod16_menu_fr [0] = new prod_menu(" Partie filetée roulée", "18", ""); 
prod16_menu_fr [1] = new prod_menu(" Manchon à souder", "19", "");
prod16_menu_fr [2] = new prod_menu(" Contre écrou", "20", "");
prod16_menu_fr [3] = new prod_menu(" Semelle", "21", "");
prod16_menu_fr [4] = new prod_menu(" Pied de cuve complet", "22", "");
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


 
var tout_prod_menu;
var tout_deal_menu;
var prod_tbl_bkup;

var tbl_prod_menu = new Array(
"Runde Druckverschlüsse bis 10/-1bar", 
"Runde Druckverschlüsse über 10/-1bar", 
"Runde Druckverschlüsse bis 1/-1bar", 
"Ovale Druckverschlüsse bis 10/-1bar", 
"Runde Konusverschlüsse bis 6/-1bar", 
"Runde Druck-Glasverschlüsse bis 12/-1bar",
"Glasdeckel mit Metaglasplatte",
"Meta-Flanschschauglas", 
"Runde drucklose Glasverschlüsse", 
"Runde drucklose Domdeckel", 
"Ovale Mannlochverschlüsse", 
"Ovale Handlochverschlüsse", 
"Runde Blockflanscharmatur DIN 28120", 
"Runde Schraubschauglasarmatur DIN 11851", 
"Ersatzteile, Zubehör", 
"Tankfüsse"  );

var tbl_prod_menu_lnk = new Array(
["ID_PROD_SUB2",   "tbl_prod_sub_menu_03"], 
["ID_PROD_SUB14", "tbl_prod_sub_menu_15"], 
["ID_PROD_SUB15", "tbl_prod_sub_menu_16"]  );


var tbl_prod_sub_menu_03 = new Array (
" mit EG-Einzelprüfung", 
" ohne EG-Einzelprüfung" 
);




var tbl_prod_sub_menu_15 = new Array (
" Sicherheitsrost", 
" Sicherheitskreuz" 
);

var tbl_prod_sub_menu_16 = new Array (
" Fußkalotte gerollt", 
" Bundmuffe",
" Kontermutte",
" Kalottenplatte mit Nocken",
" Kalotte, komplett" 
);



var tbl_product_main = new Array(
"prod_01_tbl_de.html", 
"prod_02_tbl_de.html", 
"prod_03_tbl_de.html", 
"prod_04_tbl_de.html", 
"prod_05_tbl_de.html", 
"prod_06_tbl_de.html", 
"prod_07_tbl_de.html", 
"prod_08_tbl_de.html", 
"prod_09_tbl_de.html", 
"prod_10_tbl_de.html", 
"prod_11_tbl_de.html", 
"prod_12_tbl_de.html", 
"prod_13_tbl_de.html", 
"prod_14_tbl_de.html", 
"prod_15_tbl_de.html", 
"prod_16_tbl_de.html", 
"prod_17_tbl_de.html", 
"prod_18_tbl_de.html",
"prod_19_tbl_de.html",
"prod_20_tbl_de.html",
"prod_21_tbl_de.html",
"prod_22_tbl_de.html",
"prod_23_tbl_de.html"  );

var tbl_product_left = new Array(
"prod_01_de.html", 
"prod_02_de.html", 
"prod_03_de.html", 
"prod_04_de.html", 
"prod_05_de.html", 
"prod_06_de.html", 
"prod_07_de.html", 
"prod_08_de.html", 
"prod_09_de.html", 
"prod_10_de.html", 
"prod_11_de.html", 
"prod_12_de.html", 
"prod_13_de.html", 
"prod_14_de.html", 
"prod_15_de.html", 
"prod_16_de.html", 
"prod_17_de.html", 
"prod_18_de.html",  
"prod_19_de.html",  
"prod_20_de.html",  
"prod_21_de.html",  
"prod_22_de.html",  
"prod_23_de.html" );

var tbl_product_main_en = new Array(
"prod_01_tbl_en.html", 
"prod_02_tbl_en.html", 
"prod_03_tbl_en.html", 
"prod_04_tbl_en.html", 
"prod_05_tbl_en.html", 
"prod_06_tbl_en.html", 
"prod_07_tbl_en.html", 
"prod_08_tbl_en.html", 
"prod_09_tbl_en.html", 
"prod_10_tbl_en.html", 
"prod_11_tbl_en.html", 
"prod_12_tbl_en.html", 
"prod_13_tbl_en.html", 
"prod_14_tbl_en.html", 
"prod_15_tbl_en.html", 
"prod_16_tbl_en.html", 
"prod_17_tbl_en.html", 
"prod_18_tbl_en.html",
"prod_19_tbl_en.html",
"prod_20_tbl_en.html",
"prod_21_tbl_en.html",
"prod_22_tbl_en.html",
"prod_23_tbl_en.html"  );

var tbl_product_left_en = new Array(
"prod_01_en.html", 
"prod_02_en.html", 
"prod_03_en.html", 
"prod_04_en.html", 
"prod_05_en.html", 
"prod_06_en.html", 
"prod_07_en.html", 
"prod_08_en.html", 
"prod_09_en.html", 
"prod_10_en.html", 
"prod_11_en.html", 
"prod_12_en.html", 
"prod_13_en.html", 
"prod_14_en.html", 
"prod_15_en.html", 
"prod_16_en.html", 
"prod_17_en.html", 
"prod_18_en.html",  
"prod_19_en.html",  
"prod_20_en.html",  
"prod_21_en.html",  
"prod_22_en.html",  
"prod_23_en.html" );

var tbl_product_main_fr = new Array(
"prod_01_tbl_fr.html", 
"prod_02_tbl_fr.html", 
"prod_03_tbl_fr.html", 
"prod_04_tbl_fr.html", 
"prod_05_tbl_fr.html", 
"prod_06_tbl_fr.html", 
"prod_07_tbl_fr.html", 
"prod_08_tbl_fr.html", 
"prod_09_tbl_fr.html", 
"prod_10_tbl_fr.html", 
"prod_11_tbl_fr.html", 
"prod_12_tbl_fr.html", 
"prod_13_tbl_fr.html", 
"prod_14_tbl_fr.html", 
"prod_15_tbl_fr.html", 
"prod_16_tbl_fr.html", 
"prod_17_tbl_fr.html", 
"prod_18_tbl_fr.html",
"prod_19_tbl_fr.html",
"prod_20_tbl_fr.html",
"prod_21_tbl_fr.html",
"prod_22_tbl_fr.html",
"prod_23_tbl_fr.html"  );

var tbl_product_left_fr = new Array(
"prod_01_fr.html", 
"prod_02_fr.html", 
"prod_03_fr.html", 
"prod_04_fr.html", 
"prod_05_fr.html", 
"prod_06_fr.html", 
"prod_07_fr.html", 
"prod_08_fr.html", 
"prod_09_fr.html", 
"prod_10_fr.html", 
"prod_11_fr.html", 
"prod_12_fr.html", 
"prod_13_fr.html", 
"prod_14_fr.html", 
"prod_15_fr.html", 
"prod_16_fr.html", 
"prod_17_fr.html", 
"prod_18_fr.html",  
"prod_19_fr.html",  
"prod_20_fr.html",  
"prod_21_fr.html",  
"prod_22_fr.html",  
"prod_23_fr.html" );



function hidemenue_all() {
 remove_prod_menu();
 remove_deal_menu();
 remove_submenu();
}

function showmenue_prod_en(xpos, ypos) { 
 sel_lang = "en";
 showmenue_prod(xpos, ypos);
}

function showmenue_prod_fr(xpos, ypos) { 
 sel_lang = "fr";
 showmenue_prod(xpos, ypos);
}

function showmenue_prod(xpos, ypos) { 

//hidemenue_all();

var my_prod_main_menu;
var my_menu_width = "250px";

if (sel_lang == "de") {
 my_prod_main_menu = prod_main_menu;
}

if (sel_lang == "en") {
 my_prod_main_menu = prod_main_menu_en;
 my_menu_width = "300px";
}

if (sel_lang == "fr") {
 my_prod_main_menu = prod_main_menu_fr;
  my_menu_width = "300px";
}


if (!top.main_frame.document.getElementById("ID_PROD_MENU")) {

  remove_submenu();
   
   top.main_frame.scrollTo(0,0);
   
   my_node = top.main_frame.document.getElementsByTagName("body")[0];

   my_div = top.main_frame.document.createElement("div");

   my_div.id = "ID_PROD_MENU";
   my_div.style.position = "absolute";
   my_div.style.background = "gray";
   my_div.style.top = 0;
   my_div.style.left = (xpos > 250) ? xpos - 250 : 0;
   //my_div.style.width = "200px";
   //my_div.style.height = tbl.length * 14;
   my_div.style.cursor ="default";
   my_table = top.main_frame.document.createElement("table");

   my_table.style.color = "silver";
   my_table.style.fontSize = "12px";
   my_table.style.fontFamily = "Arial";
   my_table.style.backgroundColor = "gray";
   my_table.style.border = "2";
   my_table.style.borderStyle = "inset";
   my_table.style.borderColor = "silver";
   my_table.width = my_menu_width;

      my_row = my_table.insertRow(my_table.rows.length);
      my_cell = top.main_frame.document.createElement("td");

      my_cell.height = "12px";
      my_cell.align = "left";
      my_anchor = top.main_frame.document.createElement("a");

      my_text = top.main_frame.document.createElement("hr");

      my_anchor.appendChild(my_text);
      my_cell.appendChild(my_anchor);
      my_row.appendChild(my_cell);

   
   for ( l = 0; l < my_prod_main_menu.length; l++) {
      my_row = my_table.insertRow(my_table.rows.length);
      
      my_cell = top.main_frame.document.createElement("td");

      my_cell.height = "12px";
      my_cell.align = "left";
      my_anchor = top.main_frame.document.createElement("a");
      
      if (my_prod_main_menu[l].prd_idx != "") {
        if (sel_lang == "de") { my_anchor.href = "javascript:show_prod(" + my_prod_main_menu[l].prd_idx + ")"; }
        if (sel_lang == "en") { my_anchor.href = "javascript:show_prod_en(" + my_prod_main_menu[l].prd_idx + ")"; }
        if (sel_lang == "fr") { my_anchor.href = "javascript:show_prod_fr(" + my_prod_main_menu[l].prd_idx + ")"; }
      }
      
      my_text = top.main_frame.document.createTextNode( my_prod_main_menu[l].name );

      my_anchor.appendChild(my_text);

      my_cell.appendChild(my_anchor);
      
      if (!(prod_main_menu[l].sub_menu == "")) {
        if (sel_lang == "de") { my_cell.onmouseover = new Function("showsubmenue_prod(this, prod_main_menu[" + l + "].sub_menu )"); }
        if (sel_lang == "en") { my_cell.onmouseover = new Function("showsubmenue_prod(this, prod_main_menu_en[" + l + "].sub_menu )"); }
        if (sel_lang == "fr") { my_cell.onmouseover = new Function("showsubmenue_prod(this, prod_main_menu_fr[" + l + "].sub_menu )"); }
      } else { my_cell.onmouseover = function() { remove_submenu(); }; }

      my_row.appendChild(my_cell);
   }
   
      my_row = my_table.insertRow(my_table.rows.length);
      my_cell = top.main_frame.document.createElement("td");

      my_cell.height = "12px";
      my_cell.align = "left";
      my_anchor = top.main_frame.document.createElement("a");


      my_text = top.main_frame.document.createElement("hr");

      my_anchor.appendChild(my_text);
      my_cell.appendChild(my_anchor);
      my_row.appendChild(my_cell);
   
   my_div.appendChild(my_table);
   
   my_div.style.zIndex = "1";
   my_node.appendChild(my_div);
              
   }
   if (tout_prod_menu) window.clearTimeout(tout_prod_menu);
     tout_prod_prod = window.setTimeout("remove_prod_menu()",10000);

}

function showsubmenue_prod(obj, menu) { 

// remove existing submenu
remove_submenu();

xpos = getPosX(obj);

ypos = getPosY(obj);

if (!top.main_frame.document.getElementById("ID_PROD_SUBMENU")) {

   my_node = top.main_frame.document.getElementsByTagName("body")[0];

   my_div = top.main_frame.document.createElement("div");

   my_div.id = "ID_PROD_SUBMENU";
   my_div.style.position = "absolute";
   my_div.style.background = "gray";
   my_div.style.top = ( (ypos + (menu.length * 12)) > 325 ) ? ( 325 - (menu.length * 12)) : ypos;
   my_div.style.left = xpos + 245;
   //my_div.style.width = "200px";
   //my_div.style.height = tbl.length * 14;
   my_div.style.cursor ="default";
   my_table = top.main_frame.document.createElement("table");

   my_table.style.color = "silver";
   my_table.style.fontSize = "12px";
   my_table.style.fontFamily = "Arial";
   my_table.style.backgroundColor = "gray";
   my_table.style.border = "2";
   my_table.style.borderStyle = "inset";
   my_table.style.borderColor = "silver";
   my_table.width = "250px";

   for ( l = 0; l < menu.length; l++) {

      my_row = my_table.insertRow(my_table.rows.length);
      
      my_cell = top.main_frame.document.createElement("td");

      my_cell.height = "12px";
      my_cell.align = "left";
      my_anchor = top.main_frame.document.createElement("a");

      if (sel_lang == "de") {my_anchor.href = "javascript:show_prod(" + menu[l].prd_idx + ")";}
      if (sel_lang == "en") {my_anchor.href = "javascript:show_prod_en(" + menu[l].prd_idx + ")";}
      if (sel_lang == "fr") {my_anchor.href = "javascript:show_prod_fr(" + menu[l].prd_idx + ")";}
      
      my_text = top.main_frame.document.createTextNode( menu[l].name );

      my_anchor.appendChild(my_text);

      my_cell.appendChild(my_anchor);
      //my_cell.onmousedown = function() { select_table_nw(tbl, this.firstChild.nodeValue); document.getElementById("ID_NW_COLUMN").removeChild(document.getElementById("ID_NW_LIST")); };
      my_row.appendChild(my_cell);
   }
   
   my_div.appendChild(my_table);
   
   my_div.style.zIndex = "1";
   my_node.appendChild(my_div);
              
   }
   //if (tout_prod_menu) window.clearTimeout(tout_prod_menu);
   //tout_prod_prod = window.setTimeout("remove_prod_menu()",15000);

}






function showmenue_deal(xpos, ypos) { 

hidemenue_all();

if (!top.main_frame.document.getElementById("ID_DEAL_MENU")) {
   
   my_node = top.main_frame.document.getElementsByTagName("body")[0];

   my_div = top.main_frame.document.createElement("div");

   my_div.id = "ID_DEAL_MENU";
   my_div.style.position = "absolute";
   my_div.style.background = "gray";
   my_div.style.top = 0;
   my_div.style.left = xpos - 250;
   my_div.style.cursor ="default";
   my_table = top.main_frame.document.createElement("table");

   my_table.style.color = "silver";
   my_table.style.fontSize = "12px";
   my_table.style.fontFamily = "Arial";
   my_table.style.backgroundColor = "gray";
   my_table.style.border = "2";
   my_table.style.borderStyle = "inset";
   my_table.style.borderColor = "silver";
   my_table.width = "80px";

      my_row = my_table.insertRow(my_table.rows.length);
      my_cell = top.main_frame.document.createElement("td");

      my_cell.height = "12px";
      my_cell.align = "left";
      my_anchor = top.main_frame.document.createElement("a");

      my_text = top.main_frame.document.createElement("hr");

      my_anchor.appendChild(my_text);
      my_cell.appendChild(my_anchor);
      my_row.appendChild(my_cell);

// Europa
      my_row = my_table.insertRow(my_table.rows.length);
      my_cell = top.main_frame.document.createElement("td");
      my_cell.height = "12px";
      my_cell.align = "left";
      my_anchor = top.main_frame.document.createElement("a");
      my_anchor.href = "javascript:show_offices( 'Europe' )";
      my_text = top.main_frame.document.createTextNode( "Europa" );
      my_anchor.appendChild(my_text);
      my_cell.appendChild(my_anchor);
      my_row.appendChild(my_cell);

// Amerika
      my_row = my_table.insertRow(my_table.rows.length);
      my_cell = top.main_frame.document.createElement("td");
      my_cell.height = "12px";
      my_cell.align = "left";
      my_anchor = top.main_frame.document.createElement("a");
      my_anchor.href = "javascript:show_offices( 'AM' )";
      my_text = top.main_frame.document.createTextNode( "Amerika" );
      my_anchor.appendChild(my_text);
      my_cell.appendChild(my_anchor);
      my_row.appendChild(my_cell);

// Asien
      my_row = my_table.insertRow(my_table.rows.length);
      my_cell = top.main_frame.document.createElement("td");
      my_cell.height = "12px";
      my_cell.align = "left";
      my_anchor = top.main_frame.document.createElement("a");
      my_anchor.href = "javascript:show_offices( 'Asia' )";
      my_text = top.main_frame.document.createTextNode( "Asien" );
      my_anchor.appendChild(my_text);
      my_cell.appendChild(my_anchor);
      my_row.appendChild(my_cell);
   
      my_row = my_table.insertRow(my_table.rows.length);
      my_cell = top.main_frame.document.createElement("td");
      my_cell.height = "12px";
      my_cell.align = "left";
      my_anchor = top.main_frame.document.createElement("a");
      my_text = top.main_frame.document.createElement("hr");
      my_anchor.appendChild(my_text);
      my_cell.appendChild(my_anchor);
      my_row.appendChild(my_cell);
   
   my_div.appendChild(my_table);
   
   my_div.style.zIndex = "1";
   my_node.appendChild(my_div);
              
   }
   
   if (tout_deal_menu) window.clearTimeout(tout_deal_menu);
   tout_deal_menu = window.setTimeout("remove_deal_menu()",10000);

}


function showmenue_deal_en(xpos, ypos) { 

hidemenue_all();

if (!top.main_frame.document.getElementById("ID_DEAL_MENU")) {
   
   my_node = top.main_frame.document.getElementsByTagName("body")[0];

   my_div = top.main_frame.document.createElement("div");

   my_div.id = "ID_DEAL_MENU";
   my_div.style.position = "absolute";
   my_div.style.background = "gray";
   my_div.style.top = 0;
   my_div.style.left = xpos - 250;
   my_div.style.cursor ="default";
   my_table = top.main_frame.document.createElement("table");

   my_table.style.color = "silver";
   my_table.style.fontSize = "12px";
   my_table.style.fontFamily = "Arial";
   my_table.style.backgroundColor = "gray";
   my_table.style.border = "2";
   my_table.style.borderStyle = "inset";
   my_table.style.borderColor = "silver";
   my_table.width = "100px";

      my_row = my_table.insertRow(my_table.rows.length);
      my_cell = top.main_frame.document.createElement("td");

      my_cell.height = "12px";
      my_cell.align = "left";
      my_anchor = top.main_frame.document.createElement("a");

      my_text = top.main_frame.document.createElement("hr");

      my_anchor.appendChild(my_text);
      my_cell.appendChild(my_anchor);
      my_row.appendChild(my_cell);

// Europa
      my_row = my_table.insertRow(my_table.rows.length);
      my_cell = top.main_frame.document.createElement("td");
      my_cell.height = "12px";
      my_cell.align = "left";
      my_anchor = top.main_frame.document.createElement("a");
      my_anchor.href = "javascript:show_offices( 'Europe eng' )";
      my_text = top.main_frame.document.createTextNode( "Europe" );
      my_anchor.appendChild(my_text);
      my_cell.appendChild(my_anchor);
      my_row.appendChild(my_cell);

// Amerika
      my_row = my_table.insertRow(my_table.rows.length);
      my_cell = top.main_frame.document.createElement("td");
      my_cell.height = "12px";
      my_cell.align = "left";
      my_anchor = top.main_frame.document.createElement("a");
      my_anchor.href = "javascript:show_offices( 'AM eng' )";
      my_text = top.main_frame.document.createTextNode( "North America" );
      my_anchor.appendChild(my_text);
      my_cell.appendChild(my_anchor);
      my_row.appendChild(my_cell);

// Asien
      my_row = my_table.insertRow(my_table.rows.length);
      my_cell = top.main_frame.document.createElement("td");
      my_cell.height = "12px";
      my_cell.align = "left";
      my_anchor = top.main_frame.document.createElement("a");
      my_anchor.href = "javascript:show_offices( 'Asia eng' )";
      my_text = top.main_frame.document.createTextNode( "Asia" );
      my_anchor.appendChild(my_text);
      my_cell.appendChild(my_anchor);
      my_row.appendChild(my_cell);
   
      my_row = my_table.insertRow(my_table.rows.length);
      my_cell = top.main_frame.document.createElement("td");
      my_cell.height = "12px";
      my_cell.align = "left";
      my_anchor = top.main_frame.document.createElement("a");
      my_text = top.main_frame.document.createElement("hr");
      my_anchor.appendChild(my_text);
      my_cell.appendChild(my_anchor);
      my_row.appendChild(my_cell);
   
   my_div.appendChild(my_table);
   
   my_div.style.zIndex = "1";
   my_node.appendChild(my_div);
              
   }
   
   if (tout_deal_menu) window.clearTimeout(tout_deal_menu);
   tout_deal_menu = window.setTimeout("remove_deal_menu()",10000);

}


function showmenue_deal_fr(xpos, ypos) { 

hidemenue_all();

if (!top.main_frame.document.getElementById("ID_DEAL_MENU")) {
   
   my_node = top.main_frame.document.getElementsByTagName("body")[0];

   my_div = top.main_frame.document.createElement("div");

   my_div.id = "ID_DEAL_MENU";
   my_div.style.position = "absolute";
   my_div.style.background = "gray";
   my_div.style.top = 0;
   my_div.style.left = xpos - 250;
   my_div.style.cursor ="default";
   my_table = top.main_frame.document.createElement("table");

   my_table.style.color = "silver";
   my_table.style.fontSize = "12px";
   my_table.style.fontFamily = "Arial";
   my_table.style.backgroundColor = "gray";
   my_table.style.border = "2";
   my_table.style.borderStyle = "inset";
   my_table.style.borderColor = "silver";
   my_table.width = "100px";

      my_row = my_table.insertRow(my_table.rows.length);
      my_cell = top.main_frame.document.createElement("td");

      my_cell.height = "12px";
      my_cell.align = "left";
      my_anchor = top.main_frame.document.createElement("a");

      my_text = top.main_frame.document.createElement("hr");

      my_anchor.appendChild(my_text);
      my_cell.appendChild(my_anchor);
      my_row.appendChild(my_cell);

// Europa
      my_row = my_table.insertRow(my_table.rows.length);
      my_cell = top.main_frame.document.createElement("td");
      my_cell.height = "12px";
      my_cell.align = "left";
      my_anchor = top.main_frame.document.createElement("a");
      my_anchor.href = "javascript:show_offices( 'Europe fr' )";
      my_text = top.main_frame.document.createTextNode( "Europe" );
      my_anchor.appendChild(my_text);
      my_cell.appendChild(my_anchor);
      my_row.appendChild(my_cell);

// Amerika
      my_row = my_table.insertRow(my_table.rows.length);
      my_cell = top.main_frame.document.createElement("td");
      my_cell.height = "12px";
      my_cell.align = "left";
      my_anchor = top.main_frame.document.createElement("a");
      my_anchor.href = "javascript:show_offices( 'AM fr' )";
      my_text = top.main_frame.document.createTextNode( "Amérique" );
      my_anchor.appendChild(my_text);
      my_cell.appendChild(my_anchor);
      my_row.appendChild(my_cell);

// Asien
      my_row = my_table.insertRow(my_table.rows.length);
      my_cell = top.main_frame.document.createElement("td");
      my_cell.height = "12px";
      my_cell.align = "left";
      my_anchor = top.main_frame.document.createElement("a");
      my_anchor.href = "javascript:show_offices( 'Asia fr' )";
      my_text = top.main_frame.document.createTextNode( "Asie" );
      my_anchor.appendChild(my_text);
      my_cell.appendChild(my_anchor);
      my_row.appendChild(my_cell);
   
      my_row = my_table.insertRow(my_table.rows.length);
      my_cell = top.main_frame.document.createElement("td");
      my_cell.height = "12px";
      my_cell.align = "left";
      my_anchor = top.main_frame.document.createElement("a");
      my_text = top.main_frame.document.createElement("hr");
      my_anchor.appendChild(my_text);
      my_cell.appendChild(my_anchor);
      my_row.appendChild(my_cell);
   
   my_div.appendChild(my_table);
   
   my_div.style.zIndex = "1";
   my_node.appendChild(my_div);
              
   }
   
   if (tout_deal_menu) window.clearTimeout(tout_deal_menu);
   tout_deal_menu = window.setTimeout("remove_deal_menu()",10000);

}



 
function remove_prod_menu() {
   
    remove_submenu();
    if (top.main_frame.document.getElementsByTagName("body")[0] && top.main_frame.document.getElementById("ID_PROD_MENU")) {
     top.main_frame.document.getElementsByTagName("body")[0].removeChild(top.main_frame.document.getElementById("ID_PROD_MENU"));
    }
    
}

function remove_deal_menu() {
   
    if (top.main_frame.document.getElementsByTagName("body")[0] && top.main_frame.document.getElementById("ID_DEAL_MENU")) {
     top.main_frame.document.getElementsByTagName("body")[0].removeChild(top.main_frame.document.getElementById("ID_DEAL_MENU"));
    }
    
}

function remove_submenu() {
   
   if (top.main_frame.document.getElementsByTagName("body")[0] && top.main_frame.document.getElementById("ID_PROD_SUBMENU")) {
     top.main_frame.document.getElementsByTagName("body")[0].removeChild(top.main_frame.document.getElementById("ID_PROD_SUBMENU"));
   }
   //sleep(10);

}




function print_details() {
self.print();
}

function hide_details() {
self.close();
}


function zoom_in(idx) {
if(document.getElementById) 
   document.getElementById("PROD_PIC").src = prod_pic_zoom[idx-1];
}

function zoom_out(idx) {
if(document.getElementById)
   document.getElementById("PROD_PIC").src = prod_pic_small[idx-1];
} 

var prod_pic_zoom = new Array(
"skizzen/s_prod01.jpg",
"skizzen/s_prod02.jpg",
"skizzen/s_prod03.jpg",
"skizzen/s_prod04.jpg",
"skizzen/s_prod05.jpg",
"skizzen/s_prod06.jpg",
"skizzen/s_prod07.jpg",
"skizzen/s_prod08.jpg");

var prod_pic_small = new Array(
"skizzen/s_prod01_small.jpg",
"skizzen/s_prod02_small.jpg",
"skizzen/s_prod03_small.jpg",
"skizzen/s_prod04_small.jpg",
"skizzen/s_prod05_small.jpg",
"skizzen/s_prod06_small.jpg",
"skizzen/s_prod07_small.jpg",
"skizzen/s_prod08_small.jpg");

var r_dv_bis10bar = new Array("100", "150", "200", "250", "300", "350", "400", "450", "500", "600", "700", "800", "900", "1000");
var prod_tbl_01 = new Array("100", "150", "200", "250", "300", "350", "400", "450", "500", "600", "700", "800", "900", "1000");
var prod_tbl_02 = new Array("100", "150", "200", "250", "300", "350", "400", "450", "500", "600", "700", "800", "900", "1000");
var prod_tbl_03 = new Array("100", "150", "200", "250", "300", "350", "400", "450", "500", "600", "700", "800", "900", "1000");
var prod_tbl_04 = new Array("100", "150", "200", "250", "300", "350", "400", "450", "500", "600", "700", "800", "900", "1000");


function artikel_typ01(artnr, nw, press, temp, n_screw, height, s, weight) {

 this.artnr		= artnr;
 this.nw		= nw;
 this.press	= press;
 this.temp	= temp;
 this.n_screw	= n_screw;
 this.height	= height;
 this.s		= s;
 this.weight	= weight;

} 

function artikel_typ02(artnr, nw, press, temp, n_screw, height, r, s, weight) {

 this.artnr		= artnr;
 this.nw		= nw;
 this.press	= press;
 this.temp	= temp;
 this.n_screw	= n_screw;
 this.height	= height;
 this.r		= r;
 this.s		= s;
 this.weight	= weight;

} 

function artikel_typ03(artnr, nw, dia, n_screw, K, S, weight) {

 this.artnr		= artnr;
 this.nw		= nw;
 this.dia		= dia;
 this.n_screw	= n_screw;
 this.K		= K;
 this.S		= S;
 this.weight	= weight;

} 

function artikel_typ04(artnr, A, B, press, temp, n_screw, height, S, weight) {

 this.artnr		= artnr;
 this.A		= A;
 this.B		= B;
 this.press	= press;
 this.temp	= temp;
 this.n_screw	= n_screw;
 this.height	= height;
 this.S		= S;
 this.weight	= weight;

}

//product table 01

prod_tbl_01 ["100"] = [
new artikel_typ01(20162004, 100, 6, 200, 4, 180, 6, 9)];

prod_tbl_01 ["150"] = [
new artikel_typ01(21562004, 150, 6, 200, 4, 185, 4, 11)];

prod_tbl_01 ["200"] = [
new artikel_typ01(22062004, 200, 6, 200, 4, 190, 4, 14)];

prod_tbl_01 ["250"] = [
new artikel_typ01(22542804, 250, 4, 280, 4, 195, 4, 16), 
new artikel_typ01(22582504, 250, 8, 250, 4, 195, 5, 17)];

prod_tbl_01 ["300"] = [
new artikel_typ01(23042504, 300, 4, 250, 4, 200, 3, 18), 
new artikel_typ01(23062806, 300, 6, 250, 6, 200, 4, 21), 
new artikel_typ01(23082506, 300, 8, 250, 6, 200, 5, 22)];

prod_tbl_01 ["350"] = [
new artikel_typ01(23542004, 350, 4, 200, 4, 215, 3, 21), 
new artikel_typ01(23562006, 350, 6, 200, 6, 215, 4, 24)];

prod_tbl_01 ["400"] = [
new artikel_typ01(24042804, 400, 4, 850, 4, 230, 3, 24), 
new artikel_typ01(24060506, 400, 6, 50, 6, 230, 4, 27), 
new artikel_typ01(24062808, 400, 6, 280, 8, 230, 4, 28), 
new artikel_typ01(24082810, 400, 8, 280, 10, 230, 5, 31)];

prod_tbl_01 ["450"] = [
new artikel_typ01(24542806, 450, 4, 280, 6, 240, 3, 28), 
new artikel_typ01(24562508, 450, 6, 250, 8, 240, 4, 31), 
new artikel_typ01(24582010, 450, 8, 200, 10, 240, 5, 34)];

prod_tbl_01 ["500"] = [
new artikel_typ01(25032806, 500, 3, 280, 6, 255, 3, 31), 
new artikel_typ01(25042808, 500, 4, 280, 8, 255, 3, 33), 
new artikel_typ01(25062510, 500, 6, 250, 10, 255, 4, 38), 
new artikel_typ01(25081512, 500, 8, 150, 12, 255, 5, 40)];

prod_tbl_01 ["600"] = [
new artikel_typ01(26022806, 600, 2, 280, 6, 285, 3, 42), 
new artikel_typ01(26040508, 600, 4, 50, 8, 285, 3, 44), 
new artikel_typ01(26042810, 600, 4, 280, 10, 285, 4, 46), 
new artikel_typ01(26061512, 600, 6, 150, 12, 285, 4, 49), 
new artikel_typ01(26081012, 600, 8, 100, 12, 285, 5, 53)];

prod_tbl_01 ["700"] = [
new artikel_typ01(27022806, 700, 2, 280, 8, 295, 3, 56), 
new artikel_typ01(27042812, 700, 4, 280, 12, 295, 4, 64), 
new artikel_typ01(27061514, 700, 6, 150, 14, 295, 5, 70), 
new artikel_typ01(27981916, 700, 8, 100, 16, 295, 6, 78)];

prod_tbl_01 ["800"] = [
new artikel_typ01(28020508, 800, 2, 50, 8, 300, 4, 76), 
new artikel_typ01(28022810, 800, 2, 280, 10, 300, 4, 78), 
new artikel_typ01(28042814, 800, 4, 280, 14, 300, 4, 82), 
new artikel_typ01(28080520, 800, 6, 150, 18, 300, 5, 90), 
new artikel_typ01(28080520, 800, 8, 100, 20, 300, 6, 97)];

prod_tbl_01 ["900"] = [
new artikel_typ01(29022810, 900, 2, 280, 12, 320, 4, 87), 
new artikel_typ01(29042518, 900, 4, 250, 18, 320, 5, 103), 
new artikel_typ01(29061522, 900, 6, 150, 22, 320, 6, 115), 
new artikel_typ01(29080524, 900, 8, 50, 24, 320, 8, 128)];

prod_tbl_01 ["1000"] = [
new artikel_typ01(21022812, 1000, 2, 280, 12, 340, 5, 110), 
new artikel_typ01(21042020, 1000, 4, 200, 20, 340, 5, 118), 
new artikel_typ01(21060524, 1000, 6, 50, 24, 340, 6, 125)];

// product table 02

prod_tbl_02 ["100"] = [
new artikel_typ02(20102004, 100, 10, 200, 4, 175, "flach", 24, 9),
new artikel_typ02(20142004, 100, 40, 200, 4, 175, "flach", 24, 10)];

prod_tbl_02 ["150"] = [
new artikel_typ02(21502004, 150, 10, 200, 4, 175, "flach", 24, 13),
new artikel_typ02(21542004, 150, 40, 200, 4, 175, "flach", 24, 14)];

prod_tbl_02 ["200"] = [
new artikel_typ02(22102004, 200, 10, 200, 4, 175, "flach", 24, 19),
new artikel_typ02(22252004, 200, 25, 200, 6, 175, "flach", 24, 20),
new artikel_typ02(22402004, 200, 40, 200, 8, 175, "flach", 24, 22)];

prod_tbl_02 ["250"] = [
new artikel_typ02(22502004, 250, 10, 200, 4, 175, "flach", 24, 24), 
new artikel_typ02(22552006, 250, 25, 200, 8, 175, "flach", 24, 27),
new artikel_typ02(22502010, 250, 40, 200, 10, 175, "flach", 24, 29)];

prod_tbl_02 ["300"] = [
new artikel_typ02(23102006, 300, 10, 200, 6, 200, 500, 6, 23), 
new artikel_typ02(23162008, 300, 16, 200, 8, 200, 500, 10, 27), 
new artikel_typ02(23251010, 300, 25, 100, 10, 200, 500, 10, 29)];

prod_tbl_02 ["350"] = [
new artikel_typ02(23502006, 350, 10, 200, 6, 215, 500, 6, 28), 
new artikel_typ02(23562008, 350, 16, 200, 8, 215, 500, 10, 33),
new artikel_typ02(23552012, 350, 25, 200, 12, 215, 500, 14, 40)];

prod_tbl_02 ["400"] = [
new artikel_typ02(24102008, 400, 10, 200, 8, 230, 500, 6, 33), 
new artikel_typ02(24162012, 400, 16, 200, 12, 230, 500, 10, 41), 
new artikel_typ02(2414252016, 400, 25, 200, 16, 230, 500, 12, 47)];

prod_tbl_02 ["450"] = [
new artikel_typ02(24502012, 450, 10, 200, 10, 240, 500, 6, 39), 
new artikel_typ02(24562014, 450, 16, 200, 14, 240, 500, 10, 48), 
new artikel_typ02(24550518, 450, 25, 50, 18, 240, 500, 10, 51)];

prod_tbl_02 ["500"] = [
new artikel_typ02(25102012, 500, 10, 200, 12, 255, 500, 6, 45), 
new artikel_typ02(25151516, 500, 16, 150, 16, 255, 500, 10, 55), 
new artikel_typ02(25202020, 500, 20, 200, 20, 255, 500, 12, 62)];

prod_tbl_02 ["600"] = [
new artikel_typ02(26102014, 600, 10, 200, 14, 285, 500, 6, 52), 
new artikel_typ02(26161520, 600, 16, 150, 20, 285, 500, 8, 65), 
new artikel_typ02(26200526, 600, 20, 50, 26, 285, 500, 10, 75)];

prod_tbl_02 ["700"] = [
new artikel_typ02(27102018, 700, 10, 200, 14, 295, 700, 8, 87), 
new artikel_typ02(27161530, 700, 16, 150, 20, 295, 700, 10, 104), 
new artikel_typ02(27205034, 700, 20, 50, 34, 295, 700, 10, 107)];

prod_tbl_02 ["800"] = [
new artikel_typ02(28102024, 800, 10, 200, 24, 300, 800, 10, 115), 
new artikel_typ02(28120536, 800, 16, 50, 36, 300, 800, 12, 133)];

prod_tbl_02 ["900"] = [
new artikel_typ02(29101530, 900, 10, 150, 30, 320, 900, 10, 139), 
new artikel_typ02(2912034, 900, 12, 50, 34, 320, 900, 10, 140)];

prod_tbl_02 ["1000"] = [
new artikel_typ02(21100536, 1000, 10, 50, 36, 340, 1000, 10, 161), 
new artikel_typ02(21120542, 1000, 12, 50, 42, 340, 1000, 12, 166)];




function select_table_nw_typ01(nw) {
 this.nw = nw;

var my_table = document.getElementById("PROD_TABLE");
var my_tbody = my_table.getElementsByTagName("tbody").item(0);
var my_tr = my_tbody.getElementsByTagName("tr").item(0);
var my_cel = my_tr.getElementsByTagName("td").item(0);

var my_text = my_cel.childNodes.item(0);
my_text.data = prod_tbl_01 [nw][0].artnr;

my_cel = my_tr.getElementsByTagName("td").item(2)
my_text = my_cel.childNodes.item(0);
my_text.data = prod_tbl_01 [nw][0].press;

my_cel = my_tr.getElementsByTagName("td").item(3)
my_text = my_cel.childNodes.item(0);
my_text.data = prod_tbl_01 [nw][0].temp;

my_cel = my_tr.getElementsByTagName("td").item(4)
my_text = my_cel.childNodes.item(0);
my_text.data = prod_tbl_01 [nw][0].n_screw;

my_cel = my_tr.getElementsByTagName("td").item(5)
my_text = my_cel.childNodes.item(0);
my_text.data = prod_tbl_01 [nw][0].height;

my_cel = my_tr.getElementsByTagName("td").item(6)
my_text = my_cel.childNodes.item(0);
my_text.data = prod_tbl_01 [nw][0].s;

my_cel = my_tr.getElementsByTagName("td").item(7)
my_text = my_cel.childNodes.item(0);
my_text.data = prod_tbl_01 [nw][0].weight;
  
  while (my_tbody.getElementsByTagName("tr").item(1)) my_table.getElementsByTagName("tbody").item(0).deleteRow(1);
  
  for (nw_idx = 1; nw_idx < prod_tbl_01 [nw].length; nw_idx++) {

   mycurrent_row = document.createElement("tr");
   if (nw_idx % 2) mycurrent_row.style.background = "#a9a9a9";
   else mycurrent_row.style.background = "#d3d3d3";
  
   mycurrent_cell = document.createElement("td");
   mycurrent_cell.setAttribute("height", "20");
   my_artnr = document.createTextNode(prod_tbl_01 [nw][nw_idx].artnr);
   mycurrent_cell.appendChild(my_artnr);
   mycurrent_row.appendChild(mycurrent_cell);
   
   mycurrent_cell = document.createElement("td");
   mycurrent_cell.setAttribute("height", "20");
   mycurrent_cell.setAttribute("align", "left");
   my_nw = document.createTextNode(prod_tbl_01 [nw][nw_idx].nw);
   mycurrent_cell.appendChild(my_nw);
   mycurrent_row.appendChild(mycurrent_cell);
   
   mycurrent_cell = document.createElement("td");
   mycurrent_cell.setAttribute("height", "20");
   my_press = document.createTextNode(prod_tbl_01 [nw][nw_idx].press);
   mycurrent_cell.appendChild(my_press);
   mycurrent_row.appendChild(mycurrent_cell);

   mycurrent_cell = document.createElement("td");
   mycurrent_cell.setAttribute("height", "20");
   my_temp = document.createTextNode(prod_tbl_01 [nw][nw_idx].temp);
   mycurrent_cell.appendChild(my_temp);
   mycurrent_row.appendChild(mycurrent_cell);

   mycurrent_cell = document.createElement("td");
   mycurrent_cell.setAttribute("height", "20");
   my_n_screw = document.createTextNode(prod_tbl_01 [nw][nw_idx].n_screw);
   mycurrent_cell.appendChild(my_n_screw);
   mycurrent_row.appendChild(mycurrent_cell);

   mycurrent_cell = document.createElement("td");
   mycurrent_cell.setAttribute("height", "20");
   my_height = document.createTextNode(prod_tbl_01 [nw][nw_idx].height);
   mycurrent_cell.appendChild(my_height);
   mycurrent_row.appendChild(mycurrent_cell);

   mycurrent_cell = document.createElement("td");
   mycurrent_cell.setAttribute("height", "20");
   my_s = document.createTextNode(prod_tbl_01 [nw][nw_idx].s);
   mycurrent_cell.appendChild(my_s);
   mycurrent_row.appendChild(mycurrent_cell);

   mycurrent_cell = document.createElement("td");
   mycurrent_cell.setAttribute("height", "20");
   my_weight = document.createTextNode(prod_tbl_01 [nw][nw_idx].weight);
   mycurrent_cell.appendChild(my_weight);
   mycurrent_row.appendChild(mycurrent_cell);

   my_table.getElementsByTagName("tbody").item(0).appendChild(mycurrent_row);
     
  }
  
  mycurrent_row = document.createElement("tr");
  if (nw_idx % 2) mycurrent_row.style.background = "#a9a9a9";
   else mycurrent_row.style.background = "#d3d3d3";
  mycurrent_cell = document.createElement("td");
  mycurrent_cell.setAttribute("colSpan", 8);
  mycurrent_cell.setAttribute("height", 3);
  my_dummy = document.createTextNode(" ");
  
  mycurrent_cell.appendChild(my_dummy);
  mycurrent_row.appendChild(mycurrent_cell);
  
  my_table.getElementsByTagName("tbody").item(0).appendChild(mycurrent_row);
  
}



function select_table_nw_typ02(nw) {
 this.nw = nw;

var my_table = document.getElementById("PROD_TABLE");
var my_tbody = my_table.getElementsByTagName("tbody").item(0);
var my_tr = my_tbody.getElementsByTagName("tr").item(0);
var my_cel = my_tr.getElementsByTagName("td").item(0);

var my_text = my_cel.childNodes.item(0);
my_text.data = prod_tbl_02 [nw][0].artnr;

my_cel = my_tr.getElementsByTagName("td").item(2)
my_text = my_cel.childNodes.item(0);
my_text.data = prod_tbl_02 [nw][0].press;

my_cel = my_tr.getElementsByTagName("td").item(3)
my_text = my_cel.childNodes.item(0);
my_text.data = prod_tbl_02 [nw][0].temp;

my_cel = my_tr.getElementsByTagName("td").item(4)
my_text = my_cel.childNodes.item(0);
my_text.data = prod_tbl_02 [nw][0].n_screw;

my_cel = my_tr.getElementsByTagName("td").item(5)
my_text = my_cel.childNodes.item(0);
my_text.data = prod_tbl_02 [nw][0].height;

my_cel = my_tr.getElementsByTagName("td").item(6)
my_text = my_cel.childNodes.item(0);
my_text.data = prod_tbl_02 [nw][0].r;

my_cel = my_tr.getElementsByTagName("td").item(7)
my_text = my_cel.childNodes.item(0);
my_text.data = prod_tbl_02 [nw][0].s;

my_cel = my_tr.getElementsByTagName("td").item(8)
my_text = my_cel.childNodes.item(0);
my_text.data = prod_tbl_02 [nw][0].weight;

  
  while (my_tbody.getElementsByTagName("tr").item(1)) my_table.getElementsByTagName("tbody").item(0).deleteRow(1);
  
  for (nw_idx = 1; nw_idx < prod_tbl_02 [nw].length; nw_idx++) {

   mycurrent_row = document.createElement("tr");
   if (nw_idx % 2) mycurrent_row.style.background = "#a9a9a9";
   else mycurrent_row.style.background = "#d3d3d3";
  
   mycurrent_cell = document.createElement("td");
   mycurrent_cell.setAttribute("height", "20");
   my_artnr = document.createTextNode(prod_tbl_02 [nw][nw_idx].artnr);
   mycurrent_cell.appendChild(my_artnr);
   mycurrent_row.appendChild(mycurrent_cell);
   
   mycurrent_cell = document.createElement("td");
   mycurrent_cell.setAttribute("height", "20");
   mycurrent_cell.setAttribute("align", "left");
   my_nw = document.createTextNode(prod_tbl_02 [nw][nw_idx].nw);
   mycurrent_cell.appendChild(my_nw);
   mycurrent_row.appendChild(mycurrent_cell);
   
   mycurrent_cell = document.createElement("td");
   mycurrent_cell.setAttribute("height", "20");
   my_press = document.createTextNode(prod_tbl_02 [nw][nw_idx].press);
   mycurrent_cell.appendChild(my_press);
   mycurrent_row.appendChild(mycurrent_cell);

   mycurrent_cell = document.createElement("td");
   mycurrent_cell.setAttribute("height", "20");
   my_temp = document.createTextNode(prod_tbl_02 [nw][nw_idx].temp);
   mycurrent_cell.appendChild(my_temp);
   mycurrent_row.appendChild(mycurrent_cell);

   mycurrent_cell = document.createElement("td");
   mycurrent_cell.setAttribute("height", "20");
   my_n_screw = document.createTextNode(prod_tbl_02 [nw][nw_idx].n_screw);
   mycurrent_cell.appendChild(my_n_screw);
   mycurrent_row.appendChild(mycurrent_cell);

   mycurrent_cell = document.createElement("td");
   mycurrent_cell.setAttribute("height", "20");
   my_height = document.createTextNode(prod_tbl_02 [nw][nw_idx].height);
   mycurrent_cell.appendChild(my_height);
   mycurrent_row.appendChild(mycurrent_cell);

   mycurrent_cell = document.createElement("td");
   mycurrent_cell.setAttribute("height", "20");
   my_r = document.createTextNode(prod_tbl_02 [nw][nw_idx].r);
   mycurrent_cell.appendChild(my_r);
   mycurrent_row.appendChild(mycurrent_cell);

   mycurrent_cell = document.createElement("td");
   mycurrent_cell.setAttribute("height", "20");
   my_s = document.createTextNode(prod_tbl_02 [nw][nw_idx].s);
   mycurrent_cell.appendChild(my_s);
   mycurrent_row.appendChild(mycurrent_cell);

   mycurrent_cell = document.createElement("td");
   mycurrent_cell.setAttribute("height", "20");
   my_weight = document.createTextNode(prod_tbl_02 [nw][nw_idx].weight);
   mycurrent_cell.appendChild(my_weight);
   mycurrent_row.appendChild(mycurrent_cell);

   my_table.getElementsByTagName("tbody").item(0).appendChild(mycurrent_row);
     
  }
  
  mycurrent_row = document.createElement("tr");
  if (nw_idx % 2) mycurrent_row.style.background = "#a9a9a9";
   else mycurrent_row.style.background = "#d3d3d3";
  for (dummy_idx = 0; dummy_idx < 9; dummy_idx++) {
  mycurrent_cell = document.createElement("td");
  mycurrent_cell.setAttribute("height", "20");
  my_dummy = document.createTextNode(" ");
  mycurrent_cell.appendChild(my_dummy);
  mycurrent_row.appendChild(mycurrent_cell);
  }

  
  my_table.getElementsByTagName("tbody").item(0).appendChild(mycurrent_row);
  
}
 


function artikel(artnr, nw, press, temp, n_screw, height, s, weight) {

 this.artnr		= artnr;
 this.nw		= nw;
 this.press	= press;
 this.temp	= temp;
 this.n_screw	= n_screw;
 this.height	= height;
 this.s		= s;
 this.weight	= weight;

} 

r_dv_bis10bar ["100"] = [
new artikel(20162004, 100, 6, 200, 4, 180, 6, 9)];

r_dv_bis10bar ["150"] = [
new artikel(21562004, 150, 6, 200, 4, 185, 4, 11)];

r_dv_bis10bar ["200"] = [
new artikel(22062004, 200, 6, 200, 4, 190, 4, 14)];

r_dv_bis10bar ["250"] = [
new artikel(22542804, 250, 4, 280, 4, 195, 4, 16), 
new artikel(22582504, 250, 8, 250, 4, 195, 5, 17)];

r_dv_bis10bar ["300"] = [
new artikel(23042504, 300, 4, 250, 4, 200, 3, 18), 
new artikel(23062806, 300, 6, 250, 6, 200, 4, 21), 
new artikel(23082506, 300, 8, 250, 6, 200, 5, 22)];

r_dv_bis10bar ["350"] = [
new artikel(23542004, 350, 4, 200, 4, 215, 3, 21), 
new artikel(23562006, 350, 6, 200, 6, 215, 4, 24)];

r_dv_bis10bar ["400"] = [
new artikel(24042804, 400, 4, 850, 4, 230, 3, 24), 
new artikel(24060506, 400, 6, 50, 6, 230, 4, 27), 
new artikel(24062808, 400, 6, 280, 8, 230, 4, 28), 
new artikel(24082810, 400, 8, 280, 10, 230, 5, 31)];

r_dv_bis10bar ["450"] = [
new artikel(24542806, 450, 4, 280, 6, 240, 3, 28), 
new artikel(24562508, 450, 6, 250, 8, 240, 4, 31), 
new artikel(24582010, 450, 8, 200, 10, 240, 5, 34)];

r_dv_bis10bar ["500"] = [
new artikel(25032806, 500, 3, 280, 6, 255, 3, 31), 
new artikel(25042808, 500, 4, 280, 8, 255, 3, 33), 
new artikel(25062510, 500, 6, 250, 10, 255, 4, 38), 
new artikel(25081512, 500, 8, 150, 12, 255, 5, 40)];

r_dv_bis10bar ["600"] = [
new artikel(26022806, 600, 2, 280, 6, 285, 3, 42), 
new artikel(26040508, 600, 4, 50, 8, 285, 3, 44), 
new artikel(26042810, 600, 4, 280, 10, 285, 4, 46), 
new artikel(26061512, 600, 6, 150, 12, 285, 4, 49), 
new artikel(26081012, 600, 8, 100, 12, 285, 5, 53)];

r_dv_bis10bar ["700"] = [
new artikel(27022806, 700, 2, 280, 8, 295, 3, 56), 
new artikel(27042812, 700, 4, 280, 12, 295, 4, 64), 
new artikel(27061514, 700, 6, 150, 14, 295, 5, 70), 
new artikel(27981916, 700, 8, 100, 16, 295, 6, 78)];

r_dv_bis10bar ["800"] = [
new artikel(28020508, 800, 2, 50, 8, 300, 4, 76), 
new artikel(28022810, 800, 2, 280, 10, 300, 4, 78), 
new artikel(28042814, 800, 4, 280, 14, 300, 4, 82), 
new artikel(28080520, 800, 6, 150, 18, 300, 5, 90), 
new artikel(28080520, 800, 8, 100, 20, 300, 6, 97)];

r_dv_bis10bar ["900"] = [
new artikel(29022810, 900, 2, 280, 12, 320, 4, 87), 
new artikel(29042518, 900, 4, 250, 18, 320, 5, 103), 
new artikel(29061522, 900, 6, 150, 22, 320, 6, 115), 
new artikel(29080524, 900, 8, 50, 24, 320, 8, 128)];

r_dv_bis10bar ["1000"] = [
new artikel(21022812, 1000, 2, 280, 12, 340, 5, 110), 
new artikel(21042020, 1000, 4, 200, 20, 340, 5, 118), 
new artikel(21060524, 1000, 6, 50, 24, 340, 6, 125)];




function select_table_nw(nw) {
 this.nw = nw;

var my_table = document.getElementById("PROD_TABLE");
var my_tbody = my_table.getElementsByTagName("tbody").item(0);
var my_tr = my_tbody.getElementsByTagName("tr").item(0);
var my_cel = my_tr.getElementsByTagName("td").item(0);

var my_text = my_cel.childNodes.item(0);
my_text.data = r_dv_bis10bar [nw][0].artnr;

my_cel = my_tr.getElementsByTagName("td").item(2)
my_text = my_cel.childNodes.item(0);
my_text.data = r_dv_bis10bar [nw][0].press;

my_cel = my_tr.getElementsByTagName("td").item(3)
my_text = my_cel.childNodes.item(0);
my_text.data = r_dv_bis10bar [nw][0].temp;

my_cel = my_tr.getElementsByTagName("td").item(4)
my_text = my_cel.childNodes.item(0);
my_text.data = r_dv_bis10bar [nw][0].n_screw;

my_cel = my_tr.getElementsByTagName("td").item(5)
my_text = my_cel.childNodes.item(0);
my_text.data = r_dv_bis10bar [nw][0].height;

my_cel = my_tr.getElementsByTagName("td").item(6)
my_text = my_cel.childNodes.item(0);
my_text.data = r_dv_bis10bar [nw][0].s;

my_cel = my_tr.getElementsByTagName("td").item(7)
my_text = my_cel.childNodes.item(0);
my_text.data = r_dv_bis10bar [nw][0].weight;
  
  while (my_tbody.getElementsByTagName("tr").item(1)) my_table.getElementsByTagName("tbody").item(0).deleteRow(1);
  
  for (nw_idx = 1; nw_idx < r_dv_bis10bar [nw].length; nw_idx++) {

   mycurrent_row = document.createElement("tr");
   if (nw_idx % 2) mycurrent_row.style.background = "#a9a9a9";
   else mycurrent_row.style.background = "#d3d3d3";
  
   mycurrent_cell = document.createElement("td");
   mycurrent_cell.setAttribute("height", "20");
   my_artnr = document.createTextNode(r_dv_bis10bar [nw][nw_idx].artnr);
   mycurrent_cell.appendChild(my_artnr);
   mycurrent_row.appendChild(mycurrent_cell);
   
   mycurrent_cell = document.createElement("td");
   mycurrent_cell.setAttribute("height", "20");
   mycurrent_cell.setAttribute("align", "left");
   my_nw = document.createTextNode(r_dv_bis10bar [nw][nw_idx].nw);
   mycurrent_cell.appendChild(my_nw);
   mycurrent_row.appendChild(mycurrent_cell);
   
   mycurrent_cell = document.createElement("td");
   mycurrent_cell.setAttribute("height", "20");
   my_press = document.createTextNode(r_dv_bis10bar [nw][nw_idx].press);
   mycurrent_cell.appendChild(my_press);
   mycurrent_row.appendChild(mycurrent_cell);

   mycurrent_cell = document.createElement("td");
   mycurrent_cell.setAttribute("height", "20");
   my_temp = document.createTextNode(r_dv_bis10bar [nw][nw_idx].temp);
   mycurrent_cell.appendChild(my_temp);
   mycurrent_row.appendChild(mycurrent_cell);

   mycurrent_cell = document.createElement("td");
   mycurrent_cell.setAttribute("height", "20");
   my_n_screw = document.createTextNode(r_dv_bis10bar [nw][nw_idx].n_screw);
   mycurrent_cell.appendChild(my_n_screw);
   mycurrent_row.appendChild(mycurrent_cell);

   mycurrent_cell = document.createElement("td");
   mycurrent_cell.setAttribute("height", "20");
   my_height = document.createTextNode(r_dv_bis10bar [nw][nw_idx].height);
   mycurrent_cell.appendChild(my_height);
   mycurrent_row.appendChild(mycurrent_cell);

   mycurrent_cell = document.createElement("td");
   mycurrent_cell.setAttribute("height", "20");
   my_s = document.createTextNode(r_dv_bis10bar [nw][nw_idx].s);
   mycurrent_cell.appendChild(my_s);
   mycurrent_row.appendChild(mycurrent_cell);

   mycurrent_cell = document.createElement("td");
   mycurrent_cell.setAttribute("height", "20");
   my_weight = document.createTextNode(r_dv_bis10bar [nw][nw_idx].weight);
   mycurrent_cell.appendChild(my_weight);
   mycurrent_row.appendChild(mycurrent_cell);

   my_table.getElementsByTagName("tbody").item(0).appendChild(mycurrent_row);
     
  }
  
  mycurrent_row = document.createElement("tr");
  if (nw_idx % 2) mycurrent_row.style.background = "#a9a9a9";
   else mycurrent_row.style.background = "#d3d3d3";
  for (dummy_idx = 0; dummy_idx < 8; dummy_idx++) {
  mycurrent_cell = document.createElement("td");
  mycurrent_cell.setAttribute("height", "20");
  my_dummy = document.createTextNode(" ");
  mycurrent_cell.appendChild(my_dummy);
  mycurrent_row.appendChild(mycurrent_cell);
  }

  
  my_table.getElementsByTagName("tbody").item(0).appendChild(mycurrent_row);
  
}


function getPosX(refObj)
   {
   xPos = refObj.offsetLeft;
   parentObj=refObj.offsetParent;
   while(parentObj != null) {xPos+=parentObj.offsetLeft;parentObj=parentObj.offsetParent}
   return xPos;
   }

function getPosY(refObj)
   {
   yPos = refObj.offsetTop;
   parentObj=refObj.offsetParent;
   while(parentObj != null) {yPos+=parentObj.offsetTop;parentObj=parentObj.offsetParent}
   return yPos;
   }
   
function getZimLogoXPos()
{
   xpos = top.top_frame.document.getElementById("ID_ZIM_LOGO").offsetLeft ;

   return xpos - 250;
}

function show_prod( idx ) 
{
 top.left_frame.location.href = tbl_product_left[idx];
 top.main_frame.location.href = tbl_product_main[idx];
}

function show_prod_en( idx ) 
{
 top.left_frame.location.href = tbl_product_left_en[idx];
 top.main_frame.location.href = tbl_product_main_en[idx];
}

function show_prod_fr( idx ) 
{
 top.left_frame.location.href = tbl_product_left_fr[idx];
 top.main_frame.location.href = tbl_product_main_fr[idx];
}


function show_frame_l_m( f_left, f_main ) 
{
 top.left_frame.location.href = f_left;
 top.main_frame.location.href = f_main;
}

function show_offices( location ) 
{

  
 if (location ==  "Europe") {top.main_frame.location.href = "zimmerlin_europe.html";  top.left_frame.location.href = "zimmerlin_germany.html";}
 if (location == "AM") {top.main_frame.location.href = "zimmerlin_america.html";  top.left_frame.location.href = "zimmerlin_addr_usa.html";}
 if (location == "Asia") {top.main_frame.location.href = "zimmerlin_asia.html";  top.left_frame.location.href = "blank.html";}

 if (location ==  "Europe eng") {top.main_frame.location.href = "zimmerlin_europe_en.html";  top.left_frame.location.href = "zimmerlin_germany.html";}
 if (location == "AM eng") {top.main_frame.location.href = "zimmerlin_america_en.html";  top.left_frame.location.href = "zimmerlin_addr_usa_en.html";}
 if (location == "Asia eng") {top.main_frame.location.href = "zimmerlin_asia_en.html";  top.left_frame.location.href = "blank.html";}

 if (location ==  "Europe fr") {top.main_frame.location.href = "zimmerlin_europe_fr.html";  top.left_frame.location.href = "zimmerlin_germany.html";}
 if (location == "AM fr") {top.main_frame.location.href = "zimmerlin_america_fr.html";  top.left_frame.location.href = "zimmerlin_addr_usa_fr.html";}
 if (location == "Asia fr") {top.main_frame.location.href = "zimmerlin_asia_fr.html";  top.left_frame.location.href = "blank.html";}

}

function load_requestform( frm ) 
{
 top.main_frame.location.href = "req_cover_1bar.html";
}


function print_prodinfo(file) {

window.open(file);
}