
            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"};
          function HS_BoundElement(_1,_2,_3,_4,_5,_6,_7){var _8=-1;var _9=-1;var _a=-1;var _b=-1;if(_3!=null){_8=HS_GetSummedAttribute(_3,"offsetTop")+_3.scrollTop;_9=HS_GetSummedAttribute(_3,"offsetLeft");_a=_8+_3.offsetHeight;_b=_9+_3.offsetWidth;}else{var _c=-1;var _d=-1;var _e=0;if(self.innerWidth){_c=self.innerWidth;_d=self.innerHeight;_e=self.scrollY;}else{if(document.documentElement&&document.documentElement.clientWidth){_c=document.documentElement.clientWidth;_d=document.documentElement.clientHeight;_e=document.documentElement.scrollTop;}else{if(document.body){_c=document.body.clientWidth;_d=document.body.clientHeight;_e=document.body.scrollTop;}}}_8=_e;_a=_8+_d;var _f=$("hsidHSContainer2");if(_f==null){_f=$("hsidHSContainer1");}if(_f!=null){_9=HS_GetSummedAttribute(_f,"offsetLeft");_b=_9+_f.offsetWidth;}else{_9=0;_b=_9+_c;}}if(_8>=0&&_9>=0&&_a>=0&&_b>=0){var _10=true;var _11=true;if(typeof _4!="undefined"&&_4!=null){if(_4=="x"){_11=false;}if(_4=="y"){_10=false;}}var _12=_5[0];var _13=_5[1];var _14=_5[2];var _15=_5[3];var _16=_6[0];var _17=_6[3];var _18=_1.offsetWidth+_15+_13;var _19=_1.offsetHeight;if(_3!=null){_19=_1.offsetHeight+_12+_14;}if(typeof _2!="undefined"&&_2!=null){var _1a=HS_GetSummedAttribute(_2,"offsetTop")+_16;var _1b=HS_GetSummedAttribute(_2,"offsetLeft")+_2.offsetWidth+_17;}else{var _1c=null;var _1d=null;if(typeof _7!="undefined"&&_7!=null&&_7.length>=2){_1c=_7[0];_1d=_7[1];}if(typeof _1c=="undefined"||_1c==null||isNaN(_1c)){_1c=null;}if(typeof _1d=="undefined"||_1d==null||isNaN(_1d)){_1d=null;}var _1e=((_a-_8)-_19)/2+_12+_16;var _1f=((_b-_9)-_18)/2+_15+_17;if(_1c!=null&&_1e>_1c){_1e=_1c;}if(_1d!=null&&_1f>_1d){_1f=_1d;}var _1a=_8+_1e;var _1b=_9+_1f;}if(_1a<_8){_1a=_8;}if(_1b<_9){_1b=_9;}var _20=_1a+_19-_a;if(_20>0&&_11){_1a-=_20;if(_1a<0){_1a=0;_1a+=_12;}}else{_1a+=_12;}if(_b-_9>=_18){var _21=_1b+_18-_b;if(_21>0&&_10){_1b-=_2.offsetWidth+_17+_1.offsetWidth+(_17+_15);}else{_1b+=_15;}}_1.style.top=_1a+"px";_1.style.left=_1b+"px";if(false){var _f=document.createElement("div");document.body.appendChild(_f);_f.style.position="absolute";_f.style.top=_8+"px";_f.style.left=_9+"px";_f.style.width=(_b-_9)+"px";_f.style.height=(_a-_8)+"px";_f.style.background="red";_f.style.zIndex="500";try{_f.style.filter="alpha(opacity=50)";_f.style.opacity=0.5;}catch(e){}}return ({top:_1a,left:_1b});}return null;}function HS_GetSummedAttribute(_22,_23,_24){var n=0;while(_22){n+=_22[_23];if(typeof _24=="undefined"||_24==null||!_24){if(_22.offsetParent){if(_23=="offsetTop"){var _26=_22["scrollTop"];if(_26!=0){n-=_26;}}if(_23=="offsetLeft"){var _26=_22["scrollLeft"];if(_26!=0){n-=_26;}}}}_22=_22.offsetParent;}return n;}function HS_CenterObject(obj,_28,_29){if(obj==null){return;}var _2a,nClientH;if(self.innerWidth){_2a=self.innerWidth;nClientH=self.innerHeight;}else{if(document.documentElement&&document.documentElement.clientWidth){_2a=document.documentElement.clientWidth;nClientH=document.documentElement.clientHeight;}else{if(document.body){_2a=document.body.clientWidth;nClientH=document.body.clientHeight;}else{return;}}}var _2b=0;var _2c=0;if(typeof _28!="undefined"&&_28!=null&&_28>0){_2b=_28;}else{_2b=obj.offsetWidth;}if(typeof _29!="undefined"&&_29!=null&&_29>0){_2c=_29;}else{_2c=obj.offsetHeight;}var _2d=(_2a-_2b)/2;var _2e=(nClientH-_2c)/2;obj.style.marginLeft="0px";obj.style.marginTop="0px";if(HS_SiteIsInstitutional()){obj.style.top="250px";}else{obj.style.top="140px";}obj.style.left=_2d+"px";}
          var HS_HEDGELET_TYPE_UNKNOWN=0;var HS_HEDGELET_TYPE_YES=1;var HS_HEDGELET_TYPE_NO=2;var HS_HEDGELET_TYPE_VARIABLE=4;var HS_HEDGELET_TYPE_BINARY=8;var HS_HEDGELET_TYPE_ALL=15;var HS_HEDGELET_CLASS_RETAIL=1;var HS_HEDGELET_CLASS_INSTITUTIONAL=2;var HS_TIME_FRAME_TODAY_TOMORROW=1;var HS_TIME_FRAME_NEXT_WEEK=2;var HS_TIME_FRAME_NEXT_MONTH=4;var HS_TIME_FRAME_NEXT_3_MONTH=8;var HS_TIME_FRAME_NEXT_12_MONTH=16;var HS_TIME_FRAME_AFTER_12_MONTHS=32;var HS_TIME_FRAME_ALL=63;var HS_PERIODICITY_UNKNOWN=0;var HS_PERIODICITY_DAILY=1;var HS_PERIODICITY_WEEKLY=2;var HS_PERIODICITY_MONTHLY=4;var HS_PERIODICITY_QUARTERLY=8;var HS_PERIODICITY_YEARLY=16;var HS_PERIODICITY_OPEN=32;var HS_PERIODICITY_ALL=63;var HS_STATUS_UNKNOWN=0;var HS_STATUS_OPEN=1;var HS_STATUS_CLOSED=2;var HS_STATUS_HALTED=4;var HS_STATUS_STOPPED=8;var HS_STATUS_EXPIRED=16;var HS_STATUS_ALL=31;
          var HS_COOKIE_IFRAME="hs_iframe";var HS_IFRAME_URL=0;var HS_IFRAME_PARAM=1;var HS_IFRAME_RESPONSEID=2;var HS_COOKIE_COMPLIANCE="hs_compliance";var HS_COOKIE_MOSTACTIVE="hs_mostctive";var HS_HEDGELET_MOST_ACTIVE=0;var HS_HEDGELET_ALL=1;var HS_COOKIE_QA="hs_qatool";var HS_HEDGELET_MARKETNAME=0;var HS_HEDGELET_SUBMARKETNAME=1;var HS_HEDGELET_SUBMARKETPATH=2;var HS_HEDGELET_ASSETNAME=3;var HS_HEDGELET_ASSETPATH=4;var HS_HEDGELET_HEDGELETPATH=5;var HS_HEDGELET_HEDGELETTYPE=6;var HS_COOKIE_GRAPH="hs_qagraph";var HS_HEDGELET_MARKETNAME=0;var HS_HEDGELET_SUBMARKETNAME=1;var HS_HEDGELET_SUBMARKETPATH=2;var HS_HEDGELET_ASSETNAME=3;var HS_HEDGELET_ASSETPATH=4;var HS_HEDGELET_HEDGELETPATH=5;var HS_HEDGELET_HEDGELETTYPE=6;var HS_COOKIE_HEDGELETFILTER="hs_hedgeletfilter";var HS_FILTER_H_TYPE=0;var HS_FILTER_H_TIMEFRAME=1;var HS_FILTER_H_PERIODICITY=2;var HS_FILTER_H_STATUS=3;var HS_FILTER_H_CLASS=4;var HS_COOKIE_ORDER="hs_order";var HS_COOKIE_ORDERRECEIPT="hs_orderreceipt";var HS_ORDER_ACTION=0;var HS_ORDER_NUMBER=1;var HS_ORDER_TYPE=2;var HS_ORDER_PRICE=3;var HS_ORDER_QUANTITY=4;var HS_ORDER_AMOUNT=5;var HS_ORDER_HEDGELETPATH=6;var HS_ORDER_ACCOUNTNUMBER=7;var HS_ORDER_GIVEUPINST=8;var HS_ORDER_SYMBOL=9;var HS_ORDER_GIVEUPACCOUNT=10;var HS_ORDER_QUICKTRADE=11;var HS_ORDER_PRICE2=12;var HS_ORDER_QUANTITY2=13;var HS_COOKIE_ASSETS="hs_assets";var HS_COOKIE_INST_ACCOUNT="hs_account";var HS_USER_ID=0;var HS_CUST_ACCTNO=1;var HS_ACCTNO=2;var HS_USERNAME=3;var HS_COOKIE_ADD_ACCOUNT="hs_add_account";var HS_ACCT_NAME=0;var HS_ACCT_NO=1;var HS_ACCT_TYPE=2;var HS_ACCT_ALLOW=3;var HS_COOKIE_ADD_TRADER="hs_add_trader";var HS_ACCT_NAME=0;var HS_ACCT_MPHONE=1;var HS_ACCT_SPHONE=2;var HS_ACCT_FAX=3;var HS_ACCT_EMAIL=4;var HS_ACCT_ADDR=5;var HS_ACCT_CITY=6;var HS_ACCT_ZIP=7;var HS_ACCT_FCM=8;var HS_ACCT_TID=9;var HS_COOKIE_EDIT_TRADER="hs_edit_trader";var HS_ACCT_NAME=0;var HS_ACCT_MPHONE=1;var HS_ACCT_SPHONE=2;var HS_ACCT_FAX=3;var HS_ACCT_EMAIL=4;var HS_ACCT_ADDR=5;var HS_ACCT_CITY=6;var HS_ACCT_ZIP=7;var HS_ACCT_FCM=8;var HS_ACCT_TID=9;var HS_COOKIE_EDIT_ACCOUNT="hs_edit_account";var HS_ACCT_NAME=0;var HS_ACCT_NO=1;var HS_ACCT_TYPE=2;var HS_COOKIE_DEL="hs_del_trader";var HS_ACTION=0;var HS_TRADER_CUSTOMID=1;var HS_TRADER_NAME=2;var HS_TRADER_ID=4;var HS_COOKIE_DEL_GIVEUP="hs_del_giveup";var HS_ACCOUNT_NAME=0;var HS_EMAIL_SUBSCRIBE="hs_email_subscribe";var HS_COOKIE_BINARY_OR_FUTURES="hs_binaryorfutures";var HS_COOKIE_BINARY_OR_FUTURES_SELECTION=0;HS_DeclarePersistentCookie(HS_COOKIE_MOSTACTIVE,30);
            function HS_Object(_1){this.name="";if(arguments.length>0){this.init(_1);}this.className="HS_Object";}HS_Object.prototype.init=function(_2){if(typeof _2!="undefined"){this.name=_2;}};HS_Object.prototype.toString=function(){var _3=this.className;if(this.name.length>0){_3+=" ("+this.name+")";}return _3;};HS_Object.prototype.log=function(_4){_Logger.log(_4,this);};HS_Object.prototype.error=function(_5){_Logger.error(_5,this);};
            var XMLHTTPREQUEST_TIMEOUT=-1;HS_XMLHTTP.prototype=new HS_Object();HS_XMLHTTP.prototype.constructor=HS_XMLHTTP;function HS_XMLHTTP(_1){if(arguments.length>0){this.init(_1);}this.className="HS_XMLHTTP";}HS_XMLHTTP.prototype.init=function(_2){this.baseInit=HS_Object.prototype.init;this.baseInit(_2);var _3=(typeof _2=="undefined"||_2==null)?null:_2;this.requests={};this.XMLHTTP=function(){var _4=null;try{_4=new XMLHttpRequest();}catch(e){try{_4=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{_4=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){_4=null;}}}return _4;};this.getCaller=function(_5){var _6=arguments.callee.caller;if(_5){for(var i=0;i<_5;i++){_6=_6.caller;}}var _8="";while(true){if(!_6){break;}_8+=this.getFName(_6.toString())+"|";_6=_6.caller;}return _8.substring(0,_8.length-1);};this.getFName=function(s){var i=s.indexOf("function");if(i<0){return s.substring(0,40);}var j=s.indexOf("(");if(j<0){return s.substring(11,50);}var _c=s.substring(i+8,j);if(_c.trim()==""){return s.substring(11,50);}return _c;};this.request=function(_d,_e,_f,_10){this.get(_d,_e,_f,_10);};this.get=function(_11,_12,_13,_14){this.send("GET",_11,null,_12,_13,_14);};this.post=function(_15,_16,_17,_18){this.send("POST",_15.action,HS_XMLHTTP.serializeForm(_15),_16,_17,_18);};this.send=function(_19,_1a,_1b,_1c,_1d,_1e){_19=_19.trim().toUpperCase();if(_19!="GET"&&_19!="POST"){return;}_1a=_1a.trim();if(_1a.length<=0){return;}if(typeof _1c!="undefined"&&_1c!=null){var _1f=null;for(var key in this.requests){var _21=null;try{_21=this.requests[key].handler;}catch(e){_21=null;}if(_21==_1c){_1f=key;break;}}if(_1f!=null){this.endRequest(_1f);}}var _22=this.XMLHTTP();if(_22==null){return;}var _23=new Date();var id=Math.floor(Math.random()*_23.getTime()*1000);var _25=new HS_XMLHTTPRequest(id,_22,_1a,_1c,_1d);if(_19=="GET"){if(_1a.indexOf("?")>=0){_1a+="&";}else{_1a+="?";}_1a+="xmlhttpid="+id;if(_1a.indexOf("out=")<0){_1a+="&testStr="+escape(this.getCaller(3));}}else{if(_1b==null){_1b="";}if(_1b.length>0){_1b+="&";}_1b+="xmlhttpid="+id;}try{_22.open(_19,_1a,true);if(_3!=null){_22.onreadystatechange=function(){if(typeof _XMLHTTP!="undefined"){eval(_3+".processResponse( "+id+" );");}};}else{_22.onreadystatechange=null;}if(_19=="POST"){_22.setRequestHeader("Content-Type","application/x-www-form-urlencoded");}_22.send(_1b);this.requests[id]=_25;if(XMLHTTPREQUEST_TIMEOUT>0){_25.timeout=setTimeout(this.name+".timeoutRequest( "+id+" );",XMLHTTPREQUEST_TIMEOUT);}}catch(e){_22=null;_25=null;}if(_22!=null){HS_UIWait();if(typeof _1e=="undefined"||_1e==null||_1e){HS_SetSessionTimeout();}}};this.timeoutRequest=function(id){this.endRequest(id);};this.endRequest=function(id){var _28=this.requests[id];if(typeof _28=="undefined"||_28==null){return;}this.requests[id]=null;try{if(!_28.completed){_28.xmlhttp.abort();clearTimeout(_28.timeout);}}catch(e){}HS_UIResume();};this.processResponse=function(id){var _2a=this.requests[id];if(_2a==null){return;}if(_2a.xmlhttp!=null){var _2b=_2a.xmlhttp.readyState;if(_2b==4){clearTimeout(_2a.timeout);_2a.completed=true;if(_2a.handler!=null){var _2c="";try{var _2d=_2a.xmlhttp.status;if(_2d==200){_2c=_2a.xmlhttp.responseText;var _2e=_2a.xmlhttp.getResponseHeader("Content-Type").toLowerCase();if(_2e.indexOf("text/html")==-1&&_2e!="text/plain"&&_2e!="text/xml"){var _2f=_2c.toLowerCase().indexOf("var");var _30=_2c.lastIndexOf(";");if(_2f>0||_30<_2c.length-1){_2c=_2c.substring(_2f,_30+1);}}}else{if(_2d==302){_2c=_2a.xmlhttp.responseText;}}_2a.handler(_2c,_2a.data);}catch(e){}}this.endRequest(id);}}};};HS_XMLHTTP.prototype.toString=function(){this.baseToString=HS_Object.prototype.toString;return this.baseToString();};HS_XMLHTTP.serializeForm=function(_31){var els=_31.elements;var len=els.length;var _34="";this.addField=function(_35,_36){if(_34.length>0){_34+="&";}_34+=encodeURIComponent(_35)+"="+encodeURIComponent(_36);};for(var i=0;i<len;i++){var el=els[i];if(!el.disabled){switch(el.type){case "text":case "password":case "hidden":case "textarea":this.addField(el.name,el.value);break;case "select-one":if(el.selectedIndex>=0){this.addField(el.name,el.options[el.selectedIndex].value);}break;case "select-multiple":for(var j=0;j<el.options.length;j++){if(el.options[j].selected){this.addField(el.name,el.options[j].value);}}break;case "checkbox":case "radio":if(el.checked){this.addField(el.name,el.value);}break;}}}return _34;};function HS_XMLHTTPRequest(id,_3b,_3c,_3d,_3e){if(arguments.length>0){this.init(id,_3b,_3c,_3d,_3e);}this.className="HS_XMLHTTPRequest";}HS_XMLHTTPRequest.prototype.init=function(id,_40,_41,_42,_43){this.id=id;this.xmlhttp=_40;this.url=_41;this.completed=false;this.timeout=null;this.handler=null;if(typeof _42!="undefined"){this.handler=_42;}this.data=null;if(typeof _43!="undefined"){this.data=_43;}};HS_XMLHTTPRequest.prototype.toString=function(){return this.className+" id="+this.id;};var gUIWaitRequests=0;var gUILoadingSign=null;var UIWAIT_GRACE_PERIOD=500;function HS_UIWait(){setTimeout(function(){gUIWaitRequests++;HS_UpdateUILoading();},UIWAIT_GRACE_PERIOD);}function HS_UIResume(){gUIWaitRequests--;HS_UpdateUILoading();}function HS_UpdateUILoading(){if(gUIWaitRequests>0){document.body.style.cursor="wait";}else{document.body.style.cursor="default";}}
          function HS_AC(_1,_2,_3,_4){this.name="";if(typeof _1!="undefined"&&_1.length>0){this.name=_1;}this.input=null;if(typeof _2!="undefined"&&_2!=null){this.input=_2;}this.output=null;this.outputRowTemplate=null;this.shadowFrame=null;this.lastInputString="";this.results=null;this.ext_suggest=this.name+".suggest();";this.ext_resetOutput=this.name+".resetOutput();";this.ext_showOutput=this.name+".showOutput();";this.ext_hideOutput=this.name+".hideOutput();";this.ext_highlightResult=this.name+".clearHighlight();this.style.backgroundColor=\"#3366cc\";this.style.color=\"white\"";this.ext_unhighlightResult="this.style.backgroundColor=\"white\";this.style.color=\"black\"";this.ext_handleInputKeys=this.name+".handleInputKeys( event );";this.getResults=null;if(typeof _3!="undefined"){this.getResults=_3;}this.onclickResult=null;if(typeof _4!="undefined"){this.onclickResult=_4;}this.isValid=HS_AC_IsValid;this.init=HS_AC_Init;this.resetOutput=HS_AC_ResetOutput;this.showOutput=HS_AC_ShowOutput;this.hideOutput=HS_AC_HideOutput;this.clearOutput=HS_AC_ClearOutput;this.setOutputWidth=HS_AC_SetOutputWidth;this.suggest=HS_AC_Suggest;this.createOutputRowTemplate=HS_AC_CreateOutputRowTemplate;this.clearHighlight=HS_AC_ClearHighlight;this.handleInputKeys=HS_AC_HandleInputKeys;var _5=null;var _6=0;this.select=function(_7){this.clearSelection();if(this.output==null){return;}if(this.output.childNodes==null||this.output.childNodes.length<=0){return;}var _7=_7%this.output.childNodes.length;if(_7>=0){}else{_7=_7+this.output.childNodes.length;}_5=this.output.childNodes[_7];_6=_7;_5.style.backgroundColor="#3366cc";_5.style.color="white";};this.clearSelection=function(){if(this.output==null){return;}for(var i=0;i<this.output.childNodes.length;i++){var _9=this.output.childNodes[i];_9.style.backgroundColor="white";_9.style.color="black";}_5=null;_6=0;};this.submitSelection=function(){if(this.output==null){return;}if(this.output.childNodes==null||this.output.childNodes.length<=0){return;}if(_5==null){this.select(0);}_5.onmousedown();};this.selectUp=function(){this.select(_6-1);};this.selectDown=function(){this.select(_6+1);};this.init();this.reset=function(){this.hideOutput();};}function HS_AC_HandleInputKeys(_a){var ev=_a;if(!ev){ev=window.event;}var _c=ev.keyCode;switch(_c){case 8:break;case 13:this.submitSelection();break;case 38:this.selectUp();break;case 40:this.selectDown();break;default:break;}}function HS_AC_Suggest(){if(!this.isValid()){return;}var _d=this.input.value;if(_d!=this.lastInputString){this.hideOutput();this.clearOutput();var _e=this.getResults(_d);this.results=_e;if(_e!=null&&_e.length>0){this.resetOutput();var _f=null;if(this.outputRowTemplate==null){this.createOutputRowTemplate();}var _10=0;for(var i=0;i<_e.length;i++){var _12=_e[i];if(_12.length>=1){var row=this.outputRowTemplate.cloneNode(true);row.innerHTML="&nbsp;"+_12[0]+"&nbsp;";row.onmouseover=new Function(this.name+".select( "+i+" );");if(_12.length>=2&&this.onclickResult!=null){row.onmousedown=new Function(this.name+".onclickResult( '"+_12[1]+"' );");}else{row.onmousedown=null;}this.output.appendChild(row);if(_10==0){_f=row;}_10++;}}if(_f!=null){this.select(0);}this.showOutput();}this.lastInputString=_d;}}function HS_AC_IsValid(){if(typeof this.name=="undefined"||this.name.length<=0){return false;}if(typeof this.input=="undefined"||this.input==null){return false;}if(typeof this.getResults=="undefined"||this.getResults==null){return false;}return true;}function HS_AC_Init(){if(!this.isValid()){return;}this.input.autocomplete="off";this.input.onkeydown=new Function("event",this.ext_handleInputKeys);this.input.onkeyup=new Function(this.ext_suggest);this.input.onblur=new Function(this.ext_hideOutput);var _14=1;var _15=true;if(_15){this.output=document.createElement("div");}else{this.output=document.getElementById("hsidQsOutput");}this.output.style.borderRight="black "+_14+"px solid";this.output.style.borderLeft="black "+_14+"px solid";this.output.style.borderTop="black "+_14+"px solid";this.output.style.borderBottom="black "+_14+"px solid";this.output.style.paddingRight="0";this.output.style.paddingLeft="0";this.output.style.paddingTop="0";this.output.style.paddingBottom="0";this.output.style.zIndex="1";this.output.style.visibility="hidden";this.output.style.backgroundColor="white";this.output.style.position="absolute";this.output.style.display="inline";this.resetOutput();if(_15){document.body.appendChild(this.output);}this.createOutputRowTemplate();if(_Window_OnResize!=null){_Window_OnResize.add(this.ext_resetOutput);}else{window.onresize=new Function(this.ext_resetOutput);}if(_Document_OnMouseDown!=null){_Document_OnMouseDown.add(this.ext_hideOutput);}else{document.onmousedown=new Function(this.ext_hideOutput);}}function HS_AC_CreateOutputRowTemplate(){this.outputRowTemplate=document.createElement("div");this.outputRowTemplate.className="ac_output_row";}function HS_AC_ResetOutput(){if(!this.isValid()){return;}if(this.output==null){return;}var _16=0;if(HS_ClientBrowserIs("msie")){if(HS_SiteIsInstitutional()){_16=-18;}else{_16=-14;}}this.output.style.top=(HS_GetSummedAttribute(this.input,"offsetTop")+this.input.offsetHeight-0+_16)+"px";var _17=this.setOutputWidth();var _18=HS_GetSummedAttribute(this.input,"offsetLeft");if(_17>0){_18+=this.input.offsetWidth-_17-2;}this.output.style.left=_18+"px";}function HS_AC_ShowOutput(){if(this.output==null){return;}if(_Dialogs!=null&&_Dialogs.getTopZ){var _19=_Dialogs.getTopZ();if(_19>0){_19++;this.output.style.zIndex=_19.toString();}}else{this.output.style.zIndex=1000;}this.output.style.visibility="visible";if(HS_ClientBrowserIs("msie")){if(this.shadowFrame==null){try{this.shadowFrame=hs.ui.createFrame();}catch(e){}}}if(this.shadowFrame!=null){this.shadowFrame.style.top=this.output.style.top;this.shadowFrame.style.left=this.output.style.left;this.shadowFrame.style.width=(this.output.offsetWidth+0)+"px";this.shadowFrame.style.height=(this.output.offsetHeight+0)+"px";this.shadowFrame.style.zIndex=""+(parseInt(this.output.style.zIndex,10)-1);this.shadowFrame.style.visibility="visible";}}function HS_AC_HideOutput(){if(this.output==null){return;}this.output.style.visibility="hidden";if(this.shadowFrame!=null){this.shadowFrame.style.visibility="hidden";}}function HS_AC_ClearOutput(){if(this.output==null){return;}while(this.output.childNodes.length>0){this.output.removeChild(this.output.childNodes[0]);}}function HS_AC_ClearHighlight(){if(this.output==null){return;}for(var i=0;i<this.output.childNodes.length;i++){var row=this.output.childNodes[i];row.onmouseout();}}function HS_AC_SetOutputWidth(){var _1c=-1;if(!this.isValid()){return _1c;}if(this.output==null){return _1c;}_1c=this.input.offsetWidth-2;if(navigator&&navigator.userAgent.toLowerCase().indexOf("msie")==-1){}var _1d=this.results;if(typeof _1d!="undefined"&&_1d!=null&&_1d.length>0){var _1e=0;for(var i=0;i<_1d.length;i++){var _20=_1d[i];if(_20.length>=1){var str=""+_20[0];if(str.length>_1e){_1e=str.length;}}}if(_1e>0){var _22=0;if(_1e>=10){_22=Math.round(_1e*6);}else{if(_1e>=20){_22=Math.round(_1e*5.9);}else{if(_1e>=30){_22=Math.round(_1e*5.6);}else{if(_1e>=40){_22=Math.round(_1e*5);}else{if(_1e>=50){_22=Math.round(_1e*4);}else{if(_1e>=60){_22=Math.round(_1e*3.5);}else{if(_1e>=70){_22=Math.round(_1e*3);}else{if(_1e>=80){_22=Math.round(_1e*2.5);}else{if(_1e>=90){_22=Math.round(_1e*2);}else{if(_1e>=100){_22=Math.round(_1e*1.7);}else{_22=Math.round(_1e*1.5);}}}}}}}}}}if(_22>_1c){_1c=_22;}}}this.output.style.width=_1c+"px";return _1c;}
          var HS_QS_HEDGELETS_LIMIT=100;function HS_InitializeQS(_1){if(typeof HS_AC=="undefined"||typeof HS_QS_Search=="undefined"||typeof HS_QS_Submit=="undefined"){return;}if(_QS_AC==null){_QS_AC=new HS_AC("_QS_AC",_1,HS_QS_Search,HS_QS_Submit);}}var _QS_InitializingData=false;function HS_InitializeData(){_QS_InitializingData=true;var _2=0;if(HS_SiteIsInstitutional()){_2=HS_HEDGELET_CLASS_INSTITUTIONAL;}else{_2=HS_HEDGELET_CLASS_RETAIL;}_XMLHTTP.request("/hedgelet/service/market?out=arrMarkets&hedgeletclass="+_2,HS_InitializeData_Assets);_XMLHTTP.request("/hedgelet/service/hedgeletlist?hedgelettype="+HS_HEDGELET_TYPE_ALL+"&timeframe="+HS_TIME_FRAME_ALL+"&periodicity="+HS_PERIODICITY_ALL+"&status="+(HS_STATUS_OPEN+HS_STATUS_CLOSED)+"&hedgeletclass="+_2+"&out=arrHedgelets",HS_InitializeData_Hedgelets);}function HS_InitializeData_Assets(_3,_4){_QS_Assets=new Array();eval(_3);if(typeof arrMarkets!="undefined"&&arrMarkets!=null&&arrMarkets.length>0){_QS_Assets=HS_GetAssets(HS_FormatServiceData(arrMarkets));}}function HS_InitializeData_Hedgelets(_5,_6){_QS_Hedgelets=new Array();eval(_5);if(typeof arrHedgelets!="undefined"&&arrHedgelets!=null&&arrHedgelets.length>0){_QS_Hedgelets=HS_FormatServiceData(arrHedgelets,HS_CompareAssetHedgeletSeries_New);}}function HS_QS_Search(_7){var _8=new Array();var _9=_7.trim();if(_9.length<=0){return _8;}if(_QS_Assets==null||_QS_Hedgelets==null){if(!_QS_InitializingData){HS_InitializeData();}return _8;}var _a=_9.split(" ");if(_a.length>1){for(var i=0;i<_QS_Assets.length;i++){var _c=_QS_Assets[i];var _d=true;for(var j=0;j<_a.length;j++){var _f=_a[j].trim().toLowerCase();if(_c["stAssetName"].toLowerCase().indexOf(_f)<0){_d=false;break;}}if(_d){_8.push(["All "+_c["stAssetName"]+" Products",HS_QS_GetAction_Asset(_c)]);}}var _10=0;for(var i=0;i<_QS_Hedgelets.length;i++){if(_10>=HS_QS_HEDGELETS_LIMIT){break;}var _11=_QS_Hedgelets[i];var _d=true;for(var j=0;j<_a.length;j++){var _f=_a[j].trim().toLowerCase();var _12=_11["stHedgeletName"].toLowerCase().indexOf(_f)>=0;var _13=(_11["stHedgeletSymbol"].toLowerCase().indexOf(_f)>=0);if(!_12&&!_13){_d=false;break;}}if(_d){_10++;var _14=_11["stHedgeletName"];if(HS_SiteIsInstitutional()){switch(_11["ecHedgeletType"]){case HS_HEDGELET_TYPE_YES:case HS_HEDGELET_TYPE_NO:_14+=" Digital";break;case HS_HEDGELET_TYPE_VARIABLE:_14+=" Option";break;default:break;}}else{if(_11["ecHedgeletType"]==HS_HEDGELET_TYPE_YES){_14+=" Yes";}else{if(_11["ecHedgeletType"]==HS_HEDGELET_TYPE_NO){_14+=" No";}}}_14+=" ("+HS_GenerateDateSimple(_11["daLastTradingDate"])+")";if(HS_SiteIsInstitutional()&&_11["stHedgeletSymbol"].length>0){_14+=" "+_11["stHedgeletSymbol"]+"";}_8.push([_14,HS_QS_GetAction_Hedgelet(_11)]);}}}else{var _f=_a[0].trim().toLowerCase();if(_f.length<=0){return _8;}for(var i=0;i<_QS_Assets.length;i++){var _c=_QS_Assets[i];if(_c["stAssetName"].toLowerCase().indexOf(_f)>=0){_8.push(["All "+_c["stAssetName"]+" Products",HS_QS_GetAction_Asset(_c)]);}}if(_f.length>=3){var _10=0;for(var i=0;i<_QS_Hedgelets.length;i++){if(_10>=HS_QS_HEDGELETS_LIMIT){break;}var _11=_QS_Hedgelets[i];var _12=_11["stHedgeletName"].toLowerCase().indexOf(_f)>=0;var _13=(_11["stHedgeletSymbol"].toLowerCase().indexOf(_f)>=0);if(_12||_13){_10++;var _14=_11["stHedgeletName"];if(HS_SiteIsInstitutional()){switch(_11["ecHedgeletType"]){case HS_HEDGELET_TYPE_YES:case HS_HEDGELET_TYPE_NO:_14+=" Digital";break;case HS_HEDGELET_TYPE_VARIABLE:_14+=" Option";break;default:break;}}else{if(_11["ecHedgeletType"]==HS_HEDGELET_TYPE_YES){_14+=" Yes";}else{if(_11["ecHedgeletType"]==HS_HEDGELET_TYPE_NO){_14+=" No";}}}_14+=" ("+HS_GenerateDateSimple(_11["daLastTradingDate"])+")";if(HS_SiteIsInstitutional()&&_11["stHedgeletSymbol"].length>0){_14+=" "+_11["stHedgeletSymbol"]+"";}_8.push([_14,HS_QS_GetAction_Hedgelet(_11)]);}}}}if(_8.length<=0){_8.push(["No Products Found",HS_QS_GetAction_NotFound()]);}return _8;}function HS_QS_Submit(_15){if(_15.length>0){eval(_15);_QS_AC.reset();}}function HS_QS_Submit_External(){if(typeof _QS_AC=="undefined"||_QS_AC==null||_QS_AC.results==null||_QS_AC.results.length<=0){return;}var _16=_QS_AC.results[0];if(_16.length>=2){eval(_16[1]);_QS_AC.reset();}}function HS_QS_GetAction_NotFound(){var url="/";if(HS_SiteIsInstitutional()){url="/iHedgelets/markets/";}else{url="/hedgelets/YesNo/";}var _18="location.href = '"+url+"';";return _18;}function HS_QS_GetAction_Asset(_19){var url="";if(HS_SiteIsInstitutional()){url="/iHedgelets/asset/";}else{url="/hedgelets/YesNo/active-trader-dashboard.html";var _1b=(HS_HEDGELET_TYPE_YES+HS_HEDGELET_TYPE_NO+HS_HEDGELET_TYPE_BINARY);HS_SetCookie(HS_COOKIE_HEDGELET,_1b,HS_HEDGELET_HEDGELETTYPE);}var _1c="HS_SelectAsset_QS( \""+_19["stAssetName"]+"\", \""+_19["stAssetPath"]+"\", \""+url+"\" );";return _1c;}function HS_QS_GetAction_Hedgelet(_1d){var url="";if(HS_SiteIsInstitutional()){url="/iHedgelets/asset/quotes/";}else{url="/hedgelets/quotes/quotedetail.html";if(_1d["ecHedgeletType"]==HS_HEDGELET_TYPE_BINARY){url="/hedgelets/YesNo/quotedetail.html";}}var _1f="HS_SelectHedgelet2_QS( \""+_1d["stHedgeletPath"]+"\", \""+url+"\", "+_1d["ecHedgeletType"]+" );";return _1f;}function HS_SelectHedgelet2_QS(_20,_21,_22,_23){HS_SetCookie(HS_COOKIE_HEDGELET,"");HS_SetCookie(HS_COOKIE_HEDGELET,_20,HS_HEDGELET_HEDGELETPATH);if(typeof _22!="undefined"&&_22!=null){HS_SetCookie(HS_COOKIE_HEDGELET,_22,HS_HEDGELET_HEDGELETTYPE);}if(typeof _23!="undefined"&&_23!=null){HS_SetCookie(HS_COOKIE_HEDGELET,_23,HS_HEDGELET_HEDGELETNAME);}if(_21.length>0){window.location=_21;}}function HS_SelectAsset_QS(_24,_25,_26){HS_SetCookie(HS_COOKIE_HEDGELET,_24,HS_HEDGELET_ASSETNAME);HS_SetCookie(HS_COOKIE_HEDGELET,_25,HS_HEDGELET_ASSETPATH);HS_SetCookie(HS_COOKIE_HEDGELET,"",HS_HEDGELET_HEDGELETPATH);HS_SetCookie(HS_COOKIE_HEDGELET,"",HS_HEDGELET_HEDGELETNAME);if(_26.length>0){if(parent!=self){parent.location=_26;}else{window.location=_26;}}}
          function HS_CompareAssets_New(_1,_2){if(_1["stAssetName"]<_2["stAssetName"]){return -1;}else{if(_1["stAssetName"]>_2["stAssetName"]){return 1;}else{return 0;}}}function HS_CompareAssetHedgeletSeries_New(_3,_4){var _5;if((_3["ecHedgeletType"]==HS_HEDGELET_TYPE_BINARY)&&(_4["ecHedgeletType"]==HS_HEDGELET_TYPE_VARIABLE)){return -1;}else{if((_4["ecHedgeletType"]==HS_HEDGELET_TYPE_BINARY)&&(_3["ecHedgeletType"]==HS_HEDGELET_TYPE_VARIABLE)){return 1;}else{_5=HS_CompareDate(_3["daLastTradingDate"],_4["daLastTradingDate"]);if(_5!=0){return _5;}else{if(_3["stSortKey"]<_4["stSortKey"]){return -1;}else{if(_3["stSortKey"]>_4["stSortKey"]){return 1;}else{if(_3["ecHedgeletType"]<_4["ecHedgeletType"]){return -1;}else{if(_3["ecHedgeletType"]>_4["ecHedgeletType"]){return 1;}else{return 0;}}}}}}}}function HS_CompareDate(d1,d2){if(d1[0]<d2[0]){return -1;}else{if(d1[0]>d2[0]){return 1;}else{if(d1[1]<d2[1]){return -1;}else{if(d1[1]>d2[1]){return 1;}else{if(d1[2]<d2[2]){return -1;}else{if(d1[2]>d2[2]){return 1;}else{return 0;}}}}}}}
          function HS_MainMenuItem(_1){this.id=null;this.node=null;this.url=null;this.urlPathName=null;this.className=null;this.parent=null;this.previous=null;this.next=null;this.bufferNodesBefore=null;this.bufferNodesAfter=null;this.submenuNode=null;this.items=null;if(typeof _1!="undefined"){this.node=_1;}if(this.node!=null){this.id=this.node.id;this.className=this.node.className;if(this.node.tagName.toLowerCase()=="a"){this.url=this.node.href;}else{var a=this.node.getElementsByTagName("a");if(a!=null&&a.length>0){this.url=a[0].href;}}if(this.url!=null){this.node.onclick=new Function("window.location.href = '"+this.url+"';return false;");var _3=window.location.hostname;var _4=this.url.indexOf(_3);if(_4>0){this.urlPathName=this.url.substring(_4+_3.length);}else{this.urlPathName=this.url;}}}}function HS_MainMenuItem_Add(_5){if(this.items==null){this.items=[];}this.items.push(_5);_5.parent=this;}HS_MainMenuItem.prototype.add=HS_MainMenuItem_Add;function HS_MainMenuItem_Select(){var c=this.className;if(c==null||c.length<=0){c="on";}else{c+="On";}this.node.className=c;Colorize_Selected_Tab(this.id);if(this.parent!=null){var b=this.bufferNodesBefore;if(b!=null&&b.length>0){for(var i=0;i<b.length;i++){try{b[i].className="on";}catch(e){}}}b=this.bufferNodesAfter;if(b!=null&&b.length>0){for(var i=0;i<b.length;i++){try{b[i].className="on";}catch(e){}}}}if(this.submenuNode!=null){this.submenuNode.style.display="block";}}HS_MainMenuItem.prototype.select=HS_MainMenuItem_Select;function HS_MainMenuItem_Deselect(){this.node.className=this.className;if(this.parent!=null){var b=this.bufferNodesBefore;if(b!=null&&b.length>0){for(var i=0;i<b.length;i++){try{b[i].className="";}catch(e){}}}b=this.bufferNodesAfter;if(b!=null&&b.length>0){for(var i=0;i<b.length;i++){try{b[i].className="";}catch(e){}}}}if(this.submenuNode!=null){this.submenuNode.style.display="none";}}HS_MainMenuItem.prototype.deselect=HS_MainMenuItem_Deselect;function HS_MainMenuItem_Show(){this.node.style.display="";var _b=this.previous==null;if(_b){bufferNodes=this.bufferNodesAfter;}else{bufferNodes=this.bufferNodesBefore;}if(bufferNodes!=null&&bufferNodes.length>0){for(var i=0;i<bufferNodes.length;i++){try{bufferNodes[i].style.display="";}catch(e){}}}}HS_MainMenuItem.prototype.show=HS_MainMenuItem_Show;function HS_MainMenuItem_Hide(){this.node.style.display="none";var _d=this.previous==null;if(_d){bufferNodes=this.bufferNodesAfter;}else{bufferNodes=this.bufferNodesBefore;}if(bufferNodes!=null&&bufferNodes.length>0){for(var i=0;i<bufferNodes.length;i++){try{bufferNodes[i].style.display="none";}catch(e){}}}}HS_MainMenuItem.prototype.hide=HS_MainMenuItem_Hide;var MAINMENU_EVENT_NONE=0;var MAINMENU_EVENT_OPEN=1;var MAINMENU_EVENT_CLOSE=2;var MAINMENU_RESET_INTERVAL=500;var MAINMENU_EVENT_PROCESS_INTERVAL=200;var gMainMenuData={};var gMainMenuDefaultSelection="";var gMainMenuCurrentSelection="";var gMainMenuEventQueue={"start":{"event":MAINMENU_EVENT_NONE,"data":null},"finish":{"event":MAINMENU_EVENT_NONE,"data":null}};var gMainMenuResetTimeoutID=null;function RegisterMainMenu(_f){if(_f==null){return null;}var _10=[];var _11=null;for(var i=0;i<_f.length;i++){try{var _13=_f[i][0];}catch(e){break;}var _14=(_13==null)?null:document.getElementById(_13);if(_14!=null){var tab=new HS_MainMenuItem(_14);_10.push(tab);gMainMenuData[_13]=tab;if(tab.node!=null){tab.node.onmouseover=new Function("if (typeof MainMainEvent != 'undefined') MainMainEvent( "+MAINMENU_EVENT_OPEN+", '"+_13+"' )");tab.node.onmouseout=new Function("if (typeof MainMainEvent != 'undefined') MainMainEvent( "+MAINMENU_EVENT_CLOSE+", '"+_13+"' )");}var _16=_f[i][1];var _17=(_16==null)?null:document.getElementById(_16);if(_17!=null){tab.submenuNode=_17;tab.submenuNode.style.display="none";tab.submenuNode.onmouseover=tab.node.onmouseover;tab.submenuNode.onmouseout=tab.node.onmouseout;var _18=[];var _19=null;for(var j=0;j<_17.childNodes.length;j++){var c=_17.childNodes[j];if(c!=null){if(c.nodeName.toLowerCase()=="a"){var _1c=new HS_MainMenuItem(c);tab.add(_1c);if(_18.length>0){if(_19!=null){_19.bufferNodesAfter=_18;}_1c.bufferNodesBefore=_18;}if(_19!=null){_1c.previous=_19;_19.next=_1c;}_19=_1c;_18=[];}else{if(c.nodeName.toLowerCase()=="div"){for(var k=0;k<c.childNodes.length;k++){var d=c.childNodes[k];if(d!=null){if(d.nodeName.toLowerCase()=="a"){var _1c=new HS_MainMenuItem(d);tab.add(_1c);if(_18.length>0){if(_19!=null){_19.bufferNodesAfter=_18;}_1c.bufferNodesBefore=_18;}if(_19!=null){_1c.previous=_19;_19.next=_1c;}_19=_1c;_18=[];}}}}else{_18.push(c);}}}}if(_19!=null&&_18.length>0){_19.bufferNodesAfter=_18;}}}}if(_10.length>0){for(var i=0;i<_10.length;i++){var tab=_10[i];var _1f=[];var _20=tab.node.previousSibling;while(_20!=null){var id=null;try{id=_20.id;}catch(e){}if(id!=null){var t=gMainMenuData[id];if(t!=null){tab.previous=t;break;}}_1f.push(_20);_20=_20.previousSibling;}if(_1f.length>0){tab.bufferNodesBefore=_1f;}var _1f=[];var _23=tab.node.nextSibling;while(_23!=null){var id=null;try{id=_23.id;}catch(e){}if(id!=null){var t=gMainMenuData[id];if(t!=null){tab.next=t;break;}}_1f.push(_23);_23=_23.nextSibling;}if(_1f.length>0){tab.bufferNodesAfter=_1f;}}return _10;}return null;}function MainMainEvent(_24,_25){if(gMainMenuEventQueue.start.event==MAINMENU_EVENT_NONE){gMainMenuEventQueue.start.event=_24;gMainMenuEventQueue.start.data=_25;if(MainMainEventIsActionable(gMainMenuEventQueue.start.event)){setTimeout("ProcessMainMainEventQueue();",MAINMENU_EVENT_PROCESS_INTERVAL);}}else{gMainMenuEventQueue.finish.event=_24;gMainMenuEventQueue.finish.data=_25;}}function MainMainEventIsActionable(_26){return (_26==MAINMENU_EVENT_OPEN||_26==MAINMENU_EVENT_CLOSE);}function MainMainEventName(_27){var str="None";switch(_27){case MAINMENU_EVENT_NONE:break;case MAINMENU_EVENT_OPEN:str="Open";break;case MAINMENU_EVENT_CLOSE:str="Close";break;default:break;}return str;}function ProcessMainMainEventQueue(){if(gMainMenuResetTimeoutID!=null){clearTimeout(gMainMenuResetTimeoutID);gMainMenuResetTimeoutID=null;}switch(gMainMenuEventQueue.start.event){case MAINMENU_EVENT_OPEN:switch(gMainMenuEventQueue.finish.event){case MAINMENU_EVENT_NONE:SwitchToMainMenu(gMainMenuEventQueue.start.data);break;case MAINMENU_EVENT_OPEN:SwitchToMainMenu(gMainMenuEventQueue.finish.data);break;case MAINMENU_EVENT_CLOSE:ResetMainMenu();break;default:break;}break;case MAINMENU_EVENT_CLOSE:switch(gMainMenuEventQueue.finish.event){case MAINMENU_EVENT_NONE:ResetMainMenu();break;case MAINMENU_EVENT_OPEN:if(gMainMenuEventQueue.start.data!=gMainMenuEventQueue.finish.data){SwitchToMainMenu(gMainMenuEventQueue.finish.data);}break;case MAINMENU_EVENT_CLOSE:ResetMainMenu();break;default:break;}break;default:break;}gMainMenuEventQueue.start.event=MAINMENU_EVENT_NONE;gMainMenuEventQueue.start.data=null;gMainMenuEventQueue.finish.event=MAINMENU_EVENT_NONE;gMainMenuEventQueue.finish.data=null;}function SwitchToMainMenu(_29){if(_29==gMainMenuCurrentSelection){return;}var _2a=(gMainMenuCurrentSelection==null)?null:gMainMenuData[gMainMenuCurrentSelection];var _2b=(_29==null)?null:gMainMenuData[_29];if(_2a!=null){_2a.deselect();}if(_2b!=null){_2b.select();gMainMenuCurrentSelection=_29;}}function ResetMainMenu(){gMainMenuResetTimeoutID=setTimeout("SwitchToMainMenu( gMainMenuDefaultSelection );",MAINMENU_RESET_INTERVAL);}function SetMainMenuDefaultSelection(tab,_2d){if(tab!=null){gMainMenuDefaultSelection=tab.id;SwitchToMainMenu(gMainMenuDefaultSelection);if(_2d!=null&&_2d.parent==tab){_2d.select();}}}function HS_SelectMenu(_2e){if(typeof _2e=="undefined"||_2e==null){return;}var tab;var _30=document.URL;var _31=window.location.pathname;var _32=null;var _33=null;for(var i=0;i<_2e.length;i++){tab=_2e[i];var _35=0;if((tab.id=="hsidMainMenuTab1")&&((_31=="/")||(_31=="/index.html")||_31.match("/abouthedgestreet/")||_31.match("/faq/")||_31.match("/login/login.html"))){_35=1;}if((tab.id=="hsidMainMenuTab3")&&(_31.match("/active-trader-learn.html")||_31.match("/hedgelets/contract/YesNo/active-trader-contracts.html")||_31.match("/hedgelets/contract/YesNo/")||_31.match("/trade/active-trader.html")||_31.match("/hedgelets/YesNo/")||_31.match("/daily-update/")||_31.match("/hedgelets/CapFloor/active-trader-results.html")||_31.match("/account/order-history.html")||_31.match("/hedgelets/contract/CapFloor"))){HS_SetCookie(HS_COOKIE_BINARY_OR_FUTURES,"",HS_COOKIE_BINARY_OR_FUTURES_SELECTION);_35=1;}if((tab.id=="hsidMainMenuTab5")&&(_31.match("/trade/history/")||_31.match("/trade/openorders/")||_31.match("/account/")||_31.match("/positions/"))){_35=1;}if((tab.id!="hsidMainMenuTab1")&&(tab.id!="hsidMainMenuTab3")&&(tab.id!="hsidMainMenuTab4")){if(_31.match(tab.urlPathName)){_35=1;}else{var _36=[];var _37=0;var _38=tab.urlPathName;var str="";while(_37>=0){_37=_38.indexOf("/",_37+1);if(_37>0){str=_38.substring(0,_37+1);_36.push(str);}}var _3a=_36.length;if(_3a>0){var dir="";for(var j=0;j<_3a;j++){dir=_36[j];var _3d=true;var _3e=_2e.length;for(var k=0;k<_3e;k++){if(k!=i){_38=_2e[k].urlPathName;if(_38.match(dir)){_3d=false;break;}}}if(_3d){break;}}if(_31.match(dir)){_35=1;}}}}if(_35==1){_32=tab;if(_33==null){for(var j=0;j<tab.items.length;j++){var _40=tab.items[j];if(_31.toLowerCase()==_40.urlPathName.toLowerCase()){_33=_40;break;}else{if(_31.match("/hedgelets/contract/YesNo/")){_33=tab.items[1];}}}}if(_33==null){for(var j=0;j<tab.items.length;j++){var _40=tab.items[j];var str="index.html";var _41=_31+str;var _42=_40.urlPathName+str;if(_31.toLowerCase()==_42.toLowerCase()||_40.urlPathName.toLowerCase()==_41.toLowerCase()){_33=_40;break;}}}if(_33==null){for(var j=(tab.items.length-1);j>=0;j--){var _40=tab.items[j];var str=_40.urlPathName;var _41=_31;if(_31.match(str)){_33=_40;break;}}}break;}else{}}if(_32==null){var _43=new Array();if(HS_SiteIsInstitutional()){_43=["/login/","/logout/","/open-account/","/abouthedgestreet/"];}var _44=false;for(var i=0;i<_43.length;i++){if(_30.match(_43[i])){_44=true;break;}}if(!_44){_32=gMainMenuData["hsidMainMenuTab1"];}}SetMainMenuDefaultSelection(_32,_33);}function Colorize_Selected_Tab(id){switch(id){case "hsidMainMenuTab1":document.getElementById("leftCurve").innerHTML="<img src=\"/preview/images/tabon_left.gif\">";document.getElementById("tabAfterBasic").innerHTML="<img src=\"/preview/images/tab_divider_on_off.gif\">";document.getElementById("tabAfterActive").innerHTML="<img src=\"/preview/images/tab_divider_off_off.gif\">";document.getElementById("rightCurve").innerHTML="<img src=\"/preview/images/taboff_right.gif\">";break;case "hsidMainMenuTab2":document.getElementById("leftCurve").innerHTML="<img src=\"/preview/images/taboff_left.gif\">";document.getElementById("tabAfterBasic").innerHTML="<img src=\"/preview/images/tab_divider_off_on.gif\">";document.getElementById("tabAfterActive").innerHTML="<img src=\"/preview/images/tab_divider_on_off.gif\">";document.getElementById("rightCurve").innerHTML="<img src=\"/preview/images/taboff_right.gif\">";break;case "hsidMainMenuTab3":document.getElementById("leftCurve").innerHTML="<img src=\"/preview/images/taboff_left.gif\">";document.getElementById("tabAfterBasic").innerHTML="<img src=\"/preview/images/tab_divider_off_on.gif\">";document.getElementById("tabAfterActive").innerHTML="<img src=\"/preview/images/tab_divider_on_off.gif\">";document.getElementById("rightCurve").innerHTML="<img src=\"/preview/images/taboff_right.gif\">";break;case "hsidMainMenuTab4":document.getElementById("leftCurve").innerHTML="<img src=\"/preview/images/taboff_left.gif\">";document.getElementById("tabAfterBasic").innerHTML="<img src=\"/preview/images/tab_divider_off_on.gif\">";document.getElementById("tabAfterActive").innerHTML="<img src=\"/preview/images/tab_divider_on_off.gif\">";document.getElementById("rightCurve").innerHTML="<img src=\"/preview/images/taboff_right.gif\">";break;case "hsidMainMenuTab5":document.getElementById("leftCurve").innerHTML="<img src=\"/preview/images/taboff_left.gif\">";document.getElementById("tabAfterBasic").innerHTML="<img src=\"/preview/images/tab_divider_off_off.gif\">";document.getElementById("tabAfterActive").innerHTML="<img src=\"/preview/images/tab_divider_off_on.gif\">";document.getElementById("rightCurve").innerHTML="<img src=\"/preview/images/tabon_right.gif\">";break;case "hsidMainMenuTab6":document.getElementById("leftCurve").innerHTML="<img src=\"/preview/images/taboff_left.gif\">";document.getElementById("tabAfterBasic").innerHTML="<img src=\"/preview/images/tab_divider_off_off.gif\">";document.getElementById("tabAfterActive").innerHTML="<img src=\"/preview/images/tab_divider_off_on.gif\">";document.getElementById("rightCurve").innerHTML="<img src=\"/preview/images/tabon_right.gif\">";}}
            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;}
          
          