/** * 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] = 'Company'; CatMenuARRAY[39] = new Array(); CatMenuARRAY[15][1] = new Array(); CatMenuARRAY[15][1][1] = '/frame.php?lay1=1&lay2=2'; CatMenuARRAY[15][1][0] = 'Partners'; CatMenuARRAY[37] = new Array(); CatMenuARRAY[15][2] = new Array(); CatMenuARRAY[15][2][1] = '/frame.php?lay1=1&lay2=3'; CatMenuARRAY[15][2][0] = 'History'; CatMenuARRAY[52] = new Array(); CatMenuARRAY[15][3] = new Array(); CatMenuARRAY[15][3][1] = '/frame.php?lay1=1&lay2=4'; CatMenuARRAY[15][3][0] = 'Driving'; CatMenuARRAY[38] = new Array(); CatMenuARRAY[1] = new Array(); CatMenuARRAY[1][0] = new Array(); CatMenuARRAY[1][0][1] = '/frame.php?lay1=2&lay2=1'; CatMenuARRAY[1][0][0] = 'ASK Crop lifter'; CatMenuARRAY[59] = new Array(); CatMenuARRAY[1][1] = new Array(); CatMenuARRAY[1][1][1] = '/frame.php?lay1=2&lay2=2'; CatMenuARRAY[1][1][0] = 'ASM Crop lifter'; CatMenuARRAY[4] = new Array(); CatMenuARRAY[1][2] = new Array(); CatMenuARRAY[1][2][1] = '/frame.php?lay1=2&lay2=3'; CatMenuARRAY[1][2][0] = 'ASX Crop lifter'; CatMenuARRAY[3] = new Array(); CatMenuARRAY[1][3] = new Array(); CatMenuARRAY[1][3][1] = '/frame.php?lay1=2&lay2=5'; CatMenuARRAY[1][3][0] = 'Technical information'; CatMenuARRAY[35] = new Array(); CatMenuARRAY[11] = new Array(); CatMenuARRAY[11][0] = new Array(); CatMenuARRAY[11][0][1] = '/frame.php?lay1=3&lay2=9'; CatMenuARRAY[11][0][0] = 'Guard'; CatMenuARRAY[44] = new Array(); CatMenuARRAY[11][1] = new Array(); CatMenuARRAY[11][1][1] = '/frame.php?lay1=3&lay2=10'; CatMenuARRAY[11][1][0] = 'ProCut section'; CatMenuARRAY[45] = new Array(); CatMenuARRAY[11][2] = new Array(); CatMenuARRAY[11][2][1] = '/frame.php?lay1=3&lay2=11'; CatMenuARRAY[11][2][0] = 'Sectionalized knife'; CatMenuARRAY[46] = new Array(); CatMenuARRAY[11][3] = new Array(); CatMenuARRAY[11][3][1] = '/frame.php?lay1=3&lay2=12'; CatMenuARRAY[11][3][0] = 'Rollerguide'; CatMenuARRAY[47] = new Array(); CatMenuARRAY[12] = new Array(); CatMenuARRAY[14] = new Array(); CatMenuARRAY[32] = new Array(); CatMenuARRAY[32][0] = new Array(); CatMenuARRAY[32][0][1] = '/frame.php?lay1=6&lay2=1'; CatMenuARRAY[32][0][0] = 'Technical informationen'; CatMenuARRAY[33] = new Array(); CatMenuARRAY[32][1] = new Array(); CatMenuARRAY[32][1][1] = '/frame.php?lay1=6&lay2=2'; CatMenuARRAY[32][1][0] = 'Parts list SCH EasyCut'; CatMenuARRAY[34] = new Array(); CatMenuARRAY[43] = new Array(); CatMenuARRAY[43][0] = new Array(); CatMenuARRAY[43][0][1] = '/frame.php?lay1=8&lay2=1'; CatMenuARRAY[43][0][0] = 'Easy Cut II'; CatMenuARRAY[61] = new Array(); CatMenuARRAY[43][1] = new Array(); CatMenuARRAY[43][1][1] = '/frame.php?lay1=8&lay2=3'; CatMenuARRAY[43][1][0] = 'Show dates'; CatMenuARRAY[51] = new Array();