boxBuilder=0; /* * shows description in description div */ function showNote(posId,msg) { toolDisplayObj = document.getElementById(posId); if (toolDisplayObj) { toolDisplayObj.innerHTML = msg; } } function buildToolBox(boxPosition, printURL, sendafriendOpt, bookmarkOpt, feedbackOpt) { if('on' == 'on') { if (boxBuilder==0) { boxBuilder++; document.writeln(""); document.writeln(""); } extraPadding=""; if (boxPosition=="bottom") extraPadding=" padding-top:10px;"; document.writeln("
"); document.write("
 
"); document.write("
"); buttonMargin=6; if (printURL != "") { document.write("Print this page"); buttonMargin=10; } if (sendafriendOpt!="OFF") { document.write("Recommend this page"); buttonMargin=6; } if (bookmarkOpt!="OFF") { document.write("Add bookmark"); buttonMargin=6; } if (feedbackOpt!="OFF") { document.write("Vote this page"); buttonMargin=6; } document.write("
"); document.write("
"); } } /* * handle print click */ function openPrintPopup(aURL) { printPopup=window.open(aURL, 'trgpopup', 'width=635,height=600,scrollbars=yes,resizable=no'); printPopup.focus(); } /* * handle >send a friend< klick */ function doSendAFriend() { uriAnnex=encodeURIComponent(" - "+document.getElementById("pageTitle").innerHTML); loadToolBoxIFrame("https://secure.deutsche-bank.de/pbc/seiteweiterempfehlen/index.jsp?lang=en&decorator=dbag&url="+window.location.href+uriAnnex,"ToolBoxJS"," 736","490"); loadToolBoxIFrame("https://secure.deutsche-bank.de/pbc/seiteweiterempfehlen/index.jsp?lang=de&decorator=dbag&url="+window.location.href+uriAnnex,"ToolBoxJS"," 736","490"); } /* * handle >feedback< klick */ function doFeedback() { loadToolBoxIFrame("https://secure.deutsche-bank.de/feedbackmanager/?id=85&lang=de&decorator=dbag","ToolBoxJS","736","700"); } /* * handle >bookmark< klick */ function doBookmark() { ap=navigator.appName; url=location.href; t=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("Ir Browser unterstüztz diese Fuktion nicht.\nBitte fügen Sie das Leszeichen manuell hinzu."); } } 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'); } // BLUE BACKGROUND var pageIsInactive; hiddenIFrames = new Array(); function pageActiveSwitch(toggle,movieID,mode) { if (toggle=="ON") { if (mode!="others") { for (var i = 0; i < document.getElementsByTagName("iframe").length; i++) { hiddenIFrames[document.getElementsByTagName("iframe")[i].id]=""; if (document.getElementsByTagName("iframe")[i].id!="flashBox"+movieID && getStyle(document.getElementsByTagName("iframe")[i],"display")!="none") { hiddenIFrames[document.getElementsByTagName("iframe")[i].id]=getStyle(document.getElementsByTagName("iframe")[i],"display"); document.getElementsByTagName("iframe")[i].style.display="none"; if (document.getElementById("alternateImage"+document.getElementsByTagName("iframe")[i].id.split("flashBox")[1])) { document.getElementById("alternateImage"+document.getElementsByTagName("iframe")[i].id.split("flashBox")[1]).style.display="block"; } } } document.getElementById("documentInactive").innerHTML="
"; } else { document.getElementById("documentInactive").innerHTML="
"; document.getElementById("primer"+movieID).style.display=document.getElementById(movieID).style.display="block"; } pageIsInactive=1; } else { if (pageIsInactive==1) { if (mode!="others") { for (var i = 0; i < document.getElementsByTagName("iframe").length; i++) { if (hiddenIFrames[document.getElementsByTagName("iframe")[i].id]!="") { document.getElementsByTagName("iframe")[i].style.display=hiddenIFrames[document.getElementsByTagName("iframe")[i].id]; if (document.getElementById("alternateImage"+document.getElementsByTagName("iframe")[i].id.split("flashBox")[1])) { document.getElementById("alternateImage"+document.getElementsByTagName("iframe")[i].id.split("flashBox")[1]).style.display="none"; } } } } hiddenIFrames = new Array(); document.getElementById("documentInactive").innerHTML=""; pageIsInactive=0; if (mode!="others") { closeMovie(movieID,"internal"); } else { document.getElementById("primer"+movieID).style.display=document.getElementById(movieID).style.display="none"; } } } } function getStyle(where,whatStyle) { if (eval("where.style."+whatStyle)) { styleToGet=eval("where.style."+whatStyle); } else { try { styleToGet=window.getComputedStyle(where,'').getPropertyValue(whatStyle); } catch (a) { try { styleToGet=eval("where.currentStyle."+whatStyle); } catch (b) { styleToGet=""; } } } return styleToGet; }