/**
* 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 += "| " + LinksArray[j][0] + " |
";
}
}
tHTML += "
";
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[1] = new Array();
CatMenuARRAY[1][0] = new Array();
CatMenuARRAY[1][0][1] = '/frame.php?lay1=1&lay2=1';
CatMenuARRAY[1][0][0] = 'Empresa';
CatMenuARRAY[2] = new Array();
CatMenuARRAY[1][1] = new Array();
CatMenuARRAY[1][1][1] = '/frame.php?lay1=1&lay2=2';
CatMenuARRAY[1][1][0] = 'Organizacao';
CatMenuARRAY[4] = new Array();
CatMenuARRAY[1][2] = new Array();
CatMenuARRAY[1][2][1] = '/frame.php?lay1=1&lay2=4';
CatMenuARRAY[1][2][0] = 'Endereco';
CatMenuARRAY[6] = new Array();
CatMenuARRAY[1][3] = new Array();
CatMenuARRAY[1][3][1] = '/frame.php?lay1=1&lay2=5';
CatMenuARRAY[1][3][0] = 'Contact';
CatMenuARRAY[22] = new Array();
CatMenuARRAY[11] = new Array();
CatMenuARRAY[11][0] = new Array();
CatMenuARRAY[11][0][1] = '/frame.php?lay1=2&lay2=1';
CatMenuARRAY[11][0][0] = 'Dedos duplos';
CatMenuARRAY[12] = new Array();
CatMenuARRAY[11][1] = new Array();
CatMenuARRAY[11][1][1] = '/frame.php?lay1=2&lay2=2';
CatMenuARRAY[11][1][0] = 'Navalhas Pro-Cut';
CatMenuARRAY[13] = new Array();
CatMenuARRAY[11][2] = new Array();
CatMenuARRAY[11][2][1] = '/frame.php?lay1=2&lay2=3';
CatMenuARRAY[11][2][0] = 'Faca seccional';
CatMenuARRAY[14] = new Array();
CatMenuARRAY[11][3] = new Array();
CatMenuARRAY[11][3][1] = '/frame.php?lay1=2&lay2=4';
CatMenuARRAY[11][3][0] = 'Roller Guia';
CatMenuARRAY[15] = new Array();
CatMenuARRAY[7] = new Array();
CatMenuARRAY[7][0] = new Array();
CatMenuARRAY[7][0][1] = '/frame.php?lay1=3&lay2=1';
CatMenuARRAY[7][0][0] = 'AS-X';
CatMenuARRAY[8] = new Array();
CatMenuARRAY[7][1] = new Array();
CatMenuARRAY[7][1][1] = '/frame.php?lay1=3&lay2=2';
CatMenuARRAY[7][1][0] = 'AS-M';
CatMenuARRAY[9] = new Array();
CatMenuARRAY[7][2] = new Array();
CatMenuARRAY[7][2][1] = '/frame.php?lay1=3&lay2=3';
CatMenuARRAY[7][2][0] = 'Informacoes tecnicas';
CatMenuARRAY[10] = new Array();
CatMenuARRAY[16] = new Array();
CatMenuARRAY[17] = new Array();
CatMenuARRAY[18] = new Array();
CatMenuARRAY[18][0] = new Array();
CatMenuARRAY[18][0][1] = '/frame.php?lay1=6&lay2=1';
CatMenuARRAY[18][0][0] = 'Infotecnica';
CatMenuARRAY[19] = new Array();
CatMenuARRAY[18][1] = new Array();
CatMenuARRAY[18][1][1] = '/frame.php?lay1=6&lay2=2';
CatMenuARRAY[18][1][0] = 'Lista de pecas de reposicao';
CatMenuARRAY[20] = new Array();
CatMenuARRAY[21] = new Array();