var strBlank="";var sc_strUserId=strBlank;var sc_strRole=strBlank;var sc_strFirm=strBlank;var sc_strSalesChannel=strBlank;var sc_strExternalId=strBlank;var sc_strFundsManagementEmployee=strBlank;var sc_strRegistered=strBlank;var sc_strShared=strBlank;var sc_strPageName=strBlank;var sc_strPageType=strBlank;var sc_strIntCmp=strBlank;var sc_strSource=strBlank;var sc_strFundCount=strBlank;var sc_strLvl3NavMenuName=strBlank;var sc_strInFundRelatedPages=strBlank;var sc_strTypeFEBox=strBlank;var sc_strPortFolioId=strBlank;var sc_strDownloadFN=strBlank;var sc_strFundName=strBlank;var sc_strAssetClass=strBlank;var sc_strLvl2NavMenuName=strBlank;var sc_strChannel=strBlank;var sc_strLoginUserId=strBlank;var donotcallSC=false;var sc_strLvl1NavMenuName=strBlank;var sessionTimeout;var callPopup;var callUserRolePage;var exptime;var displayTime;function pageTimeOut(){exptime=new Date(Date.parse(Date())+(sessionTimeout*60*1000));var a=exptime.getHours();var b=exptime.getMinutes();var c="AM";if(a>=12){c="PM"}if(a>12){a=(a-12)}if(b<10){b="0"+b}displayTime=a+":"+b+" "+c}function timeout(a){if(a==null||a==""){a="FMESessionForm"}window.focus();var b=confirm("SESSION WARNING\n\nYour current JPMorganfunds session is about to expire.  JPMorganfunds sessions end after 45 minutes of inactivity.\n\nYour current session is set to expire in 2 minutes, at "+displayTime+'.\n\nSelect "OK" to renew your current session.\n\nSelect "Cancel" if you wish to log off now.');if(b){if(new Date()<exptime){history.go(0)}else{alert("Sorry. Your current session has timed out.");if(document.forms[a]!=null){document.forms[a].action=contextPath+"LoginController?pageName=logOutPage&formfilter=login";document.forms[a].submit()}}}else{if(document.forms[a]!=null){document.forms[a].action=contextPath+"LoginController?pageName=logOutPage&formfilter=login";document.forms[a].submit()}}}function callAjaxUserRole(){var a=contextPath+"Satellite?pagename=GetAjaxUserRole";xmlHttp=GetXmlHttpObj();xmlHttp.onreadystatechange=ajaxUserRoleSuccess;xmlHttp.open("Get",a,true);xmlHttp.send(null)}function ajaxUserRoleSuccess(){if(xmlHttp.readyState==4){if(xmlHttp.status==200){}}}var userfname;var userlname;var email;function openBrainShark(a){a=a+"?b=1"+userlname+userfname+email;newwindow=window.open(a,"_blank","width=800 height=375 ,toolbar=1,location=0,directories=1,status=0,menubar=1,scrollbars=1,resizable=1,left="+((screen.availWidth-400-10)*0.5)+",top="+((screen.availHeight-460-30)*0.5));if(window.focus){newwindow.focus()}}var contextPath;var vanityurl;var cartItems;function callController(c,a,b){var d="UserFriendlyURL=order";if(c==null||c==""){c="HomeForm"}if(cartItems==0){alert("No items have been added to the cart.");return false}if(vanityurl.indexOf(d)>0){return false}if(document.forms[c]!=null){document.forms[c].refurl.value=unescape(vanityurl);document.forms[c].action=contextPath+"JPMFOrderController?formfilter=order&action=cartInitPage";document.forms[c].submit()}}function updateSumbit(a){if(a==null||a==""){a="HomeForm"}if(document.forms[a]!=null){document.forms[a].profilePageName.value="profileUpdate";document.forms[a].tpage.value="T";document.forms[a].action=contextPath+"ProfileController?formfilter=profile";document.forms[a].submit()}}function login(a,b){if(a==null||a==""){a="HomeForm"}if(document.forms[a]!=null){document.forms[a].action=contextPath+"LoginController?formfilter=login";document.forms[a].pageName.value=document.getElementById("loginLink").value;document.forms[a].userType.value=b;document.forms[a].submit()}}var refURL;var hideURL;function logOut(a){if(a==null||a==""){a="HomeForm"}if(cartItems!=0){var b=confirm("You have Items in the Shopping Cart. Press OK to Empty Cart and Logout. Press Cancel to Continue Order Process.");if(!b){callController("HomeForm",refURL,hideURL);return false}}if(document.forms[a]!=null){document.forms[a].action=contextPath+"LoginController?formfilter=login";document.forms[a].pageName.value=document.getElementById("logOutPage").value;document.forms[a].submit()}}function submitGoogleSearch(b){var a="";if(b=="tbSearch"){if(document.getElementById("toolbarSearchText")!=null){a=document.getElementById("toolbarSearchText")}}else{if(b=="resultSearch"){if(document.getElementById("resultSearchText")!=null){a=document.getElementById("resultSearchText")}}}a.value=a.value.replace(/[\<\>\'\%\;\)\(\&\$\@\|\\]/g,'"')}var isMediaCenter=null;var toStoreDate="";var yearPerf="";var monthPerf="";var dayPerf="";var monthIndexPerf="";var dataCallDate="";var secondTimeCallDate="";var isTrue=false;function callCFPerfDateAjax(b){toStoreDate="";yearPerf="";monthPerf="";dayPerf="";monthIndexPerf="";dataCallDate="";var k=document.getElementById("shareClassId").value;var h=document.getElementById("perfIncpDate").value;var f=document.getElementById("cusip").value;var c=document.getElementById("currTblDate").value;var d=document.getElementById("currTblDate").value;d=d.split("-");d=d[0]+d[1]+d[2];if(isTrue){c=secondTimeCallDate}else{c}var a=c.split("-");var e=a[0]+a[1]+a[2];var j=false;if(b=="leftPerf"&&e>h){for(i=0;i<a.length;i++){if(i=="1"){if(a[i]==1){toStoreDate=a[0]-1;toStoreDate=toStoreDate+"12"}else{toStoreDate=toStoreDate+a[i]-1}}else{toStoreDate=toStoreDate+a[i]}}j=true;document.getElementById("perfRightArrow").className="rightArrow"}else{if(b=="rightPerf"&&e<d){for(i=0;i<a.length;i++){if(i=="1"){if(a[i]==12){toStoreDate=parseInt(a[0])+1;toStoreDate=toStoreDate+"01"}else{toStoreDate=parseInt(toStoreDate+a[i])+1}}else{toStoreDate=toStoreDate+a[i]}}j=true}}if(j){yearPerf=toStoreDate.charAt(0)+toStoreDate.charAt(1)+toStoreDate.charAt(2)+toStoreDate.charAt(3);monthPerf=toStoreDate.charAt(4)+toStoreDate.charAt(5);monthIndexPerf=monthPerf-1;dayPerf=toStoreDate.charAt(6)+toStoreDate.charAt(7);showDate(monthIndexPerf,monthPerf,yearPerf);dataCallDate=yearPerf+"-"+monthPerf+"-"+dayPerf;var g=yearPerf+monthPerf+dayPerf;strParameters="formfilter=cfhistfundperfdata&fpAction=histFundPerformanceAction&xml_date="+dataCallDate+"&tfr_share_class_id="+k+"&cusip="+f;callAjaxToLoadWidget(strParameters,"monthly_container","XXX");secondTimeCallDate=dataCallDate;isTrue=true;if(g==d){document.getElementById("perfRightArrow").className="rightArrowDisable"}else{if(g<=h){document.getElementById("perfLeftArrow").className="leftArrowDisable"}else{document.getElementById("perfRightArrow").className="rightArrow"}}}}function includeJWPlayerEmbed(h,f,c,a,k,g,n,m,b,l,j){mediaPagePosition=j;var e=h+"?"+Math.round(1000*Math.random());var d="false";createJWEmbed(e,f,c,a,k,g,n,m,b,l,d)}function createJWEmbed(g,e,c,a,h,f,l,k,b,j,d){setupJWEmbed(g,e,c,a,h,f,l,k,b,j,d,"")}function createJWEmbedForOnDemand(h,f,c,a,j,g,m,l,b,k,d,e){setupJWEmbed(h,f,c,a,j,g,m,l,b,k,d,e)}function setupJWEmbed(t,f,b,g,q,n,c,p,r,d,k,s){var l="";var o="";var j="";var m="";var e="true";var a=true;if(s!=null&&s!=""){l="hd-1";o=s;j="false";m="false"}if(k!=null&&k=="false"){e="false"}if(b==null){b=""}jwplayer(d).setup({flashplayer:t,file:g,plugins:l,"hd.file":o,dock:j,"hd.state":m,image:b,height:p,width:r,skin:f,autostart:n,icons:e,type:c,author:"MphasiS",wmode:"opaque",allowfullscreen:"true",allowscriptaccess:"always",controlbar:"bottom",sccheck:"0",events:{onBufferChange:function(u){if(c!=null&&c!="video"){jwMediaBufferChange(u.bufferPercent,d,jwplayer(d),q,c)}},onComplete:function(){jwMediaComplete(d,jwplayer(d),q,c);bufferComplete=true},onPlay:function(u){if(bufferComplete){jwMediaBufferChange(100,d,jwplayer(d),q,c)}},onMeta:function(u){var v=this.getDuration();if(v!=-1){if(c=="video"&&a){jwMediaBufferChange(100,d,jwplayer(d),q,c);a=false}}}}});var h=document.getElementById(d);h.sccheck="0"}function jwMediaBufferChange(f,e,d,c,b){if(f==100&&d.getDuration()!=-1){var a=document.getElementById(e);bufferComplete=true;duration=d.getDuration();if(a.sccheck=="0"){if(isMediaCenter!=null&&isMediaCenter=="true"){omniInitMediaTracking(c,Math.floor(d.getDuration()),"JWplayer",mediaPagePosition,mediaAssetLocation)}else{omniInitFundsMediaTracking(c,Math.floor(d.getDuration()),"JWplayer")}a.sccheck="1"}}if(f>0&&f<100){bufferComplete=false}}function jwMediaComplete(e,d,c,b){var a=document.getElementById(e);if(a.sccheck=="1"){if(isMediaCenter!=null&&isMediaCenter=="true"){omniMediaTrackingDone(c,d.getPosition())}else{omniFundsMediaTrackingDone(c,"",d.getPosition())}a.sccheck="0"}}function closeJW(a){if(document.getElementById(a)!=null){jwplayer(a).remove()}};
