var googleAnalyticsID="";var sitewideDisclaimer="DWSSGDisclaimer";var sitewideDisclaimerFundFinder="DWSSGDisclaimerFundFinder";var basePath="";
function f_clientWidth(){return f_filterResults(window.innerWidth?window.innerWidth:0,document.documentElement?document.documentElement.clientWidth:0,document.body?document.body.clientWidth:0);}function f_clientHeight(){return f_filterResults(window.innerHeight?window.innerHeight:0,document.documentElement?document.documentElement.clientHeight:0,document.body?document.body.clientHeight:0);}function f_scrollLeft(){return f_filterResults(window.pageXOffset?window.pageXOffset:0,document.documentElement?document.documentElement.scrollLeft:0,document.body?document.body.scrollLeft:0);}function f_scrollTop(){return f_filterResults(window.pageYOffset?window.pageYOffset:0,document.documentElement?document.documentElement.scrollTop:0,document.body?document.body.scrollTop:0);}function f_filterResults(n_win,n_docel,n_body){if(n_win>0){return n_win;}else if(n_docel>0){return n_docel;}return n_body;}
countrySelectorArrowUp_High=new Image();countrySelectorArrowUp_High.src=basePath+"/images/pf/tab_arrow_dark_asc.gif";countrySelectorArrowUp_Low=new Image();countrySelectorArrowUp_Low.src=basePath+"/images/pf/tab_arrow_bright_asc.gif";countrySelectorArrowDown_High=new Image();countrySelectorArrowDown_High.src=basePath+"/images/pf/tab_arrow_dark_desc.gif";countrySelectorArrowDown_Low=new Image();countrySelectorArrowDown_Low.src=basePath+"/images/pf/tab_arrow_bright_desc.gif";imagePath=basePath+"/images/icons/";NewWindow_active=new Image();NewWindow_active.src=imagePath+"NewWindow_active.gif";NewWindow_inactive=new Image();NewWindow_inactive.src=imagePath+"NewWindow_inactive.gif";Mail_active=new Image();Mail_active.src=imagePath+"Mail_active.gif";Mail_inactive=new Image();Mail_inactive.src=imagePath+"Mail_inactive.gif";Acrobat_active=new Image();Acrobat_active.src=imagePath+"Acrobat_active.gif";Acrobat_inactive=new Image();Acrobat_inactive.src=imagePath+"Acrobat_inactive.gif";Excel_active=new Image();Excel_active.src=imagePath+"Excel_active.gif";Excel_inactive=new Image();Excel_inactive.src=imagePath+"Excel_inactive.gif";Print_active=new Image();Print_active.src=imagePath+"Print_active.gif";Print_inactive=new Image();Print_inactive.src=imagePath+"Print_inactive.gif";var factSheetHigh="";var menuTimeout;var oldMenu;var oldSubMenu;var currentMenu;function switchImage(imgId,buttonName){if(imgId !=factSheetHigh){document.getElementById(imgId).src=eval(buttonName+".src");}}function toggleV(id){var element=document.getElementById(id);if(!element){return;}element.style.visibility=(element.style.visibility=="visible")?"hidden":"visible";}function toggleD(id){var element=document.getElementById(id);if(!element){return;}element.style.display=(element.style.display=="none")?"block":"none";}function toggleFAQ(id){var element=document.getElementById(id);if(!element){return;}if(element.style.display==""&& element.offsetWidth !=undefined && element.offsetHeight !=undefined){element.style.display=(element.offsetWidth !=0 && element.offsetHeight !=0)?"block":"none";}element.style.display=(element.style.display==""||element.style.display=="block")?"none":"block";}function SwitchFAQ(id){toggleFAQ(id+'_intro');toggleFAQ(id+'_long');}function switchPressNews(nr){toggleD('LongPressNews_'+nr);toggleD('LinkLongPressNews_'+nr);toggleD('ShortPressNews_'+nr);toggleD('LinkShortPressNews_'+nr);}function highSubMenu(id){var element=document.getElementById(id);if(!element){return;}if(element.nodeName=="LI"){element.firstChild.style.color="#ffffff";element.firstChild.data=element.firstChild.data;}if(element.nodeName=="A"){element.style.color="#ffffff";element.data=element.data;}}function showMenu(topMenu,subMenu,isPermActive){if(isPermActive){oldMenu=topMenu;oldSubMenu=subMenu;currentMenu=-1;}else{currentMenu=topMenu;}}function hideMenu(topMenu,subMenu){}function activateMenu(topMenu){if(currentMenu==topMenu){if(menuTimeout !=null)window.clearInterval(menuTimeout);return;}if(menuTimeout !=null)deactivateMenu(false);hideMenu(oldMenu,oldSubMenu);showMenu(topMenu,-1,false);}function deactivateMenuTimeout(){menuTimeout=window.setInterval("deactivateMenu(true)",750);}function deactivateMenu(showOldMenu){if(menuTimeout !=null)window.clearInterval(menuTimeout);hideMenu(currentMenu,-1);if(showOldMenu)showMenu(oldMenu,oldSubMenu,true);}function RedirectToSearch(url,searchField){if("Search"!=document.getElementById(searchField).value &&"Suche"!=document.getElementById(searchField).value){var searchValues=document.getElementById(searchField).value;url+="?SearchTerm="+encodeURI(searchValues);}window.location.href=url;}function setTabNavHigh(id,cssMode){switchNavImage(id,cssMode);factSheetHigh=id;}function switchNavImage(id,cssMode){if(id !=factSheetHigh){document.getElementById(id+'left').className=cssMode+'Left';document.getElementById(id+'middle').className=cssMode+'Middle';document.getElementById(id+'right').className=cssMode+'Right';}}function toggleLeftNav(pageName,subMenu){var i;var element;var elementLPC;var activeItem;var inactiveItem;var className;var pageRegExp;var oldPage;var newPage;if(subMenu==-1||(window.location.protocol+"//"+window.location.host+pageName)!=window.location.href)window.location.href=pageName;elementLPC=document.getElementById('thirdAndFourthNavDiv');if(!elementLPC)return;for(i=0;i<elementLPC.childNodes.length;++i){element=elementLPC.childNodes[i];if(!element)continue;if(!element.className)continue;if(element.className.search(/^Active/)!=-1){if(element.onmouseover !=null){inactiveItem=element;}else{activeItem=element;}}}if(inactiveItem !=null){inactiveItem.onmouseover=null;inactiveItem.onmouseout=null;activeItem.onmouseover=function(){this.className="Active";};activeItem.onmouseout=function(){this.className="InActive";};className=activeItem.className;activeItem.className=className.replace(/^Active/,"InActive");}if(subMenu>0 && document.getElementById('Navi4th_Group_0')==null){element=document.getElementById('Navi4th_Group_'+subMenu);element.style.display="block";}else{i=0;element=document.getElementById('Navi4th_Group_'+i);while(element !=null){if(i==subMenu){element.style.display="block";}else{element.style.display="none";}i++;element=document.getElementById('Navi4th_Group_'+i);}}}function switchCssClass(id,cssClass){document.getElementById(id).className=cssClass;}function executeLink(url){window.location.href=url;}function setVisible(id){var element=document.getElementById(id);if(!element)return;element.style.display="block";}function collectFundIDsAndForward(tableHTMLID,noFundsMessage){var fundIDs=CollectFundIDs(tableHTMLID);var oldFundISINs="";var oldFundPercs="";var contentTable;var tr;var mixerOldFunds=document.getElementById("MixerOldFunds");var mixerOldPercs=document.getElementById("MixerOldPercs");if(mixerOldFunds !=null)oldFundISINs=mixerOldFunds.value;if(mixerOldPercs !=null)oldFundPercs=mixerOldPercs.value;if(fundIDs !="")fundIDs="FundID="+fundIDs+"&";if(oldFundISINs !="")oldFundISINs="OldFundISINs="+oldFundISINs+"&";if(oldFundPercs !="")oldFundPercs="OldFundPercs="+oldFundPercs;if((fundIDs=="")&&(oldFundISINs=="")){alert(noFundsMessage);}else{document.location.href="../flash/FundMixer.aspx?"+fundIDs+oldFundISINs+oldFundPercs+"pageID=52";}}function getNewCaptchaImage(field2set,filed2hide){document.getElementById(field2set).value="true";document.aspnetForm.submit();}function validateAndSendMail(){if(Page_ClientValidate())document.aspnetForm.submit();}function validateAndSendForm(){if(Page_ClientValidate())document.aspnetForm.submit();}function PrintPage(fundParameter){var printWindow=window.open(fundParameter+'&openNewWindow=true&printPage=true');}function CollectFundIDs(tableID){var fundIDs="";var contentTable;var tr;var td;contentTable=document.getElementById(tableID).firstChild;if(contentTable.nodeType==3)contentTable=contentTable.nextSibling;for(var i=1;i<contentTable.childNodes.length;i++){if(contentTable.childNodes[i].nodeType==3)continue;tr=contentTable.childNodes[i];td=tr.firstChild;if(td.nodeType==3)td=td.nextSibling;if(td.firstChild.firstChild.checked==true)fundIDs+=td.childNodes[1].getAttribute("value")+";";}return fundIDs;}function setMessageInField(msg,fieldID){if(document.getElementById(fieldID).hasChildNodes())document.getElementById(fieldID).removeChild(document.getElementById(fieldID).firstChild);switchCssClass(fieldID,'dwsH4 bold');document.getElementById(fieldID).appendChild(document.createTextNode(msg));}function testEnterKey(e,loginButtonId){var evt=e||window.event;var control=document.getElementById(loginButtonId);if(!evt)return;var key=0;if(evt.keyCode){key=evt.keyCode;}else if(typeof(evt.which)!='undefined'){key=evt.which;}if(key==13){window.location=control.href;}}function switchTopFlopTab(id,high){if(high==1)low=2;else{low=1;}document.getElementById(id+low+'Left').className='greyBgWhiteLeft';document.getElementById(id+low+'Middle').className='fsLowMiddle';document.getElementById(id+low+'Right').className='greyBgWhiteRight';switchCssClass(id+low+'Content','topFlopInVisible');document.getElementById(id+high+'Left').className='whiteBgWhiteLeft';document.getElementById(id+high+'Middle').className='fsHighMiddle';document.getElementById(id+high+'Right').className='whiteBgWhiteRight';switchCssClass(id+high+'Content','topFlopVisible');}function switchTopDocumentTab(id,high,length){var Zaehler=0;for(var i=0;i<length;i++){Zaehler=i+1;if(Zaehler !=high){document.getElementById(id+Zaehler+'Left').className='greyBgWhiteLeft';document.getElementById(id+Zaehler+'Middle').className='fsLowMiddle';document.getElementById(id+Zaehler+'Right').className='greyBgWhiteRight';switchCssClass(id+Zaehler+'Content','topFlopInVisible');switchCssClass(id+Zaehler+'Bottom','topFlopInVisible');}else{document.getElementById(id+high+'Left').className='whiteBgWhiteLeft';document.getElementById(id+high+'Middle').className='fsHighMiddle';document.getElementById(id+high+'Right').className='whiteBgWhiteRight';switchCssClass(id+high+'Content','topFlopVisible');switchCssClass(id+high+'Bottom','topFlopVisible');}}}function centerProgressDivOnScreen(e,divId){var df=document.getElementById(divId);if(df !=null){var dfs=df.style;dfs.zIndex="999";dfs.position="absolute";var x,y;if(self.innerHeight){x=self.innerWidth;y=self.innerHeight;}else if(document.documentElement && document.documentElement.clientHeight){x=document.documentElement.clientWidth;y=document.documentElement.clientHeight;}else if(document.body){x=document.body.clientWidth;y=document.body.clientHeight;}x=(x-280)/2;y=(y-50)/2;dfs.left=x+"px";dfs.top=y+"px";}}function hideFlash(){var element=document.getElementById("flashContainer");if(element){element.innerHTML="";}}function ChangePopupParent(panel){var panel=document.getElementById(panel);var background=panel.nextSibling;while(background.nodeName !="DIV"){background=background.nextSibling;}panel=panel.parentNode.removeChild(panel);background=background.parentNode.removeChild(background);var bodies=document.getElementsByTagName("BODY");if(bodies.length>0){bodies[0].appendChild(panel);bodies[0].appendChild(background);}}function setItemDisplay(item,state){var element=document.getElementById(item);if(element){element.style.display=state;}else{element=document.getElementsByName(item);alert(element[0]);if(element[0]){element[0].style.display=state;}}}function enableItem(item){setItemDisplay(item,"block");}function disableItem(item){setItemDisplay(item,"none");}function togglePopupPanel(panelID,imageID,openImage,closeImage){var panel=document.getElementById(panelID);var image=document.getElementById(imageID);if(panel.style.display=="block"){panel.style.display="none";image.src=openImage;}else{panel.style.display="block";image.src=closeImage;}}function closeAwardLinksPanel(award){var element=document.getElementById(award);element.style.display="none";}function showAwardLinksPanel(award){var element=document.getElementById(award);element.style.display="block";}function showVideo(){showSpecialVideo("v1");}function showSpecialVideo(videoID){var flashVars={localeID:"de",videoID:videoID};var params={play:"true",loop:"false",quality:"high",menu:"false",allowscriptaccess:"always",allowFullScreen:"false",bgcolor:"#F6F5F6",wmode:"opaque"};swfobject.embedSWF("videoplayer.swf","flash","796","367","7",false,flashVars,params);}function showBanner(){enableItem('hideFlashPopUp');var flashVars={localeID:"de",videoID:videoID};var params={play:"true",loop:"false",quality:"high",menu:"false",allowscriptaccess:"always",allowFullScreen:"false",bgcolor:"#F6F5F6",wmode:"opaque"};swfobject.embedSWF("../flash/teaser/DWS_DE_Teaser_BackstageDWS_DE.swf","flash","995","227","7",false,flashVars,params);}function hideFlash(){var element=document.getElementById("flash");if(element){element.innerHTML="";}}function getCookieVal(offset){var endstr=document.cookie.indexOf(";",offset);if(endstr==-1)endstr=document.cookie.length;return unescape(document.cookie.substring(offset,endstr));}function GetCookie(name){var arg=name+"=";var alen=arg.length;var clen=document.cookie.length;var i=0;while(i<clen){var j=i+alen;if(document.cookie.substring(i,j)==arg){return getCookieVal(j);}i=document.cookie.indexOf(" ",i)+1;if(i==0){break;}}return null;}function SetCookie(name,value){var argv=SetCookie.arguments;var argc=SetCookie.arguments.length;var path=(argc>2)?argv[2]:null;var expires=(argc>3)?argv[3]:null;var domain=(argc>4)?argv[4]:null;var secure=(argc>5)?argv[5]:false;var cookie=name+"="+escape(value)+((expires==null)?"":("; expires="+expires))+((path==null)?"":("; path="+path))+((domain==null)?"":("; domain="+domain))+((secure==true)?"; secure":"");document.cookie=cookie;}function MoveEntryUp(listBoxId,hiddenFieldId){var listBox=document.getElementById(listBoxId);var hiddenField=document.getElementById(hiddenFieldId);if(listBox.selectedIndex>0){SwapItem(listBox,hiddenField,listBox.selectedIndex,listBox.selectedIndex-1);}else{return false;}}function MoveEntryDown(listBoxId,hiddenFieldId){var listBox=document.getElementById(listBoxId);var hiddenField=document.getElementById(hiddenFieldId);if(listBox.selectedIndex<(listBox.options.length-1)){SwapItem(listBox,hiddenField,listBox.selectedIndex,listBox.selectedIndex+1);}else{return false;}}function SwapItem(listBox,hiddenField,itemPos,swapPos){var tempOption=new Array(listBox.options[swapPos].text,listBox.options[swapPos].value);listBox.options[swapPos].text=listBox.options[itemPos].text;listBox.options[swapPos].value=listBox.options[itemPos].value;listBox.options[itemPos].text=tempOption[0];listBox.options[itemPos].value=tempOption[1];listBox.selectedIndex=swapPos;hiddenField.value="";for(var i=0;i<listBox.options.length;++i){hiddenField.value=hiddenField.value+listBox.options[i].value+"#";}}
imagePath="/images/index/ia/";function get_random(max){var ranNum=Math.floor(Math.random()*max);return ranNum;}function removePanel(){if(typeof teaserID !="undefined"){if(parseInt(teaser[teaserID]["height"])>300){var removePanel=document.getElementById(removePanelID);if(removePanel){removePanel.style.display="none";}if(removePanelID=="ia"||showStripline==false){var stripline=document.getElementById("stripline");if(stripline){stripline.style.display="none";}}}}}
var enterTargetControlID='';function setEnterEvent(targetControlUniqueID){document.onkeydown=doEnterClick;enterTargetControlID=targetControlUniqueID;}function doEnterClick(evnt){if(enterTargetControlID!=''){if(!evnt){evnt=window.event;}if(evnt.which||evnt.keyCode){if((evnt.which==13)||(evnt.keyCode==13)){var submitButton=document.getElementById(enterTargetControlID);if(submitButton !=null){if(submitButton.style.display !='none'){submitButton.focus();}submitButton.click();}}}}}function disableEnter(evnt){if(!evnt){evnt=window.event;}if(evnt.which||evnt.keyCode){if((evnt.which==13)||(evnt.keyCode==13)){return false;}}return true;}function doPostBackOnEnter(event,eventTarget,eventArgument,validationGroup){if(event.which||event.keyCode){if((event.which==13)||(event.keyCode==13)){if(validationGroup !=null){WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(eventTarget,eventArgument,true,validationGroup,'',false,true));}else{WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(eventTarget,eventArgument,false,'','',false,true));}}}}function doClickOnEnter(event,targetControlUniqueID,eventTarget,eventArgument,validationGroup){if(event.which||event.keyCode){if((event.which==13)||(event.keyCode==13)){setEnterEvent('');var validationResult=true;if(validationGroup !=''){if(typeof(Page_ClientValidate)=='function'){validationResult=Page_ClientValidate(validationGroup);}}if(validationResult){__customPostBack(eventTarget,eventArgument,targetControlUniqueID);}}}return false;}function __customPostBack(eventTarget,eventArgument,submitButtonId){if(!theForm.onsubmit||(theForm.onsubmit()!=false)){theForm.__EVENTTARGET.value=eventTarget;theForm.__EVENTARGUMENT.value=eventArgument;var submitButton=document.getElementById(submitButtonId);if(submitButton !=null){if(submitButton.style.display !='none'){submitButton.focus();}submitButton.click();}}}function refreshUpdatePanelParameterized(updatePanelClientID,eventArgumentName,eventArguments,modalPopupID){__doPostBack(updatePanelClientID,eventArgumentName+'_#_'+eventArguments);window.setTimeout('showModalPopup("'+modalPopupID+'")',3000);}function setValueAndPostBack(field,value){document.getElementById(field).value=value;__doPostBack(field,'');}function validateSelectionAndPostBack(selectField,postBackField){isDisabled=selectField.options[selectField.selectedIndex].disabled;if(isDisabled){selectField.selectedIndex=selectField.defaultSelectedIndex;return false;}else{setValueAndPostBack(postBackField,selectField.options[selectField.selectedIndex].value);return true;}}function centerWindow(){self.moveTo(screen.height?(screen.width-document.documentElement.clientWidth)/2:300,screen.height?(screen.height-document.documentElement.clientHeight)/2:200);}function show_object(strObjectId){var objDiv=document.getElementById(strObjectId);if(objDiv.style.visibility=="hidden"){objDiv.style.visibility="visible";}else{objDiv.style.visibility="hidden";}}function compareProducts(link,checkboxName,tooFew,tooMuch){var isinString=GetISINArray(checkboxName,2,3);if(isinString==-1){alert(tooFew);return false;}if(isinString==-2){alert(tooMuch);return false;}var now=new Date();window.open(link+'&isins='+isinString,'CompareProducts'+now.getTime(),'width=830, height=790, location=no, menubar=no, resizeable=no, scrollbars=no, status=no, toolbar=no');}function GetISINArray(checkboxID,min,max){var isinString="";var checked=0;checkboxes=document.getElementsByName(checkboxID);for(var i=0;i<checkboxes.length;i++){if(checkboxes[i].checked==true){if(isinString.length>0){isinString+=",";}isinString+=checkboxes[i].value;checked++;}}if(min>-1 && checked<min){return-1;}if(max>-1 && checked>max){return-2;}return isinString;}function switchFrame(kat,id,frameCount){for(i=0;i<frameCount;i++){document.getElementById(kat+'_'+i).style.display='none';}document.getElementById(kat+'_'+id).style.display='block';}function setTab(id,item,count){for(i=0;i<count;i++){document.getElementById(id+'_'+i+'_tab').className='';document.getElementById(id+'_'+i+'_div').style.display='none';}document.getElementById(id+'_'+item+'_tab').className='selected';document.getElementById(id+'_'+item+'_div').style.display='block';}function toggle(newDiv,openDiv){if(openDiv.length>0){document.getElementById(openDiv).style.display='none';}if(document.getElementById(newDiv).style.display !='none'){document.getElementById(newDiv).style.display='none';}else{document.getElementById(newDiv).style.display='';}return newDiv;}function setHiddenValue(elementId,value,buttonId){var submit=false;if(value.length>2){var element1=document.getElementById(elementId.toLowerCase());if(element1 !=null){element1.value=value;var submitButton=document.getElementById(buttonId);if(submitButton !=null){if(submitButton.style.display !='none'){submitButton.focus();}submitButton.click();}}}}function createFlashChart(chartName,importer,xmlCreatorPath,isin,type){document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="458" height="400" title="Graph">');document.write('<param name="movie" value="Flash/'+chartName+'?path='+importer+'?target='+xmlCreatorPath+'|'+isin+'|'+type+'" />');document.write('<param name="quality" value="high" />');document.write('<embed src="Flash/'+chartName+'?path='+importer+'?target='+xmlCreatorPath+'|'+isin+'|'+type+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="458" height="400"></embed>');document.write('</object>');}function writeFlash(htmlString){document.write(htmlString);}

var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;if(typeof t.plugins!=D&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true;X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=function(){if(!M.w3){return}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f()}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)}if(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);f()}});if(O==top){(function(){if(J){return}try{j.documentElement.doScroll("left")}catch(X){setTimeout(arguments.callee,0);return}f()})()}}if(M.wk){(function(){if(J){return}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}f()})()}s(f)}}();function f(){if(J){return}try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span"));Z.parentNode.removeChild(Z)}catch(aa){return}J=true;var X=U.length;for(var Y=0;Y<X;Y++){U[Y]()}}function K(X){if(J){X()}else{U[U.length]=X}}function s(Y){if(typeof O.addEventListener!=D){O.addEventListener("load",Y,false)}else{if(typeof j.addEventListener!=D){j.addEventListener("load",Y,false)}else{if(typeof O.attachEvent!=D){i(O,"onload",Y)}else{if(typeof O.onload=="function"){var X=O.onload;O.onload=function(){X();Y()}}else{O.onload=Y}}}}}function h(){if(T){V()}else{H()}}function V(){var X=j.getElementsByTagName("body")[0];var aa=C(r);aa.setAttribute("type",q);var Z=X.appendChild(aa);if(Z){var Y=0;(function(){if(typeof Z.GetVariable!=D){var ab=Z.GetVariable("$version");if(ab){ab=ab.split(" ")[1].split(",");M.pv=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}else{if(Y<10){Y++;setTimeout(arguments.callee,10);return}}X.removeChild(aa);Z=null;H()})()}else{H()}}function H(){var ag=o.length;if(ag>0){for(var af=0;af<ag;af++){var Y=o[af].id;var ab=o[af].callbackFn;var aa={success:false,id:Y};if(M.pv[0]>0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}else{if(o[af].expressInstall&&A()){var ai={};ai.data=o[af].expressInstall;ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class")}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align")}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad<ac;ad++){if(X[ad].getAttribute("name").toLowerCase()!="movie"){ah[X[ad].getAttribute("name")]=X[ad].getAttribute("value")}}P(ai,ah,Y,ab)}else{p(ae);if(ab){ab(aa)}}}}}else{w(Y,true);if(ab){var Z=z(Y);if(Z&&typeof Z.SetVariable!=D){aa.success=true;aa.ref=Z}ab(aa)}}}}}function z(aa){var X=null;var Y=c(aa);if(Y&&Y.nodeName=="OBJECT"){if(typeof Y.SetVariable!=D){X=Y}else{var Z=Y.getElementsByTagName(r)[0];if(Z){X=Z}}}return X}function A(){return !a&&F("6.0.65")&&(M.win||M.mac)&&!(M.wk&&M.wk<312)}function P(aa,ab,X,Z){a=true;E=Z||null;B={success:false,id:X};var ae=c(X);if(ae){if(ae.nodeName=="OBJECT"){l=g(ae);Q=null}else{l=ae;Q=X}aa.id=R;if(typeof aa.width==D||(!/%$/.test(aa.width)&&parseInt(aa.width,10)<310)){aa.width="310"}if(typeof aa.height==D||(!/%$/.test(aa.height)&&parseInt(aa.height,10)<137)){aa.height="137"}j.title=j.title.slice(0,47)+" - Flash Player Installation";var ad=M.ie&&M.win?"ActiveX":"PlugIn",ac="MMredirectURL="+O.location.toString().replace(/&/g,"%26")+"&MMplayerType="+ad+"&MMdoctitle="+j.title;if(typeof ab.flashvars!=D){ab.flashvars+="&"+ac}else{ab.flashvars=ac}if(M.ie&&M.win&&ae.readyState!=4){var Y=C("div");X+="SWFObjectNew";Y.setAttribute("id",X);ae.parentNode.insertBefore(Y,ae);ae.style.display="none";(function(){if(ae.readyState==4){ae.parentNode.removeChild(ae)}else{setTimeout(arguments.callee,10)}})()}u(aa,ab,X)}}function p(Y){if(M.ie&&M.win&&Y.readyState!=4){var X=C("div");Y.parentNode.insertBefore(X,Y);X.parentNode.replaceChild(g(Y),X);Y.style.display="none";(function(){if(Y.readyState==4){Y.parentNode.removeChild(Y)}else{setTimeout(arguments.callee,10)}})()}else{Y.parentNode.replaceChild(g(Y),Y)}}function g(ab){var aa=C("div");if(M.win&&M.ie){aa.innerHTML=ab.innerHTML}else{var Y=ab.getElementsByTagName(r)[0];if(Y){var ad=Y.childNodes;if(ad){var X=ad.length;for(var Z=0;Z<X;Z++){if(!(ad[Z].nodeType==1&&ad[Z].nodeName=="PARAM")&&!(ad[Z].nodeType==8)){aa.appendChild(ad[Z].cloneNode(true))}}}}}return aa}function u(ai,ag,Y){var X,aa=c(Y);if(M.wk&&M.wk<312){return X}if(aa){if(typeof ai.id==D){ai.id=Y}if(M.ie&&M.win){var ah="";for(var ae in ai){if(ai[ae]!=Object.prototype[ae]){if(ae.toLowerCase()=="data"){ag.movie=ai[ae]}else{if(ae.toLowerCase()=="styleclass"){ah+=' class="'+ai[ae]+'"'}else{if(ae.toLowerCase()!="classid"){ah+=" "+ae+'="'+ai[ae]+'"'}}}}}var af="";for(var ad in ag){if(ag[ad]!=Object.prototype[ad]){af+='<param name="'+ad+'" value="'+ag[ad]+'" />'}}aa.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ah+">"+af+"</object>";N[N.length]=ai.id;X=c(ai.id)}else{var Z=C(r);Z.setAttribute("type",q);for(var ac in ai){if(ai[ac]!=Object.prototype[ac]){if(ac.toLowerCase()=="styleclass"){Z.setAttribute("class",ai[ac])}else{if(ac.toLowerCase()!="classid"){Z.setAttribute(ac,ai[ac])}}}}for(var ab in ag){if(ag[ab]!=Object.prototype[ab]&&ab.toLowerCase()!="movie"){e(Z,ab,ag[ab])}}aa.parentNode.replaceChild(Z,aa);X=Z}}return X}function e(Z,X,Y){var aa=C("param");aa.setAttribute("name",X);aa.setAttribute("value",Y);Z.appendChild(aa)}function y(Y){var X=c(Y);if(X&&X.nodeName=="OBJECT"){if(M.ie&&M.win){X.style.display="none";(function(){if(X.readyState==4){b(Y)}else{setTimeout(arguments.callee,10)}})()}else{X.parentNode.removeChild(X)}}}function b(Z){var Y=c(Z);if(Y){for(var X in Y){if(typeof Y[X]=="function"){Y[X]=null}}Y.parentNode.removeChild(Y)}}function c(Z){var X=null;try{X=j.getElementById(Z)}catch(Y){}return X}function C(X){return j.createElement(X)}function i(Z,X,Y){Z.attachEvent(X,Y);I[I.length]=[Z,X,Y]}function F(Z){var Y=M.pv,X=Z.split(".");X[0]=parseInt(X[0],10);X[1]=parseInt(X[1],10)||0;X[2]=parseInt(X[2],10)||0;return(Y[0]>X[0]||(Y[0]==X[0]&&Y[1]>X[1])||(Y[0]==X[0]&&Y[1]==X[1]&&Y[2]>=X[2]))?true:false}function v(ac,Y,ad,ab){if(M.ie&&M.mac){return}var aa=j.getElementsByTagName("head")[0];if(!aa){return}var X=(ad&&typeof ad=="string")?ad:"screen";if(ab){n=null;G=null}if(!n||G!=X){var Z=C("style");Z.setAttribute("type","text/css");Z.setAttribute("media",X);n=aa.appendChild(Z);if(M.ie&&M.win&&typeof j.styleSheets!=D&&j.styleSheets.length>0){n=j.styleSheets[j.styleSheets.length-1]}G=X}if(M.ie&&M.win){if(n&&typeof n.addRule==r){n.addRule(ac,Y)}}else{if(n&&typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+" {"+Y+"}"))}}}function w(Z,X){if(!m){return}var Y=X?"visible":"hidden";if(J&&c(Z)){c(Z).style.visibility=Y}else{v("#"+Z,"visibility:"+Y)}}function L(Y){var Z=/[\\\"<>\.;]/;var X=Z.exec(Y)!=null;return X&&typeof encodeURIComponent!=D?encodeURIComponent(Y):Y}var d=function(){if(M.ie&&M.win){window.attachEvent("onunload",function(){var ac=I.length;for(var ab=0;ab<ac;ab++){I[ab][0].detachEvent(I[ab][1],I[ab][2])}var Z=N.length;for(var aa=0;aa<Z;aa++){y(N[aa])}for(var Y in M){M[Y]=null}M=null;for(var X in swfobject){swfobject[X]=null}swfobject=null})}}();return{registerObject:function(ab,X,aa,Z){if(M.w3&&ab&&X){var Y={};Y.id=ab;Y.swfVersion=X;Y.expressInstall=aa;Y.callbackFn=Z;o[o.length]=Y;w(ab,false)}else{if(Z){Z({success:false,id:ab})}}},getObjectById:function(X){if(M.w3){return z(X)}},embedSWF:function(ab,ah,ae,ag,Y,aa,Z,ad,af,ac){var X={success:false,id:ah};if(M.w3&&!(M.wk&&M.wk<312)&&ab&&ah&&ae&&ag&&Y){w(ah,false);K(function(){ae+="";ag+="";var aj={};if(af&&typeof af===r){for(var al in af){aj[al]=af[al]}}aj.data=ab;aj.width=ae;aj.height=ag;var am={};if(ad&&typeof ad===r){for(var ak in ad){am[ak]=ad[ak]}}if(Z&&typeof Z===r){for(var ai in Z){if(typeof am.flashvars!=D){am.flashvars+="&"+ai+"="+Z[ai]}else{am.flashvars=ai+"="+Z[ai]}}}if(F(Y)){var an=u(aj,am,ah);if(aj.id==ah){w(ah,true)}X.success=true;X.ref=an}else{if(aa&&A()){aj.data=aa;P(aj,am,ah,ac);return}else{w(ah,true)}}if(ac){ac(X)}})}else{if(ac){ac(X)}}},switchOffAutoHideShow:function(){m=false},ua:M,getFlashPlayerVersion:function(){return{major:M.pv[0],minor:M.pv[1],release:M.pv[2]}},hasFlashPlayerVersion:F,createSWF:function(Z,Y,X){if(M.w3){return u(Z,Y,X)}else{return undefined}},showExpressInstall:function(Z,aa,X,Y){if(M.w3&&A()){P(Z,aa,X,Y)}},removeSWF:function(X){if(M.w3){y(X)}},createCSS:function(aa,Z,Y,X){if(M.w3){v(aa,Z,Y,X)}},addDomLoadEvent:K,addLoadEvent:s,getQueryParamValue:function(aa){var Z=j.location.search||j.location.hash;if(Z){if(/\?/.test(Z)){Z=Z.split("?")[1]}if(aa==null){return L(Z)}var Y=Z.split("&");for(var X=0;X<Y.length;X++){if(Y[X].substring(0,Y[X].indexOf("="))==aa){return L(Y[X].substring((Y[X].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(a){var X=c(R);if(X&&l){X.parentNode.replaceChild(l,X);if(Q){w(Q,true);if(M.ie&&M.win){l.style.display="block"}}if(E){E(B)}}a=false}}}}();
function CollectCheckBoxFundIDs(tableID,action){var fundIDs="";var contentTable;var z;contentTable=document.getElementById(tableID).firstChild;if(contentTable.nodeType==3){contentTable=contentTable.nextSibling;}Table=contentTable.getElementsByTagName("input");for(var i=0;i<Table.length;i++){if(Table[i].type=="checkbox"){if((Table[i].checked && action !='ConfirmDelete')||(Table[i].checked==false && action=='ConfirmDelete')||(action=='addFunds')||(Table[i].checked && action=='')){z=i+1;if(Table[z].type=="hidden"){fundIDs+=Table[z].getAttribute("value")+";";}}}}return fundIDs;}function collectFundIDsAndForwardWatchlistMix(tableHTMLID,noFundsMessage){var fundIDs=CollectFundIDs(tableHTMLID,noFundsMessage);if(fundIDs==""){alert(noFundsMessage);}else{document.location.href="/flash/FundMixer.aspx?FundID="+fundIDs;}}function collectFundIDsAndForwardWatchlistAdd(tableHTMLID,noFundsMessage){var fundIDs=CollectFundIDs(tableHTMLID,noFundsMessage);if(fundIDs==""){alert(noFundsMessage);}else{document.location.href="/account/mypage.aspx?action=add&FundID="+fundIDs;}}function collectFundIDsAndPostBackToAjaxPanel(tableHTMLID,ajaxPanelID,commandName,noFundsMessage){var fundIDs=CollectFundIDs(tableHTMLID,noFundsMessage);if(fundIDs==""){alert(noFundsMessage);}else{__doPostBack(ajaxPanelID,commandName+fundIDs);}}function collectFundIDsAndForwardWatchlistDelete(tableHTMLID,action,noFundsMessage){var fundIDs=CollectFundIDs(tableHTMLID,noFundsMessage);if(fundIDs==""){alert(noFundsMessage);}else{document.location.href="start.aspx?action="+action+"&FundID="+fundIDs;}}function collectFundIDsAndForwardWatchlistAdd(tableHTMLID,noFundsMessage){var fundIDs=CollectFundIDs(tableHTMLID,noFundsMessage);if(fundIDs==""){alert(noFundsMessage);}else{document.location.href="../account/start.aspx?action=add&FundID="+fundIDs;}}function collectFundIDsAndForwardComparison(tableHTMLID,noFundsMessage,tooMuchFundsMessage,ComparisonOldFunds){var fundIDs=CollectFundIDs(tableHTMLID,noFundsMessage);var funds=fundIDs.split(";");var oldFunds=ComparisonOldFunds.split(",");if(fundIDs==""){alert(noFundsMessage);}else if((funds.length-1+oldFunds.length-1)>5){alert(tooMuchFundsMessage);}else{if(ComparisonOldFunds !=''){document.location.href="../flash/FundComparison.aspx?FundID="+fundIDs+"&ComparisonOldFunds="+ComparisonOldFunds;}else{document.location.href="../flash/FundComparison.aspx?FundID="+fundIDs;}}}function collectFundIDsAndForwardComparisonAdd(tableHTMLID,action,tooMuchFundsMessage,ComparisonOldFunds){var fundIDs=CollectCheckBoxFundIDs(tableHTMLID,action);var funds=fundIDs.split(";");var oldFunds=ComparisonOldFunds.split(",");if(funds.length>5){alert(tooMuchFundsMessage);}else{if(ComparisonOldFunds !=''){document.location.href="/products/FundFinder.aspx?ComparisonOldFunds="+ComparisonOldFunds;}else{document.location.href="/products/FundFinder.aspx";}}}function collectFundIDsAndForwardComparisonDelete(tableHTMLID,action,noFundsMessage){var fundIDs="";if(action !="ConfirmAllDelete"){fundIDs=CollectCheckBoxFundIDs(tableHTMLID,'');}if(fundIDs==""&& action !="ConfirmAllDelete"){return false;}if(action=="ConfirmDelete"||action=="ConfirmAllDelete"){Check=confirm(noFundsMessage);}else{Check=true;}if(Check==true){if(action !="ConfirmAllDelete"){fundIDs=CollectCheckBoxFundIDs(tableHTMLID,action);}if(fundIDs==""){document.location.href="/products/FundFinder.aspx";}else{document.location.href="FundComparison.aspx?FundID="+fundIDs;}}}function deleteInstrumentComparison(instrumentID){var fundIDs;var tableHTMLID="ctl00_ContentPlaceHolder_fundListingTable";var updatePanelClientID="ctl00_ContentPlaceHolder_UpdateComparison";if(instrumentID==""){return false;}__doPostBack(updatePanelClientID,"fundID_#_"+instrumentID);}function collectFundIDsComparisonAdd2Watchlist(tableHTMLID,action,noFundsMessage){var fundIDs=CollectCheckBoxFundIDs(tableHTMLID,action);if(fundIDs==""){alert(noFundsMessage);}else{document.location.href="../account/start.aspx?action=add&FundID="+fundIDs;}}function SetDisplayState(id,state){var element=document.getElementById(id);if(!element)return;element.style.display=state;}function SetLabelText(id,text){var element=document.getElementById(id);if(!element)return;element.innerHTML=text;}
var infoButton_xMousePos=0;var infoButton_yMousePos=0;if(document.layers){document.captureEvents(Event.MOUSEMOVE);document.onmousemove=captureMousePosition;}else if(document.all){document.onmousemove=captureMousePosition;}else if(document.getElementById){document.onmousemove=captureMousePosition;}function captureMousePosition(e){if(document.all){infoButton_xMousePos=window.event.clientX;infoButton_yMousePos=window.event.clientY;}else{infoButton_xMousePos=e.clientX;infoButton_yMousePos=e.clientY;}}function f_clientWidth(){return f_filterResults(window.innerWidth?window.innerWidth:0,document.documentElement?document.documentElement.clientWidth:0,document.body?document.body.clientWidth:0);}function f_clientHeight(){return f_filterResults(window.innerHeight?window.innerHeight:0,document.documentElement?document.documentElement.clientHeight:0,document.body?document.body.clientHeight:0);}function f_scrollLeft(){return f_filterResults(window.pageXOffset?window.pageXOffset:0,document.documentElement?document.documentElement.scrollLeft:0,document.body?document.body.scrollLeft:0);}function f_scrollTop(){return f_filterResults(window.pageYOffset?window.pageYOffset:0,document.documentElement?document.documentElement.scrollTop:0,document.body?document.body.scrollTop:0);}function f_filterResults(n_win,n_docel,n_body){var n_result=n_win?n_win:0;if(n_docel &&(!n_result||(n_result>n_docel)))n_result=n_docel;return n_body &&(!n_result||(n_result>n_body))?n_body:n_result;}var infoButtonXOffset=10;var infoButtonYOffset=10;function toggleStickyInfo(elementID){var element=document.getElementById(elementID);if(element.style.display=="block"){hideDivElement(elementID);}else{document.body.appendChild(element);setElementPositionToMouse(elementID);}}function setElementPositionToMouse(elementID){var element=document.getElementById(elementID);var left=(f_scrollLeft()+infoButton_xMousePos+infoButtonXOffset);var pwidth=parseInt(element.style.width.substring(0,element.style.width.length-2));var padding=20;if(document.all){padding=20;}else{padding=50;}if(left+pwidth+padding>f_clientWidth()+f_scrollLeft()){left=f_clientWidth()+f_scrollLeft()-pwidth-padding;}element.style.left=left+"px";element.style.top=(f_scrollTop()+infoButton_yMousePos+infoButtonYOffset)+"px";element.style.display="block";}function hideDivElement(elementID){element=document.getElementById(elementID);element.style.display="none";}function changeElementParentToBody(elementID){var element=document.getElementById(elementID);if(element==null){return;}document.body.appendChild(element);}
var progressElement;var modalBackgroundElement;var modalPopup=false;function initDwsAjaxProgress(elementID,useModal){body=document.body;element=document.getElementById(elementID);body.appendChild(element);progressElement=element;progressElement.style.width="270px";progressElement.style.height="50px";progressElement.style.display="none";modalPopup=useModal;createModalBackgroundElement();centerProgressPanel();if(typeof Sys=='object' && typeof Sys.WebForms=='object'){Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(beginRequestHandlerDwsAjaxProgress);Sys.WebForms.PageRequestManager.getInstance().add_endRequest(endRequestHandlerDwsAjaxProgress);}}function createModalBackgroundElement(){modalBackgroundElement=document.createElement("div");modalBackgroundElement.className="ajaxModalBackground";modalBackgroundElement.style.position="fixed";modalBackgroundElement.style.left=f_scrollLeft()+"px";modalBackgroundElement.style.top=f_scrollTop()+"px";modalBackgroundElement.style.width=f_clientWidth()+"px";modalBackgroundElement.style.height=f_clientHeight()+"px";}function showModalBackgroundElement(){modalBackgroundElement.style.left=f_scrollLeft()+"px";modalBackgroundElement.style.top=f_scrollTop()+"px";modalBackgroundElement.style.width=f_clientWidth()+"px";modalBackgroundElement.style.height=f_clientHeight()+"px";document.body.appendChild(modalBackgroundElement);}function hideModalBackgroundElement(){document.body.removeChild(modalBackgroundElement);}function beginRequestHandlerDwsAjaxProgress(sender,args){if(modalPopup==true){showModalBackgroundElement();}progressElement.style.display="block";centerProgressPanel();}function endRequestHandlerDwsAjaxProgress(sender,args){if(modalPopup==true){hideModalBackgroundElement();}progressElement.style.display="none";centerProgressPanel();}function centerProgressPanel(){if(progressElement==null){return;}var pwidth=parseInt(progressElement.style.width.substring(0,progressElement.style.width.length-2));var pheight=parseInt(progressElement.style.height.substring(0,progressElement.style.height.length-2));var left=(f_clientWidth()/2+f_scrollLeft())-(pwidth/2);var top=(f_clientHeight()/2+f_scrollTop())-(pheight/2);progressElement.style.left=left+"px";progressElement.style.top=top+"px";}

