Retail=YAHOO.namespace("trp.vrt.retail");Retail.findFund=function(){var C=99;var B=false;var A;return{handleTicker:function(){var D=document.getElementById("tickerInput").value;if(D==""){alert("Please enter a ticker symbol")}else{Retail.findFund.gotoSnapshot(D)}},handleFundName:function(){var D=document.getElementById("fundNameSelect").value;if(D=="#"){alert("Please select a fund from the drop down menu")}else{Retail.findFund.gotoFbkPage(D)}},handleFundTicker:function(){var D=document.getElementById("fundNameSelectTick").value;if(D=="#"){alert("Please select a fund from the drop down menu")}else{Retail.findFund.gotoFbkPage(D)}},gotoFbkPage:function(E){var D=getFb2Domain()+"fbkweb/snapshot.do";D+="?ticker="+E;window.location=D},fundsBoxHover:function(D){if(D){B=true;clearTimeout(A)}else{B=false;A=setTimeout("Retail.findFund.hideFundsBoxWithHover()",1500)}},hideFundsBoxWithHover:function(){if(!B){clearTimeout(A);Retail.findFund.hideFundsBox();Retail.findFund.toggleDisplay("downArrowDiv",false);Retail.findFund.toggleDisplay("defaultFundText",false)}},sliderClick:function(D){Retail.findFund.changeRiskLevelImage(D);Retail.findFund.positionSelectedImage(D);Retail.findFund.toggleDisplay("rrSliderSelectedHolder",true);updateFundsBox(D);Retail.findFund.showFundsBox();Retail.findFund.positionDownArrow(D);if(D!=1){Retail.findFund.toggleDisplay("lowLabel",true)}if(D!=9){Retail.findFund.toggleDisplay("highLabel",true)}},positionClickedLevelLabel:function(F,D){if(F==1||F==8){Retail.findFund.toggleDisplay("selectedLevelLabel",false)}else{var E;E=(F-8);if(E<0){E=E*-1}E=E*39;document.getElementById("selectedLevelLabel").style.right=E+"px";document.getElementById("selectedLevelLabel").innerHTML=D;Retail.findFund.toggleDisplay("selectedLevelLabel",true)}},riskLevelDeselect:function(D){},resetSlider:function(){Retail.findFund.toggleDisplay("rrSliderSelectedHolder",false);Retail.findFund.changeRiskLevelImage(99)},toggleDisplay:function(D,E){if(E){document.getElementById(D).style.display="block"}else{document.getElementById(D).style.display="none"}},resizeFundsBox:function(D){var E=350;if(D==3){E=550}if(D==4){E=700}document.getElementById("fundsBox").style.width=E+"px"},showFundsBox:function(){Retail.findFund.toggleDisplay("fundsBox",true)},hideFundsBox:function(){Retail.findFund.toggleDisplay("fundsBox",false);Retail.findFund.toggleDisplay("selectedLevelLabel",false);Retail.findFund.toggleDisplay("downArrowDiv",false);Retail.findFund.toggleDisplay("defaultFundText",false);Retail.findFund.showAllLevelLabels();Retail.findFund.resetSlider()},changeRiskLevelImage:function(E){var D="http://www3.troweprice.com/fb2/images/rrSlider"+E+"Selected.gif";if(E==99){D="http://www3.troweprice.com/fb2/images/spacer.gif"}document.getElementById("rrSliderImgSelected").src=D},positionSelectedImage:function(D){if(D==9){rightPad=0}if(D==8){rightPad=38}if(D==7){rightPad=75}if(D==6){rightPad=114}if(D==5){rightPad=151}if(D==4){rightPad=188}if(D==3){rightPad=225}if(D==2){rightPad=262}if(D==1){rightPad=299}document.getElementById("rrSliderSelectedHolder").style.right=rightPad+"px"},changeClassName:function(D,E){document.getElementById(D).className=E},positionDownArrow:function(G){var F=document.getElementById("downArrowDiv");if(G>500){F.style.display="none"}else{Retail.findFund.showAllLevelLabels();var E;if(G==1){E="309"}else{if(G==2){E="271"}else{if(G==3){E="234"}else{if(G==4){E="197"}else{if(G==5){E="161"}else{if(G==6){E="124"}else{if(G==7){E="87"}else{if(G==8){E="49"}else{if(G==9){E="13"}}}}}}}}}var D=E+"px";F.style.right=D;Retail.findFund.toggleDisplay("downArrowDiv",true)}},showAllLevelLabels:function(){Retail.findFund.toggleDisplay("highLabel",true);Retail.findFund.toggleDisplay("higherLabel",true);Retail.findFund.toggleDisplay("moderateLabel",true);Retail.findFund.toggleDisplay("lowerLabel",true);Retail.findFund.toggleDisplay("lowLabel",true)}}}();