/** * Popupmenu */ var pln = "PopupLayer"; // Layer-Name var pwi = 200; // Layer-Width var pbg = "#FFFFFF"; // Layer-Background-Color var pbg_o = "#dbdfef"; // Layer-Background-Color-Over var pel = "#F2963A"; // Layer-Lines-Color var ptop = 120; var clnLink2 = "e3"; // Class for Link 2 function getElementPosition(obj) { var x = 0, y = 0; var x1 = null, y1 = null; if (typeof(obj.style) != "undefined") { x1 = obj.style.left; y1 = obj.style.top; } if (x1 != null && x1 != "" && y1 != null && y1 != "") { x = x1; y = y1; } else { do { if (typeof(obj.style) != "undefined") { x1 = obj.style.left; y1 = obj.style.top; } else { x1 = null; y1 = null; } if (x1 != null && x1 != "" && y1 != null && y1 != "") { x1 = x1.replace("px",""); y1 = y1.replace("px",""); x += x1*1; y += y1*1; break; } else if (obj.tagName == "TABLE" || obj.tagName == "TD" || obj.tagName == "TEXTAREA") { x += obj.offsetLeft; y += obj.offsetTop; } if (obj.parentElement) obj = obj.parentElement; else if (obj.parentNode) obj = obj.parentNode; else obj = null; } while(obj != null && obj.tagName != "BODY") } return {x:x, y:y}; } // Popup status var IsOM = false; // Layer erstellen document.writeln(''); var CatMenuARRAY = new Array(); // Tabelle für Menü erstellen function CreateMTab(LinksArray) { var tHTML = ""; tHTML += ""; var j; if (LinksArray.length > 0) { for (j = 0; j < LinksArray.length; j++) { tHTML += ""; } } tHTML += "
" + LinksArray[j][0] + "
"; return tHTML; } // Fensterbreite überprüfen function CheckWinW() { var screenwidth = 1000; if (document.getElementById) { if (navigator.appName == 'Microsoft Internet Explorer' && (navigator.platform.substring(0,3) == 'Win')) { var screenwidth = frames.top.document.body.clientWidth; } else if (navigator.appName == 'Netscape' || navigator.platform == 'MacPPC') { var screenwidth = frames.top.innerWidth; } } return screenwidth; } // Popupmenü für def. Kategorie anzeigen function ShowPp(CatID, eNr) { clearTP(); if (document.getElementById) { if (CatMenuARRAY[CatID].length > 0) { var pleft = 24; if (document.getElementById("tdp_"+CatID)) { /* pleft = document.getElementById("tdp_"+CatID).offsetLeft; if (pleft + pwi > CheckWinW()) { pleft = document.getElementById("tdp_"+CatID).offsetLeft + document.getElementById("tdp_"+CatID).offsetWidth - pwi; } */ var koord = getElementPosition(document.getElementById("tdp_"+CatID)); pleft = koord.x; } document.getElementById(pln).style.left = pleft; document.getElementById(pln).innerHTML = CreateMTab(CatMenuARRAY[CatID]); document.getElementById(pln).style.top = ptop; document.getElementById(pln).style.visibility = "visible"; } else { HidePp(); } } } // Popupmenü ausblenden function HidePp() { if (document.getElementById) { document.getElementById(pln).style.visibility = "hidden"; } } var MyTM = false; function setTP() { MyTM = window.setTimeout("HidePp()", 1000); } function clearTP() { if (MyTM) window.clearTimeout(MyTM); MyTM = false; } CatMenuARRAY[15] = new Array(); CatMenuARRAY[15][0] = new Array(); CatMenuARRAY[15][0][1] = '/frame.php?lay1=1&lay2=1'; CatMenuARRAY[15][0][0] = 'Das Unternehmen'; CatMenuARRAY[39] = new Array(); CatMenuARRAY[15][1] = new Array(); CatMenuARRAY[15][1][1] = '/frame.php?lay1=1&lay2=2'; CatMenuARRAY[15][1][0] = 'Partnerfirmen'; CatMenuARRAY[37] = new Array(); CatMenuARRAY[15][2] = new Array(); CatMenuARRAY[15][2][1] = '/frame.php?lay1=1&lay2=3'; CatMenuARRAY[15][2][0] = 'Historie'; CatMenuARRAY[53] = new Array(); CatMenuARRAY[15][3] = new Array(); CatMenuARRAY[15][3][1] = '/frame.php?lay1=1&lay2=5'; CatMenuARRAY[15][3][0] = 'Ihr Weg zu uns'; CatMenuARRAY[38] = new Array(); CatMenuARRAY[15][4] = new Array(); CatMenuARRAY[15][4][1] = '/frame.php?lay1=1&lay2=6'; CatMenuARRAY[15][4][0] = 'Mitarbeiter'; CatMenuARRAY[41] = new Array(); CatMenuARRAY[89] = new Array(); CatMenuARRAY[89][0] = new Array(); CatMenuARRAY[89][0][1] = '/frame.php?lay1=2&lay2=1'; CatMenuARRAY[89][0][0] = 'Claas'; CatMenuARRAY[90] = new Array(); CatMenuARRAY[89][1] = new Array(); CatMenuARRAY[89][1][1] = '/frame.php?lay1=2&lay2=2'; CatMenuARRAY[89][1][0] = 'Deutz-Fahr'; CatMenuARRAY[92] = new Array(); CatMenuARRAY[89][2] = new Array(); CatMenuARRAY[89][2][1] = '/frame.php?lay1=2&lay2=3'; CatMenuARRAY[89][2][0] = 'Fiatagri-Laverda'; CatMenuARRAY[93] = new Array(); CatMenuARRAY[89][3] = new Array(); CatMenuARRAY[89][3][1] = '/frame.php?lay1=2&lay2=4'; CatMenuARRAY[89][3][0] = 'IHC Axial'; CatMenuARRAY[94] = new Array(); CatMenuARRAY[89][4] = new Array(); CatMenuARRAY[89][4][1] = '/frame.php?lay1=2&lay2=5'; CatMenuARRAY[89][4][0] = 'John Deere'; CatMenuARRAY[95] = new Array(); CatMenuARRAY[89][5] = new Array(); CatMenuARRAY[89][5][1] = '/frame.php?lay1=2&lay2=6'; CatMenuARRAY[89][5][0] = 'MF-Fendt'; CatMenuARRAY[96] = new Array(); CatMenuARRAY[89][6] = new Array(); CatMenuARRAY[89][6][1] = '/frame.php?lay1=2&lay2=7'; CatMenuARRAY[89][6][0] = 'New Holland'; CatMenuARRAY[91] = new Array(); CatMenuARRAY[11] = new Array(); CatMenuARRAY[11][0] = new Array(); CatMenuARRAY[11][0][1] = '/frame.php?lay1=3&lay2=8'; CatMenuARRAY[11][0][0] = 'Doppelfinger'; CatMenuARRAY[44] = new Array(); CatMenuARRAY[11][1] = new Array(); CatMenuARRAY[11][1][1] = '/frame.php?lay1=3&lay2=9'; CatMenuARRAY[11][1][0] = 'Messerklinge Pro Cut'; CatMenuARRAY[45] = new Array(); CatMenuARRAY[11][2] = new Array(); CatMenuARRAY[11][2][1] = '/frame.php?lay1=3&lay2=10'; CatMenuARRAY[11][2][0] = 'Sektionalmesser'; CatMenuARRAY[46] = new Array(); CatMenuARRAY[11][3] = new Array(); CatMenuARRAY[11][3][1] = '/frame.php?lay1=3&lay2=11'; CatMenuARRAY[11][3][0] = 'Rollenführung'; CatMenuARRAY[47] = new Array(); CatMenuARRAY[1] = new Array(); CatMenuARRAY[1][0] = new Array(); CatMenuARRAY[1][0][1] = '/frame.php?lay1=4&lay2=1'; CatMenuARRAY[1][0][0] = 'ASK Ährenheber'; CatMenuARRAY[84] = new Array(); CatMenuARRAY[1][1] = new Array(); CatMenuARRAY[1][1][1] = '/frame.php?lay1=4&lay2=2'; CatMenuARRAY[1][1][0] = 'ASM Ährenheber'; CatMenuARRAY[4] = new Array(); CatMenuARRAY[1][2] = new Array(); CatMenuARRAY[1][2][1] = '/frame.php?lay1=4&lay2=3'; CatMenuARRAY[1][2][0] = 'ASX Ährenheber'; CatMenuARRAY[3] = new Array(); CatMenuARRAY[1][3] = new Array(); CatMenuARRAY[1][3][1] = '/frame.php?lay1=4&lay2=5'; CatMenuARRAY[1][3][0] = 'Technische Informationen'; CatMenuARRAY[35] = new Array(); CatMenuARRAY[72] = new Array(); CatMenuARRAY[12] = new Array(); CatMenuARRAY[14] = new Array(); CatMenuARRAY[14][0] = new Array(); CatMenuARRAY[14][0][1] = '/frame.php?lay1=8&lay2=1'; CatMenuARRAY[14][0][0] = 'Verschleißkontrolle'; CatMenuARRAY[88] = new Array(); CatMenuARRAY[14][1] = new Array(); CatMenuARRAY[14][1][1] = '/frame.php?lay1=8&lay2=2'; CatMenuARRAY[14][1][0] = 'Kundendienst'; CatMenuARRAY[85] = new Array(); CatMenuARRAY[14][2] = new Array(); CatMenuARRAY[14][2][1] = '/frame.php?lay1=8&lay2=3'; CatMenuARRAY[14][2][0] = 'Technische Info'; CatMenuARRAY[86] = new Array(); CatMenuARRAY[14][3] = new Array(); CatMenuARRAY[14][3][1] = '/frame.php?lay1=8&lay2=4'; CatMenuARRAY[14][3][0] = 'Ersatzteillisten Mähsysteme'; CatMenuARRAY[87] = new Array(); CatMenuARRAY[43] = new Array(); CatMenuARRAY[43][0] = new Array(); CatMenuARRAY[43][0][1] = '/frame.php?lay1=10&lay2=1'; CatMenuARRAY[43][0][0] = 'Easy Cut II'; CatMenuARRAY[83] = new Array(); CatMenuARRAY[43][1] = new Array(); CatMenuARRAY[43][1][1] = '/frame.php?lay1=10&lay2=4'; CatMenuARRAY[43][1][0] = 'Presse aktuell'; CatMenuARRAY[62] = new Array(); CatMenuARRAY[43][2] = new Array(); CatMenuARRAY[43][2][1] = '/frame.php?lay1=10&lay2=5'; CatMenuARRAY[43][2][0] = 'Presse Archiv'; CatMenuARRAY[78] = new Array(); CatMenuARRAY[43][3] = new Array(); CatMenuARRAY[43][3][1] = '/frame.php?lay1=10&lay2=7'; CatMenuARRAY[43][3][0] = 'Downloads'; CatMenuARRAY[55] = new Array();