

          
          var arrPartnerSpecificInfo=new Array();arrPartnerSpecificInfo["881797059"]={tooltip:"CBOE",url:"http://www.cboe.com",disclosure:null,pdfFile:null,confirmText:null};arrPartnerSpecificInfo["839781129"]={tooltip:"Enercast",url:"http://www.enercast.com",disclosure:null,pdfFile:null,confirmText:null};arrPartnerSpecificInfo["2060265081"]={tooltip:"Whisper Number",url:"http://www.whispernumber.com",disclosure:null,pdfFile:null,confirmText:null};arrPartnerSpecificInfo["116387757"]={tooltip:"MarketZar",url:"http://www.marketzar.com",disclosure:null,pdfFile:null,confirmText:null};arrPartnerSpecificInfo["928811206"]={tooltip:"Dorman Trading",url:"http://www.dormantrading.com",disclosure:null,pdfFile:null,confirmText:null};arrPartnerSpecificInfo["1593780480"]={tooltip:"Zaner",url:"",disclosure:"referral-disclosure.html",pdfFile:"referral_disclosure.pdf",confirmText:null};arrPartnerSpecificInfo["289701659"]={tooltip:"Future Path",url:"http://www.futurepathtrading.com",disclosure:null,pdfFile:null,confirmText:null};arrPartnerSpecificInfo["818269270"]={tooltip:"Photon Trader",url:"",disclosure:"referral-disclosure.html",pdfFile:"referral_disclosure.pdf",confirmText:"transfer-confirm-text.html"};
          var gConfigHeader={image:null};gConfigHeader.image=({mainLogo:{url:"/images/mainheader/mocktrader_logo.gif",alt:"HedgeStreet",width:252,height:50,onclick:"try{HS_ReturnToHedgeStreet();}catch(ex){location.href = '/';}"},tagline1:{url:"/images/mainheader/mocktrader_tagline.gif",alt:"",width:261,height:50,onclick:null},tagline2:{url:"/images/mainheader/mocktrader_tagline.gif",alt:"",width:261,height:50,onclick:null}});
          function RunHeader(){var _1=$("hsidHSHeaderTop");try{UpdateCurrentPromo();var _2=window.location.pathname.toLowerCase();if(_2=="/"||_2=="/index.html"){HS_GetDetailAndRedirect();}if(_2=="/hedgelets/contract/yesno/index.html"||_2=="/hedgelets/contract/yesno/"){HS_RedirectToSelectedDetails(_2);}HS_SetHeaderImage("hedgestreet");HS_HeaderDisplayCurrentTime(_1);var _3=HS_GetElementByID("dataCol");if(_3!=null){var _4=new Array();var _5="";var _6="none";var _7=document.getElementById("accessStatus");if(isUserLoggedIn){HS_SetCookie(HS_COOKIE_STATE,USER_STATE_MEMBER,HS_USER_STATE);if(arrSession.get("ecAcctRole")==HS_ACCOUNTTYPE_COMPLIANCE){_4.push("<a href=\"/compliance/\">Surveillance</a>");_5="<a class='hsclassMenu' href='/compliance/'>Surveillance</a>";_6="";}_4.push("<a href=\"javascript:PopUpHelp2();\">Help</a>");_4.push("<a id=\"hsidLogoutButtonID\" href=\"javascript:HS_Logout();\">Logout</a>");if(_7!=null){_7.innerHTML="| <a href=\"#\" onclick=\"javascript:HS_Logout();\" >Logout</a>";}}else{var _8="";if(location.port.length>0&&location.port!="80"){_8=":"+location.port;}_8="https://"+location.hostname+_8;_4.push("<a href=\"javascript:PopUpHelp2();\">Help</a>");_4.push("<a href=\""+_8+"/login/login.html\" style=\"font-weight:bold\">LOGIN</a>");if(_7!=null){_7.innerHTML="| <a href='#' onclick=\"javascript:RedirectToPromoOrUrl('/login/login.html');\">Login</a>";}}var _9=document.getElementById("hsidSurveillance");if(_9!=null){_9.innerHTML=_5;}var _a=document.getElementById("hsidSurveillanceDivider");if(_a!=null){_a.style.display=_6;}var _b="";for(var i=0;i<_4.length;i++){var _d=_4[i];_b+=" | "+_d;}}var _e=HS_GetElementByID("hsidHSHeaderNav2");if(_e!=null){_e.style.display="block";var _f=$("hsidMainMenuContent");var _10=$("hsidMainMenuRight");HS_BuildMenu();HS_InitMMCancelAllOrders();HS_InitOpenAccountButton();}if(arrSession.get("ecSystemState")!=HTS_SYSTEMSTATE_AVAILABLE){HS_CheckURL(arrSession.get("ecSystemState"),arrSession.get("isUserLoggedIn"));}}catch(e){}_1.style.display="block";}function HS_HeaderDisplayCurrentTime(){var _11;try{arrCurrTime=new Array("",arrSession.get("dtCurrentTime"));_11=HS_GenerateDateTimeHeader(arrCurrTime[1]);}catch(e){_11="&nbsp;";}var obj=HS_GetElementByID("hsidHeaderDateTime");if(obj!=null){obj.innerHTML=_11;if(arrSession.get("stHeaderBgColor")!="#FFFFFF"){obj.style.background=arrSession.get("stHeaderBgColor");}}}function HS_GetDetailAndRedirect(){var _13=escape(HS_GetQueryString("market"));var _14=escape(HS_GetQueryString("futuresmarket"));var _15=escape(HS_GetQueryString("hedgeletid"));var _16=escape(HS_GetQueryString("futureshedgeletid"));var _17=escape(HS_GetQueryString("hedgeletpath"));var _18=escape(HS_GetQueryString("futureshedgeletpath"));var _19=HS_GetQueryString("targetpage");if($$s(_17)){HS_SetCookie(HS_COOKIE_HEDGELET,unescape(_17),HS_HEDGELET_HEDGELETPATH);location.replace("/hedgelets/YesNo/quotedetail.html");}else{if($$s(_15)){HS_SetCookie(HS_COOKIE_HEDGELET,unescape(_15),HS_HEDGELET_HEDGELETID);location.replace("/hedgelets/YesNo/quotedetail.html");}else{if($$s(_19)){location.replace(unescape(_19));}}}}function HS_RedirectToSelectedDetails(_1a){var _1b=HS_GetCookie(HS_COOKIE_HEDGELET,HS_HEDGELET_ASSETPATH);var _1c=HS_GetCookie(HS_COOKIE_HEDGELET,HS_HEDGELET_HEDGELETTYPE);location.href="/hedgelets/contract/YesNo/"+_1b.substring(_1b.indexOf("[")+1,_1b.indexOf("]"))+".html";}function HS_RunQS(){HS_InitializeRuntime(false,true);var obj=$("hsidQuoteInput");if(obj!=null){obj.onkeydown=new Function("HS_InitializeQS( this );");}}function HS_BuildMenu(){try{var _1e=HS_GetElementByID("hsidMainMenuContent");if(window.HS_CustomizeMenu!=null){HS_CustomizeMenu();}var _1f=RegisterMainMenu([["hsidMainMenuTab1","hsidMainMenuTab1SubMenu"],["hsidMainMenuTab3","hsidMainMenuTab3SubMenu"],["hsidMainMenuTab5","hsidMainMenuTab5SubMenu"],["hsidMainMenuTab6","hsidMainMenuTab6SubMenu"],]);if(_1f!=null){gMainMenuData["hsidMainMenuTab3"].show();if(isUserLoggedIn){gMainMenuData["hsidMainMenuTab5"].show();}else{gMainMenuData["hsidMainMenuTab6"].show();}try{HS_SelectMenu(_1f);}catch(e){}}if(_1e!=null){_1e.style.display="block";}}catch(e){}}function HS_InitMMCancelAllOrders(){var _20=document.getElementById("hsidMMCancelAllButton");if(_20){if(isUserLoggedIn&&gSessionState.get("ecAcctRole")==ACCOUNT_ROLE_MARKET_MAKER){_20.style.display="block";if(!window.HS_Object){HS_LoadJS("/js/HS_Object.js","",false);}if(!window.HS_XMLHTTP){HS_LoadJS("/js/HS_XMLHTTP.js","",false);}if(!window.HS_ExtractArrayByName){HS_LoadJS("/js/utils_obfuscator.js","",false);}if(!window.HS_Form){HS_LoadJS("/js/HS_Form.js","",false);}}else{_20.style.display="none";}}}function HS_InitOpenAccountButton(){var _21=document.getElementById("openAccountButton");if(_21){if(!isUserLoggedIn){_21.style.display="block";}else{_21.style.display="none";}}}var gMMCancelAllForm=null;function HS_MMCancelAllOrders(){window.HS_Form_FinalizeOld=window.HS_Form_Finalize;window.HS_Form_Finalize=HS_Form_Finalize_MMCancelAllOrders;var _22=window.location.href;gMMCancelAllForm=new HS_Form("gMMCancelAllForm","hsidMMCancelAllOrdersForm","/hedgelet/service/cancel-orders-form");gMMCancelAllForm.setForward("forward_success","/trade/openorders/cancelorder.html");gMMCancelAllForm.setForward("forward_fail",_22);gMMCancelAllForm.setForward("forward_authenticationFail","/login/login.html");gMMCancelAllForm.setForward("forward_authorizationFail","/login/login.html");gMMCancelAllForm.setForward("forward_secureAccessFail","/login/login.html");gMMCancelAllForm.setForward("forward_backendFail",_22);gMMCancelAllForm.setForward("forward_formSequenceFail",_22);gMMCancelAllForm.setForward("forward_formIDInvalid",_22);gMMCancelAllForm.run();}function HS_Form_Finalize_MMCancelAllOrders(_23){window.HS_Form_Finalize=window.HS_Form_FinalizeOld;gMMCancelAllForm.updateField("cancelActionItem","All");gMMCancelAllForm.submit();}function setBinaryOptions(){HS_SetCookie(HS_COOKIE_BINARY_OR_FUTURES,"",HS_COOKIE_BINARY_OR_FUTURES_SELECTION);window.location="/trade/active-trader.html";return true;}
          function HS_SetHeaderImage(_1){var _2=HS_GetElementByID("hsidHSHeaderTop");var _3=null;var _4=null;if(_2!=null){_3=HS_GetElementByID("hsidHeaderLogo");}if(_3!=null){if(_1=="hedgestreet"||_1==null){_4=HS_CreateImgElement("hsidImgHeaderLogo",gConfigHeader.image.mainLogo.url,gConfigHeader.image.mainLogo.alt,gConfigHeader.image.mainLogo.width,gConfigHeader.image.mainLogo.height,null,gConfigHeader.image.mainLogo.onclick);_4.style.display="inline";_3.appendChild(_4);var _5=null;var _6=HS_GetElementByID("hsidTagline");if(_6!=null){if(location.pathname.indexOf("/dashboard")>=0){_5="tagline2";}else{_5="tagline1";}var _7=HS_CreateImgElement("hsidImgTagline",gConfigHeader.image[_5].url,gConfigHeader.image[_5].alt,gConfigHeader.image[_5].width,gConfigHeader.image[_5].height,null,gConfigHeader.image[_5].onclick);_7.className="tagline";_7.style.display="inline";_6.appendChild(_7);}}else{_4=HS_CreateImgElement("hsidImgHeaderLogo");if(_1.indexOf(HS_DELIMITER)>=0){nTempPartnerID=_1.split(HS_DELIMITER);_1=nTempPartnerID[1];}var _8=HS_GetPartnerDetails(_1);_4.src="/partner/"+_1+"/images/logo.gif";if(_8!=null){_4.alt=_8.tooltip;_4.title=_8.tooltip;_4.onclick=new Function("location.href = \""+_8.url+"\";");}_4.style.display="inline";_4.style.cursor="pointer";_3.appendChild(_4);var _9=HS_GetElementByID("hsidPresentedBy");if(_9!=null){var _a=HS_CreateImgElement("hsidPresentedByImg","/partner/"+_1+"/images/wl_logo.gif");_9.appendChild(_a);}}}}function HS_GetPartnerDetails(_b){var _c=null;if($$(arrPartnerSpecificInfo)){var _d=arrPartnerSpecificInfo[_b];if($$(_d)){_c=_d;}}return _c;}function HS_SplitPartnerID(){var _e=HS_GetCookie("token");if(window.location.hostname==_SessionState["stTestDriveServerName"]){_e="hedgestreet";}else{if(isUserLoggedIn){_e=_SessionState["stReferrer"];HS_SetCookie("token",_e);}if(typeof _e=="undefined"||_e==null||_e.length<=0){_e="hedgestreet";HS_SetCookie("token",_e);}else{if(_e.indexOf(HS_DELIMITER)>=0){_e=_e.split(HS_DELIMITER);_e=_e[1];}}}return _e;}
          
          
