var strBlank="";var sc_strUserId=strBlank;var sc_strRole=strBlank;var sc_strFirm=strBlank;var sc_strSalesChannel=strBlank;var sc_strPageName=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 jpmfDomain;var sessionTimeout;var callPopup;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 30 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()}}}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 currentBuffer=0;var currentPosition=0;var replyPosition=0;var currentState="NONE";var defaultState="NONE";var currentLoad=0;var clipDuration=0;var player;var mediaName;var scCheckValue=0;var isMediaCenter=null;function includeJWPlayerEmbed(H,F,C,A,J,G,M,L,B,K,I){mediaName=J;mediaPagePosition=I;var E=H+"?"+Math.round(1000*Math.random());var D="false";createJWEmbed(E,F,C,A,J,G,M,L,B,K,D)}function createJWEmbed(H,F,D,A,I,G,L,K,B,J,E){var C=new SWFObject(H,"mpl",B,K,"9");C.addParam("allowfullscreen","true");C.addParam("allowscriptaccess","always");C.addParam("wmode","opaque");C.addVariable("author","MphasiS");C.addVariable("file",encodeURIComponent(A));if(D!=null){C.addVariable("image",encodeURIComponent(D))}C.addVariable("type",L);C.addVariable("skin",F);C.addVariable("autostart",G);if(E!=null&&E=="false"&&L=="sound"){C.addVariable("icons","false")}C.write(J)}function playerReady(A){player=document.getElementById(A.id);scCheckValue=0;currentPosition=0;clipDuration=0;defaultState="NONE";addListeners()}function addListeners(){if(player){addAllModelListeners()}}function addAllModelListeners(){if(typeof player.addModelListener=="function"){player.addModelListener("BUFFER","doNothing");player.addModelListener("ERROR","doNothing");player.addModelListener("LOADED","doNothing");player.addModelListener("META","doNothing");player.addModelListener("STATE","stateListener");player.addModelListener("TIME","positionListener")}}function doNothing(A){}function positionListener(A){currentPosition=A.position;clipDuration=A.duration}function stateListener(A){oldState=A.oldstate;if(defaultState=="NONE"&&scCheckValue=="0"){defaultState="started";getTimeValue()}currentState=A.newstate;if(currentState=="COMPLETED"){if(isMediaCenter!=null&&isMediaCenter=="true"){changeInfoDirect("showDiv2","Tab2")}omniMediaTrackingDone(mediaName,currentPosition);currentPosition=0;scCheckValue=0}if(currentState=="PLAYING"){if(clipDuration!="0"&&scCheckValue=="0"){omniInitMediaTracking(mediaName,Math.floor(clipDuration),"JWplayer",mediaPagePosition,mediaAssetLocation);scCheckValue=1}if(currentPosition!="0"){omniMediaTrackingResume(mediaName,currentPosition)}}if(currentState=="PAUSED"){omniMediaTrackingStop(mediaName,currentPosition)}}function getTimeValue(){if(currentPosition=="0"){setTimeout("getTimeValue()",100)}else{if(scCheckValue=="0"){omniInitMediaTracking(mediaName,Math.floor(clipDuration),"JWplayer",mediaPagePosition,mediaAssetLocation);scCheckValue=1}}};