boxBuilder=0;
if (""!="") {
    decoratorValue="";
} else {
    decoratorValue="dbbp";
}

function buildToolBox(boxPosition,printOpt,sendafriendOpt,bookmarkOpt,feedbackOpt) {
// if (boxPosition!="bottom") {
 if (boxBuilder==0) {
   boxBuilder++;
  document.writeln("<iframe src='images/tp.gif' id='primerToolBoxJS' frameborder=0 style='position:absolute; display:none; left:100px; top:100px; background-color:white; z-index:999999;'></iframe>");
  document.writeln("<div style='position:absolute; left:100px; top:100px; display:none; background-color:white; border:1px solid #003399; z-index:99999999;' id='ToolBoxJS'>");
  document.writeln("   <a style='position:absolute; right:120px; top:115px; display:none' id='closeButton' class='anchorClose' href='javascript:pageActiveSwitch(\"OFF\",\"ToolBoxJS\",\"others\")'>Fenster schlie&szlig;en</a>");
  document.writeln("   <iframe id='toolBoxIFrameToolBoxJS' src='images/tp.gif' style='background-color:#E1E8F3;' frameborder=NO scrolling=NO onload='document.getElementById(\"closeButton\").style.display=\"inline\";'></iframe>");
  document.writeln("</div>");
 }
 extraPadding="";
 if (boxPosition=="bottom") extraPadding=" padding-top:10px;";
 document.writeln("<div style='width:190px; float:right; margin-bottom:-20px; "+extraPadding+"'>");
// document.writeln("<div style='position:relative; height:1px;'>");
// document.write("<div class='toolBoxOuter' id='pageToolBox_"+boxPosition+"'>");
 document.write("<div id='ToolBarNote_"+boxPosition+"' class='ToolBarNote'>&nbsp;</div>");
 document.write("<div style='float:right'>");
 buttonMargin=6; 
 if (printOpt!="OFF") {
    document.write("<a href='javascript:openPrintPopup()' onMouseOver='showNote(\"ToolBarNote_"+boxPosition+"\",\"Drucken\");' onMouseOut='showNote(\"ToolBarNote_"+boxPosition+"\",\"\")'><img src='images/icon_print_new.gif' border='0' alt='Seite drucken'></a>");
    buttonMargin=10; 
}
  if ("ON"!="OFF" && sendafriendOpt!="OFF") {

//https://secure.deutsche-bank.de/pbc/seiteweiterempfehlen/index.jsp
 document.write("<a href='javascript:doSendAFriend(\"ToolBoxJS\")' onMouseOver='showNote(\"ToolBarNote_"+boxPosition+"\",\"E-Mail\");' onMouseOut='showNote(\"ToolBarNote_"+boxPosition+"\",\"\")'><img src='images/icon_sendafriend.gif' style='margin-left:"+buttonMargin+"px' border='0' alt='Seite weiterempfehlen'></a>");
 buttonMargin=6; 

 }
  if ("ON"!="OFF" && bookmarkOpt!="OFF") {
 document.write("<a href='javascript:doBookmark();' onMouseOver='showNote(\"ToolBarNote_"+boxPosition+"\",\"Lesezeichen\");' onMouseOut='showNote(\"ToolBarNote_"+boxPosition+"\",\"\")'><img src='images/icon_bookmark.gif' style='margin-left:"+buttonMargin+"px' border='0' alt='Lesezeichen hinzuf&uuml;gen'></a>");
 buttonMargin=6; 
  }
  if ("ON"!="OFF" && feedbackOpt!="OFF") {

//https://secure.deutsche-bank.de/feedbackmanager/
 document.write("<a href='javascript:doFeedback(\"ToolBoxJS\")' onMouseOver='showNote(\"ToolBarNote_"+boxPosition+"\",\"Feedback\");' onMouseOut='showNote(\"ToolBarNote_"+boxPosition+"\",\"\")'><img src='images/icon_feedback.gif' style='margin-left:"+buttonMargin+"px' border='0' alt='Seite bewerten'></a>");
 buttonMargin=6; 

  }
 document.write("</div>");
// document.write("</div>");
 document.write("</div>");
}

/* handle >bookmark< klick */
function doBookmark() {
    ap=navigator.appName;
    url=location.href;
    t="Deutsche Card Services";//document.getElementById("pageTitle").innerHTML;

    if (window.sidebar) {
        window.sidebar.addPanel(t,url,'');
    } else if (window.external) {
        window.external.AddFavorite(url,t);
    } else if (window.addNet) {
        addNet(url,t);
    } else {
       alert("Ihr Browser unterst&uuml;tzt diese Funktion nicht.\nBitte Legen Sie das Lesezeichen manuell an.");
    }
}
function loadToolBoxIFrame(boxSrc,boxID,boxWidth,boxHeight) {
   document.getElementById("closeButton").style.display="none";
   document.getElementById("primer"+boxID).style.width="0px";
   document.getElementById("primer"+boxID).style.height="0px";
   document.getElementById("toolBoxIFrame"+boxID).style.width="0px";
   document.getElementById("toolBoxIFrame"+boxID).style.height="0px";
   document.getElementById("toolBoxIFrame"+boxID).src=boxSrc;
   document.getElementById("toolBoxIFrame"+boxID).style.width=boxWidth+"px";
   document.getElementById("toolBoxIFrame"+boxID).style.height=boxHeight+"px";
   document.getElementById("primer"+boxID).style.width=boxWidth+"px";
   document.getElementById("primer"+boxID).style.height=boxHeight+"px";
   window.scrollTo(100, 100);
   pageActiveSwitch('ON',boxID,'others');
}
