smallCSS = document.createElement('link'); smallCSS.id="small"; smallCSS.rel="stylesheet"; smallCSS.type="text/css"; smallCSS.href="/ghp_css/sizes_s.css"; mediumCSS = document.createElement('link'); mediumCSS.id="medium"; mediumCSS.rel="stylesheet"; mediumCSS.type="text/css"; mediumCSS.href="/ghp_css/sizes_m.css"; largeCSS = document.createElement('link'); largeCSS.id="large"; largeCSS.rel="stylesheet"; largeCSS.type="text/css"; largeCSS.href="/ghp_css/sizes_l.css"; contrastCSS = document.createElement('link'); contrastCSS.id="contrast"; contrastCSS.rel="stylesheet"; contrastCSS.type="text/css"; contrastCSS.href="/ghp_css/contrast.css"; document.getElementsByTagName("head")[0].appendChild(smallCSS); document.getElementsByTagName("head")[0].appendChild(mediumCSS); document.getElementsByTagName("head")[0].appendChild(largeCSS); document.getElementsByTagName("head")[0].appendChild(contrastCSS); document.getElementById("medium").disabled="true"; document.getElementById("large").disabled="true"; document.getElementById("contrast").disabled="true"; firstclick=0; function firstclick_stichwort(where) { if (firstclick==0) { where.value=""; firstclick=1; } } // TRACKING // set path for tracking page trackPage="/en/jumppages/trackingpage.htm"; if (trackPage=="") { trackPage="/de/jumppages/trackingpage.htm"; } // functions function createRequestObjectOld() { var ro; var browser = navigator.appName; if(browser == "Microsoft Internet Explorer"){ ro = new ActiveXObject("Microsoft.XMLHTTP"); }else{ ro = new XMLHttpRequest(); } return ro; } function createRequestObject() { var ro; ro = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP"); return ro; } var http = createRequestObject(); function sendTrackingRequest(trackingName,trackingValue) { http.open('get', trackPage+'?'+trackingName+'=ENG_'+trackingValue); // alert(trackPage+'?'+trackingName+'=ENG_'+trackingValue); http.send(null); } function showTrackingParameters () { //show tracking parameters in smartedit mode for (i = 0; i < document.getElementsByTagName('span').length; i++) { if (document.getElementsByTagName('span')[i].className=="trackingOn") { document.getElementsByTagName('span')[i].className="trackingOff" } else if (document.getElementsByTagName('span')[i].className=="trackingOff") { document.getElementsByTagName('span')[i].className="trackingOn" } } } // font size / contrast changing function toggleContrast() { if (document.getElementById('contrast')) { if (document.getElementById('contrast').disabled==false) { document.getElementById('contrast').disabled=true; eraseCookie('contrastToggle'); } else { document.getElementById('contrast').disabled=false; createCookie('contrastToggle','ON','1'); } } } var feedsExist; function change_size(whatstyle,firsttime) { document.getElementById('small').disabled=true; document.getElementById('medium').disabled=true; document.getElementById('large').disabled=true; document.getElementById(whatstyle).disabled=false; eraseCookie('resize_fontsize'); createCookie('resize_fontsize',whatstyle,'1'); } function set_feedSize() { try { sizeToSet = document.location.href.split('?')[1]; if (sizeToSet) { document.getElementById('small').disabled=true; document.getElementById('medium').disabled=true; document.getElementById('large').disabled=true; document.getElementById(sizeToSet).disabled=false; } } catch (e){} } function set_size_button() { } var current_style; function set_size_first_time() { try { if (!readCookie('resize_fontsize')) { document.getElementById('medium').disabled=true; document.getElementById('large').disabled=true; document.getElementById('small').disabled=false; current_style='small'; } else { current_style=readCookie('resize_fontsize') change_size(current_style,'first_time'); } } catch (e) {} try { if (readCookie('contrastToggle')) { document.getElementById('contrast').disabled=false; } else { document.getElementById("contrast").disabled=true; } } catch (e) {} } if (document.getElementById('small')) { set_size_first_time(); } // Cookie handling function createCookie(name,value,hours) { if (hours) { var date = new Date(); date.setTime(date.getTime()+(hours*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; document.cookie = name+"="+value+expires+"; path=/"; } function readCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } function eraseCookie(name) { createCookie(name,"",-1); } /* shows description in description div */ function showNote(posId,msg) { toolDisplayObj = document.getElementById(posId); if (toolDisplayObj) { toolDisplayObj.innerHTML = msg; } } // LINKING FROM OPTION LIST function linkFromOption(what) { stringToSplit=document.getElementById(what).options[document.getElementById(what).selectedIndex].value splitTrackingName=stringToSplit.split('-optValDiv-')[0]; splitTrackingValue=stringToSplit.split('-optValDiv-')[1]; splitUrl=stringToSplit.split('-optValDiv-')[2]; splitTarget=stringToSplit.split('-optValDiv-')[3]; splitHeight=stringToSplit.split('-optValDiv-')[4]; splitWidth=stringToSplit.split('-optValDiv-')[5]; splitSroll=stringToSplit.split('-optValDiv-')[6]; splitResize=stringToSplit.split('-optValDiv-')[7]; if (splitUrl) { if (splitTrackingName && splitTrackingValue) { // send tracking values to tracking function sendTrackingRequest(splitTrackingName,splitTrackingValue) } if (splitTarget!='_self' && splitWidth!='' && splitHeight!='') { popupParams='width='+splitWidth+',height='+splitHeight+',scrollbars='+splitSroll+',resizable='+splitResize; // height='height='+splitHeight; // width=',width='+splitWidth; // scrollbars=',scrollbars='+splitSroll; // resize=',resizable='+splitResize; else resize=''; //alert('"'+popupParams+'"'); focusPopup=window.open(splitUrl,splitTarget,popupParams); focusPopup.focus(); } else { focusPopup=window.open(splitUrl,splitTarget); focusPopup.focus(); } // document.getElementById(what).selectedIndex=0; } } var firstselect; function resetOptionList(what) { if (firstselect=='yes') { document.getElementById(what).selectedIndex=0; firstselect='no'; } if (document.getElementById(what).selectedIndex!=0) firstselect='yes'; } // openSesame - be sure all needed classes are define in css file function openSesame(whatid) { if (document.getElementById(whatid).className=="sesameOpened") { document.getElementById(whatid).className="sesameClosed" } else { document.getElementById(whatid).className="sesameOpened" } } // alert function for external links lastBoxOpened=""; function buildAlertBox(boxID,mode) { className=document.getElementById('xLink'+boxID).className; innerHTML=document.getElementById('xLink'+boxID).innerHTML; HREF=document.getElementById('xLink'+boxID).href; TARGET=document.getElementById('xLink'+boxID).target; if(!TARGET) TARGET="_self"; ONCLICK="" try { ONCLICK=String(document.getElementById('xLink'+boxID).onclick).split("{")[1].split("}")[0].replace(/'/g,"\""); } catch (e) {} boxCode="
"; boxCode=boxCode+""; boxCode=boxCode+"

