var szCust;
var szLang;
var szUID;
var bUIDIsStatic;
function Folder(target, folderDescription, hreference) {
this.target = target;
this.desc = folderDescription;
this.hreference = hreference;
this.id = -1;
this.navObj = 0;
this.iconImg = 0;
this.nodeImg = 0;
this.isLastNode = 0;
this.isOpen = true;
this.iconSrc = "http://www.buddeberg.de/images/menu/ftv2folderopen.gif";
this.children = new Array
this.nChildren = 0;
this.parentFolder = 0;
this.initialize = initializeFolder
this.setState = setStateFolder
this.addChild = addChild
this.createIndex = createEntryIndex
this.hide = hideFolder
this.display = display
this.renderOb = drawFolder
this.totalHeight = totalHeight
this.subEntries = folderSubEntries
this.outputLink = outputFolderLink}
function setStateFolder(isOpen){
var subEntries
var totalHeight
var fIt = 0
var i=0
if (isOpen == this.isOpen)
return
if (browserVersion == 2){
totalHeight = 0
for (i=0; i < this.nChildren; i++)
totalHeight = totalHeight + this.children[i].navObj.clip.height
subEntries = this.subEntries()
if (this.isOpen)
totalHeight = 0 - totalHeight
for (fIt = this.id + subEntries + 1; fIt < nEntries; fIt++)
indexOfEntries[fIt].navObj.moveBy(0, totalHeight)}
this.isOpen = isOpen
if ((isOpen) && (this.id > 0) && (this.parentFolder)) {
this.parentFolder.setState(1);}
propagateChangesInState(this)}
function propagateChangesInState(folder){
var i=0
if (folder.isOpen){
if (folder.nodeImg) {
folder.nodeImg.src = "http://www.buddeberg.de/images/menu/ftv2blank.gif"}
else if (folder.iconImg) {
folder.iconImg.src = "http://www.buddeberg.de/images/menu/ftv2blank.gif"}
for (i=0; i<folder.nChildren; i++)
folder.children[i].display()}
else{
if (folder.nodeImg) {
folder.nodeImg.src = "http://www.buddeberg.de/images/menu/ftv2blank.gif"}
else if (folder.iconImg) {
folder.iconImg.src = "http://www.buddeberg.de/images/menu/ftv2blank.gif"}
for (i=0; i<folder.nChildren; i++)
folder.children[i].hide()
}}
function hideFolder(){
if ((browserVersion == 1) || (browserVersion == 3)) {
if (this.navObj.style.display == "none")
return
this.navObj.style.display = "none"
} else {
if (this.navObj.visibility == "hiden")
return
this.navObj.visibility = "hiden"}
this.setState(0)}
function initializeFolder(level, lastNode, leftSide, pszLang, pszCust, pszUID){
var j=0
var i=0
var numberOfFolders
var numberOfDocs
var nc
nc = this.nChildren
if (this.hreference != "") {
if (this.hreference.indexOf("?") != -1)
this.hreference = this.hreference + "&";
else
this.hreference = this.hreference + "?";
this.hreference = this.hreference + "Lang="+pszLang+"&Cust="+pszCust+"&UID="+pszUID+"'";}
this.createIndex()
if (level>1)
if (lastNode)  {
this.renderOb(leftSide + "<img name='nodeIcon" + this.id + "' src='http://www.buddeberg.de/images/menu/ftv2blank.gif' width=12 height=18 border=0>")
leftSide = leftSide + "<img src='http://www.buddeberg.de/images/menu/ftv2blank.gif' width=12 height=18>"
this.isLastNode = 1}
else{
this.renderOb(leftSide + "<img name='nodeIcon" + this.id + "' src='http://www.buddeberg.de/images/menu/ftv2blank.gif' width=12 height=18 border=0>")
leftSide = leftSide + "<img src='http://www.buddeberg.de/images/menu/ftv2blank.gif' width=12 height=18>"
this.isLastNode = 0}
else
this.renderOb("")
if (nc > 0){
level = level + 1
for (i=0 ; i < this.nChildren; i++){
if (i == this.nChildren-1)
this.children[i].initialize(level, 1, leftSide, pszLang, pszCust, pszUID)
else
this.children[i].initialize(level, 0, leftSide, pszLang, pszCust, pszUID)
}}}
function drawFolder(leftSide){
if (browserVersion == 2) {
if (!doc.yPos)
doc.yPos=2
doc.write("<layer id='folder" + this.id + "' top=" + doc.yPos + " visibility=hiden>")}
doc.write("<table ")
if ((browserVersion == 1) || (browserVersion == 3))
doc.write(" id='folder" + this.id + "' style='position:block;' ")
doc.write(" border=0 cellspacing=0 cellpadding=0>")
doc.write("<tr>")
doc.write("<td>")
doc.write(leftSide)
doc.write("</td>")
if ((this.parentFolder) && (this.parentFolder.id > 0))
doc.write("<td class='NavSubFolder' valign=middle nowrap>")
else
doc.write("<td class='NavMainFolder' valign=middle nowrap>")
if (USETEXTLINKS){
this.outputLink()
doc.write("&nbsp;&gt;&nbsp;" + this.desc + "</a>")}
else
doc.write(this.desc)
doc.write("</td>")
doc.write("</table>")
if (browserVersion == 2) {
doc.write("</layer>")}
if (browserVersion == 1) {
this.navObj = doc.all["folder"+this.id]
this.iconImg = doc.all["folderIcon"+this.id]
this.nodeImg = doc.all["nodeIcon"+this.id]
} else if (browserVersion == 2) {
this.navObj = doc.layers["folder"+this.id]
this.iconImg = this.navObj.document.images["folderIcon"+this.id]
this.nodeImg = this.navObj.document.images["nodeIcon"+this.id]
doc.yPos=doc.yPos+this.navObj.clip.height}
else if (browserVersion == 3) {
this.navObj = getElemByID("folder"+this.id);
this.iconImg = getElemByID("folderIcon"+this.id);
this.nodeImg = getElemByID("nodeIcon"+this.id);
}}
function outputFolderLink(){
if (this.hreference){
if (this.target==0)
doc.write("<a class='NavEntry' href='" + this.hreference + "'")
else
doc.write("<a class='NavEntry' href='" + this.hreference + "'")
if (browserVersion > 0)
doc.write("onClick='javascript:clickOnNode("+this.id+")'")
doc.write(">")}
else
doc.write("<a href='javascript:clickOnNode("+this.id+")'>")}
function addChild(childNode){
this.children[this.nChildren] = childNode
this.nChildren++
return childNode}
function folderSubEntries(){
var i = 0
var se = this.nChildren
for (i=0; i < this.nChildren; i++){
if (this.children[i].children)  se = se + this.children[i].subEntries()}
return se}
function Item(itemDescription, itemLink, altText) {
this.desc = itemDescription
this.link = itemLink
if (altText)
this.altText = altText;
else
this.altText = "";
this.id = -1;  this.navObj = 0;  this.iconImg = 0;  this.iconSrc = "http://www.buddeberg.de/images/menu/ftv2doc.gif";
this.parentFolder = 0;
this.initialize = initializeItem
this.createIndex = createEntryIndex
this.hide = hideItem
this.display = display
this.renderOb = drawItem
this.totalHeight = totalHeight}
function hideItem(){
if ((browserVersion == 1) || (browserVersion == 3)) {
if (this.navObj.style.display == "none")
return
this.navObj.style.display = "none"
} else {
if (this.navObj.visibility == "hiden")
return
this.navObj.visibility = "hiden"
}}
function initializeItem(level, lastNode, leftSide, pszLang, pszCust, pszUID){
var 	nLen;
nLen = this.link.length;
if (this.link.indexOf("?") != -1)
this.link = this.link.substring(0, nLen-1) + "&";
else
this.link = this.link.substring(0, nLen-1) + "?";
this.link = this.link + "Lang="+pszLang+"&Cust="+pszCust+"&UID="+pszUID+"'";
this.createIndex()
if (level>0) {
this.renderOb(leftSide + "<img src='http://www.buddeberg.de/images/menu/ftv2blank.gif' width=12 height=18>")
leftSide = leftSide + "<img src='http://www.buddeberg.de/images/menu/ftv2blank.gif' width=12 height=18>"}
else
this.renderOb("")}
function drawItem(leftSide){
if (browserVersion == 2)
doc.write("<layer id='item" + this.id + "' top=" + doc.yPos + " visibility=hiden>")
doc.write("<table ")
if ((browserVersion == 1) || (browserVersion == 3))
doc.write(" id='item" + this.id + "' style='position:block;' ")
doc.write(" border=0 cellspacing=0 cellpadding=0>")
doc.write("<tr>")
doc.write("<td>")
doc.write(leftSide)
doc.write("</td>")
doc.write("<td valign=middle nowrap>")
if (USETEXTLINKS)
doc.write("<a class='NavItem' href=" + this.link + " Title='" + this.altText+ "'>" + this.desc + "</a>")
else
doc.write(this.desc)
doc.write("</table>")
if (browserVersion == 2)
doc.write("</layer>")
if (browserVersion == 1) {
this.navObj = doc.all["item"+this.id]
this.iconImg = doc.all["itemIcon"+this.id]
} else if (browserVersion == 2) {
this.navObj = doc.layers["item"+this.id]
this.iconImg = this.navObj.document.images["itemIcon"+this.id]
doc.yPos=doc.yPos+this.navObj.clip.height}
else if (browserVersion == 3) {
this.navObj = getElemByID("item"+this.id);
this.iconImg = getElemByID("itemIcon"+this.id);
}}
function display(){
if ((browserVersion == 1) || (browserVersion == 3))
this.navObj.style.display = "block"
else
this.navObj.visibility = "show"}
function createEntryIndex(){
this.id = nEntries
indexOfEntries[nEntries] = this
nEntries++}
function totalHeight() {
var h = this.navObj.clip.height
var i = 0
if (this.isOpen)  for (i=0 ; i < this.nChildren; i++)
h = h + this.children[i].totalHeight()
return h}
function clickOnNode(folderId){
var clickedFolder = 0
var state = 0
clickedFolder = indexOfEntries[0]
clickedFolder.setState(0);  clickedFolder = indexOfEntries[folderId]
state = clickedFolder.isOpen
clickedFolder.setState(!state); }
function initializeDocument(pCurrFld, pszLang, pszCust, pszUID){
if (doc.all) {
browserVersion = 1; }
else {
if (doc.layers) {
browserVersion = 2; }
else {
if(document.getElementById) {
browserVersion = 3; }
else
browserVersion = 0; }}
pMainMenu.initialize(0, 1, "", pszLang, pszCust, pszUID)
pMainMenu.display()
if (browserVersion > 0) {
doc.write("<layer top="+indexOfEntries[nEntries-1].navObj.top+">&nbsp;</layer>")
clickOnNode(0)
if (pCurrFld != 0)
clickOnNode(pCurrFld.id)
else
clickOnNode(0);
}}
function gFld(target, description, hreference){
folder = new Folder(target, description, hreference)
return folder}
function gLnk(target, description, linkData, altText){
fullLink = ""
if (target==0){
fullLink = "'"+linkData+"'"}
else{
if (target==1)
fullLink = "'"+linkData+"' target=_blank"
else
fullLink = "'"+linkData+"'"}
linkItem = new Item(description, fullLink, altText)
return linkItem}
function insFld(parentFolder, childFolder){
childFolder.parentFolder = parentFolder;
return parentFolder.addChild(childFolder)}
function insDoc(parentFolder, document){
if ((folderMatched == 0) && (document.link) && (document.link.indexOf(szFilename) != -1)) {
folderMatched = parentFolder;}
document.parentFolder = parentFolder;
parentFolder.addChild(document)}
function InitMenuSystem(pszFilename){
folderMatched = 0;
szFilename = pszFilename;
USETEXTLINKS = 1
indexOfEntries = new Array
nEntries = 0
doc = document
browserVersion = 0}
/************************************************************************/
function OutputMenu(pszFilename, pszLang, pszCust, pszUID){
InitMenuSystem(pszFilename);
pMainMenu = gFld(0, "Home", "http://www.buddeberg.de/"+pszLang+"/default.htm")
if ((pMainMenu.hreference) && (pMainMenu.hreference.indexOf(pszFilename) != -1)) {
folderMatched = pMainMenu;}
if (pszLang == "DE") {
insDoc(pMainMenu, gFld(2, "<span style='color:red'>Aktionen</span>", "http://www.buddeberg.de/de/aktionen.html", "Aktuelle Aktionen anzeigen"))
insDoc(pMainMenu, gFld(2, "Gesamtkatalog", "http://shop.buddeberg.de/default.htm?AuthHost=www.buddeberg.de", "Onlineshop Laborprodukte aufrufen"))
insDoc(pMainMenu, gFld(2, "Druckluftr\u00fchrer Katalog", "http://plr.buddeberg.de/default.htm?AuthHost=www.buddeberg.de", "Onlineshop Druckluftr\u00fchrer aufrufen"))
pSubMenu2 = insFld(pMainMenu, gFld(2, "Produktinfos", ""));
insDoc(pSubMenu2, gLnk(2, "Digitaler Magnet-R\u00fchrer<BR>&nbsp;mit Heizplatte DMSH-20D", "http://www.buddeberg.de/de/RuehrerHeizung.html", "Digitaler Magnet-R\u00fchrer mit Heizplatte DMSH-20D"))
insDoc(pSubMenu2, gLnk(1, "PCR Werkb\u00e4nke", "http://www.buddeberg.de/docs/PCR_Werkbaenke.pdf", ""))
insDoc(pSubMenu2, gLnk(1, "Laminar Flow Werkb\u00e4nke", "http://www.buddeberg.de/docs/Laminar_Flow_Werkbaenke.pdf", ""))
insDoc(pSubMenu2, gLnk(1, "Mikrobiologische Sicherheitswerkb\u00e4nke", "http://www.buddeberg.de/docs/Mikrobiologische_Sicherheitswerkbaenke.pdf", ""))
insDoc(pSubMenu2, gLnk(1, "CO2-Brutschr\u00e4nke", "http://www.buddeberg.de/docs/CO2_Brutschraenke.pdf", ""))
insDoc(pSubMenu2, gLnk(1, "Trocken- und Brutschr\u00e4nke", "http://www.buddeberg.de/docs/Trocken_und_Brutschraenke.pdf", ""))
insDoc(pSubMenu2, gLnk(2, "\u00dcberpr\u00fcfung Abz\u00fcge", "http://www.buddeberg.de/de/moebel1.html"))
insDoc(pSubMenu2, gLnk(1, "Endverbleibserkl\u00e4rung", "http://www.buddeberg.de/endverbleib.pdf", "Hinweise zum Erwerb von Chemikalien"))
pSubMenu3 = insFld(pMainMenu, gFld(2, "News", ""));
insDoc(pSubMenu3, gLnk(1, "Sigma-Aldrich bei Buddeberg", "http://www.buddeberg.de/docs/SIAL-BUDDEBERG.pdf", "Sigma-Aldrich Chemikalien bei Buddeberg"))
insDoc(pMainMenu, gFld(2, "Partner", "http://www.buddeberg.de/de/partner.html"));
pSubMenu5 = insFld(pMainMenu, gFld(2, "Kontakt", ""));
insDoc(pSubMenu5, gLnk(2, "Anschrift", "http://www.buddeberg.de/de/adresse.html"))
insDoc(pSubMenu5, gLnk(2, "Mitarbeiter", "http://www.buddeberg.de/de/fotos.html"))
insDoc(pSubMenu5, gLnk(2, "ISO 9001:2008", "http://www.buddeberg.de/de/zert9002.html"))
insDoc(pSubMenu5, gLnk(2, "AGB", "http://www.buddeberg.de/de/agb.html"))
insDoc(pSubMenu5, gLnk(2, "Wir \u00fcber uns", "http://www.buddeberg.de/de/profil.html"))
insDoc(pMainMenu, gFld(2, "Downloads", "http://www.buddeberg.de/de/download.html"));}
else if (pszLang == "UK") {
insDoc(pMainMenu, gFld(2, "General catalogue", "http://shop.buddeberg.de/default.htm?AuthHost=www.buddeberg.de&LANG=UK&REMUID=1", ""))
insDoc(pMainMenu, gFld(2, "Compressed Air Stirrer<BR>catalogue", "http://plr.buddeberg.de/default.htm?AuthHost=www.buddeberg.de&LANG=UK&Move=*0", ""))
insDoc(pMainMenu, gFld(2, "Partner", "http://www.buddeberg.de/uk/partner.html"));
pSubMenu5 = insFld(pMainMenu, gFld(2, "Contact", ""));
insDoc(pSubMenu5, gLnk(2, "Address", "http://www.buddeberg.de/uk/adresse.html"))
insDoc(pSubMenu5, gLnk(2, "Buddeberg's Faces", "http://www.buddeberg.de/uk/fotos.html"))
insDoc(pSubMenu5, gLnk(2, "ISO 9001:2008", "http://www.buddeberg.de/uk/zert9002.html"))
insDoc(pSubMenu5, gLnk(2, "Terms and Conditions", "http://www.buddeberg.de/uk/agb.html"))
insDoc(pSubMenu5, gLnk(2, "About us", "http://www.buddeberg.de/uk/profil.html"))
insDoc(pMainMenu, gFld(2, "Downloads", "http://www.buddeberg.de/uk/download.html"));}
else if (pszLang == "FR") {
insDoc(pMainMenu, gFld(2, "General catalogue", "http://shop.buddeberg.de/default.htm?AuthHost=www.buddeberg.de&LANG=UK&REMUID=1", ""))
insDoc(pMainMenu, gFld(2, "Compressed Air Stirrer<BR>catalogue", "http://plr.buddeberg.de/default.htm?AuthHost=www.buddeberg.de&LANG=FR&Move=*0", ""))
insDoc(pMainMenu, gFld(2, "Partner", "http://www.buddeberg.de/fr/partner.html"));
pSubMenu5 = insFld(pMainMenu, gFld(2, "Contact", ""));
insDoc(pSubMenu5, gLnk(2, "Address", "http://www.buddeberg.de/fr/adresse.html"))
insDoc(pSubMenu5, gLnk(2, "Buddeberg's Faces", "http://www.buddeberg.de/fr/fotos.html"))
insDoc(pSubMenu5, gLnk(2, "ISO 9001:2008", "http://www.buddeberg.de/fr/zert9002.html"))
insDoc(pSubMenu5, gLnk(2, "Terms and Conditions", "http://www.buddeberg.de/fr/agb.html"))
insDoc(pSubMenu5, gLnk(2, "About us", "http://www.buddeberg.de/fr/profil.html"))
insDoc(pMainMenu, gFld(2, "Downloads", "http://www.buddeberg.de/fr/download.html"));}
else if (pszLang == "RU") {
insDoc(pMainMenu, gFld(2, "General catalogue", "http://shop.buddeberg.de/default.htm?AuthHost=www.buddeberg.de&LANG=RU&REMUID=1", ""))
insDoc(pMainMenu, gFld(2, "Compressed Air Stirrer<BR>catalogue", "http://plr.buddeberg.de/default.htm?AuthHost=www.buddeberg.de&LANG=RU&Move=*0", ""))
insDoc(pMainMenu, gFld(2, "Partner", "http://www.buddeberg.de/ru/partner.html"));
pSubMenu5 = insFld(pMainMenu, gFld(2, "Contact", ""));
insDoc(pSubMenu5, gLnk(2, "Address", "http://www.buddeberg.de/ru/adresse.html"))
insDoc(pSubMenu5, gLnk(2, "Buddeberg's Faces", "http://www.buddeberg.de/ru/fotos.html"))
insDoc(pSubMenu5, gLnk(2, "ISO 9001:2008", "http://www.buddeberg.de/ru/zert9002.html"))
insDoc(pSubMenu5, gLnk(2, "Terms and Conditions", "http://www.buddeberg.de/ru/agb.html"))
insDoc(pSubMenu5, gLnk(2, "About us", "http://www.buddeberg.de/ru/profil.html"))
insDoc(pMainMenu, gFld(2, "Downloads", "http://www.buddeberg.de/ru/download.html"));}
else if (pszLang == "RUS") {
pSubMenu1 = insFld(pMainMenu, gFld(2, "Shops/Catalogues", ""));
insDoc(pSubMenu1, gLnk(2, "General catalogue", "http://shop.buddeberg.de/default.htm?AuthHost=www.buddeberg.de&LANG=RU&REMUID=1", ""))
insDoc(pSubMenu1, gLnk(2, "Compressed Air Stirrer<BR>catalogue", "http://plr.buddeberg.de/default.htm?AuthHost=www.buddeberg.de&LANG=RU&Move=*0", ""))
pSubMenu2 = insFld(pMainMenu, gFld(2, "Product info", ""));
pSubMenu22 = insFld(pSubMenu2, gFld(2, "MRK Magnetic stirrer heads", ""))
insDoc(pSubMenu22, gLnk(2, "Function", "http://www.buddeberg.de/ru/mrk3.html"))
insDoc(pSubMenu22, gLnk(2, "MRK with conical joint", "http://plr.buddeberg.de/xINFO40004.html?AuthHost=www.buddeberg.de&AddStyle=31&AddText=0&AddInfo=10109&Lang=RU"))
insDoc(pSubMenu22, gLnk(2, "MRK with conical joint PTFE", "http://plr.buddeberg.de/xINFO40059.html?AuthHost=www.buddeberg.de&AddStyle=31&AddText=0&AddInfo=10110&Lang=RU"))
pSubMenu3 = insFld(pMainMenu, gFld(2, "News", ""));
insDoc(pSubMenu3, gLnk(2, "Laboratory fire<BR>protection trough", "http://plr.buddeberg.de/xINFO40067.htm?AuthHost=www.buddeberg.de&AddStyle=31&AddText=0&AddInfo=&Lang=RU"))
insDoc(pSubMenu3, gLnk(2, "e-business Solutions", "http://www.buddeberg.de/ru/ecommerce.html"))
insDoc(pMainMenu, gFld(2, "Partner", "http://www.buddeberg.de/ru/partner.html"));
pSubMenu5 = insFld(pMainMenu, gFld(2, "Contact", ""));
insDoc(pSubMenu5, gLnk(2, "ISO 9001:2008", "http://www.buddeberg.de/ru/zert9002.html"))
insDoc(pSubMenu5, gLnk(2, "Terms and Conditions", "http://www.buddeberg.de/ru/agb.html"))
insDoc(pSubMenu5, gLnk(2, "Address", "http://www.buddeberg.de/ru/adresse.html"))
insDoc(pSubMenu5, gLnk(2, "Buddeberg's Faces", "http://www.buddeberg.de/ru/fotos.html"))
insDoc(pSubMenu5, gLnk(2, "About us", "http://www.buddeberg.de/ru/profil.html"))
insDoc(pMainMenu, gFld(2, "Downloads", "http://www.buddeberg.de/ru/download.html"));}
initializeDocument(folderMatched, pszLang, pszCust, pszUID);}
/************************************************************************/
function StrTrim(inputField){
value = inputField.value;
while (value.charAt(value.length-1) == " ") {value = value.substring(0,value.length-1);}
while(value.substring(0,1) ==" ") {value = value.substring(1,value.length);}
inputField.value = value;}
function Encode(inputField){
oldValue = inputField.value;
nLen = oldValue.length;
currDate = new Date();
nTime = currDate.getMilliseconds();
nSecs = currDate.getSeconds();
nOfs = 2+(nTime % 5);
newValue = String.fromCharCode(122-nOfs) + "X" + String.fromCharCode(90-nLen);
for (var j=0; j < nOfs; j++) {
newValue = newValue + String.fromCharCode(65 + (32*(j % 2)) + ((j+nSecs) % 7) + ((j*nTime) % 13));}
for (var i=0; i < nLen; i++) {
nCode = (oldValue.charCodeAt(i) % 256);
newValue = newValue + String.fromCharCode(66 + (nCode / 22), 99 + (nCode % 22));}
inputField.value = newValue +  "r" + String.fromCharCode(48+(nTime / 64), 48+(nTime % 64), 48+(nLen % 80));}
function ValidateLogin(pszLang){
if (document.LoginData) {
StrTrim(document.LoginData.CUSTCODE);
StrTrim(document.LoginData.USERNAME);
StrTrim(document.LoginData.USERPASS);
if (document.LoginData.USERNAME.value.length <= 0) {
window.alert("Kein Anmeldename eingegeben!");
return(false);}
if (document.LoginData.USERPASS.value.length <= 0) {
window.alert("Kein Passwort eingegeben!");
return(false);}
Encode(document.LoginData.USERPASS);}
return(true);}
function ValidateCreate(pszUID, pszLang){
if (document.LoginData.USERNAME.value.length <= 0) {
window.alert("Kein Anmeldename eingegeben!");
return(false);}
window.location.href = "USER.html?UID=" + pszUID + "&NICKNAME=" + document.LoginData.USERNAME.value;
return(true);}
function OutputLanguageFrame(pszLang){
document.write("<DIV id='CurrLang'>");
if ((pszLang) && (pszLang == "DE")) {
document.write("<IMG SRC='http://www.buddeberg.de/images/flagde.gif'>");}
else if ((pszLang) && (pszLang == "UK")) {
document.write("<IMG SRC='http://www.buddeberg.de/images/flaguk.gif'>");}
else if ((pszLang) && (pszLang == "FR")) {
document.write("<IMG SRC='http://www.buddeberg.de/images/flagfr.gif'>");}
else if ((pszLang) && (pszLang == "RU")) {
document.write("<IMG SRC='http://www.buddeberg.de/images/flagru.gif'>");}
else if ((pszLang) && (pszLang == "RUS")) {
document.write("<IMG SRC='http://www.buddeberg.de/images/flagru.gif'>");}
else {}
document.write("</DIV>");}
function OutputPositionFrameContent(pszLang){
setContentByID("CurrDoc", "Sie sind hier");}
function OutputLoginFrameContent(pszText){}
function OutputFooterFrame(pszLang, pszUID){
document.write("<DIV id='Footer'>");
document.write("<TABLE>");
document.write("<TR>");
document.write("<TD style='WIDTH:160px; padding-left=20px'>");
document.write("<TABLE><TR>");
document.write("<TD>");
if ((pszLang) && (pszLang == "DE")) {
document.write("<IMG SRC='http://www.buddeberg.de/images/flagde.gif'>");}
else {
document.write("<A HREF='http://www.buddeberg.de/de/Default.htm?Lang=DE&UID="+pszUID+"'><IMG SRC='http://www.buddeberg.de/images/flagde.gif' BORDER='0'></A>");}
document.write("</TD>");
document.write("<TD>");
if ((pszLang) && (pszLang == "UK")) {
document.write("<IMG SRC='http://www.buddeberg.de/images/flaguk.gif'>");}
else {
document.write("<A HREF='http://www.buddeberg.de/uk/Default.htm?Lang=UK&UID="+pszUID+"'><IMG SRC='http://www.buddeberg.de/images/flaguk.gif' BORDER='0'></A>");}
document.write("</TD>");
document.write("<TD>");
if ((pszLang) && (pszLang == "FR")) {
document.write("<IMG SRC='http://www.buddeberg.de/images/flagfr.gif'>");}
else {
document.write("<A HREF='http://www.buddeberg.de/fr/Default.htm?Lang=FR&UID="+pszUID+"'><IMG SRC='http://www.buddeberg.de/images/flagfr.gif' BORDER='0'></A>");}
document.write("</TD>");
document.write("<TD>");
if ((pszLang) && (pszLang == "RU")) {
document.write("<IMG SRC='http://www.buddeberg.de/images/flagru.gif'>");}
else {
document.write("<A HREF='http://www.buddeberg.de/ru/Default.htm?Lang=RU&UID="+pszUID+"'><IMG SRC='http://www.buddeberg.de/images/flagru.gif' BORDER='0'></A>");}
document.write("</TD>");
document.write("</TR></TABLE>");
document.write("</TD>");
document.write("<TD class='small' style='padding-left=20px;'>");
document.write("Copyright (c) 1996-2010 Buddeberg GmbH, Mannheim, Germany&nbsp;|&nbsp;<A HREF='http://www.buddeberg.de/"+pszLang+"/impressum.html'>Impressum</A>");
document.write("</TD>");
document.write("</TR>");
document.write("</TABLE>");
document.write("</DIV>");}
function OutputLinkFrameContent(pszLang){}
function OutputFrames(pszFilename, pszLang, pszCust, pszUID, bUIDStatic, bBMarks, ulUserStatus){
var nNavHoehe =  document.body.offsetHeight-350;
if ((pszCust) && (pszCust.toUpperCase() == "BKLU")) {
document.write("<DIV id='CustLogo'>");
document.write("<IMG SRC='http://shop.buddeberg.de/cust/budde/bklu/bklogo.jpg'>");
document.write("</DIV>");}
document.write("<DIV id='HeadGraf'><IMG SRC='http://www.buddeberg.de/images/line.gif' height='80' width='100%'></DIV>");
document.write("<DIV id='HeadLogo'><IMG SRC='http://www.buddeberg.de/images/logo.gif'></DIV>");
OutputLanguageFrame(pszLang);
document.write("<DIV id='CurrDoc' name='CurrDoc'></DIV>");
document.write("<DIV id='Nav' style='height:"+nNavHoehe+"'>");
OutputMenu(pszFilename, pszLang, pszCust, pszUID);
document.write("</DIV>");
document.write("<DIV id='Search'>");
document.write("<form NAME='SrchData' METHOD='GET' ACTION='http://shop.buddeberg.de/QSRCH.HTM' onSubmit='return (document.SrchData.KEYVAL.value.length > 1);'>");
document.write("<INPUT type='HIDDEN' name='AuthHost' value='www.buddeberg.de'>");
if ((pszLang) && (pszLang == "UK"))
document.write("&nbsp;<B>Search</B><BR>");
else
document.write("&nbsp;<B>Suche</B><BR>");
document.write("<HR>");
document.write("&nbsp;<INPUT type='TEXT' width='16' maxlength'31' name='KEYVAL'>");
document.write("<INPUT type='HIDDEN' name='UID' value="+pszUID+">");
document.write("<INPUT type='HIDDEN' name='LANG' value="+pszLang+">");
document.write("&nbsp;<INPUT type='SUBMIT' value='Go'>");
document.write("</form>");
document.write("</DIV>");
document.write("<DIV id='Login'>");
if ((bUIDStatic) && (bUIDStatic == "1")) {
if (bBMarks > 1) {
document.write("<BR>&nbsp;<A HREF=\"javascript:ShowQuicklist('"+pszUID+"')\">&gt;&gt;&nbsp;Favoriten</A><BR>");}
if ((ulUserStatus & 7) >= 2) {
document.write("&nbsp;<A HREF='http://shop.buddeberg.de/_admin.HTM?AuthHost=www.buddeberg.de&Cust="+pszCust+"&UID="+pszUID+"'>&gt;&gt;&nbsp;Administration</A><BR>");}
document.write("&nbsp;<A HREF='http://www.buddeberg.de/LOGOUT.HTM?UID="+pszUID+"'>&gt;&gt;&nbsp;Logout</A><BR>");
document.write("<HR>");
document.write("<DIV id='UserData'></DIV>");}
else {
document.write("&nbsp;<B>Login</B><BR>");
document.write("<HR>");
document.write("<FORM NAME='LoginData' METHOD='GET' ACTION='/LOGIN.HTM' onSubmit='return ValidateLogin();'>");
document.write("<INPUT TYPE='HIDDEN' NAME='UID' VALUE='"+pszUID+"'>");
if ((pszLang) && (pszLang == "UK"))
document.write("&nbsp;Cust. Code<BR>");
else
document.write("&nbsp;Kundencode<BR>");
document.write("&nbsp;<INPUT TYPE='TEXT' NAME='CUSTCODE' SIZE='20' MAXLENGTH='30'><BR>");
if ((pszLang) && (pszLang == "UK"))
document.write("&nbsp;Username<BR>");
else
document.write("&nbsp;Benutzer<BR>");
document.write("&nbsp;<INPUT TYPE='TEXT' NAME='USERNAME' SIZE='20' MAXLENGTH='30'><BR>");
if ((pszLang) && (pszLang == "UK"))
document.write("&nbsp;Password<BR>");
else
document.write("&nbsp;Passwort<BR>");
document.write("&nbsp;<INPUT TYPE='PASSWORD' NAME='USERPASS' SIZE='20' MAXLENGTH='64'>");
document.write("&nbsp;<INPUT TYPE='SUBMIT' VALUE='Go'>");
document.write("</FORM>");}
document.write("</DIV>");
OutputFooterFrame(pszLang, pszUID);}
function ResizeFrames(event){
var Element = getElemByID("Content");
var nBreite = document.body.offsetWidth-360;
var nHoehe =  document.body.offsetHeight-140;}
function OutputURL(pszURL, pszText, pszTip){
document.write("<A HREF='"+pszURL+"?Lang="+szLang+"&Cust="+szCust+"&UID="+szUID+"' Alt='"+pszTip+"'>"+pszText+"</A>");}
function _OutputMoreURL(pszURL, pszText, pszTip){
document.write("<TD class='MoreURL'><A HREF='"+pszURL+"?Lang="+szLang+"&Cust="+szCust+"&UID="+szUID+"' Alt='"+pszTip+"'>"+pszText+"&nbsp;&gt;</A></TD>");}
function OutputHeader(pszHeader, pszUID, bUIDStatic, bBMarks, ulUserStatus, pszLang, pszCust){
var nOfs = document.location.href.length;
var nEnd = document.location.href.length;
var nHoehe =  document.body.offsetHeight-140;
while ((nOfs > 0) && (document.location.href.charAt(nOfs) != "/"))
nOfs--;
if (document.location.href.indexOf("?") > nOfs)
nEnd = document.location.href.indexOf("?");
szLang = pszLang;
szCust = pszCust;
if (szCust == "")
szCust = ".";
szUID = pszUID;
OutputFrames(document.location.href.substring(nOfs, nEnd), szLang, szCust, pszUID, bUIDStatic, bBMarks, ulUserStatus);
document.write("<DIV id='Content' style='height:"+nHoehe+"'>");
document.write("<CENTER><H1>"+pszHeader+"</H1></CENTER><BR>");}
function OutputFooter(){
document.write("</DIV>");}
function OutputTabFoot(nCols, pszStyle){
document.write("<TR>");
for (var i=0; i < nCols; i++) {
if (pszStyle)
document.write("<TH class=\"DbF\" style=\"" + pszStyle + "\">&nbsp;</TH>");
else
document.write("<TH class=\"DbF\">&nbsp;</TH>");}
document.write("</TR>");}
function OutputTrenner(nWidth){
document.write("<HR WIDTH="+nWidth+">");}
function OutputPreText(pszFilename, pszLang){}
function OutputPostText(pszFilename, pszLang){
if ((szCust) && (szCust.toUpperCase() == "BKLU")) {
document.write("<BR>");
document.write("Ansprechpartnerin im Einkauf:<BR>");
document.write("<B>Frau Kornelia Misch</B><BR>");
document.write("Tel. 0621 / 5709-671<BR>");
document.write("E-Mail: <A href='mailto:k.misch@bk-giulini.com'>k.misch@bk-giulini.com</A><BR>");
}}
function Route(pszScript, pszUID, pszCust, pszLang, pszMode){}
function CloseQuicklist(pszUID){
var	hWindow;
hWindow = window.open("QLST_LIST.HTM?UID="+pszUID, "QuickList", "width=320,height=480,resizeable=no,dependent=yes,scrollbars=yes");
hWindow.focus();
hWindow.close();}
function ShowQuicklist(pszUID){
var	hWindow;
hWindow = window.open("QLST_LIST.HTM?UID="+pszUID, "QuickList", "width=320,height=480,resizeable=no,dependent=yes,scrollbars=yes");
hWindow.focus();}
function AddQuickList(pszUID, pszName, pszVal, ulVal){
var	hWindow;
hWindow = window.open("QLST_ADD.HTM?UID="+pszUID+"&uVal="+ulVal+"", "QuickList", "width=320,height=480,resizeable=no,dependent=yes,scrollbars=yes");
hWindow.focus();}
function AQLExt(pszUID, pszID, pszArtnr){
var	hWindow;
hWindow = window.open("QLST_ADD.HTM?UID="+pszUID+"&uVal="+pszID+"&sVal="+pszArtnr+"", "QuickList", "width=320,height=480,resizeable=no,dependent=yes,scrollbars=yes");
hWindow.focus();}
function SetWKorbStatus(pszFilename, pszUserID, nPosCount, nNetValue, nTotValue, pszValText, pszLang){}
function ShowTextMessage(pszText){
window.alert(pszText);}
function DisplayWKorbAddInfo(pszArtnr, pszLang){
if ((pszArtnr) && (pszArtnr != "")) {
if ((pszLang) && (pszLang == "UK")) {
window.alert("Item "+pszArtnr+" added to shopping basket!");}
else if ((pszLang) && (pszLang == "FR")) {
window.alert("Item "+pszArtnr+" added to shopping basket!");}
else if ((pszLang) && (pszLang == "ES")) {
window.alert("Item "+pszArtnr+" added to shopping basket!");}
else if ((pszLang) && (pszLang == "NL")) {
window.alert("Item "+pszArtnr+" added to shopping basket!");}
else if ((pszLang) && (pszLang == "IT")) {
window.alert("Item "+pszArtnr+" added to shopping basket!");}
else  {
window.alert("Artikel "+pszArtnr+" in Warenkorb \u00fcbernommen!");
}}
else {
if ((pszLang) && (pszLang == "UK")) {
window.alert("Error adding item to shopping basket!");}
else if ((pszLang) && (pszLang == "FR")) {
window.alert("Error adding item to shopping basket!");}
else if ((pszLang) && (pszLang == "ES")) {
window.alert("Error adding item to shopping basket!");}
else if ((pszLang) && (pszLang == "NL")) {
window.alert("Error adding item to shopping basket!");}
else if ((pszLang) && (pszLang == "IT")) {
window.alert("Error adding item to shopping basket!");}
else  {
window.alert("Fehler bei \u00dcbernahme in Warenkorb!");
}}}
var DHTML = 0, DOM = 0, MS = 0, NS = 0, OP = 0;
function DHTML_init() {
if (window.opera) {
OP = 1;}
if(document.getElementById) {
DHTML = 1;
DOM = 1;}
if(document.all && !OP) {
DHTML = 1;
MS = 1;}
if (window.netscape && window.screen && !DOM && !OP){
DHTML = 1;
NS = 1;
}}
function getElemByID(p2) {
var Elem;
if(DOM) {
if (typeof document.getElementById(p2) == "object")
Elem = document.getElementById(p2);
else Elem = void(0);
return(Elem);}
else if(MS) {
if (typeof document.all[p2] == "object")
Elem = document.all[p2];
else Elem = void(0);
return(Elem);}
else if(NS) {
if (typeof document[p2] == "object")
Elem = document[p2];
else Elem = void(0);
return(Elem);
}}
function getElemByName(p2, p3) {
var Elem;
if(DOM) {
if (typeof document.getElementsByName(p2) == "object")
Elem = document.getElementsByName(p2)[p3];
else Elem = void(0);
return(Elem);}
else if(MS) {
if (typeof document[p2] == "object")
Elem = document[p2];
else Elem = void(0);
return(Elem);}
else if(NS) {
if (typeof document[p2] == "object")
Elem = document[p2];
else Elem = void(0);
return(Elem);
}}
function setContentByID(pszID, pszContent) {
if(DOM && getElemByID(pszID) && getElemByID(pszID).firstChild)
getElemByID(pszID).firstChild.nodeValue = pszContent;
else if(MS && getElemByID(pszID))
getElemByID(pszID).innerText = pszContent;
else if(NS && getElemByID(pszID)) {
getElemByID(pszID).document.open();
getElemByID(pszID).document.write(pszContent);
getElemByID(pszID).document.close();
}}
DHTML_init();
function OutputWKorbAGBText(pszFilename, pszLang){
document.write("Voraussetzung f\u00fcr den Einkauf bei Buddeberg GmbH:<BR>");
document.write("Unser Angebot richtet sich ausschlie\u00dflich an Gesch\u00e4ftskunden - also Unternehmen, \u00f6ffentliche Einrichtungen, Gewerbetreibende und Freiberufler. Mit dem Akzeptieren der AGB best\u00e4tigen Sie, dass Sie als Unternehmer im Sinne des BGB (ƒ 14, Abs. 1 BGB) t\u00e4tig sind.<BR>");
document.write("<BR>");
document.write("Im Interesse aller teilnehmenden Partner bem\u00fcht sich die Buddeberg GmbH, Zahlungsausf\u00e4lle weitestgehend zu reduzieren. Sicher haben Sie daher Verst\u00e4ndnis daf\u00fcr, dass wir bei Ihrer ersten Bestellung Ihre Bonit\u00e4t \u00fcberpr\u00fcfen. Ihre Daten werden nicht an Dritte weiter gegeben - ausgenommen zum Zweck der Bestellabwicklung.<BR>");}
function SetQListStatus(pszUID, nPosCount, pszLang){
var pSpan;
pSpan = getElemByID("QListData");
if (pSpan) {
if (nPosCount > 0)
pSpan.visible = true;
else
pSpan.visible = false;
}}