accept    reject"; boxCode=boxCode+"
"; boxCode=boxCode+""+innerHTML+""; document.getElementById('fLink'+boxID).innerHTML=boxCode; } function openCloseAlert(alertId,mode) { if (document.getElementById('externalAlert'+alertId).style.display=='block') { document.getElementById('alertText'+alertId).innerHTML=""; document.getElementById('fLink'+alertId).style.zIndex='1'; document.getElementById('externalAlert'+alertId).style.display='none'; document.getElementById('externalAlert'+alertId).style.left='0px'; document.getElementById('externalAlert'+alertId).style.top='0px'; lastBoxOpened=""; } else { if (lastBoxOpened!="") { openCloseAlert(lastBoxOpened); } alertText=""; if (mode=="external") alertText="When you access this link, you are leaving the Deutsche Bank website. The information provided on any websites accessed through this link has been produced by independent providers and Deutsche Bank does not endorse or accept any responsibility for information provided on any such sites. Any opinions or recommendations expressed on such other websites are solely those of the independent providers and are not the opinions or recommendations of Deutsche Bank. The existence of a link from this Website to any other such websites does not constitute a recommendation or other approval by Deutsche Bank of such websites or any provider thereof."; if (mode=="internal") alertText="When you access this link, you are leaving the Deutsche Bank Corporate Website and enter that of another member of the Deutsche Bank Group of Companies. Access to and use of such other website may be subject to separate eligibility criteria and terms and conditions."; document.getElementById('alertText'+alertId).innerHTML=alertText; document.getElementById('fLink'+alertId).style.zIndex='9999'; document.getElementById('externalAlert'+alertId).style.display='block'; alertBoxCoordinates('externalAlert'+alertId,mode); lastBoxOpened=alertId; } } //create alertBox position function alertBoxCoordinates(objId,mode) { if (mode=='external') {pixelsTop=130;} else {pixelsTop=70;} ob = document.getElementById(objId); relativeRight=(580-(document.body.clientWidth-findPosX(ob)))-document.body.scrollLeft; relativeBottom=document.body.clientHeight-(findPosY(ob)-document.body.scrollTop); if (relativeRight>0) { if (relativeRight>findPosX(ob)) relativeRight=findPosX(ob); ob.style.left="-"+relativeRight+"px"; } if (relativeBottom
"; } 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; } /////////// //function is in templates