



	var _Glossary={"term":"definition","Account Number":"The number that identifies your relationship with HedgeStreet. Your account number is sent to you via email once you have completed the account application process. Your account number is also found on the My HedgeStreet tab after you have logged in. ","ACH (Automatic Clearing House Network)":"A nationwide electronic funds transfer network that enables participating financial institutions to distribute electronic credit and debit entries to bank accounts and to settle such entries. Any withdrawals from a HedgeStreet account will be done via ACH. ","Action":"The Select button allows you to select a Contract in the trading console below.","Amount":"The total amount of a transaction.","Available Cash":"Cash in your account which can be used either for trading purposes or cash withdrawals.","Ask":"The Contract price associated with a sell order. This is the price at which HedgeStreet members are willing to sell a Contract, making it the price at which other members can buy the contract.","Buyer Payout":"The amount the buyer receives as a result of the expiration value of the underlying at settlement. For Binaries, the buyer payout is either $0 or $10; for Futures, the buyer payout is between $0 and $50 (depending on the contract size of the Futures Contract).","Available Cash":"Cash in your account which can be used for trading purposes or cash withdrawals. ","Bid":"The price associated with a buy order. This is the price at which HedgeStreet members are willing to buy a Contract, making it the price at which other members can sell the contract.","Buy":"The act of purchasing a Contract. If you are logged in, this button/link directs you to the Place Order page. If you are not logged in, this link directs you to a login/open-account page. ","Buy Downside":"The maximum amout of money you could lose by buying at your entered quantity and price","Buy Order":"A bid to buy a specified quantity of Contracts at a specified price. (To place a buy order, a trader must have sufficient funds in his/her Available Cash account to cover the entire cost of the order if it is executed.) ","Buy Upside":"The maximum amout of money you could make by buying at your entered quantity and price","Callable Contracts":"A Contract in which the expiration date is contingent on a specified occurrence, rather than a predetermined time. When the specified occurrence happens, it yields the payout criteria for determining the settlement value of the Contract. The Contract will then be \"called\" into expiry. ","Cancel":"A link on the Open Orders page that allows a member to remove an existing open order from HedgeStreet. ","Cash":"A value on the Positions page indicating the Available Cash in your account that can be used for trading purposes or cash withdrawals. ","Cash Required":"The total cash associated with acquiring a particular Contract position.","Cash Required to Trade":"The per contract cost associated with acquiring a particular Contract position for a buyer or seller.","Chart":" A graphical display of a Contract and the underlying market over the course of a defined period. You can view charts containing the current day's data (1-day), the week's data (5-day), the month's data (30 days) or All data for a longer term perspective. The Contract price data (displayed in blue) are the average of the latest bid and ask prices, generated periodically. For Assets with a ticking underlying, the market data (displayed in green) for the day and week charts are the intraday futures and spot prices. The market data for all other assets and chart durations are the expiration values of the underlying each day, as determined by the respective HedgeStreet Settlement Source Agency.","Clearing":"The daily financial settlement of transactions, including payouts and fees, for HedgeStreet and its members. ","Close":"The last price at which a particular Contract was traded on a given day. ","Closing Transaction":"An order placed by a trader to reduce or eliminate a Contract position. ","Commodity Futures Trading Commission (CFTC)":"The Federal regulatory agency responsible for monitoring the activities within the commodity futures and options industry in much the same way the Securities and Exchange Commission (SEC) regulates the securities industry. HedgeStreet is a designated contract market and clearing organization regulated by the CFTC. For more information, visit www.cftc.gov. ","Confirmation Code":"A unique alphanumeric code electronically sent to the user as part of the account creation process. This confirmation code, which serves as the electronic signature of the member applicant, must be entered by the applicant to finalize the creation of an account in order to become a member. ","Cost":"The amount paid by the trader when any portion of an order is executed (not including applicable fees). ","Cost Basis":"The amount a trader paid for a particular Contract (unit cost basis) or a Contract position (total cost basis). ","Country of Residence":"The country of which you are a legal resident. Currently, HedgeStreet only permits legal residents (both individuals and entities) of the United States with an account at a United States financial institution to apply for membership. ","Current Value":"The current value for a Contract. Current value is the average of the current inside Sell At and Buy At prices for the Contract. If a Sell At and Buy At price is unavailable, HedgeStreet uses the last traded price for the Contract. HedgeStreet displays the current value for the long position. To calculate the current value for the short position for a Binary, subtract the current value from $10; to calculate the current value for the short position for a Futures Contract, subtract the current value from the Contracts contract size ($0-$50).","Daily High":"The highest trade price achieved during the day for a particular Contract.","Daily Low":"The lowest trade price achieved during the day for a particular Contract.","Date/Time":"The date and time an order or transaction was recorded by HedgeStreet.","Description":"A detailed description for a particular transaction.","Discount":"The amount a Contract value is trading under its corresponding Asset value. For example, if a Gold $400 to $410 (2 Dec 05) Variable Long Contract is trading at $5, and Gold is trading at $408, there is a discount of $3. Differences between Contract values and Asset values are created by market forces and the time-value of Contracts. ","Dollar Multiplier":"The monetary amount by which the rate, level, amount, measure, or other value of the underlying of a Variable Contract is multiplied to determine the Settlement Value. ","Electronic Check":"An Electronic Check is an online service that allows you to deposit funds with a paper check via the Internet. You can deposit up to $10,000 with each electronic check. ","Electronic Signature":"As a completely Internet-based contract market, HedgeStreet requests that applicants sign certain documents via electronic signature. An electronic signature is a sound, symbol or process used to sign enforceable contracts as well as other types of documents. Signing a document with an electronic signature is the legal equivalent to signing a document with pen and paper. When you complete the initial application on the HedgeStreet website, HedgeStreet will assign you a unique alphanumeric signature code and send that code to your registered email address. You will then be required to input that code as your electronic signature. HedgeStreet will confirm as to whether or not you agree to sign the application and agreement by electronic means. HedgeStreet will then store the receipt of your unique electronic signature along with your confirmation that you acknowledged and agreed to sign the membership application. HedgeStreet will follow the same procedure for each authorized representative designated by an entity applicant. ","Entity":"A business/legal body (other than an individual) that may open a HedgeStreet account, such as a Trust, Corporation, Limited Liability Company (LLC), Partnership or Sole Proprietorship. ","Estimated Cash Required":"The estimated cash associated with acquiring a particular Contract position.","Expiration Value":"The value of an asset at expiration. The Underlying Expiration Value is used to determine the payout for buyers and sellers","Fee":"A charge assessed to members for activities on HedgeStreet. (For a list of current fees, please refer to the Fee Schedule)","Final Results":"Contracts that have been settled and cleared.","Contract Pair":"The combination of opposing Yes and No Contracts. For example, Gasoline > $2.125 Yes (2 Dec 05) and Gasoline > $2.125 No (2 Dec 05) constitute a Contract Pair. ","Contract Position":"The number of Contracts held by a trader. A trader who does not hold any Contracts has \"no position\". ","Hedging":"The act of sheltering oneself from uncertainty by investing in a financial instrument that will offset monetary losses in the event of a specific outcome. ","Hypothetical Performance":"Hypothetical performance results have many inherent limitations, some of which are described below. No representation is being made that any account will or is likely to achieve profits or losses similar to those shown. In fact, there are frequently sharp differences between hypothetical performance results and the actual results subsequently achieved by any particular trading program. One of the limitations of hypothetical performance results is that they are generally prepared with the benefit of hindsight. In addition, hypothetical trading does not involve financial risk, and no hypothetical trading record can completely account for the impact of financial risk in actual trading. For example, the ability to withstand losses or to adhere to a particular trading program in spite of trading losses are material points which can also adversely affect actual trading results. There are numerous other factors related to the markets in general or to the implementation of any specific trading program which cannot be fully accounted for in the preparation of hypothetical performance results and all of which can adversely affect actual trading results. ","In-the-Money Contract":"A Contract for which the payout criteria is determined to have been met at Settlement. ","Last Trade":"The last price at which a particular Contract was traded.","Last Bid":"The last buy price (bid) for a particular Contract on a given day. ","Last Offer":"The last sell price (ask) for a particular Contract on a given day. ","Login":"The process of accessing a HedgeStreet account, by entering the proper username and password, in order to view account information or trade on HedgeStreet. ","Logout":"The process of ending access to a HedgeStreet account. The user must log in again to view account information or trade on HedgeStreet. ","Long":"On HedgeStreet, \"long\" refers to a Variable Contract position that increases in value as the underlying asset increases, and decreases in value as the underlying asset decreases. ","Market":"On HedgeStreet, a market is a grouping of related Contracts. Examples of markets include \"Finance\" and \"Real Estate\". For a list of current markets, refer to the Contracts page. ","Market Value":"The total value of a Contract position in the market. Market Value represents the cash that would be obtained if the entire Contract position were liquidated at the Current Value price.","Maturity":"For Contracts, maturity is the same as Expiration. ","National Futures Association (NFA)":"A self-regulatory organization whose members include Futures Commission Merchants (FCM), Commodity Pool Operators (CPO), Commodity Trading Advisors (CTA), Introducing Brokers (IB), contract markets, commercial firms, and banks. The NFA is responsible-under CFTC oversight-for certain aspects of the regulation of FCMs, CPOs, CTAs, IBs, and their registered employees. The primary focus of the NFA includes monitoring the qualifications and proficiency, financial condition, retail sales practices, and business conduct of these futures professionals. NFA also performs arbitration and dispute resolution functions for industry participants. HedgeStreet has contracted with National Futures Association (\"NFA\") to assist with the surveillance of the HedgeStreet market including conducting trade practice and market surveillance on trading and order data, reviewing data for any trade or market inconsistencies or exceptions and notifying HedgeStreet if any investigation is warranted. For more information, please visit www.nfa.futures.org. ","Non-Intermediated":"The absence of an agent, broker, or financial institution who acts as a middle person between an individual and a market. ","Offer":"An order to sell a specified number of Contracts at a specified price per Contract. Offers are shown in the Ask column of the Order Book. A trade occurs when another trader places a buy order at or above the Offer price. ","Open":"The first price at which a particular Contract was traded on a given day. ","Open Interest":"The total number of Contracts that have been purchased, but have not yet expired and settled (i.e., the total number of outstanding Contracts that are owned by participants in the market).","Open Order":"A buy or sell order (Bid or Ask) that has been placed, but has not yet been filled (executed). ","Opening Trade Value":"The rate, level, amount, measure, or other value of the underlying of a Variable Contract at which a Contract position is opened in a member account. ","Opening Transaction":"An order placed by a trader to establish or increase a Contract position. ","Order Book":"On HedgeStreet, the order book provides a gauge of liquidity by displaying the best bids and ask prices for each Contract and the associated quantities. ","Order Number":"A unique numeric code assigned to each buy or sell order placed on HedgeStreet. ","Out-of-the Money Contract":"A Contract for which the payout criteria is not determined to have been met at settlement. ","P & L":"The total profit or loss for a Contract position. P&L is calculated as the difference between what you paid to acquire the specific Contract position (Cash Required) and the current Market Value of that position.","Par":"The amount a Contract value is trading under its corresponding Asset value. For example, if a Gold $400 to $410 (2 Dec 05) Variable Long Contract is trading at $5, and Gold is trading at $407, there is a par of $2. Differences between Contract values and Asset values are created by market forces and the time-value of Contracts. ","Password":"A code that must be entered along with a username when logging into an account. Your HedgeStreet password can be between 6 and 8 alphanumeric characters (letters and/or digits), is case-sensitive, must start with a letter, and must include at least one digit (number). ","Pending Deposits":"Deposits that HedgeStreet are currently processing, but have not cleared. Most deposits take 3-5 business days to clear. Once deposits are cleared, they are displayed in Available Cash. ","Pending Final Result":"Contracts which have concluded trading and are pending the final expiration value to determine the payout value.","Pending Withdrawals":"Withdrawals that HedgeStreet are currently processing. After the withdrawal is processed, your Available Cash will be reduced by the amount of the withdrawal. Funds withdrawn from HedgeStreet will transfer to your bank account within approximately 2-3 business days. ","Positions":"The Contracts you currently hold. The Positions page displays your current Contract positions, plus information relating to those positions such as current price, quantity, cost basis, P&L, market value, and total portfolio value. You must be logged in to access this page. ","Potential Gain":"The maximum amount of profit a trader can make if an order is executed (completely filled) and the Contracts in the order settle at the highest possible settlement value. (For all Contract types, the highest possible settlement value is $10.) ","Potential Loss":"The maximum amount of money a trader could lose if an order is executed (completely filled) and the Contracts in the order settle at the lowest possible settlement value. (For all Contract types, the lowest possible settlement value is $0; therefore, the potential loss always equals the amount invested.) ","Premium":"The amount a Contract value is trading over its corresponding Asset value. For example, if a Gold $400 to $410 (2 Dec 05) Variable Long Contract is trading at $5, and Gold is trading at $402, there is a premium of $3. Differences between Contract values and Asset values are created by market forces and the time-value of Contracts. ","Price":"The per Contract price associated with an order.","Principal":"The total principal amount associated with a transaction.","Privacy Policy":"A legal statement indicating the conditions under which HedgeStreet will or will not reveal personal information about users. HedgeStreet only shares member information in accordance with federal and state privacy laws. To view the complete HedgeStreet Privacy Policy, click here. ","Quantity":"The number of a Contracts. Quantities associated with sells are denoted by a negative (-) number.","Quantity To Trade":"The number of Contracts you want to buy or sell.","Range":"The difference between the Cap and Floor specified for a Variable Contract. For example, the Gasoline $2.10 to $2.20 (2 Dec 05) Variable Contract has a range of 0.10 (2.20-2.10). Within the range, a trader owning a long position on a Variable Contract receives a pre-defined dollar amount for every point above the entry price the underlying moves, or loses the same amount for every point below the entry price the underlying moves. A trader with a short position on a Variable Contract receives a pre-defined dollar amount for every point below the entry price the underlying moves, or loses the same amount for every point above the entry price the underlying moves. ","Redemption (Redeem)":"Selling a Contract Pair (\"selling both\" Yes and No Contracts) to HedgeStreet for $10, less a fee. ","Redemption Fee":"The fee charged by HedgeStreet when a Binary Pair is redeemed. (For a list of current fees, please refer to the Fee Schedule). ","Refresh":"Re-displays the current page with updated content. ","Remaining":"The portion of an order which has not yet been filled, measured in the number of Contracts left to be purchased or sold.","Result":"Contracts that are pending settlement.","Running Balance":"Your available cash account balance inclusive of all executed transactions, including settled deposits, withdrawals, filled orders, interest paid to HedgeStreet members and HedgeStreet fees. The balance represents the current amount in your account that can be used for trading purposes or withdrawals. ","Sell":"The act of offering a Contract for sale. If you are logged in, this button/link directs you to the Place Order page. If you are not logged in, this link directs you to a login/open-account page. ","Sell Downside":"The maximum amout of money you could lose by selling at your entered quantity and price","Sell Order":"An offer to sell a specified quantity of Contracts at a specified price. To place a sell order for Binaries, the trader must own the specified number of Contracts. ","Sell Upside":"The maximum amout of money you could make by selling at your entered quantity and price","Seller Payout":"The amount the seller receives as a result of the expiration value of the underlying at settlement. For Binaries, the seller payout is either $0 or $10; for Futures, the seller payout is between $0 and $50 (depending on the contract size of the Futures Contract).","Settled Deposits":"Funds deposited into your HedgeStreet account that have been approved and are available for trading. ","Settlement":"The process of assigning a settlement value (a payout amount) to expired Contracts by determining whether the payout criterion of the contract has been met. During settlement, all expired Contracts are closed and payout is made to the appropriate member accounts. ","Settlement Fee":"The amount deducted by HedgeStreet as its fee for settlement services when a payout is made during settlement. ","Short":"On HedgeStreet, \"short\" refers to a Variable Contract position that increases in value as the underlying asset decreases and decreases in value as the underlying asset increases. ","Speculating":"Taking a position on an uncertain outcome in anticipation of making a profit, but with the risk of taking a loss. ","Spot Contracts":"Contracts with a short-term maturity (or lifetime) not exceeding a 48 hour period (also known as Spot \"Daily\" Contracts). ","SSN":"Social Security Number. ","Tick Size":"For Variable Contracts, this is the incremental unit of measurement representing a point movement in the underlying asset. ","Time Stamp":"Date and time of the content displayed on a HedgeStreet web page. Clicking the Refresh link will update this information. The time stamp is located at the top right corner of each page. ","Time Remaining":"The period of time, represented in days, hours, and minutes, left until a contract is no longer available for trading. It is calculated by comparing the Last Trading Day and time for a given Contract with the current time stamp on HedgeStreet. For example, if the current time stamp for a Contract is December 29, 2005 4:37:33 PM ET, and the last trading day is 30 Dec 05 8:00PM ET, the time remaining would be 1 day, 3 hours, 22 minutes.","Total Account Value":"The total value of the account, given current Contract positions. Total Account Value is the sum of both the Market Value and Available Cash.","Total Cost":"The total amount paid by the trader, including any applicable fees, when any portion of an order is executed.","Total Cost Basis":"The total amount a trader paid for a Contract position, calculated as the average price paid per Contract (unit cost basis) multiplied by the quantity. For Short Variable Contracts, the total cost basis is $10 - unit cost basis multiplied by the quantity. ","Trade Number":"A numerical code assigned to each executed trade on HedgeStreet. ","Traded At":"The unit price for a particular Contract (i.e. the price paid per Contract to acquire a specific Contract position). If the Contracts is acquired at different times, and therefore at different prices, the Traded At price shown is the average price paid per contract for the entire position. For Futures, the value of the underlying associated with the calculated Traded At price for the Contract is shown. HedgeStreet always displays the Traded At price for the long position. For Short positions, the Traded At price shown would be the unit price at which you sold the Contract.","Trading Fee":"A fee charged to members to trade on HedgeStreet. For a current list of fees, please refer to the Fee Schedule. ","Type":"A type of transaction or order, for example, buy or sell.","Underlying":"The last underlying price reported for the underlying asset, for example, the price of Oil.","Unit Cost Basis":"The average price a trader paid for particular Contracts. For Short Variable Contracts, the unit cost basis is ($10 - unit cost basis). ","Unrealized P&L":"An \"unrealized\" profit or loss is one that has not actually occurred, but would occur if a specified transaction were to take place. ","Username":"An alias identifying an account, chosen by the account owner. Your HedgeStreet username can be between 6 and 15 alphanumeric characters (letters and/or digits). The username cannot be changed once the account has been opened. ","Vol./Open Interest":"The Daily Volume (quantity of Contracts that have been traded in a given day) and Open Interest (the total number of outstanding Contracts that are owned by participants in the market) of a Contract.","W-9":"An IRS Form that requires you to certify under penalty of perjury that your social security number is correct and that you are not subject to backup withholding. HedgeStreet requires that each member, both individuals and entities, complete this form when opening an account. ","Wire Transfer":"An electronic transfer of funds from an account at one financial institution to an account at another financial institution. "};
	function HS_GetHedgeletHref(_1){return ("javascript:HS_SelectHedgelet(  '"+_1["stHedgeletPath"]+"', '"+_1["ecHedgeletType"]+"', '"+_1["stAssetName"]+"', '"+_1["stAssetPath"]+"' , '"+HS_GetQuoteDetailURL(_1["ecHedgeletType"])+"' );");}function HS_GetQuoteDetailURL(_2){if(_2==HS_HEDGELET_TYPE_YES||_2==HS_HEDGELET_TYPE_NO){return ("/hedgelets/quotes/quotedetail.html");}else{if(_2==HS_HEDGELET_TYPE_BINARY){return ("/hedgelets/YesNo/quotedetail.html");}else{return ("");}}}var CUR_PAGE;function HS_CreateAssetDropdown(_3){CUR_PAGE=_3;var _4;_4=HS_GetCookie(HS_COOKIE_HEDGELET,HS_HEDGELET_HEDGELETTYPE);if(_4==null||typeof _4=="undefined"||_4.length==0){_4=HS_HEDGELET_TYPE_ALL;}_XMLHTTP.request("/hedgelet/service/market?out=arrMarketTree&hedgelettype="+_4+"&hedgeletclass="+HS_HEDGELET_CLASS_RETAIL,HS_CreateAssetDropdownLow,null);}function HS_CreateAssetDropdownLow(_5,_6){try{hs.util.setAssets(_5,null,"arrMarketTree");}catch(e){}var _7;_7=HS_CreateAssetDropdownLower(_5);HS_ReplaceInnerHTML("hsidHedgeletsDropDown",_7);}function HS_CreateAssetDropdownLower(_8){var _9;_9=HS_DropdownOpen("hedgelet_select_asset","HS_SelectAnotherAsset();");_9+=HS_DropdownAddOption("","- Select a Market -");_9+=HS_DropdownAddOption("","-------------------------------");var _a;_a=HS_GetCookie(HS_COOKIE_HEDGELET,HS_HEDGELET_HEDGELETTYPE);if(_a&HS_HEDGELET_TYPE_BINARY){_9+=HS_DropdownAddOption("Daily","Expiring Today",CUR_PAGE=="Daily");_9+=HS_DropdownAddOption("Weekly","Expiring This Week",CUR_PAGE=="Weekly");_9+=HS_DropdownAddOption("Calendar","Calendar View",CUR_PAGE=="Calendar");}if(isUserLoggedIn){_9+=HS_DropdownAddOption("All","All Contracts",CUR_PAGE=="All");}_9+=HS_DropdownAddOption("Results","Results",CUR_PAGE=="Results");_9+=HS_DropdownAddOption("","-------------------------------");var _b=new Array();if(_8.trim().length>0){var _c=HS_ExtractArrayByName("arrMarketTree",_8.trim());if(_c!=null){var _d=HS_FormatServiceData(_c);for(var i=0;i<_d.length;i++){var _f=_d[i][HS_HASHKEY_SUBARRAY];for(var j=0;j<_f.length;j++){var _11=_f[j][HS_HASHKEY_SUBARRAY];for(var k=0;k<_11.length;k++){_b.push(new Array(_11[k]["stAssetName"],_11[k]["stAssetPath"]));}}}}}_b.sort();for(var i=0;i<_b.length;i++){_9+=HS_DropdownAddOption(_b[i][1],_b[i][0],false);}_9+=HS_DropdownClose();return (_9);}function HS_SelectAnotherAsset(){var _13=document.getElementById("hedgelet_select_asset").options[document.getElementById("hedgelet_select_asset").selectedIndex].value;var _14,curDir;curDir="/hedgelets/YesNo";if(_13=="All"){HS_SelectTimeframe(HS_TIME_FRAME_ALL,curDir+"/period.html");}else{if(_13=="Daily"){HS_SelectTimeframe(HS_TIME_FRAME_TODAY_TOMORROW,curDir+"/period.html");}else{if(_13=="Weekly"){HS_SelectTimeframe(HS_TIME_FRAME_NEXT_WEEK,curDir+"/period.html");}else{if(_13=="Results"){window.location=curDir+"/active-trader-results.html";}else{if(_13=="Calendar"){window.location=curDir+"/calendar.html";}else{if(_13!=""){var _15=document.getElementById("hedgelet_select_asset").options[document.getElementById("hedgelet_select_asset").selectedIndex].innerHTML;var _16,strSubmarketPath,strTargetURL;_16=HS_GetCookie(HS_COOKIE_HEDGELET,HS_HEDGELET_SUBMARKETNAME);strSubmarketPath=HS_GetCookie(HS_COOKIE_HEDGELET,HS_HEDGELET_SUBMARKETPATH);strTargetURL=curDir+"/active-trader-dashboard.html";HS_SelectAssetLow(_15,_13,strTargetURL,_14,_16,strSubmarketPath);}}}}}}}
	var HS_RESULTS_ROWS=100;var bShowPendingTable=true,bShowExpiredTable=true;var nHedgeletTypePosn=0;var nSortKey=0;var nLastTradingDate=0;function HS_RunPage(_1){HS_ReplaceInnerHTML("hsidHedgeletsTitle","Results");HS_SetCookie(HS_COOKIE_HEDGELET,_1,HS_HEDGELET_HEDGELETTYPE);HS_SetCookie(HS_COOKIE_HEDGELET,"",HS_HEDGELET_ASSETNAME);HS_SetCookie(HS_COOKIE_HEDGELET,"",HS_HEDGELET_ASSETPATH);HS_CreateAssetDropdown("Results");HS_CreatePendingTable(_1);HS_CreateExpiredTable(_1);hs.util.showFooter();}function HideShowTables(){if(bShowPendingTable){HS_ShowElementById("hsidPendingTableC");}else{HS_HideElementById("hsidPendingTableC");}if(bShowExpiredTable){HS_ShowElementById("hsidExpiredTableC");}else{HS_HideElementById("hsidExpiredTableC");}if(bShowPendingTable||bShowExpiredTable){HS_HideElementById("hsidNoResults");HS_ShowElementById("hsidDailyBulletinLinkC");}if(!bShowPendingTable&&!bShowExpiredTable){HS_HideElementById("hsidDailyBulletinLinkC");HS_ShowElementById("hsidNoResults");}}function HS_CreateExpiredTable(_2){_XMLHTTP.request("/hedgelet/service/hedgelet-results?out=arrData&hedgelettype="+_2+"&timeframe="+HS_TIME_FRAME_ALL+"&periodicity="+HS_PERIODICITY_ALL+"&status="+HS_STATUS_EXPIRED+"&hedgeletclass="+HS_HEDGELET_CLASS_RETAIL,HS_CreateExpiredTableLow,null);}function HS_CreateExpiredTableLow(_3,_4){if(_3.trim().length>0){eval(_3.trim());if(typeof arrData!="undefined"&&arrData!=null){HS_MakeExpiredTable(arrData);}}}function HS_CreatePendingTable(_5){_XMLHTTP.request("/hedgelet/service/hedgelet-results?out=arrData&hedgelettype="+_5+"&timeframe="+HS_TIME_FRAME_ALL+"&periodicity="+HS_PERIODICITY_ALL+"&status="+HS_STATUS_STOPPED+"&hedgeletclass="+HS_HEDGELET_CLASS_RETAIL,HS_CreatePendingTableLow,null);}function HS_CreatePendingTableLow(_6,_7){if(_6.trim().length>0){eval(_6.trim());if(typeof arrData!="undefined"&&arrData!=null){HS_MakePendingTable(arrData);}}}function HS_MakePendingTable(_8){var _9;var _a,objElement;var _b=HS_GetElementByID("hsidPendingTableTemplate");var _c=HS_GetElementByID("hsidPendingTable");var _d="";if(_b!=null&&_c!=null){while(_c.rows.length>0){try{_c.removeChild(_c.rows[0]);}catch(e){}}var _e=null;var _f="";var _10="";var _11=null;var _12=0;_a=HS_GetElementByID("hsidPendingTableHeaderRow");if(_a!=null){_a=_a.cloneNode(true);_c.appendChild(_a);_a.id="";_a.style.display="";var obj=getElementByName(_a,"a","pending");if(obj!=null){hs.ui.linkHelp(obj);}var obj=getElementByName(_a,"a","result");if(obj!=null){hs.ui.linkHelp(obj);}}var _14=_8.get("daLastTradingDate");nAssetName=HS_FindServiceData(_8[0],"stAssetName");nSortKey=HS_FindServiceData(_8[0],"stSortKey");nLastTradingDate=HS_FindServiceData(_8[0],"daLastTradingDate");var _15,stHedgeletPath,lQuoteDelayMsec,stHedgeletName,ecHedgeletType,stUnderlyingValue,cySettlementPrice,cyPayout;var _16=_8[0];_8.shift();_8=_8.sort(HS_CompareAssetHedgeletSeries_Hedgelet);_8.unshift(_16);for(var i=1;i<_8.length;i++){_9=_8[i];_15=_8.get("tmLastTradingDayCloseTime",i);stHedgeletPath=_8.get("stHedgeletPath",i,true);lQuoteDelayMsec=_8.get("lQuoteDelayMsec",i,true);stHedgeletName=_8.get("stHedgeletName",i,true);ecHedgeletType=_8.get("ecHedgeletType",i,true);stUnderlyingValue=_8.get("bdUnderlyingValue",i,true);cySettlementPrice=_8.get("cySettlementPrice",i,true);cyPayout=_8.get("cyPayout",i,true);stAssetPath=_8.get("stAssetPath",i,true);stAssetName=_8.get("stAssetName",i,true);_14=_8.get("daLastTradingDate",i,true);if(_e==null||_e[0]!=_14[0]||_e[1]!=_14[1]||_e[2]!=_14[2]){if(_e!=null){_a=HS_GetElementByID("hsidPendingTableEmptyRow2");if(_a!=null){_a=_a.cloneNode(true);_c.appendChild(_a);_a.id="";_a.style.display="";}}_a=HS_GetElementByID("hsidPendingTableDateRow");if(_a!=null){_a=_a.cloneNode(true);_c.appendChild(_a);_a.id="";_a.style.display="";_a.cells[0].innerHTML=HS_GenerateDateSimple(_14);_e=_14;_f="";_10="";_11=null;}}if(_f==""||_f!=stHedgeletPath){_f=stHedgeletPath;_10="";_11=null;}_a=HS_GetElementByID("hsidPendingTableHedgeletRow");if(_a!=null){if(_12!=lQuoteDelayMsec){_12=lQuoteDelayMsec;}_a=_a.cloneNode(true);_c.appendChild(_a);_a.id="";_a.style.display="";if(_10==""||_10!=stHedgeletName){objElement=getElementByName(_a,"a","link_hedgelet");if(objElement!=null){objElement.id="";objElement.href="javascript:HS_SelectHedgelet(  '"+stHedgeletPath+"', '"+ecHedgeletType+"', '"+stAssetName+"', '"+stAssetPath+"' , '"+HS_GetQuoteDetailURL(ecHedgeletType)+"' );";objElement.innerHTML=stHedgeletName;}}_a.cells[1].innerHTML="Pending";var _18=new Date(arrCurrTime[1][0],arrCurrTime[1][1]-1,arrCurrTime[1][2],arrCurrTime[1][3],arrCurrTime[1][4],arrCurrTime[1][5]);var _19=new Date(_14[0],_14[1]-1,_14[2],_15[0],_15[1],_15[2]);var _1a=Math.round((_19.getTime()-_18.getTime())/1000);if(_11==null||_11!=_1a){_11=_1a;}_10=stHedgeletName;}}}if(_8.length<=1){bShowPendingTable=false;}else{bShowPendingTable=true;}HideShowTables();hs.util.finalizePage();}var nTempLen=HS_RESULTS_ROWS;var nIndex=1;var _arrExpiredHedgelets=null;var _objTable=null;var _arrCurrDate=null;function HS_MakeExpiredTable(_1b){var _1c;var _1d,objElement;var _1e=HS_GetElementByID("hsidExpiredTableTemplate");var _1f=HS_GetElementByID("hsidExpiredTable");var _20="";_arrExpiredHedgelets=_1b;if(_1e!=null&&_1f!=null){while(_1f.rows.length>0){try{_1f.removeChild(_1f.rows[0]);}catch(e){}}_objTable=_1f;_1d=HS_GetElementByID("hsidExpiredTableHeaderRow");if(_1d!=null){_1d=_1d.cloneNode(true);_1f.appendChild(_1d);_1d.id="";_1d.style.display="";var obj=getElementByName(_1d,"a","result");if(obj!=null){hs.ui.linkHelp(obj);}var obj=getElementByName(_1d,"a","underlying");if(obj!=null){hs.ui.linkHelp(obj);}var obj=getElementByName(_1d,"a","buyerpayout");if(obj!=null){hs.ui.linkHelp(obj);}var obj=getElementByName(_1d,"a","sellerpayout");if(obj!=null){hs.ui.linkHelp(obj);}}var _22=_1b.get("daLastTradingDate");nAssetName=HS_FindServiceData(_1b[0],"stAssetName");nSortKey=HS_FindServiceData(_1b[0],"stSortKey");nLastTradingDate=HS_FindServiceData(_1b[0],"daLastTradingDate");var _23=_1b[0];_1b.shift();_1b=_1b.sort(HS_CompareAssetHedgeletSeries_HedgeletReverse);_1b.unshift(_23);HS_DrawExpiredTable();}if(_1b.length<=1){bShowExpiredTable=false;}else{bShowExpiredTable=true;}HideShowTables();hs.util.finalizePage();}function HS_DrawExpiredTable(){var _24=_arrExpiredHedgelets.length;if(nTempLen>_24){nTempLen=_24;}var _25=_arrCurrDate;var _26="";var _27="";var _28=null;var _29=0;var _2a,tmLastTradingDayCloseTime,stHedgeletPath,lQuoteDelayMsec,stHedgeletName,ecHedgeletType,stUnderlyingValue,cySettlementPrice,cyPayout,stAssetPath,stAssetName,_2a;for(var i=nIndex;i<nTempLen;i++){arrHedgelet=_arrExpiredHedgelets[i];tmLastTradingDayCloseTime=_arrExpiredHedgelets.get("tmLastTradingDayCloseTime",i,true);stHedgeletPath=_arrExpiredHedgelets.get("stHedgeletPath",i,true);lQuoteDelayMsec=_arrExpiredHedgelets.get("lQuoteDelayMsec",i,true);stHedgeletName=_arrExpiredHedgelets.get("stHedgeletName",i,true);ecHedgeletType=_arrExpiredHedgelets.get("ecHedgeletType",i,true);stUnderlyingValue=_arrExpiredHedgelets.get("bdUnderlyingValue",i,true);cySettlementPrice=_arrExpiredHedgelets.get("cySettlementPrice",i,true);cyPayout=_arrExpiredHedgelets.get("cyPayout",i,true);stAssetPath=_arrExpiredHedgelets.get("stAssetPath",i,true);stAssetName=_arrExpiredHedgelets.get("stAssetName",i,true);_2a=_arrExpiredHedgelets.get("daLastTradingDate",i,true);if(_25==null||_25[0]!=_2a[0]||_25[1]!=_2a[1]||_25[2]!=_2a[2]){if(_25!=null){objRow=HS_GetElementByID("hsidExpiredTableEmptyRow2");if(objRow!=null){objRow=objRow.cloneNode(true);_objTable.appendChild(objRow);objRow.id="";objRow.style.display="";}}objRow=HS_GetElementByID("hsidExpiredTableDateRow");if(objRow!=null){objRow=objRow.cloneNode(true);_objTable.appendChild(objRow);objRow.id="";objRow.style.display="";objRow.cells[0].innerHTML=HS_GenerateDateSimple(_2a);_25=_2a;_arrCurrDate=_2a;_26="";_27="";_28=null;}}if(_26==""||_26!=stHedgeletPath){_26=stHedgeletPath;_27="";_28=null;}objRow=HS_GetElementByID("hsidExpiredTableHedgeletRow");if(objRow!=null){if(_29!=lQuoteDelayMsec){_29=lQuoteDelayMsec;}objRow=objRow.cloneNode(true);_objTable.appendChild(objRow);objRow.id="";objRow.style.display="";if(_27==""||_27!=stHedgeletName){objElement=getElementByName(objRow,"a","link_hedgelet");if(objElement!=null){objElement.id="";objElement.href="javascript:HS_SelectHedgelet(  '"+stHedgeletPath+"', '"+ecHedgeletType+"', '"+stAssetName+"', '"+stAssetPath+"' , '"+HS_GetQuoteDetailURL(ecHedgeletType)+"' );";objElement.innerHTML=stHedgeletName;}}objRow.cells[1].innerHTML=stUnderlyingValue;if(stHedgeletPath!=null){var _2c=stHedgeletPath.split(".");if(_2c.length>=2&&_2c[1]!=null&&_2c[1].indexOf("(1)")==0){if(stUnderlyingValue=="0"){objRow.cells[1].innerHTML="No";}else{if(stUnderlyingValue=="1"){objRow.cells[1].innerHTML="Yes";}else{objRow.cells[1].innerHTML="-";}}}else{if(stUnderlyingValue==""){objRow.cells[1].innerHTML="-";}}}if(ecHedgeletType==HS_HEDGELET_TYPE_VARIABLE){objRow.cells[2].innerHTML=HS_GenerateCurrency(cySettlementPrice);var _2d=HS_CurrencyToFloat(cyPayout)-HS_CurrencyToFloat(cySettlementPrice);objRow.cells[3].innerHTML=HS_GenerateCurrency(HS_FloatToCurrency(cySettlementPrice[0],_2d));}else{objRow.cells[2].innerHTML=HS_GenerateCurrency(cySettlementPrice);if(HS_GenerateCurrency(cySettlementPrice)=="-"){objRow.cells[3].innerHTML="-";}else{objRow.cells[3].innerHTML=HS_GenerateCurrency(HS_FloatToCurrency(cySettlementPrice[0],HS_GenerateCurrencyN(cyPayout)-HS_CurrencyToFloat(cySettlementPrice)));}}var _2e=new Date(arrCurrTime[1][0],arrCurrTime[1][1]-1,arrCurrTime[1][2],arrCurrTime[1][3],arrCurrTime[1][4],arrCurrTime[1][5]);var _2f=new Date(_2a[0],_2a[1]-1,_2a[2],tmLastTradingDayCloseTime[0],tmLastTradingDayCloseTime[1],tmLastTradingDayCloseTime[2]);var _30=Math.round((_2f.getTime()-_2e.getTime())/1000);if(_28==null||_28!=_30){_28=_30;}_27=stHedgeletName;}}if(nTempLen<_24){nIndex=nTempLen;nTempLen+=HS_RESULTS_ROWS;document.body.style.cursor="wait";setTimeout("HS_DrawExpiredTable();",10);}else{document.body.style.cursor="default";}}
          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);
    var HS_DELIMITER="|||";var HS_COOKIE_BROWSING="hs_browsepref";var HS_BROWSING_SITE=0;var SITETYPE_RETAIL=1;var SITETYPE_INSTITUTIONAL=2;var SITETYPE_DASHBOARD=2;var HS_COOKIE_TEMP1="hs_temp1";var HS_COOKIE_SESSIONERROR="hs_sessionerror";var HS_COOKIE_TARGETURL="hs_targeturl";var HS_COOKIE_CONTACTUS="hs_contactus";var HS_COOKIE_USER="hs_user";var HS_USER_LOGINID=0;var HS_USER_ACCOUNTNUMBER=1;var HS_USER_ACCOUNTNAME=2;var HS_USER_ACCOUNTDISPLAY=3;var HS_USER_TRADERID=4;var HS_COOKIE_STATE="hs_user_state";var HS_USER_STATE=0;var USER_STATE_MEMBER=1;HS_DeclarePersistentCookie(HS_COOKIE_STATE,30);HS_DeclarePersistentCookie(HS_COOKIE_BROWSING,30);
	function HS_SetContentFooter(_1){var id="hsidContentFooter";HS_ReplaceInnerHTML(id,_1);}function HS_SetContentStatus(_3,_4){var id="hsidContentEmpty";if(_3){HS_ReplaceInnerHTML(id,"");HS_HideElementById(id);}else{HS_ReplaceInnerHTML(id,_4);HS_ShowElementById(id,"inline");}}function HS_GetTimeDelayFooter(_6){var _7="";if(typeof _6!="undefined"){if(_6<=0){if(arrSession.get("ecSystemState")==HTS_SYSTEMSTATE_UNAVAILABLE){_7="delayed HedgeStreet prices";}else{_7="Real-time HedgeStreet prices";}}else{_6/=1000;if(_6>=60){_7=Math.round(_6/60)+"-minute";}else{_7=_6+"-second";}_7+=" delayed prices.";}}else{if(isUserLoggedIn){if(arrSession.get("ecSystemState")==HTS_SYSTEMSTATE_UNAVAILABLE){_7="delayed HedgeStreet prices";}else{_7="Real-time HedgeStreet prices";}}else{_7="30-minute delayed prices.";}}return _7;}function HS_WriteHedgeletTimeDelayFooter(_8){HS_WriteBodyFooter("hsidHSHedgeletTimeDelayFooter",HS_GetTimeDelayFooter(_8));}function HS_WriteHedgeletTradeFooter(){var _9="";_9="Please note that it is the Member's responsiblity to ensure that any order placed on the market has sufficient funds/contracts upon execution of such orders.  If, upon execution of any order, the member does not have adequate funds or contracts available to satisfy the transaction, an Insufficent Funds Fee will apply.";HS_WriteBodyFooter("hsidHSHedgeletTradeFooter",_9);}function HS_WriteBodyFooter(id,_b){HS_ReplaceInnerHTML(id,"<span class=\"footertext\">"+_b+"</span>");}function HS_GenerateHedgeletsSubmenu(_c){var _d=document.URL;var _e,arrSideLinks;_e=new Array();arrSideLinks=new Array(new Array("Pending and Settled Contracts","javascript:HS_PendingSettledHedgelets( false );",""));_e[0]=new Array("quotesandcharts.gif","/hedgelets/quotes/",false);_e[1]=new Array("profiletab.gif","/hedgelets/profile/",false);_e[2]=new Array("details.gif","/hedgelets/prospectus/",false);if(_d.match("/hedgelets/quotes/")){_e[0][0]="quotesandcharts_select.gif";_e[0][2]=true;}if(_d.match("/hedgelets/profile/")){_e[1][0]="profiletab_select.gif";_e[1][2]=true;}if(_d.match("/hedgelets/prospectus/")){_e[2][0]="details_select.gif";_e[2][2]=true;}return HS_GenerateSubmenu(_e,arrSideLinks,_c);}function HS_GenerateTradeSubmenu(_f){return HS_GenerateTradeSubmenu2(_f,false);}function HS_GenerateTradeSubmenu2(_10,_11){var _12=document.URL;var _13,arrSideLinks;_13=new Array();arrSideLinks=new Array(new Array("Calculator","javascript:HS_Calculator();",""));_13[0]=new Array("placeorders.gif","/trade/order/",false);_13[1]=new Array("openorder.gif","/trade/openorders/",false);_13[2]=new Array("hist.gif","/trade/history/",false);if(_12.match("/trade/order/")){_13[0][0]="placeorders_select.gif";_13[0][2]=true;}if(_12.match("/trade/openorders/")){_13[1][0]="openorder_select.gif";_13[1][2]=true;}if(_12.match("/trade/history/")){_13[2][0]="hist_select.gif";_13[2][2]=true;}return HS_GenerateSubmenu(_13,arrSideLinks,_10);}function HS_GenerateSubmenu(_14,_15,_16){var _17="";_17+="<table class=\"fillwidth\"><tr><td class=\"height5\"></td></tr><tr><td class=\"fillwidth\">";_17+="<table class=\"bgrepeatx fillwidth whitebg\" background=\""+_16+"/hedgelets_submenu/subnav_bg.gif\"><tr>";_17+="<td class=\"width15\" nowrap></td>";for(i=0;i<_14.length;i++){if(i>0){}_17+="<td class=\"alignleft padall0\" nowrap><a href=\""+_14[i][1]+"\"><img src=\""+_16+"/hedgelets_submenu/"+_14[i][0]+"\"></a></td>";}_17+="<td class=\"fillwidth alignright valignmiddle\">";for(i=0;i<_15.length;i++){var _18=_15[i];if(i>0){_17+="&nbsp;&nbsp;&nbsp;";}if(_18!=null&&_18.length>2){_17+="<a class=\"linkBold\" href=\""+_18[1]+"\"";if(_18[2]!=""){_17+=" target=\""+_18[2]+"\"";}_17+=">"+_18[0]+"</a>";}}_17+="</td>";_17+="<td class=\"width10\" nowrap></td>";_17+="</tr></table>";_17+="</td></tr></table>";return _17;}function HS_GenerateRetailTradeSubheader(_19,_1a,_1b){var _1c;_1c="";_1c+="<table><tr>";_1c+="<td class=\"valigntop\"><span class=titleBold>"+_19+"</span>";_1c+="<span class=title>"+_1a+"</span></td>&nbsp;&nbsp;";_1c+="<td class=\"valignmiddle\">";if(_1b){_1c+="<a href=\"/trade/preferences/\">Order Preferences</a>";}_1c+="</td>";_1c+="</tr></table>";return _1c;}function HS_GenerateTradeSubheader(_1d,_1e,_1f){var _20;_20="";_20+="<table><tr>";_20+="<td class=\"valigntop\"><h1>"+_1d+"</h1></td>";_20+="<td class=\"valignmiddle\">";if(_1e){if(_1f){_20+="<a href=\"/trade/preferences/\">Order Preferences</a>";}else{_20+="<a href=\"/i/trading/preferences/\">Order Preferences</a>";}}_20+="</td>";_20+="</tr></table>";return _20;}function HS_WriteBoxedContent(id,_22,_23,_24,_25){HS_WriteBoxedContent2(id,_22,_23,"left",_24,_25);}function HS_WriteBoxedContent2(id,_27,_28,_29,_2a,_2b){HS_ReplaceInnerHTML(id,HS_GenerateBoxedContent2(_27,_28,_29,_2a,_2b));}function HS_GenerateBoxedContent(_2c,_2d,_2e,_2f){return HS_GenerateBoxedContent2(_2c,_2d,"left",_2e,_2f);}function HS_GenerateBoxedContent2(_30,_31,_32,_33,_34){return HS_GenerateBoxedContent3(_30,_31,_32,new Array(5,5,5,5),_33,_34,new Array(5,5,5,5));}function HS_GenerateBoxedContent3(_35,_36,_37,_38,_39,_3a,_3b){return HS_GenerateBoxedContent4(_35,_36,_37,_38,_39,_3a,"left",_3b,true);}function HS_GenerateBoxedContent4(_3c,_3d,_3e,_3f,_40,_41,_42,_43,_44){var _45,rowColor="",Contentcolor="";var _46="toptextsmall ";var _47="";if(_3c=="#006600"){rowColor="greenbg";}if(_44){_46=_46+"silverborder ";_47=_47+"silverborder ";}if(_3e=="left"){_46=_46+"alignleft "+"valigncenter "+"padall5";}else{_46=_46+"valigncenter "+"padall5";}if(_42=="center"){_47=_47+"aligncenter "+"valigncenter "+"padall5";}else{_47=_47+"valigncenter "+"padall5";}if(_40==""){Contentcolor="greybg";}_45=""+"<table class=\"fillwidth\">\n"+"<tr class=\""+rowColor+"\">\n"+"  <td class=\""+_46+"\">\n"+"    "+_3d+"\n"+"  </td>\n"+"</tr>\n"+"<tr class=\""+Contentcolor+"\">\n"+"  <td class=\""+_47+"\">\n"+"    "+_41+"\n"+"  </td>\n"+"</tr>\n"+"</table>\n";return _45;}function HS_GenerateRightRail(_48,_49){var _4a,strOutput;strOutput="";for(i=0;i<_49.length;i++){strOutput+="<li><a href=\""+_49[i][1]+"\">"+_49[i][0]+"</a></li>";}return HS_GenerateBoxedContent("#006600",_48,"",strOutput);}function HS_DropdownOpen(id,_4c){var _4d;_4d="<select class=\"valignmiddle dropdown\" ";if(id!=""){_4d+=" id=\""+id+"\"";}if(_4c!=""){_4d+=" onchange=\""+_4c+"\"";}_4d+=">";return (_4d);}function HS_DropdownAddOption(_4e,_4f,_50){var _51;_51="<option value=\""+_4e+"\"";if(_50){_51+=" selected";}_51+=">"+_4f+"</option>";return (_51);}function HS_DropdownClose(){return ("</select>");}function HS_Generate_FAQ(_52,_53){var _54="<table>";var _55="";for(var i=0;i<_52.length;i++){_55=_52[i][1]+"/"+_52[i][2]+"#"+_52[i][3];_54+="<tr><td style=\"padding-right:2px;\" valign=top><a href=\"javascript:PopUpWindow('"+_55+"');\"><img src=\"/images/arrow_yellow_sm.gif\" alt=\"\" /></a> </td><td style=\"padding-left:2px;\" valign=top> <a href=\"javascript:PopUpWindow('"+_55+"');\">"+_52[i][0]+"</a></td></tr>";}_54+="</table>";HS_ReplaceInnerHTML("hsidRightRailFaqDetails",_54);HS_ReplaceInnerHTML("hsidRightRailFaqHeader",_53);}
	HS_Form.prototype=new HS_Object();HS_Form.prototype.constructor=HS_Form;function HS_Form(_1,_2,_3,_4){if(arguments.length>0){this.init(_1,_2,_3,_4);}this.className="HS_Form";}HS_Form.prototype.init=function(_5,_6,_7,_8){var _9="";this.baseInit=HS_Object.prototype.init;this.baseInit(_5);var id="";if(typeof _6!="undefined"&&_6!=null){id=_6;}var _b=null;if(id.length>0){_b=document.getElementById(id);}if(_b!=null){_b.name=_b.id;}this.formName="";this.updateFormName=function(){var _c=_9.lastIndexOf("/");if(_c>=0){this.formName=_9.substring(_c+1);}else{this.formName="";}if(this.formName.length>0&&_b!=null){_b.name=this.formName;}};if(typeof _7!="undefined"&&_7!=null){_9=_7;this.updateFormName();}var _d=null;var _e=new Array();var _f=true;var _10=false;var _11=null;if(typeof _8!="undefined"&&_8!=null){_11=_8;}var _12=new Array();var _13=true;this.enableErrorOutput=function(){_13=true;};this.disableErrorOutput=function(){_13=false;};this.getErrors=function(){return _12;};this.clearErrors=function(){_12=new Array();if(_13){var _14=document.getElementById("hsidHSErrorMessages");if(_14!=null){_14.innerHTML="";}var _15=document.getElementById("hsidHSErrorDialog");if(_15!=null){_15.style.display="none";}}};this.reportError=function(key){if(_13){var str="";if(typeof HS_ErrorDisplayHandler!="undefined"){str=HS_ErrorDisplayHandler(key);}if(str.length>0){var _18=document.getElementById("hsidHSErrorDialog");if(_18!=null){_18.style.display="block";var _19=document.getElementById("hsidHSErrorMessages");if(_19!=null){var _1a=document.createElement("div");_19.appendChild(_1a);_1a.innerHTML=str;}}}}this.log("report error: "+key);_12.push(key);};this.getServiceData=function(_1b){if(_d==null){return null;}if(typeof _1b=="undefined"||_1b==null||_1b.length<=0){return _d;}var _1c=_d[HS_HASHKEY_SUBARRAY+"2"];if(typeof _1c!="undefined"&&_1c!=null&&_1c.length>0){for(var i=0;i<_1c.length;i++){var _1e=_1c[i];if(_1b==_1e["stFieldName"]){return _1e;}}}return null;};this.getDisplayData=function(key){if(_d==null){return "";}var _20="";var _21=_d[HS_HASHKEY_SUBARRAY+"1"];if(typeof _21!="undefined"&&_21!=null&&_21.length>0){_20=_21[0][key];if(typeof _20=="undefined"||_20==null){_20="";}}return _20;};this.getForward=function(_22){if(typeof _22=="undefined"||_22==null||_22.trim().length<=0){return null;}for(var i=0;i<_e.length;i++){var _24=_e[i];if(_24[0].trim()==_22.trim()){return _24[1];}}return null;};this.setForward=function(_25,_26){if(typeof _25=="undefined"||_25==null||_25.trim().length<=0){return;}if(typeof _26=="undefined"||_26==null||_26.trim().length<=0){return;}for(var i=0;i<_e.length;i++){var _28=_e[i];if(_28[0].trim()==_25.trim()){return;}}_e.push(new Array(_25.trim(),_26.trim()));};this.setURL=function(_29){if(typeof _29!="undefined"&&_29!=null){_9=_29;this.updateFormName();}};this.modifyForward=function(_2a,_2b){if(typeof _2a=="undefined"||_2a==null||_2a.trim().length<=0){return;}if(typeof _2b=="undefined"||_2b==null||_2b.trim().length<=0){return;}for(var i=0;i<_e.length;i++){var _2d=_e[i];if(_2d[0].trim()==_2a.trim()){_2d[1]=_2b;return;}}_e.push(new Array(_2a.trim(),_2b.trim()));};this.run=function(_2e,_2f){if(_9.trim().length<=0){return;}_d=null;this.clearErrors();var _30=false;var _31=_9+"?out=arrFormData";if(typeof _2f!="undefined"&&_2f!=null){if(_2f){_30=true;}}if(!_30){var _32="";if(typeof _2e!="undefined"&&_2e!=null){_32=_2e;}if(_32.length<=0){_32=HS_GetQueryString("formid").trim();}if(_32.length>0){this.log("existing formid: "+_32);_f=false;_31+="&formid="+_32;}}_XMLHTTP.request(_31,HS_Form_DataService_Callback,eval(this.name));};this.run2=function(_33,_34,_35){if(_9.trim().length<=0){return;}_d=null;this.clearErrors();var _36=false;var _37=_9+"?out=arrFormData";if(typeof _35!="undefined"&&_35!=null){if(_35){_36=true;}}if(!_36){var _38="";if(typeof _34!="undefined"&&_34!=null){_38=_34;}if(_38.length<=0){_38=HS_GetQueryString("formid").trim();}if(_38.length>0){this.log("existing formid: "+_38);_f=false;_37+="&formid="+_38;}}_XMLHTTP.request2(_33,_37,eval(this.name));};this.buildOutputs=function(){if(_d==null){return;}var _39=_d[HS_HASHKEY_SUBARRAY+"1"];if(typeof _39!="undefined"&&_39!=null&&_39.length>0){for(var key in _39[0]){if(key!="size"){var obj=document.getElementById("hsid"+key);if(obj==null){obj=document.getElementById(key);}if(obj!=null){var _3c=_39[0][key];if(typeof _3c=="undefined"||_3c==null){_3c="";}var _3d=key.substring(0,2);if(_3d=="cy"){_3c=HS_Form_DisplayHandler_Currency(_3c);}else{if(_3d=="da"){_3c=HS_Form_DisplayHandler_Date(_3c);}else{if(_3d=="tm"){_3c=HS_Form_DisplayHandler_Time(_3c);}else{if(_3d=="dt"){_3c=HS_Form_DisplayHandler_DateTime(_3c);}}}}if(obj.tagName.toLowerCase()=="input"&&(obj.type.toLowerCase()=="hidden"||obj.type.toLowerCase()=="text")){obj.value=_3c;}else{obj.innerHTML=_3c;}}else{this.log("no element with id="+key);}}}}this.log("Build Form Outputs");};this.buildInputs=function(){var _3e=0;if(_d==null){return;}if(_b==null){return;}var _3f=_d[HS_HASHKEY_SUBARRAY+"2"];this.log(_3f.length+" inputs");if(typeof _3f!="undefined"&&_3f!=null&&_3f.length>0){for(var i=0;i<_3f.length;i++){var _41=_3f[i];var _42=_41["stFieldName"];var _43=_41["stObjectType"];var _44=_41["obInitialDataObject"];var _45=_41["obRawStringData"];var _46=_41["obValidatDataObject"];var _47=_41["ecFieldErrorValue"];var _48=_41[HS_HASHKEY_SUBARRAY];if(typeof _47!="undefined"&&_47!=null&&_47>0){this.reportError(_42+"::"+_47);}var _49=_46;if(typeof _49=="undefined"||_49==null){_49=_45;if(typeof _49=="undefined"||_49==null){_49=_44;if(typeof _49=="undefined"||_49==null){_49="";}}}if(_43.trim().toLowerCase()=="cy"){if(_49!=null&&_49.length>0){_49=HS_Form_DisplayHandler_Currency(_49);}}if(_43.trim().toLowerCase()=="da"){if(_45!=null){_49=_45;}}this.log("input data: "+_42+" - "+_49);var _4a=eval("document.getElementById( \""+id+"\" )."+_42);if(_4a!=null){if(typeof _48!="undefined"&&_48!=null&&_48.length>0){var _4b=new Array();if(_49!=null){if(IsArray(_49)){_4b=_49;}else{_4b.push(_49);}}if(_4a.tagName.toLowerCase()=="select"){for(var j=0;j<_48.length;j++){var _4d=_48[j];if(typeof _4d!="undefined"&&_4d!=null&&_4d.size()>1){var _4e="";if((_42.match("month")||_42.match("Month"))&&typeof monthMap!="undefined"&&monthMap!=null&&monthMap instanceof Array){_4e=monthMap[_4d["stKey"]];}else{if(typeof valueAndLabelMap!="undefined"&&valueAndLabelMap!=null&&valueAndLabelMap instanceof Array){_4e=valueAndLabelMap[_4d["stKey"]];if(typeof _4e=="undefined"&&_4e==null){_4e=_4d["stKey"].replace(_4d["stKey"].substring(0,1),_4d["stKey"].substring(0,1).toUpperCase());}}else{_4e=_4d["stKey"].replace(_4d["stKey"].substring(0,1),_4d["stKey"].substring(0,1).toUpperCase());}}var obj=document.createElement("option");try{_4a.add(obj);}catch(e){_4a.add(obj,null);}obj.text=_4e;obj.value=_4d["stValue"];if(_4b.length>0){for(var k=0;k<_4b.length;k++){if(_4b[k]==obj.value){obj.selected=true;break;}}}}}}if(_4a.tagName.toLowerCase()=="input"&&(_4a.type.toLowerCase()=="checkbox"||_4a.type.toLowerCase()=="radio")){if(typeof valueOrderMap!="undefined"&&valueOrderMap instanceof Array&&_4a.type.toLowerCase()=="radio"){var _51=new Array();if(valueOrderMap[0]!=_48[0]["stValue"]){_51[0]=_48[1];_51[1]=_48[0];}for(var j=0;j<_51.length;j++){_48[j]=_51[j];}}var _52=_4a.parentNode;var _53=null;if(typeof _52!="undefined"&&_52!=null){_53=_52.parentNode;}if(typeof _52!="undefined"&&_52!=null&&typeof _53!="undefined"&&_53!=null){var _54=_53.getElementsByTagName("td");if(_52.tagName.toLowerCase()=="td"&&typeof _54!="undefined"&&_54!=null){if(typeof numCellsToKeep=="undefined"||numCellsToKeep==null){numCellsToKeep=0;}for(var x=(_54.length-1);x>=numCellsToKeep;x--){_53.removeChild(_54[x]);}}else{_53.removeChild(_52);}for(var j=0;j<_48.length;j++){var _4d=_48[j];if(typeof valueAndLabelMap!="undefined"&&valueAndLabelMap instanceof Array){var _4e=valueAndLabelMap[_4d["stValue"]];}if(typeof _4e=="undefined"||_4e==null){var _4e=_4d["stValue"];}var _56=document.createElement("td");if(typeof labelClass!="undefined"||labelClass!=null){_56.className=labelClass;}var _57=document.createElement("span");_57.setAttribute("id",_4e+_3e);_3e++;_56.appendChild(_57);_57.innerHTML=_4e;var _58=_52.cloneNode(true);_53.appendChild(_58);_53.appendChild(_56);var _59=_42+j;var obj=getElementByName(_58,"input",_42);if(obj!=null&&(obj.type.toLowerCase()=="checkbox"||obj.type.toLowerCase()=="radio")){obj.id=_59;obj.value=_4d["stValue"];if(_4b.length>0){for(var k=0;k<_4b.length;k++){if(_4b[k]==obj.value){obj.checked=true;break;}}}}obj=getElementByName(_58,"div","display");if(obj==null){obj=getElementByName(_58,"span","display");if(obj==null){obj=getElementByName(_58,"a","display");if(obj==null){obj=getElementByName(_58,"label","display");}}}if(obj!=null){var tag=obj.tagName.toLowerCase();if(tag=="label"){try{obj.htmlFor=_59;}catch(e){}}obj.innerHTML=_4d["stKey"];}}}}if(_4a.tagName.toLowerCase()=="input"&&_4a.type.toLowerCase()=="radio"){}}else{if(_4a.tagName.toLowerCase()=="input"||_4a.tagName.toLowerCase()=="textarea"){_4a.value=_49;}if(_4a.tagName.toLowerCase()=="input"&&_4a.type.toLowerCase()=="checkbox"){_4a.value=true;if(_4a.value=="true"&&_49==true){_4a.checked=true;}else{_4a.checked=false;}}}}else{this.error(""+id+" has no child node named "+_42);}}}this.log("Build Form Inputs");};this.build=function(_5b,_5c){if(typeof _5b=="undefined"||_5b==null||_5b.size()<=0){this.log("Error: cannot build form - arrFormData is invalid or empty");if(typeof _5c=="undefined"||_5c==null||_5c){if(typeof HS_Form_Finalize!="undefined"&&HS_Form_Finalize!=null){HS_Form_Finalize(null);}}return;}_d=_5b;if(typeof HS_Form_PreProcess!="undefined"&&HS_Form_PreProcess!=null){HS_Form_PreProcess(_d);}var _5d=_d["ecFormErrorValue"];if(typeof _5d!="undefined"&&_5d!=null&&_5d>0){this.reportError(id+"::"+_5d);}var _5e=_d["ecProcessErrorValue"];if(typeof _5e!="undefined"&&_5e!=null&&_5e>0){this.reportError(id+"::"+_5e);}try{this.buildOutputs();this.buildInputs();}catch(e){}if(typeof _5c=="undefined"||_5c==null||_5c){HS_Form_Finalize(_d);}};this.submit=function(_5f){if(_b==null){this.log("Error: cannot submit form - form object is null");return false;}if(_10){this.log("Error: cannot submit form - form has already been submitted");return false;}if(typeof _5f=="undefined"||_5f==null||!_5f){if(this.getFormID().length<=0){this.log("Error: cannot submit form - no valid formid");return false;}}if(_9.length<=0){this.log("Error: cannot submit form - no target form service");return false;}_10=true;var obj=document.createElement("input");obj.type="hidden";obj.name="formid";obj.value=this.getFormID();_b.appendChild(obj);for(var i=0;i<_e.length;i++){var _62=_e[i];if(_62[0].trim().length>0){obj=document.createElement("input");obj.type="hidden";obj.name=_62[0];obj.value=_62[1];_b.appendChild(obj);}}_b.method="post";_b.action=_9;var _63=true;if(_11!=null){_63=_11();}if(_63){_b.submit();}else{this.log("Error: cannot submit form - onsubmit handler returned false");return;}this.log("Submit Form: "+this.getFormID());};this.submitDirect=function(_64,_65){if(_b==null){return false;}if(_9.length<=0){return false;}_10=true;var _66=(_e==null)?[]:_e;_66.push(["formid",this.getFormID()]);_66.push(["response","direct"]);for(var i=0;i<_66.length;i++){var f=_66[i];if(f[0].trim().length>0){obj=this.getField(f[0]);if(obj==null){obj=document.createElement("input");obj.name=f[0];obj.type="hidden";_b.appendChild(obj);}obj.value=f[1];}}_b.action=_9;var _69=true;if(_11!=null){_69=_11();}if(_69){_XMLHTTP.post(_b,_64,_65);}return true;};this.getFormID=function(){if(_d==null){return "";}var _6a=_d["stFormid"];if(typeof _6a=="undefined"||_6a==null){_6a="";}return _6a;};this.getForm=function(){return _b;};this.updateField=function(_6b,_6c){var _6d=this.getField(_6b);if(_6d!=null){_6d.value=_6c;}};this.getFieldValue=function(_6e){var _6f=this.getField(_6e);if(_6f!=null){return _6f.value;}return null;};this.getField=function(_70){if(_b==null){this.log("Error: cannot get field - form does not exist");return null;}var _71=getElementByName(_b,"input",_70)||getElementByName(_b,"select",_70)||getElementByName(_b,"textarea",_70);return _71;};};HS_Form.prototype.toString=function(){this.baseToString=HS_Object.prototype.toString;return this.baseToString();};function HS_Form_DataService_Callback(_72,_73){if(typeof _73=="undefined"||_73.length<=0){return;}_72=_72.replace("\r\n"," ");var _74=HS_ExtractArrayByName("arrFormData",_72.trim());if(_74!=null){_74=HS_FormatServiceData(_74,null,true,true);}if($$(_73)){_73.build(_74);}}function HS_Form_DisplayHandler_Currency(cy){return cy.toString();}function HS_Form_DisplayHandler_Date(da){return da.toString();}function HS_Form_DisplayHandler_Time(tm){return tm.toString();}function HS_Form_DisplayHandler_DateTime(dt){return dt.toString();}function HS_Form_PreProcess(_79){}function HS_Form_Finalize(_7a){}function HS_Form_SubmitDirectSuccessful(_7b,_7c){if(!_7b){return false;}var _7d=false;try{if(_7c&&_7c.length>0){var _7e=_7b.getForward("forward_success");if(_7e){eval(_7c);if(eval("typeof "+_7e+" != \"undefined\"")){_7d=true;}}}else{_7d=true;}}catch(ex){}return _7d;}
	function CheckAmountField(_1){var _2=document.getElementById(_1).value;if(_2!=""){_2=_2.replace(",","");_2=_2.replace("$","");_2=formatAmount(_2,2);document.getElementById(_1).value=_2;}}function onInstitutionalEnter(_3,_4,_5){var _6=(document.layers)?true:false;var _7=0;if(_6){_7=_3.which;}else{_7=_3.keyCode;}if(_7==13){_5();}}function onLoginEnter(_8,_9){var _a=(document.layers)?true:false;var _b=0;if(_a){_b=_8.which;}else{_b=_8.keyCode;}if(_b==13){submitForm_loginForm();}}function onUserEmailEnter(_c){var _d=(document.layers)?true:false;var _e=0;if(_d){_e=_c.which;}else{_e=_c.keyCode;}if(_e==13){HS_Submit();}}function cancelOpenAccount(_f){if(_f==1){if(confirm("Are you sure you want to quit opening a HedgeStreet account?")){document.cancelForm.submit();}else{return false;}}else{if(_f==0){if(confirm("Are you sure you want to cancel entering your confirmation at this time?")){document.cancelForm.submit();}else{return false;}}}}function CancelDeposit(){if(document.eValuCheckForm.agreeDeposit[1].checked){if(confirm("Are you sure you want to quit depositing to your HedgeStreet account?")){document.eValuCheckForm.submit();}else{return false;}}else{document.eValuCheckForm.submit();}}function onNewRegisterEnter(_10,_11,_12){var _13=(document.layers)?true:false;var _14=0;if(_13){_14=_10.which;}else{_14=_10.keyCode;}if(_14==13&&_11!=""){_11.submit();}else{if(_14==13&&_12=="HS_Submit"){HS_Submit();}}}function eValuCheckNumberOnlyKeyPress(ev,_16,_17){var e=(ev)?ev:((window.event)?event:null);var ch=e.keyCode?e.keyCode:e.charCode;if(ch!=null){if(e.ctrlKey){if(ch==67||ch==99||ch==86||ch==118||ch==88||ch==120){return true;}}else{if(ch==13){_16.submit();return true;}else{if((ch==46&&_17)||(ch>=48&&ch<=57)||ch==0||ch==8||ch==9||ch==39){return true;}}}}if(e.preventDefault){e.preventDefault();}else{e.returnValue=false;}return false;}function numberOnlyKeyPress(_1a,_1b,_1c){var _1d=(document.layers)?true:false;var _1e=-1;_1e=_1a.which;if(!_1e||_1e==-1){_1e=_1a.keyCode;}if(_1e==13&&_1b!=""){_1b.submit();}else{if(_1e==13&&_1c=="HS_Submit"){HS_Submit();}else{if((_1e<45||_1e>57)&&_1e!=37&&_1e!=39&&_1e!=8&&_1e!=9){if(_1a.preventDefault){_1a.preventDefault();}else{_1a.returnValue=false;}return false;}else{return true;}}}}function prefillChoiceItem(_1f,_20){var _21=_1f["obInitialDataObject"];var _22=_1f["obRawStringData"];var _23=_1f["obValidatDataObject"];var _24=_23;if(typeof _24=="undefined"||_24==null){_24=_22;if(typeof _24=="undefined"||_24==null){_24=_21;if(typeof _24=="undefined"||_24==null){_24="-";}}}var _25=document.getElementById(_20);if(typeof _25!="undefined"&&_25!=null){for(i=0;i<_25.length;i++){if(_25[i].value==_24){_25[i].selected=true;}}}}function showErrors(str,_27){if(typeof _27!="undefined"&&_27){str="Please enter/correct the fields in red."+str;}else{try{if(str.indexOf("<br>")==0){str=str.substring(4);}else{if(str.indexOf("<br/>")==0){str=str.substring(5);}else{if(str.indexOf("<br />")==0){str=str.substring(6);}}}}catch(ex){}}var _28=document.getElementById("hsidErrorDialog");if(_28!=null){_28.style.display="block";var _29=document.getElementById("hsidHSErrorMessages");if(_29!=null){var _2a=document.createElement("div");_2a.style.color="#cc0000";_29.appendChild(_2a);_2a.innerHTML=str;}}}
function HS_Timeout(){var _1=document.URL;var _2=arrSession.get("ecSessionState");if(_1.match("/open-account/")){HS_SecurityRedirect2(true,"/open-account/",true);}else{if(!_1.match("/login/login.html")||_2==HS_SESSION_STATE_PENDING||_2==HS_SESSION_STATE_AUTHENTICATED){strSessionSummary="state=session.terminatedTimeout";HS_Logout(true);}}}function setSpanValue(_3,_4,_5){var _6=getElementByName(_3,"span",_4);if(_6){_6.innerHTML=_5;}}function setInnerHTML(_7,_8){HS_ReplaceInnerHTML(_7,_8);}function setFieldValue(_9,_a){if(typeof _a!="undefined"){var _b=document.getElementById(_9);if(typeof _b!="undefined"){_b.value=_a;}}}
	function createFilter(){var _1=0;for(i=0;i<createFilter.arguments.length;i++){_1+=createFilter.arguments[i];}return _1;}function HS_SetHedgeletFilters(_2){if(!IsArray(_2)||_2.length<5){return;}var _3="";var _4=HS_GetHedgeletFilters();_3+=(_2[HS_FILTER_H_TYPE]!="")?_2[HS_FILTER_H_TYPE]:_4[HS_FILTER_H_TYPE];_3+=HS_DELIMITER;_3+=(_2[HS_FILTER_H_TIMEFRAME]!="")?_2[HS_FILTER_H_TIMEFRAME]:_4[HS_FILTER_H_TIMEFRAME];_3+=HS_DELIMITER;_3+=(_2[HS_FILTER_H_PERIODICITY]!="")?_2[HS_FILTER_H_PERIODICITY]:_4[HS_FILTER_H_PERIODICITY];_3+=HS_DELIMITER;_3+=(_2[HS_FILTER_H_STATUS]!="")?_2[HS_FILTER_H_STATUS]:_4[HS_FILTER_H_STATUS];_3+=HS_DELIMITER;_3+=(_2[HS_FILTER_H_CLASS]!="")?_2[HS_FILTER_H_CLASS]:_4[HS_FILTER_H_CLASS];HS_SetCookie(HS_COOKIE_HEDGELETFILTER,_3);}function HS_GetHedgeletFilters(){var _5=false;var _6=HS_GetCookie(HS_COOKIE_HEDGELETFILTER);var _7;if(_6==null||_6.length<1){_5=true;}else{_7=_6.split(HS_DELIMITER);if(!IsArray(_7)||_7.length<5){_5=true;}else{for(var i=0;i<_7.length;i++){if(typeof _7[i]=="undefined"||_7[i]==null){_5=true;break;}}}}if(_5){return new Array(HS_HEDGELET_TYPE_ALL,HS_TIME_FRAME_ALL,HS_PERIODICITY_ALL,createFilter(HS_STATUS_OPEN,HS_STATUS_CLOSED),HS_HEDGELET_CLASS_RETAIL);}else{return _7;}}function HS_SetHedgeletFilter(id,_a){if((id<HS_FILTER_H_TYPE&&id>HS_FILTER_H_STATUS)||_a==""){return;}var _b=new Array("","","","","");_b[id]=_a;HS_SetHedgeletFilters(_b);}function HS_GetHedgeletFilter(id){if(id<HS_FILTER_H_TYPE&&id>HS_FILTER_H_STATUS){return;}var _d=HS_GetHedgeletFilters();return _d[id];}
	function HS_ShowElementVisById(id){var _2;if((_2=HS_GetElementByID(id))!=null){_2.style.visibility="visible";}}function HS_HideElementVisById(id){var _4;if((_4=HS_GetElementByID(id))!=null){_4.style.visibility="hidden";}}function HS_HideElement(_5){if(_5!=null){_5.style.display="none";}}
	function HS_FindServiceData(_1,_2){if(_1==null){return -1;}for(var i=0;i<_1.length;i++){if(_1[i]==_2){return i;}}return -1;}function HS_ServiceArray(_4){var _5=new Array();if(_4==null){return null;}for(var i=0;i<_4.length;i++){_5.push(new Array(_4,i));}if(_5.size()>0){return _5;}else{return null;}}
	function HS_ExtractArrayByName(arrayName, strBuffer) {
	    eval(strBuffer);
	
	    if (eval ('typeof ' + arrayName + ' != \'undefined\'')) {
	        eval('var newArray = ' + arrayName + ';');
	        return newArray;
	    } else {
	        return null;
	    }
	}
	
	function HS_CompareHedgeletSeries_New(_1,_2){return HS_CompareAssetHedgeletSeries_New(_1,_2);}function HS_CompareHedgeletList_New(_3,_4){return HS_CompareHedgeletSeries_New(_3,_4);}function HS_CompareAssetHedgeletSeries_desc(_5,_6){var _7;if(defaultSort=="desc"){if(_5[nVolPosn]>_6[nVolPosn]){return -1;}else{if(_5[nVolPosn]<_6[nVolPosn]){return 1;}else{if(_5[nOpenPosn]>_6[nOpenPosn]){return -1;}else{if(_5[nOpenPosn]<_6[nOpenPosn]){return 1;}else{return 0;}}}}}else{if(defaultSort=="asc"){if(_5[nVolPosn]<_6[nVolPosn]){return -1;}else{if(_5[nVolPosn]>_6[nVolPosn]){return 1;}else{if(_5[nOpenPosn]<_6[nOpenPosn]){return -1;}else{if(_5[nOpenPosn]>_6[nOpenPosn]){return 1;}else{return 0;}}}}}}}function HS_CompareAssetHedgeletSeries_Hedgelet(_8,_9){var n1=nAssetName;var n2=nSortKey;var n3=nLastTradingDate;iResult=HS_CompareDate(_8[n3],_9[n3]);if(iResult!=0){return iResult;}else{if(_8[n1]<_9[n1]){return -1;}else{if(_8[n1]>_9[n1]){return 1;}else{if(_8[n2]<_9[n2]){return -1;}else{if(_8[n2]>_9[n2]){return 1;}else{return 0;}}}}}}function HS_CompareAssetHedgeletSeries_HedgeletReverse(_d,_e){var n1=nAssetName;var n2=nSortKey;var n3=nLastTradingDate;iResult=-(HS_CompareDate(_d[n3],_e[n3]));if(iResult!=0){return iResult;}else{if(_d[n1]<_e[n1]){return -1;}else{if(_d[n1]>_e[n1]){return 1;}else{if(_d[n2]<_e[n2]){return -1;}else{if(_d[n2]>_e[n2]){return 1;}else{return 0;}}}}}}function HS_CompareAssetHedgeletSeries_Sort(_12,_13){var _14;var n1;if(colClicked==MOST_ACTIVES_HIGHEST_VOLUME){n1=nVolPosn;}else{if(colClicked==MOST_ACTIVES_ADVANCERS_PERCENT_CHANGE){n1=nChangePosn;}else{if(colClicked==MOST_ACTIVES_DECLINERS_PERCENT_CHANGE){n1=nChangePosn;}else{if(colClicked==MOST_ACTIVES_HIGHEST_OPEN_INTEREST){n1=nOpenPosn;}}}}if(colClicked!=MOST_ACTIVES_DECLINERS_PERCENT_CHANGE){if(_12[n1]>_13[n1]){return -1;}else{if(_12[n1]<_13[n1]){return 1;}else{return 0;}}}else{if(_12[n1]<_13[n1]){return -1;}else{if(_12[n1]>_13[n1]){return 1;}else{return 0;}}}}function HS_CompareAssetHedgeletSeries_New_Reverse(_16,_17){var _18;_18=-(HS_CompareDate(_16[nLastTradingDate],_17[nLastTradingDate]));if(_18!=0){return _18;}else{if(_16[nSortKey]<_17[nSortKey]){return -1;}else{if(_16[nSortKey]>_17[nSortKey]){return 1;}else{if(_16[nHedgeletTypePosn]<_17[nHedgeletTypePosn]){return -1;}else{if(_16[nHedgeletTypePosn]>_17[nHedgeletTypePosn]){return 1;}else{return 0;}}}}}}function HS_CompareAssetHedgeletSeries_Latest(_19,_1a){var _1b;_1b=HS_CompareDate(_19[nLastTradingDate],_1a[nLastTradingDate]);if(_1b!=0){return _1b;}else{if(_19[nSortKey]<_1a[nSortKey]){return -1;}else{if(_19[nSortKey]>_1a[nSortKey]){return 1;}else{if(_19[nHedgeletTypePosn]<_1a[nHedgeletTypePosn]){return -1;}else{if(_19[nHedgeletTypePosn]>_1a[nHedgeletTypePosn]){return 1;}else{return 0;}}}}}}function HS_CompareMarkets_New(_1c,_1d){if(_1c["stMarketName"]<_1d["stMarketName"]){return -1;}else{if(_1c["stMarketName"]>_1d["stMarketName"]){return 1;}else{return 0;}}}function HS_CompareSubmarkets_New(_1e,_1f){if(_1e["stSubmarketName"]<_1f["stSubmarketName"]){return -1;}else{if(_1e["stSubmarketName"]>_1f["stSubmarketName"]){return 1;}else{return 0;}}}function HS_CompareAssets_New(_20,_21){if(_20["stAssetName"]<_21["stAssetName"]){return -1;}else{if(_20["stAssetName"]>_21["stAssetName"]){return 1;}else{return 0;}}}function HS_ComparePendingSettledHedgeletSeries_New(_22,_23){var _24;if(HS_IsPending(_22["ecHedgeletStatus"])&&!HS_IsPending(_23["ecHedgeletStatus"])){return -1;}else{if(!HS_IsPending(_22["ecHedgeletStatus"])&&HS_IsPending(_23["ecHedgeletStatus"])){return 1;}else{_24=HS_CompareDate(_22["daSettlementDate"],_23["daSettlementDate"]);if(_24!=0){if(HS_IsSettled(_22["ecHedgeletStatus"])){return -(_24);}else{return _24;}}else{if(_22["stAssetName"]<_23["stAssetName"]){return -1;}else{if(_22["stAssetName"]>_23["stAssetName"]){return 1;}else{if(_22["stSortKey"]<_23["stSortKey"]){return -1;}else{if(_22["stSortKey"]>_23["stSortKey"]){return 1;}else{if(_22["ecHedgeletType"]<_23["ecHedgeletType"]){return -1;}else{if(_22["ecHedgeletType"]>_23["ecHedgeletType"]){return 1;}else{return 0;}}}}}}}}}}function HS_CompareHedgeletsHedgeletSeries_New(_25,_26){var _27;var dt1=new Array(_25["daLastTradingDate"][0],_25["daLastTradingDate"][1],_25["daLastTradingDate"][2],_25["tmLastTradingDayCloseTime"][0],_25["tmLastTradingDayCloseTime"][1],_25["tmLastTradingDayCloseTime"][2],_25["tmLastTradingDayCloseTime"][3],_25["tmLastTradingDayCloseTime"][4]);var dt2=new Array(_26["daLastTradingDate"][0],_26["daLastTradingDate"][1],_26["daLastTradingDate"][2],_26["tmLastTradingDayCloseTime"][0],_26["tmLastTradingDayCloseTime"][1],_26["tmLastTradingDayCloseTime"][2],_26["tmLastTradingDayCloseTime"][3],_26["tmLastTradingDayCloseTime"][4]);_27=HS_CompareDateTime(dt1,dt2);if(_27!=0){return _27;}else{if(_25["stAssetName"]<_26["stAssetName"]){return -1;}else{if(_25["stAssetName"]>_26["stAssetName"]){return 1;}else{if(_25["stSortKey"]<_26["stSortKey"]){return -1;}else{if(_25["stSortKey"]>_26["stSortKey"]){return 1;}else{if(_25["ecHedgeletType"]<_26["ecHedgeletType"]){return -1;}else{if(_25["ecHedgeletType"]>_26["ecHedgeletType"]){return 1;}else{return 0;}}}}}}}}function HS_CompareDailyBulletin_New(_2a,_2b){var _2c;if(_2a["stMarketName"]<_2b["stMarketName"]){return -1;}else{if(_2a["stMarketName"]>_2b["stMarketName"]){return 1;}else{if(_2a["stSubmarketName"]<_2b["stSubmarketName"]){return -1;}else{if(_2a["stSubmarketName"]>_2b["stSubmarketName"]){return 1;}else{if(_2a["stAssetName"]<_2b["stAssetName"]){return -1;}else{if(_2a["stAssetName"]>_2b["stAssetName"]){return 1;}else{if(_2a["stHedgeletName"]<_2b["stHedgeletName"]){return -1;}else{if(_2a["stHedgeletName"]>_2b["stHedgeletName"]){return 1;}else{if(_2a["nHedgeletType"]<_2b["nHedgeletType"]){return -1;}else{if(_2a["nHedgeletType"]>_2b["nHedgeletType"]){return 1;}else{return 0;}}}}}}}}}}}function HS_CompareOpenOrderDetail_New(_2d,_2e){iResult=HS_CompareDate(_2d["daOrderDate"],_2e["daOrderDate"]);}function HS_CompareTransactionHistory_New(_2f,_30){iResult=-(HS_CompareDateTime(_2f["dtTransactionDateTime"],_30["dtTransactionDateTime"]));if(iResult!=0){return iResult;}else{return 0;}}function HS_CompareOrderHistory_New(_31,_32){var _33=-(HS_CompareDateTime(_31["dtTimePlaced"],_32["dtTimePlaced"]));if(_33!=0){return _33;}else{return 0;}}function HS_CompareOrderHistory_New_Suborder(_34,_35){var _36=(HS_CompareDateTime(_34["dtTimePlaced"],_35["dtTimePlaced"]));if(_36!=0){return _36;}else{return 0;}}function HS_CompareAccounts_New(_37,_38){if(_37["isStatus"]>_38["isStatus"]){return -1;}else{if(_37["isStatus"]<_38["isStatus"]){return 1;}else{if(_37["stAccountName"]<_38["stAccountName"]){return -1;}else{if(_37["stAccountName"]>_38["stAccountName"]){return 1;}else{return 0;}}}}}function HS_CompareTraders_New(_39,_3a){if(_39["isActive"]>_3a["isActive"]){return -1;}else{if(_39["isActive"]<_3a["isActive"]){return 1;}else{if(_39["stFirstName"]<_3a["stFirstName"]){return -1;}else{if(_39["stFirstName"]>_3a["stFirstName"]){return 1;}else{return 0;}}}}}function HS_CompareGiveUp_New(_3b,_3c){if(_3b["stKey"]<_3c["stKey"]){return -1;}else{if(_3b["stKey"]>_3c["stKey"]){return 1;}else{return 0;}}}function HS_CompareDay(_3d,_3e){var _3f={};_3f["01"]=1;_3f["02"]=2;_3f["03"]=3;_3f["04"]=4;_3f["05"]=5;_3f["06"]=6;_3f["07"]=7;_3f["08"]=8;_3f["09"]=9;_3f["10"]=10;_3f["11"]=11;_3f["12"]=12;_3f["13"]=13;_3f["14"]=14;_3f["15"]=15;_3f["16"]=16;_3f["17"]=17;_3f["18"]=18;_3f["19"]=19;_3f["20"]=20;_3f["21"]=21;_3f["22"]=22;_3f["23"]=23;_3f["24"]=24;_3f["25"]=25;_3f["26"]=26;_3f["27"]=27;_3f["28"]=28;_3f["29"]=29;_3f["30"]=30;_3f["31"]=31;_3f["1"]=32;_3f["2"]=33;_3f["3"]=34;_3f["4"]=35;_3f["5"]=36;_3f["6"]=37;_3f["7"]=38;_3f["8"]=39;_3f["9"]=40;var x=_3f[_3d["stKey"]];var y=_3f[_3e["stKey"]];return ((x<y)?-1:((x>y)?1:0));}function HS_CompareDepartment(_42,_43){var x=_42["stKey"].toLowerCase();var y=_43["stKey"].toLowerCase();return ((x<y)?-1:((x>y)?1:0));}function HS_CompareMonth(_46,_47){var _48={};_48["jan"]=0;_48["feb"]=1;_48["mar"]=2;_48["apr"]=3;_48["may"]=4;_48["jun"]=5;_48["jul"]=6;_48["aug"]=7;_48["sep"]=8;_48["oct"]=9;_48["nov"]=10;_48["dec"]=11;_48["1"]=12;_48["2"]=13;_48["3"]=14;_48["4"]=15;_48["5"]=16;_48["6"]=17;_48["7"]=18;_48["8"]=19;_48["9"]=20;_48["10"]=21;_48["11"]=22;_48["12"]=23;var x=_48[_46["stValue"].toLowerCase()];var y=_48[_47["stValue"].toLowerCase()];return ((x<y)?-1:((x>y)?1:0));}function HS_ComparePositions_New(_4b,_4c){var _4d;if(_4b["stHedgeletName"]<_4c["stHedgeletName"]){return -1;}else{if(_4b["stHedgeletName"]>_4c["stHedgeletName"]){return 1;}else{if(_4b["ecHedgeletType"]<_4c["ecHedgeletType"]){return -1;}else{if(_4b["ecHedgeletType"]>_4c["ecHedgeletType"]){return 1;}else{_4d=-(HS_CompareDateTime(_4b["dtPostDateTime"],_4c["dtPostDateTime"]));if(_4d!=0){return _4d;}else{return 0;}}}}}}function HS_CompareTraders(_4e,_4f){if(_4e["stFirstName"]<_4f["stFirstName"]){return -1;}else{if(_4e["stFirstName"]>_4f["stFirstName"]){return 1;}else{return 0;}}}function HS_CompareAccounts(_50,_51){if(_50["stAccountNumber"]<_51["stAccountNumber"]){return -1;}else{if(_50["stAccountNumber"]>_51["stAccountNumber"]){return 1;}else{return 0;}}}function HS_CompareOrderbookBid(_52,_53){var _54=HS_GenerateCurrencyN(_52["cyBid"]);var _55=HS_GenerateCurrencyN(_53["cyBid"]);if(_54>_55){return -1;}else{if(_54<_55){return 1;}else{return 0;}}}function HS_CompareOrderbookAsk(_56,_57){var _58=HS_GenerateCurrencyN(_56["cyAsk"]);var _59=HS_GenerateCurrencyN(_57["cyAsk"]);if(_58<_59){return -1;}else{if(_58>_59){return 1;}else{return 0;}}}function HS_CompareOrderbookPrice(_5a,_5b){if(_5a[1]>_5b[1]){return -1;}else{if(_5a[1]<_5b[1]){return 1;}else{return 0;}}}function HS_CompareTimeAndSales(_5c,_5d){var _5e;var dt1=new Array(_5c["daDate"][0],_5c["daDate"][1],_5c["daDate"][2],_5c["daTime"][0],_5c["daTime"][1],_5c["daTime"][2],_5c["daTime"][3],_5c["daTime"][4]);var dt2=new Array(_5d["daDate"][0],_5d["daDate"][1],_5d["daDate"][2],_5d["daTime"][0],_5d["daTime"][1],_5d["daTime"][2],_5d["daTime"][3],_5d["daTime"][4]);_5e=HS_CompareDateTime(dt1,dt2);return -(_5e);}function HS_CompareFCM(_61,_62){if(_61["stKey"]<_62["stKey"]){return -1;}else{if(_61["stKey"]>_62["stKey"]){return 1;}else{return 0;}}}function HS_CompareDashboardHedgelets_New(_63,_64){var _65;var dt1=new Array(_63["daLastTradingDate"][0],_63["daLastTradingDate"][1],_63["daLastTradingDate"][2],_63["tmLastTradingDayCloseTime"][0],_63["tmLastTradingDayCloseTime"][1],_63["tmLastTradingDayCloseTime"][2],_63["tmLastTradingDayCloseTime"][3],_63["tmLastTradingDayCloseTime"][4]);var dt2=new Array(_64["daLastTradingDate"][0],_64["daLastTradingDate"][1],_64["daLastTradingDate"][2],_64["tmLastTradingDayCloseTime"][0],_64["tmLastTradingDayCloseTime"][1],_64["tmLastTradingDayCloseTime"][2],_64["tmLastTradingDayCloseTime"][3],_64["tmLastTradingDayCloseTime"][4]);_65=HS_CompareDateTime(dt1,dt2);return _65;}function HS_CompareDateTime(d1,d2){var _6a=HS_CompareDate(d1,d2);if(_6a!=0){return _6a;}else{if(d1[3]<d2[3]){return -1;}else{if(d1[3]>d2[3]){return 1;}else{if(d1[4]<d2[4]){return -1;}else{if(d1[4]>d2[4]){return 1;}else{if(d1[5]<d2[5]){return -1;}else{if(d1[5]>d2[5]){return 1;}else{return 0;}}}}}}}}function HS_CompareComplianceHedgelets(_6b,_6c){var _6d=_6b.headers||_6c.headers;if(!_6d){return 0;}var _6e=_6d["ecHedgeletType"];if(_6b[_6e]==HS_HEDGELET_TYPE_BINARY&&_6c[_6e]==HS_HEDGELET_TYPE_VARIABLE){return -1;}else{if(_6c[_6e]==HS_HEDGELET_TYPE_BINARY&&_6b[_6e]==HS_HEDGELET_TYPE_VARIABLE){return 1;}else{var _6f=_6d["daLastTradingDate"];return HS_CompareDate(_6b[_6f],_6c[_6f]);}}}
	function HS_GetHedgeletTypeNameShort(_1){var _2="";if(_1==HS_HEDGELET_TYPE_YES){_2="Yes";}else{if(_1==HS_HEDGELET_TYPE_NO){_2="No";}else{if(_1==HS_HEDGELET_TYPE_VARIABLE){_2="Futures";}else{if(_1==HS_HEDGELET_TYPE_BINARY){_2="Binaries";}}}}return (_2);}function HS_GetHedgeletTypeName(_3,_4){var _5=HS_GetHedgeletTypeNameShort(_3);if(_5==""){return (_5);}_5+=" Contract";if(_4){_5+="s";}return (_5);}function HS_PendingSettledHedgelets(_6){if(_6){window.location="/hedgelets/pendingandsettled.html";}else{window.location="/hedgelets/pendingandsettled/";}}function HS_OpenHedgelets(){window.location="/hedgelets/open.html";}function HS_DailyHedgelets(){window.location="/hedgelets/spot.html";}function HS_WeeklyHedgelets(){window.location="/hedgelets/weekly.html";}function HS_CalendarHedgelets(){window.location="/hedgelets/calendar.html";}function HS_ClearHedgeletSelection(){HS_SetCookie(HS_COOKIE_HEDGELET,"");HS_SetHedgeletFilters(new Array(HS_HEDGELET_TYPE_ALL,HS_TIME_FRAME_ALL,HS_PERIODICITY_ALL,createFilter(HS_STATUS_OPEN,HS_STATUS_CLOSED),HS_HEDGELET_CLASS_RETAIL));}function HS_SelectAsset(_7,_8,_9,_a,_b){HS_SelectAssetLow(_7,_8,_9,"",_a,_b);}function HS_SelectAssetLow(_c,_d,_e,_f,_10,_11,_12,_13){HS_SetCookie(HS_COOKIE_HEDGELET,_c,HS_HEDGELET_SUBMARKET);HS_SetCookie(HS_COOKIE_HEDGELET,_c,HS_HEDGELET_ASSETNAME);HS_SetCookie(HS_COOKIE_HEDGELET,_d,HS_HEDGELET_ASSETPATH);HS_SetCookie(HS_COOKIE_HEDGELET,"",HS_HEDGELET_HEDGELETPATH);HS_SetCookie(HS_COOKIE_HEDGELET,"",HS_HEDGELET_HEDGELETNAME);HS_SetCookie(HS_COOKIE_HEDGELET,_f,HS_HEDGELET_HEDGELETTYPE);if(typeof strMarket!="undefined"){HS_SetCookie(HS_COOKIE_HEDGELET,strMarket,HS_HEDGELET_MARKETNAME);}if(typeof _10!="undefined"){HS_SetCookie(HS_COOKIE_HEDGELET,_10,HS_HEDGELET_SUBMARKETNAME);}if(typeof _11!="undefined"){HS_SetCookie(HS_COOKIE_HEDGELET,_11,HS_HEDGELET_SUBMARKETPATH);}if(typeof _12!="undefined"){HS_SetCookie(HS_COOKIE_MOSTACTIVE,_12,HS_HEDGELET_MOST_ACTIVE);}if(typeof _13!="undefined"){HS_SetCookie(HS_COOKIE_MOSTACTIVE,_13,HS_HEDGELET_ALL);}if(_e.length>0){if(_e.match("/i/trading/placeorder/")){HS_ClearOrderCookies();}if(parent!=self){parent.location=_e;}else{window.location=_e;}}}function HS_SelectHedgelet(_14,_15,_16,_17,_18,_19){HS_ClearHedgeletSelection();HS_SetCookie(HS_COOKIE_HEDGELET,_14,HS_HEDGELET_HEDGELETPATH);HS_SetCookie(HS_COOKIE_HEDGELET,_15,HS_HEDGELET_HEDGELETTYPE);HS_SetCookie(HS_COOKIE_HEDGELET,_16,HS_HEDGELET_ASSETNAME);HS_SetCookie(HS_COOKIE_HEDGELET,_17,HS_HEDGELET_ASSETPATH);if(typeof _19!="undefined"&&_19!=null){HS_SetCookie(HS_COOKIE_HEDGELET,_19,HS_HEDGELET_HEDGELETNAME);}if(_18.length>0){window.location=_18;}}function HS_SelectHedgelet2(_1a,_1b,_1c,_1d){HS_ClearHedgeletSelection();HS_SetCookie(HS_COOKIE_HEDGELET,_1a,HS_HEDGELET_HEDGELETPATH);if(typeof _1c!="undefined"&&_1c!=null){HS_SetCookie(HS_COOKIE_HEDGELET,_1c,HS_HEDGELET_HEDGELETTYPE);}if(typeof _1d!="undefined"&&_1d!=null){HS_SetCookie(HS_COOKIE_HEDGELET,_1d,HS_HEDGELET_HEDGELETNAME);}if(_1b.length>0){window.location=_1b;}}function HS_CheckSubmarketSelection(_1e){var _1f;_1f=HS_GetCookie(HS_COOKIE_HEDGELET,HS_HEDGELET_MARKETNAME);if(_1f==null||_1f==""){location.replace(_1e);}_1f=HS_GetCookie(HS_COOKIE_HEDGELET,HS_HEDGELET_SUBMARKETPATH);if(_1f==null||_1f==""){location.replace(_1e);}_1f=HS_GetCookie(HS_COOKIE_HEDGELET,HS_HEDGELET_SUBMARKETNAME);if(_1f==null||_1f==""){location.replace(_1e);}}function HS_CheckAssetSelection(_20,_21){var _22;_22=HS_GetCookie(HS_COOKIE_HEDGELET,HS_HEDGELET_ASSETPATH);if(_22==null||_22==""){if(_20.length>0){location.replace(_20);}else{return false;}}if(_21==true){return true;}_22=HS_GetCookie(HS_COOKIE_HEDGELET,HS_HEDGELET_ASSETNAME);if(_22==null||_22==""){if(_20.length>0){location.replace(_20);}else{return false;}}return true;}function HS_CheckHedgeletSelection(_23){var _24;_24=HS_GetCookie(HS_COOKIE_HEDGELET,HS_HEDGELET_HEDGELETPATH);if(_24==null||_24==""){if(_23.length>0){location.replace(_23);}else{return false;}}return true;}function HS_SelectTimeframe(_25,_26){HS_SetCookie(HS_COOKIE_HEDGELETFILTER,_25,HS_FILTER_H_TIMEFRAME);window.location=_26;}function HS_GetHedgeletContent_New(_27,_28){if(typeof _28=="undefined"||_28==null){return null;}if(_28.length<=0){return null;}for(var i=0;i<_28.length;i++){var _2a=_28[i];if(HS_MatchHedgeletContent(_27,_2a["path"])){return _2a;}}return null;}function HS_MatchHedgeletContent(_2b,_2c){var _2d=HS_FormatAssetPathForWeb(_2b);var _2e=HS_FormatAssetPathForWeb(_2c);if(_2d.toLowerCase()==_2e.toLowerCase()){return true;}var _2f=_2d.split(".");if(_2f.length>1){_2d=_2d.substring(_2f[0].length+1);}if(_2d.toLowerCase()==_2e.toLowerCase()){return true;}return false;}function HS_IsPending(_30){if(_30==HS_STATUS_STOPPED){return true;}return false;}function HS_IsSettled(_31){if(_31==HS_STATUS_EXPIRED){return true;}return false;}function HS_IncludeContentJS(_32){var _33=_32;if(typeof _33=="undefined"||_33==null||_33.length<=0){_33=HS_GetCookie(HS_COOKIE_HEDGELET,HS_HEDGELET_ASSETPATH);}if(_33!=null&&_33.length>0){HS_LoadJS("/product/Content/"+HS_ConvertToInstrumentName(_33)+".js","",false);}}function HS_BuildOneHedgeletRow(_34,_35,_36,i,_38,_39,_3a,_3b,_3c){var _3d=0;var _3e=_36["stHedgeletName"]+((_36["stHedgeletSymbol"].trim().length>0)?" ("+_36["stHedgeletSymbol"]+")":"");if(typeof _3c=="undefined"||!_3c){var _3f=_Dialogs.add(null,"Add to Watchlist",false,false);var id=_38+"_watchlist"+i;var obj=getElementByName(_35,"a","link_watchlist_add").cloneNode(true);obj.href="javascript:HS_AddToWatchlist( '"+_36["stHedgeletPath"]+"', '"+_3e+"' );";obj.id=id;_34.cells[_3d++].appendChild(obj);_Dialogs.setParent(_3f,id,"onmouseover","onmouseout","");}obj=getElementByName(_35,"a","link_hedgelet").cloneNode(true);obj.href="javascript:HS_SelectHedgelet2( '"+_36["stHedgeletPath"]+"', '/iHedgelets/asset/quotes/' );";obj.innerHTML=_3e;_34.cells[_3d++].appendChild(obj);if(typeof _39=="undefined"||_39){switch(_36["ecHedgeletType"]){case HS_HEDGELET_TYPE_YES:case HS_HEDGELET_TYPE_NO:case HS_HEDGELET_TYPE_BINARY:_34.cells[_3d++].innerHTML="Binary";break;case HS_HEDGELET_TYPE_VARIABLE:_34.cells[_3d++].innerHTML="Future";break;default:_3d++;break;}}var _42=_Dialogs.add(HS_BuildOrderbook,_36["stHedgeletPath"],true,true);id=_38+"_bid"+i;obj=getElementByName(_35,"a","link_price").cloneNode(true);obj.id=id;obj.href="javascript:;";obj.innerHTML=HS_GenerateCurrency(_36["cyBid"]);_34.cells[_3d++].appendChild(obj);if(HS_IsValidCurrency(_36["cyBid"])){obj.href="javascript:_QuickTrade.placeOrder( \""+_36["stHedgeletPath"]+"\", "+HS_GenerateCurrencyN(_36["cyBid"])+", "+_36["nBidQuantity"]+", \"\" );";var _43=_Dialogs.add(null,HS_GenerateCurrency(_36["cyBid"])+" x "+_36["nBidQuantity"],false,false);_Dialogs.setParent(_43,id,"onmouseover","onmouseout","");id=_38+"_orderbook_bid"+i;obj=getElementByName(_35,"a","link_orderbook").cloneNode(true);obj.id=id;obj.href="javascript:;";_34.cells[_3d++].appendChild(obj);_Dialogs.setParent(_42,id,"onclick","","");}else{_3d++;}id=_38+"_ask"+i;obj=getElementByName(_35,"a","link_price").cloneNode(true);obj.id=id;obj.href="javascript:;";obj.innerHTML=HS_GenerateCurrency(_36["cyAsk"]);_34.cells[_3d++].appendChild(obj);if(HS_IsValidCurrency(_36["cyAsk"])){obj.href="javascript:_QuickTrade.placeOrder( \""+_36["stHedgeletPath"]+"\", "+HS_GenerateCurrencyN(_36["cyAsk"])+", "+_36["nAskQuantity"]+", \"\" );";var _44=_Dialogs.add(null,HS_GenerateCurrency(_36["cyAsk"])+" x "+_36["nAskQuantity"],false,false);_Dialogs.setParent(_44,id,"onmouseover","onmouseout","");id=_38+"_orderbook_ask"+i;obj=getElementByName(_35,"a","link_orderbook").cloneNode(true);obj.id=id;obj.href="javascript:;";_34.cells[_3d++].appendChild(obj);_Dialogs.setParent(_42,id,"onclick","","");}else{_3d++;}id=_38+"_last"+i;obj=getElementByName(_35,"a","link_price").cloneNode(true);obj.id=id;obj.href="javascript:;";var _45=_36["cyLastTrade"];if(typeof _45=="undefined"||_45==null){_45=_36["cyLastTradedPrice"];if(typeof _45=="undefined"||_45==null){_45=null;}}var _46="-";var _47=0;var _48=false;if(_45!=null){_46=HS_GenerateCurrency(_45);_47=HS_GenerateCurrencyN(_45);_48=HS_IsValidCurrency(_45);}var _49=_36["nLastTradeQuantity"];if(typeof _49=="undefined"||_49==null){_49=_36["nLastTradedQuantity"];if(typeof _49=="undefined"||_49==null){_49="";}}obj.innerHTML=_46;_34.cells[_3d++].appendChild(obj);if(_48){obj.href="javascript:_QuickTrade.placeOrder( \""+_36["stHedgeletPath"]+"\", "+_47+", "+_49+", \"\" );";var str=_46+" x "+_49;if(_36["isBlockTrade"]){str+="<br>Block Trade";}var _4b=_36["dtLastTradedTime"];var _4c=_36["daLastTradedDate"];var _4d=_36["tmLastTradedTime"];var _4e=null;if(typeof _4b!="undefined"&&_4b!=null){_4e=_4b;}else{if(typeof _4c!="undefined"&&_4c!=null&&typeof _4d!="undefined"&&_4d!=null){_4e=_4c.concat(_4d);}}if(_4e!=null){var _4f=HS_GenerateDate3(_4e);_4e.splice(0,3);try{var _50=HS_GenerateTime(_4e,true);}catch(e){var _50="";}if(_50.trim().length>0){str+="<br>"+_50;}if(_4f.trim().length>0){str+="<br>"+_4f;}}var _51=_Dialogs.add(null,str,false,false);_Dialogs.setParent(_51,id,"onmouseover","onmouseout","");var _52=_Dialogs.add(HS_BuildTimeAndSales,_36["stHedgeletPath"],true,true);id=_38+"_timesales_last"+i;obj=getElementByName(_35,"a","link_orderbook").cloneNode(true);obj.id=id;obj.href="javascript:;";_34.cells[_3d++].appendChild(obj);_Dialogs.setParent(_52,id,"onclick","","");}else{_3d++;}if(typeof _3a=="undefined"||_3a){var _53=hs.util.getHedgeletChange(_36);var _54=_53.change;var _55=_53.percent;if(_54>0){obj=getElementByName(_35,"img","image_uparrow").cloneNode(true);_34.cells[_3d++].appendChild(obj);obj=getElementByName(_35,"span","span_uptext").cloneNode(true);obj.innerHTML=""+_55+"%&nbsp;("+_54+")";_34.cells[_3d++].appendChild(obj);}else{if(_54<0){obj=getElementByName(_35,"img","image_downarrow").cloneNode(true);_34.cells[_3d++].appendChild(obj);obj=getElementByName(_35,"span","span_downtext").cloneNode(true);obj.innerHTML=""+_55+"%&nbsp;("+_54+")";_34.cells[_3d++].appendChild(obj);}else{_34.cells[_3d++].innerHTML="";_34.cells[_3d++].innerHTML="-";}}}if(typeof _3b=="undefined"||!_3b){var vol=_36["nVolume"];if(typeof vol=="undefined"||vol==null){vol=_36["nUnitVolume"];if(typeof vol=="undefined"||vol==null){vol="-";}}_34.cells[_3d++].innerHTML=vol;}if(typeof _3c!="undefined"&&_3c){var _3f=_Dialogs.add(null,"Remove from Watchlist",false,false);var id=_38+"_watchlistremove"+i;var obj=getElementByName(_35,"a","link_watchlist_remove").cloneNode(true);obj.href="javascript:HS_RemoveFromWatchlist( '"+_36["stHedgeletPath"]+"' );";obj.id=id;_34.cells[_3d++].appendChild(obj);_Dialogs.setParent(_3f,id,"onmouseover","onmouseout","bl");}return _3d;}function HS_BuildPopupQuote(_57,_58){if(_57==null||_57.node==null||_58==null){return;}if(HS_SiteIsInstitutional()){return;}HS_BuildPopupQuote_Refresh(_58,_57.id);}function HS_BuildPopupQuote_Refresh(_59,_5a,_5b){if(HS_SiteIsInstitutional()){return;}_XMLHTTP.request("/hedgelet/service/quote-detail?out=arrQuoteDetail&timeframe="+HS_TIME_FRAME_TODAY+"&hedgeletpath="+escape(_59.hedgeletPath),HS_BuildPopupQuote_Fill,{dialogID:_5a,assetName:_59.assetName,silent:_5b});}function HS_BuildPopupQuote_Fill(_5c,_5d){var _5e=_Dialogs.find(_5d.dialogID);if(_5e==null){return;}var _5f=_5d.silent;if(!$$(_5f)){_5f=false;}if(_5c.trim().length<=0){_Dialogs.hide(_5e.id,true);return;}var _60=HS_ExtractArrayByName("arrQuoteDetail",_5c.trim());if(_60!=null){_60=HS_FormatServiceData(_60,null,true);}if(_60==null){_Dialogs.hide(_5e.id,true);return;}var _61=_5e.id+"_handle";var _62=_5e.node;var _63=_60["stHedgeletName"];if(_60["nHedgeletType"]==HS_HEDGELET_TYPE_YES){_63+=" Yes";}else{if(_60["nHedgeletType"]==HS_HEDGELET_TYPE_NO){_63+=" No";}}_63+=" ("+HS_GenerateDateSimple(_60["daLastTradingDate"])+")";var _64=getElementByName(_62,"td","title");if(_64!=null){_64.id=_61;_64.style.cursor="move";}var _64=getElementByName(_62,"div","title");if(_64!=null){_64.innerHTML=_63;_64.style.textAlign="center";_64.style.marginLeft="12px";_64.style.marginRight="12px";}var _64=getElementByName(_62,"img","link_close");if(_64!=null){_64.onclick=new Function("_Dialogs.hide( '"+_5e.id+"', true );");}var _65=getElementByName(_62,"img","link_refresh");if(_65!=null){_65.onclick=new Function("this.onclick=null;this.style.display=\"none\";HS_BuildPopupQuote_Refresh({ hedgeletPath : '"+_60["stHedgeletPath"]+"', assetName : '' }, '"+_5e.id+"', true );");}var _66=getElementByName(_62,"div","content");if(_66==null){_Dialogs.hide(_5e.id,true);return;}_66.innerHTML="";var _67=hs.ui.getWidget("div","popupquote");if(_67!=null){_67=_67.cloneNode(true);_66.appendChild(_67);var obj=getElementByName(_67,"a","lastprice");if(obj!=null){hs.ui.linkHelp(obj);}var obj=getElementByName(_67,"a","change");if(obj!=null){hs.ui.linkHelp(obj);}var obj=getElementByName(_67,"a","sellat");if(obj!=null){hs.ui.linkHelp(obj);}var obj=getElementByName(_67,"a","buyat");if(obj!=null){hs.ui.linkHelp(obj);}var obj=getElementByName(_67,"a","high");if(obj!=null){hs.ui.linkHelp(obj);}var obj=getElementByName(_67,"a","low");if(obj!=null){hs.ui.linkHelp(obj);}var obj=getElementByName(_67,"a","volume");if(obj!=null){hs.ui.linkHelp(obj);}var obj=getElementByName(_67,"a","openinterest");if(obj!=null){hs.ui.linkHelp(obj);}var obj=getElementByName(_67,"div","description");if(obj!=null){obj.style.display="none";}var _69="";var _6a=_60["stHedgeletPath"];if(typeof _6a!="undefined"&&_6a!=null){var _6b=_6a.indexOf("[");if(_6b>0){_69=_6a.substring(_6b);}}var _6c=_60["stUnderlyingAssetPrice"];var _6d=hs.util.getAssetName(_69);if(typeof _6c!="undefined"&&_6c!=null&&_6c.length>0){var obj=getElementByName(_67,"span","underlying");if(obj!=null){var str="";if(_6d.length>0){str+=_6d+" now";}else{str+="Now";}str+=" trading at ";obj.innerHTML=str;var _6f=hs.ui.getWidget("a","link");if(_6f!=null){_6f=_6f.cloneNode(true);obj.appendChild(_6f);_6f.innerHTML=_6c;_6f.href="javascript:;";var str=hs.util.getUnderlyingDetailMessage(_60);if(str.length>0){hs.ui.linkToolTip(_6f,str);}}else{obj.innerHTML+=_6c;}}}var obj=getElementByName(_67,"a","viewdetails");if(obj!=null){var _70="/hedgelets/YesNo/contract.html";if(_69.length>0){obj.href="javascript:;";var _71=_60["nHedgeletType"];if(_60["nHedgeletType"]!=HS_HEDGELET_TYPE_VARIABLE){_71=HS_HEDGELET_TYPE_BINARY|HS_HEDGELET_TYPE_YES|HS_HEDGELET_TYPE_NO;}obj.onclick=new Function("HS_SelectAsset( '', '"+_69+"', '' );HS_SetCookie( '"+HS_COOKIE_HEDGELET+"', '"+_6a+"', "+HS_HEDGELET_HEDGELETPATH+" );HS_SetCookie( '"+HS_COOKIE_HEDGELET+"', "+_71+", "+HS_HEDGELET_HEDGELETTYPE+" );PopUpWindow3( '"+_70+"', '', 800, 600, 'channelmode=0,dependent=0,directories=0,fullscreen=0,location=1,menubar=1,resizable=1,scrollbars=1,status=1,toolbar=1' );");}else{obj.style.display="none";}}var obj=getElementByName(_67,"td","lastprice");if(obj!=null){var _72=_60["cyLastTradePrice"];if(_60["nHedgeletType"]==HS_HEDGELET_TYPE_VARIABLE){_72=HS_Futures_ToDisplayPrice2(_72,_60["bdUnderlyingFloor"],_60["bdUnderlyingCap"],_60["cyPayout"],_60["bdTickSize"]);}obj.innerHTML=HS_GenerateCurrency(_72);}var obj=getElementByName(_67,"td","change");if(obj!=null){obj.innerHTML="";var _73=hs.util.getHedgeletChange(_60);var _74=_73.change;var _75=_73.percent;if(_74>0){var _6f=hs.ui.getWidget("img","popupquote_changeimg_up").cloneNode(true);obj.appendChild(_6f);var _6f=hs.ui.getWidget("span","popupquote_changetext_up").cloneNode(true);_6f.innerHTML=_75+"%&nbsp;("+_74+")";obj.appendChild(_6f);}else{if(_74<0){var _6f=hs.ui.getWidget("img","popupquote_changeimg_down").cloneNode(true);obj.appendChild(_6f);var _6f=hs.ui.getWidget("span","popupquote_changetext_down").cloneNode(true);_6f.innerHTML=_75+"%&nbsp;("+_74+")";obj.appendChild(_6f);}else{obj.innerHTML="-";}}}var obj=getElementByName(_67,"span","sellat");if(obj!=null){var _72=_60["cyBid"];if(_60["nHedgeletType"]==HS_HEDGELET_TYPE_VARIABLE){_72=HS_Futures_ToDisplayPrice2(_72,_60["bdUnderlyingFloor"],_60["bdUnderlyingCap"],_60["cyPayout"],_60["bdTickSize"]);}obj.innerHTML=HS_GenerateCurrency(_72);}var obj=getElementByName(_67,"span","buyat");if(obj!=null){var _72=_60["cyAsk"];if(_60["nHedgeletType"]==HS_HEDGELET_TYPE_VARIABLE){_72=HS_Futures_ToDisplayPrice2(_72,_60["bdUnderlyingFloor"],_60["bdUnderlyingCap"],_60["cyPayout"],_60["bdTickSize"]);}obj.innerHTML=HS_GenerateCurrency(_72);}var obj=getElementByName(_67,"span","high");if(obj!=null){var _72=_60["cyDailyHigh"];if(_60["nHedgeletType"]==HS_HEDGELET_TYPE_VARIABLE){_72=HS_Futures_ToDisplayPrice2(_72,_60["bdUnderlyingFloor"],_60["bdUnderlyingCap"],_60["cyPayout"],_60["bdTickSize"]);}obj.innerHTML=HS_GenerateCurrency(_72);}var obj=getElementByName(_67,"span","low");if(obj!=null){var _72=_60["cyDailyLow"];if(_60["nHedgeletType"]==HS_HEDGELET_TYPE_VARIABLE){_72=HS_Futures_ToDisplayPrice2(_72,_60["bdUnderlyingFloor"],_60["bdUnderlyingCap"],_60["cyPayout"],_60["bdTickSize"]);}obj.innerHTML=HS_GenerateCurrency(_72);}var obj=getElementByName(_67,"span","volume");if(obj!=null){obj.innerHTML=_60["nVolume"];}var obj=getElementByName(_67,"span","openinterest");if(obj!=null){obj.innerHTML=_60["nOpenInterest"];}var obj=getElementByName(_67,"span","timeremaining");if(obj!=null){var _76=new Date(_SessionState["dtCurrentTime"][0],_SessionState["dtCurrentTime"][1]-1,_SessionState["dtCurrentTime"][2],_SessionState["dtCurrentTime"][3],_SessionState["dtCurrentTime"][4],_SessionState["dtCurrentTime"][5]);var _77=new Date(_60["daLastTradingDate"][0],_60["daLastTradingDate"][1]-1,_60["daLastTradingDate"][2],_60["tmLastTradingDayCloseTime"][0],_60["tmLastTradingDayCloseTime"][1],_60["tmLastTradingDayCloseTime"][2]);obj.innerHTML=HS_GetTimeRemainingString2(Math.round((_77.getTime()-_76.getTime())/1000),false);}var obj=getElementByName(_67,"div","detailschart");hs.util.setHedgeletChart(_60,obj,true);}if(_65!=null){_65.style.display="inline";}var _78=415;_62.style.width=_78+"px";_Dialogs.setHandle(_5e.id,_61);_62.style.display="";if(!_5f){_5e.set(true,_78);}}function HS_BuildOrderbook(_79,_7a){if(_79==null||_79.node==null||_7a==null){return;}HS_BuildOrderbook_Refresh(_7a,_79.id);}function HS_BuildOrderbook_Refresh(_7b,_7c,_7d){if(HS_SiteIsInstitutional()){if(isUserLoggedIn){_XMLHTTP.request("/hedgelet/service/quote-depth?out=arrQuoteDepth&hedgeletpath="+escape(_7b),HS_BuildOrderbook_Refresh2,_7c);}else{_XMLHTTP.request("/hedgelet/service/quote-depth?out=arrQuoteDepth&hedgeletpath="+escape(_7b),HS_BuildOrderbook_Fill,_7c);}}else{_XMLHTTP.request("/hedgelet/service/quote-depth?out=arrQuoteDepth&hedgeletpath="+escape(_7b),HS_BuildOrderbook_Fill_Retail,[_7c,_7d]);}}function HS_BuildOrderbook_Refresh2(_7e,_7f){if(isUserLoggedIn){_XMLHTTP.request("/hedgelet/service/institutional-open-order?out=arrOrders",HS_BuildOrderbook_Refresh3,[_7e,_7f]);}else{HS_BuildOrderbook_Fill(_7e,_7f);}}function HS_BuildOrderbook_Refresh3(_80,_81){var _82;if(isUserLoggedIn&&_80.trim().length>0){_82=HS_ExtractArrayByName("arrOrders",_80.trim());if(_82!=null){_82=HS_FormatServiceData(_82);}else{_82=new Array();}}else{_82=new Array();}HS_BuildOrderbook_Fill(_81[0],_81[1],_82);}function HS_BuildOrderbook_Fill(_83,_84,_85){var _86=_Dialogs.find(_84);if(_86==null){return;}var _87=HS_GetElementByID("hsidOrderBookTableTemplate");if(_87==null){_Dialogs.hide(_86.id,true);return;}if(_83.trim().length<=0){_Dialogs.hide(_86.id,true);return;}var _88=HS_ExtractArrayByName("arrQuoteDepth",_83.trim());if(_88!=null){_88=HS_FormatServiceData(_88,null,true);}if(_88==null){_Dialogs.hide(_86.id,true);return;}var _89=HS_GetElementByID("hsidOrderBookTableWidgetRow");var _8a=getElementByName(_89,"table","orderbook_table").cloneNode(true);var _8b=getElementByName(_8a,"tbody","orderbook_tbody");if(_8b==null){_Dialogs.hide(_86.id,true);return;}var _8c=_86.node;HS_SetStyles_DialogShadowedOuter(_8c);_8c.innerHTML="";var _8d=document.createElement("div");HS_SetStyles_DialogShadowedInner(_8d);_8c.appendChild(_8d);_8a.style.width="100%";_8d.appendChild(_8a);var _8e=_86.id+"_handle";var _8f=HS_GetElementByID("hsidOrderBookTableHeaderRow").cloneNode(true);if(_8f!=null){_8f.id="";_8b.appendChild(_8f);var _90=getElementByName(_89,"div","div_menu").cloneNode(true);_90.id=_8e;_90.innerHTML="Order Book - "+_88["stHedgeletSymbol"];var _91=getElementByName(_89,"div","div_menu_links").cloneNode(true);var obj=getElementByName(_89,"a","link_refresh").cloneNode(true);obj.href="javascript:HS_BuildOrderbook_Refresh( '"+_88["stHedgeletPath"]+"', '"+_86.id+"' );";_91.appendChild(obj);var obj=getElementByName(_89,"a","link_close").cloneNode(true);obj.href="javascript:_Dialogs.hide( '"+_86.id+"', true );";_91.appendChild(obj);_90.appendChild(_91);_8f.cells[0].appendChild(_90);}var _8f=HS_GetElementByID("hsidOrderBookTableSubHeaderRow").cloneNode(true);if(_8f!=null){_8f.id="";_8b.appendChild(_8f);if(!isUserLoggedIn){_8f.cells[0].innerHTML="";_8f.cells[6].innerHTML="";}}if(_88[HS_HASHKEY_SUBARRAY+"1"]==null){_88[HS_HASHKEY_SUBARRAY+"1"]=new Array();}if(_88[HS_HASHKEY_SUBARRAY+"2"]==null){_88[HS_HASHKEY_SUBARRAY+"2"]=new Array();}_88[HS_HASHKEY_SUBARRAY+"1"].sort(HS_CompareOrderbookBid);_88[HS_HASHKEY_SUBARRAY+"2"].sort(HS_CompareOrderbookAsk);var _93=new Array();var _94=0;var _95=0;var _96=0;for(var i=0;i<_88[HS_HASHKEY_SUBARRAY+"1"].length;i++){var bid=_88[HS_HASHKEY_SUBARRAY+"1"][i];var _99=0;if(isUserLoggedIn&&typeof _85!="undefined"&&_85!=null&&_85.length>0){for(var j=0;j<_85.length;j++){var _9b=_85[j];if(_9b["stHedgeletPath"]==_88["stHedgeletPath"]){switch(_9b["nOrderType"]){case HS_ORDER_TYPE_BUY:case HS_ORDER_TYPE_SUBSCRIBE:case HS_ORDER_TYPE_BLOCKTRADEBUY:if(HS_GenerateCurrencyN(_9b["cyPrice"])==HS_GenerateCurrencyN(bid["cyBid"])){_99+=_9b["nOpenQuantity"];}break;case HS_ORDER_TYPE_SELL:case HS_ORDER_TYPE_REDEEM:case HS_ORDER_TYPE_BLOCKTRADESELL:break;default:break;}}}}_95+=_99;_94+=bid["nBidSize"];if(i>0){_93.push(new Array("bid",HS_GenerateCurrencyN(bid["cyBid"]),bid["nBidSize"],_94,_99));}else{_93.push(new Array("bid",HS_GenerateCurrencyN(bid["cyBid"]),bid["nBidSize"],-1,_99));}}var _94=0;for(var i=0;i<_88[HS_HASHKEY_SUBARRAY+"2"].length;i++){var ask=_88[HS_HASHKEY_SUBARRAY+"2"][i];var _99=0;if(isUserLoggedIn&&typeof _85!="undefined"&&_85!=null&&_85.length>0){for(var j=0;j<_85.length;j++){var _9b=_85[j];if(_9b["stHedgeletPath"]==_88["stHedgeletPath"]){switch(_9b["nOrderType"]){case HS_ORDER_TYPE_BUY:case HS_ORDER_TYPE_SUBSCRIBE:case HS_ORDER_TYPE_BLOCKTRADEBUY:break;case HS_ORDER_TYPE_SELL:case HS_ORDER_TYPE_REDEEM:case HS_ORDER_TYPE_BLOCKTRADESELL:if(HS_GenerateCurrencyN(_9b["cyPrice"])==HS_GenerateCurrencyN(ask["cyAsk"])){_99+=_9b["nOpenQuantity"];}break;default:break;}}}}_96+=_99;_94+=ask["nAskSize"];if(i>0){_93.push(new Array("ask",HS_GenerateCurrencyN(ask["cyAsk"]),ask["nAskSize"],_94,_99));}else{_93.push(new Array("ask",HS_GenerateCurrencyN(ask["cyAsk"]),ask["nAskSize"],-1,_99));}}if(_93.length>0){_93.sort(HS_CompareOrderbookPrice);var _9d=false;var _9e="";for(var i=0;i<_93.length;i++){var _9f=_93[i];if(!_9d&&_9e.length>0&&_9e!=_9f[0]){var _8f=HS_GetElementByID("hsidOrderBookTableDividerRow").cloneNode(true);if(_8f!=null){_8f.id="";_8b.appendChild(_8f);}_9d=true;}_9e=_9f[0];if(i%2==0){var _8f=HS_GetElementByID("hsidOrderBookTableRow").cloneNode(true);}else{var _8f=HS_GetElementByID("hsidOrderBookTableHighlightRow").cloneNode(true);}if(_8f!=null){_8f.id="";_8b.appendChild(_8f);if(_9f[0]=="bid"){if(_9f[4]>0){var obj=getElementByName(_89,"span","span_owntext").cloneNode(true);_8f.cells[0].appendChild(obj);obj.innerHTML=_9f[4];}else{_8f.cells[0].innerHTML="";}_8f.cells[1].innerHTML=(_9f[3]>0)?_9f[3]:"";_8f.cells[2].innerHTML=_9f[2];}else{_8f.cells[0].innerHTML="";_8f.cells[1].innerHTML="";_8f.cells[2].innerHTML="";}_8f.cells[3].innerHTML=HS_GenerateCurrency4(_9f[1],false);if(_9f[0]=="ask"){_8f.cells[4].innerHTML=_9f[2];_8f.cells[5].innerHTML=(_9f[3]>0)?_9f[3]:"";if(_9f[4]>0){var obj=getElementByName(_89,"span","span_owntext").cloneNode(true);_8f.cells[6].appendChild(obj);obj.innerHTML=_9f[4];}else{_8f.cells[6].innerHTML="";}}else{_8f.cells[4].innerHTML="";_8f.cells[5].innerHTML="";_8f.cells[6].innerHTML="";}}}if(isUserLoggedIn){var _8f=HS_GetElementByID("hsidOrderBookTableFooterRow").cloneNode(true);if(_8f!=null){_8f.id="";_8b.appendChild(_8f);_8f.cells[0].innerHTML=_95;_8f.cells[6].innerHTML=_96;}}}else{var _8f=HS_GetElementByID("hsidOrderBookTableEmptyRow").cloneNode(true);if(_8f!=null){_8f.id="";_8b.appendChild(_8f);_8f.cells[0].innerHTML="Information is unavailable at this time.";}}var _a0=300;_8c.style.width=_a0+"px";_8c.style.display="";_Dialogs.setHandle(_86.id,_8e);_86.set(true,_a0);}var HS_OrderBook_OrderInfo=null;function HS_BuildOrderbook_Fill_Retail(_a1,_a2,_a3){var _a4=_Dialogs.find(_a2[0]);if(_a4==null){return;}var _a5=_a2[1];if(!$$(_a5)){_a5=false;}if(_a1.trim().length<=0){_Dialogs.hide(_a4.id,true);return;}var _a6=HS_ExtractArrayByName("arrQuoteDepth",_a1.trim());if(_a6!=null){_a6=HS_FormatServiceData(_a6,null,true);}if(_a6==null){_Dialogs.hide(_a4.id,true);return;}var _a7=_a4.id+"_handle";var _a8=_a4.node;var _a9=getElementByName(_a8,"td","title");if(_a9!=null){_a9.id=_a7;_a9.style.cursor="move";}var _a9=getElementByName(_a8,"div","title");if(_a9!=null){_a9.innerHTML="Order Book";_a9.style.textAlign="center";_a9.style.marginLeft="12px";_a9.style.marginRight="12px";}var _a9=getElementByName(_a8,"img","link_close");if(_a9!=null){_a9.onclick=new Function("_Dialogs.hide( '"+_a4.id+"', true );");}var _aa=getElementByName(_a8,"img","link_refresh");if(_aa!=null){_aa.onclick=new Function("this.onclick=null;this.style.display=\"none\";HS_BuildOrderbook_Refresh( '"+_a6["stHedgeletPath"]+"', '"+_a4.id+"', true );");}var _ab=getElementByName(_a8,"div","content");if(_ab==null){_Dialogs.hide(_a4.id,true);return;}_ab.innerHTML="";var _ac=hs.ui.getWidget("table","orderbook_table");if(_ac!=null){_ac=_ac.cloneNode(true);_ab.appendChild(_ac);var _ad=getElementByName(_ac,"tbody","orderbook_tbody");if(_ad!=null){var _ae=[];var _af=[];if(_a6[HS_HASHKEY_SUBARRAY+"1"]!=null){_ae=_a6[HS_HASHKEY_SUBARRAY+"1"];}if(_a6[HS_HASHKEY_SUBARRAY+"2"]!=null){_af=_a6[HS_HASHKEY_SUBARRAY+"2"];}_ae.sort(HS_CompareOrderbookBid);_af.sort(HS_CompareOrderbookAsk);var _b0=Math.max(_ae.length,_af.length);if(_b0<=0){var row=hs.ui.getWidget("tr","orderbook_emptyrow");if(row!=null){row=row.cloneNode(true);_ad.appendChild(row);row.cells[0].innerHTML="Information is unavailable<br>at this time.";}}else{var _b2=_a6["stHedgeletName"];if(_a6["nHedgeletType"]==HS_HEDGELET_TYPE_YES){_b2+=" Yes";}else{if(_a6["nHedgeletType"]==HS_HEDGELET_TYPE_NO){_b2+=" No";}}_b2+=" ("+HS_GenerateDateSimple(_a6["daLastTradeDate"])+")";for(var i=0;i<_b0;i++){var bid=null;var ask=null;if(i<_ae.length){bid=_ae[i];}if(i<_af.length){ask=_af[i];}var row=hs.ui.getWidget("tr","orderbook_contentrow");if(row!=null){row=row.cloneNode(true);_ad.appendChild(row);var _b6=0;var _b7=null;var _b8=null;var _b9=null;var _ba=null;var _bb="";var _bc="";if(bid!=null){_b7=bid["nBidSize"];var _bd=bid["cyBid"];if(_a6["nHedgeletType"]==HS_HEDGELET_TYPE_VARIABLE){_bd=HS_Futures_ToDisplayPrice2(_bd,_a6["bdUnderlyingFloor"],_a6["bdUnderlyingCap"],_a6["cyPayout"],_a6["bdTickSize"]);}_b8=_bd;if($$(HS_OrderBook_OrderInfo)){_bb="HS_OrderBook_OrderInfo( true, \""+_a6["stHedgeletPath"]+"\", \""+_b2+"\", "+HS_GenerateCurrencyN(_b8)+", "+_b7+", "+_a6["nHedgeletType"]+", \""+_a6["bdUnderlyingFloor"]+"\", \""+_a6["bdUnderlyingCap"]+"\", \""+_a6["cyPayout"]+"\", \""+_a6["bdTickSize"]+"\" );";}}if(ask!=null){_b9=ask["nAskSize"];var _bd=ask["cyAsk"];if(_a6["nHedgeletType"]==HS_HEDGELET_TYPE_VARIABLE){_bd=HS_Futures_ToDisplayPrice2(_bd,_a6["bdUnderlyingFloor"],_a6["bdUnderlyingCap"],_a6["cyPayout"],_a6["bdTickSize"]);}_ba=_bd;if($$(HS_OrderBook_OrderInfo)){_bc="HS_OrderBook_OrderInfo( false, \""+_a6["stHedgeletPath"]+"\", \""+_b2+"\", "+HS_GenerateCurrencyN(_ba)+", "+_b9+", "+_a6["nHedgeletType"]+", \""+_a6["bdUnderlyingFloor"]+"\", \""+_a6["bdUnderlyingCap"]+"\", \""+_a6["cyPayout"]+"\", \""+_a6["bdTickSize"]+"\" );";}}var _be=getElementByName(row.cells[_b6],"div","content");if(_be!=null){var obj=hs.ui.getWidget("a","link");if(obj!=null){obj=obj.cloneNode(true);_be.appendChild(obj);obj.href="javascript:"+_bb+";";if(bid!=null){obj.innerHTML=_b7;}else{obj.innerHTML="&nbsp;";}}}_b6++;var _be=getElementByName(row.cells[_b6],"div","content");if(_be!=null){var obj=hs.ui.getWidget("a","link");if(obj!=null){obj=obj.cloneNode(true);_be.appendChild(obj);obj.href="javascript:"+_bb+";";if(bid!=null){obj.innerHTML=HS_GenerateCurrency(_b8);}else{obj.innerHTML="&nbsp;";}}}_b6++;_b6++;var _be=getElementByName(row.cells[_b6],"div","content");if(_be!=null){var obj=hs.ui.getWidget("a","link");if(obj!=null){obj=obj.cloneNode(true);_be.appendChild(obj);obj.href="javascript:"+_bc+";";if(ask!=null){obj.innerHTML=HS_GenerateCurrency(_ba);}else{obj.innerHTML="&nbsp;";}}}_b6++;var _be=getElementByName(row.cells[_b6],"div","content");if(_be!=null){var obj=hs.ui.getWidget("a","link");if(obj!=null){obj=obj.cloneNode(true);_be.appendChild(obj);obj.href="javascript:"+_bc+";";if(ask!=null){obj.innerHTML=_b9;}else{obj.innerHTML="&nbsp;";}}}_b6++;}}}}}if(_aa!=null){_aa.style.display="inline";}var _c0=188;_a8.style.width=_c0+"px";_Dialogs.setHandle(_a4.id,_a7);_a8.style.display="";if(!_a5){_a4.set(true,_c0);}}function HS_BuildTimeAndSales(_c1,_c2){if(_c1==null||_c1.node==null||_c2==null){return;}HS_BuildTimeAndSales_Refresh(_c2,_c1.id);}function HS_BuildTimeAndSales_Refresh(_c3,_c4){_XMLHTTP.request("/hedgelet/service/time-and-sales?out=arrTimeAndSales&hedgeletpath="+escape(_c3),HS_BuildTimeAndSales_Fill,_c4);}function HS_BuildTimeAndSales_Fill(_c5,_c6){var _c7=_Dialogs.find(_c6);if(_c7==null){return;}var _c8=HS_GetElementByID("hsidTimeAndSalesTableTemplate");if(_c8==null){_Dialogs.hide(_c7.id,true);return;}if(_c5.trim().length<=0){_Dialogs.hide(_c7.id,true);return;}var _c9=HS_ExtractArrayByName("arrTimeAndSales",_c5.trim());if(_c9!=null){_c9=HS_FormatServiceData(_c9,null,true);}if(_c9==null){_Dialogs.hide(_c7.id,true);return;}var _ca=HS_GetElementByID("hsidTimeAndSalesTableWidgetRow");var _cb=getElementByName(_ca,"table","timeandsales_table").cloneNode(true);var _cc=getElementByName(_cb,"tbody","timeandsales_tbody");if(_cc==null){_Dialogs.hide(_c7.id,true);return;}var _cd=_c7.node;HS_SetStyles_DialogShadowedOuter(_cd);_cd.innerHTML="";var _ce=document.createElement("div");HS_SetStyles_DialogShadowedInner(_ce);_cd.appendChild(_ce);_cb.style.width="100%";_ce.appendChild(_cb);var _cf=_c7.id+"_handle";var _d0=HS_GetElementByID("hsidTimeAndSalesTableHeaderRow").cloneNode(true);if(_d0!=null){_d0.id="";_cc.appendChild(_d0);var _d1=getElementByName(_ca,"div","div_menu").cloneNode(true);_d1.id=_cf;_d1.innerHTML="Time & Sales - "+_c9["stHedgeletSymbol"];var _d2=getElementByName(_ca,"div","div_menu_links").cloneNode(true);var obj=getElementByName(_ca,"a","link_refresh").cloneNode(true);obj.href="javascript:HS_BuildTimeAndSales_Refresh( '"+_c9["stHedgeletPath"]+"', '"+_c7.id+"' );";_d2.appendChild(obj);var obj=getElementByName(_ca,"a","link_close").cloneNode(true);obj.href="javascript:_Dialogs.hide( '"+_c7.id+"', true );";_d2.appendChild(obj);_d1.appendChild(_d2);_d0.cells[0].appendChild(_d1);}var _d0=HS_GetElementByID("hsidTimeAndSalesTableSubHeaderRow").cloneNode(true);if(_d0!=null){_d0.id="";_cc.appendChild(_d0);}if(_c9[HS_HASHKEY_SUBARRAY].length>0){for(var i=0;i<_c9[HS_HASHKEY_SUBARRAY].length;i++){if(i>20){break;}var _d5=_c9[HS_HASHKEY_SUBARRAY][i];if(i%2==0){var _d0=HS_GetElementByID("hsidTimeAndSalesTableRow").cloneNode(true);}else{var _d0=HS_GetElementByID("hsidTimeAndSalesTableHighlightRow").cloneNode(true);}if(_d0!=null){_d0.id="";_cc.appendChild(_d0);var tm=new Array(_d5["dtTradeDateTime"][3],_d5["dtTradeDateTime"][4],_d5["dtTradeDateTime"][5],_d5["dtTradeDateTime"][6],_d5["dtTradeDateTime"][7]);var _d7=HS_GenerateDate3(_d5["dtTradeDateTime"])+"&nbsp;"+HS_GenerateTime(tm,true);var _d8=_d5["nTradeSize"];var _d9=HS_GenerateCurrency(_d5["cyTradePrice"]);if(_d5["isBlockTrade"]){var obj=getElementByName(_ca,"span","span_owntext").cloneNode(true);_d0.cells[0].appendChild(obj);obj.innerHTML=_d7;var obj=getElementByName(_ca,"span","span_owntext").cloneNode(true);_d0.cells[1].appendChild(obj);obj.innerHTML=_d8;var obj=getElementByName(_ca,"span","span_owntext").cloneNode(true);_d0.cells[2].appendChild(obj);obj.innerHTML=_d9+" (BT)";}else{_d0.cells[0].innerHTML=_d7;_d0.cells[1].innerHTML=_d8;_d0.cells[2].innerHTML=_d9;}}}}else{var _d0=HS_GetElementByID("hsidTimeAndSalesTableEmptyRow").cloneNode(true);if(_d0!=null){_d0.id="";_cc.appendChild(_d0);_d0.cells[0].innerHTML="Information is unavailable at this time.";}}var _da=290;_cd.style.width=_da+"px";_Dialogs.setHandle(_c7.id,_cf);_c7.set(true,_da);}function HS_BuildNotification(_db,_dc){if(_db==null||_db.node==null||_dc==null){return;}var _dd=_db.node;HS_SetStyles_DialogShadowedOuter(_dd);_dd.innerHTML="";var _de=document.createElement("div");HS_SetStyles_DialogShadowedInner(_de);_de.style.padding="0px";_de.style.backgroundColor="#E1FBFF";_dd.appendChild(_de);_de.onclick=new Function("_Dialogs.hide( '"+_db.id+"', true );");var _df=document.createElement("div");_df.style.marginLeft="30px";_df.style.marginRight="30px";_df.style.marginTop="15px";_df.style.marginBottom="15px";_df.style.textAlign="center";_df.style.fontSize="12px";_de.appendChild(_df);_df.innerHTML=_dc;_dd.style.width="300px";_db.set();}function HS_Manage_WatchList_Callback(){var _e0=window.frames["watchlist_iframe"];if(_e0==null){return;}if(typeof _e0.HS_Submit!="undefined"&&_e0.HS_Submit!=null){_e0.HS_Submit();}}function HS_Manage_WatchList_Result(str,_e2,_e3){if(HS_SiteIsInstitutional()){var _e4=_Dialogs.add(HS_BuildNotification,str,true,false);_Dialogs.show(_e4,null);}else{if((typeof _e2!="undefined"&&_e2!=null&&_e2)||typeof _e3=="undefined"||_e3==null||_e3.length<=0||_e3=="add"){if(typeof strBoundingID!="undefined"||strBoundingID!=null||strBoundingID.length>0){hs.ui.showNotification("Watchlist",str,$(strBoundingID));}else{hs.ui.showNotification("Watchlist",str,$("hsidHSRetailContentMain"));}}}}var strBoundingID=null;function HS_AddToWatchlist(_e5,_e6,_e7){if(!isUserLoggedIn){return;}strBoundingID=_e7;var _e8=window.frames["watchlist_iframe"];if(_e8==null){return;}_e8.location.replace("/i/trading/watchlists/manage/?a=add&hedgeletpath="+escape(_e5)+"&hedgeletname="+escape(_e6));}function HS_RemoveFromWatchlist(_e9,_ea){if(!isUserLoggedIn){return;}if(typeof _ea!="undefined"&&_ea!=null&&_ea.length>0){var _eb=window.frames["watchlist_iframe"];if(_eb==null){return;}_eb.location.replace("/i/trading/watchlists/manage/?a=delete&hedgeletpath="+escape(_e9)+"&hedgeletname="+escape(_ea));}else{var _ec=location.pathname;var _ed=new HS_Form("","hsidDeleteWatchListForm","/hedgelet/service/delete-watchlist-form");if(HS_SiteIsInstitutional()){_ed.setForward("forward_success","/i/trading/watchlists/");}else{_ed.setForward("forward_success","/trade/watchlist/");}_ed.setForward("forward_fail",_ec);_ed.setForward("forward_authenticationFail","/login/login.html");_ed.setForward("forward_authorizationFail","/login/login.html");_ed.setForward("forward_secureAccessFail","/login/login.html");_ed.setForward("forward_backendFail",_ec);_ed.setForward("forward_formSequenceFail",_ec);_ed.setForward("forward_formIDInvalid",_ec);_ed.updateField("deleteHedgeletPathItem",_e9);_ed.submit(true);}}function IncludeAssetContentFile(){var _ee=HS_CheckAssetSelection("",true);var _ef=HS_CheckHedgeletSelection("");var str=null;if(_ee){str="";}else{if(_ef){var arr=HS_GetCookie(HS_COOKIE_HEDGELET,HS_HEDGELET_HEDGELETPATH).split(".");if(arr.length>2){str=arr[2];}}}if(str!=null){HS_IncludeContentJS(str);}}function HS_BuildAssetRightRail(_f2,_f3){if(typeof _f2=="undefined"||_f2==null||_f2.length<=0){return;}var _f4="";var _f5=[];if(typeof assetSnippet!="undefined"&&assetSnippet!=null&&assetSnippet.length>0){_f4=assetSnippet;}else{if(typeof _f3!="undefined"&&_f3!=null&&_f3){_f4="Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text";}}if(typeof newsLink!="undefined"&&newsLink!=null&&newsLink.length>0){_f5=newsLink;}else{if(typeof _f3!="undefined"&&_f3!=null&&_f3){for(var i=0;i<5;i++){_f5.push(["Link "+(i+1),"www.hedgestreet.com"]);}}}if(_f4.length>0){var obj=$("hsidHSRetailContentRight");if(obj!=null){var _f8=hs.ui.getWidget("div","rightrailblock");if(_f8!=null){_f8=_f8.cloneNode(true);obj.appendChild(_f8);var _f9=getElementByName(_f8,"div","title");if(_f9!=null){_f9.innerHTML="About "+_f2+" Contracts";}var _f9=getElementByName(_f8,"div","body");if(_f9!=null){_f9.innerHTML=_f4;}}}}if(_f5.length>0){var obj=$("hsidHSRetailContentRight");if(obj!=null){var _f8=hs.ui.getWidget("div","rightrailblock");if(_f8!=null){_f8=_f8.cloneNode(true);obj.appendChild(_f8);var _f9=getElementByName(_f8,"div","title");if(_f9!=null){_f9.innerHTML="Learn More about "+_f2;}var _f9=getElementByName(_f8,"div","body");if(_f9!=null){for(var i=0;i<_f5.length;i++){var _fa=hs.ui.getWidget("div","rightrailblock_link");if(_fa!=null){_fa=_fa.cloneNode(true);_f9.appendChild(_fa);var _fb=getElementByName(_fa,"a","link");if(_fb!=null){_fb.href=_f5[i][1];_fb.target="_blank";_fb.innerHTML=_f5[i][0];}}}}}}}}function HS_BuildAssetInfo(_fc){if(typeof _fc=="undefined"||_fc==null||_fc.length<=0){return;}var obj=$("hsidNewsBlock");if(obj!=null){while(obj.childNodes.length>0){try{obj.removeChild(obj.childNodes[0]);}catch(e){}}var _fe=HS_GetElementByID("hsidNewsBlockDiv");if(_fe!=null){_fe=_fe.cloneNode(true);obj.appendChild(_fe);var _ff=getElementByName(_fe,"div","title");if(_ff!=null){_ff.innerHTML="News and Research";}var _ff=getElementByName(_fe,"div","body");if(_ff!=null){for(var i=0;i<_fc.length;i++){var obj4=HS_GetElementByID("hsidNewsBlockLink");if(obj4!=null){obj4=obj4.cloneNode(true);_ff.appendChild(obj4);var obj5=getElementByName(obj4,"a","linknews");if(obj5!=null){obj5.href=_fc[i][1];obj5.target="_blank";obj5.innerHTML=_fc[i][0];}}}}}}}function HS_UpdateAssetUnderlyingQuote(_103,arr){if(typeof arr=="undefined"||arr==null){return;}var _105=hs.util.getUnderlyingDetailMessage2(arr);var _106=arr["stUnderlyingAssetPrice"];if(!$$s(_106)){_106=arr["stUnderlyingAssetPrice"];}var _107=_105.source;if(!$$s(_107)){_107=_103;}var _108=_105.dt;var obj=$("hsidUnderlyingQuoteBox");if(obj!=null){var _10a=getElementByName(obj,"span","underlyingquote");var _10b=getElementByName(obj,"span","underlyingquote_time");if($$s(_106)&&$$s(_107)&&$$(_108)){if($$(_10a)){_10a.innerHTML=_107+" last traded at:&nbsp;"+_106+"&nbsp;- "+HS_GenerateDateTime4(_108,true);}}else{if($$(_10a)){_10a.innerHTML="&nbsp;";}}}}
	if(typeof hs=="undefined"){hs={};}hs.ui={};hs.ui.initialize=function(){hs.ui.widgetGroups=[];hs.ui.loadWidgetGroup("hsidGlobalWidgets");hs.ui.linkHelpAll();};hs.ui.loadWidgetGroup=function(id){var _2=$(id);if(_2!=null){hs.ui.widgetGroups.push(_2);}};hs.ui.getWidget=function(_3,_4){for(var i=0;i<hs.ui.widgetGroups.length;i++){var _6=getElementByName(hs.ui.widgetGroups[i],_3,_4);if(_6!=null){return _6;}}return null;};hs.ui.createDialog=function(_7,_8,_9){if(HS_ClientBrowserIs("msie")){var _a=hs.ui.getWidget("table","dialog_ie");}else{var _a=hs.ui.getWidget("table","dialog");}if(_a!=null){_a=_a.cloneNode(true);_a.id="Toptable";document.body.appendChild(_a);_a.style.display="none";_a.style.top="-1000px";_a.style.left="-1000px";if(typeof _7!="undefined"&&_7!=null&&_7>0){_a.style.width=_7+"px";}var _b=getElementByName(_a,"div","title");if(_b!=null){_b.innerHTML="&nbsp;";if(typeof _9!="undefined"&&_9!=null&&_9){_b.style.textAlign="center";_b.style.marginLeft="12px";_b.style.marginRight="12px";}}_b=getElementByName(_a,"div","content");if(_b!=null){_b.innerHTML="&nbsp;";}if(typeof _8=="undefined"||_8==null||!_8){_b=getElementByName(_a,"img","link_close");if(_b!=null){_b.style.visibility="hidden";}}}return _a;};hs.ui.linkHelpAll=function(){var _c=$("hsidHSContainer2");if(_c!=null){var _d=_c.getElementsByTagName("a");for(var i=0;i<_d.length;i++){var _f=_d[i];hs.ui.linkHelp(_f);}}};hs.ui.linkHelp=function(obj,_11){if(obj==null){return;}var _12=null;if(typeof _11!=""&&_11!=null&&_11.length>0){_12=_11;}else{var _13="_hs_glossary_term[";var _14=obj.className;if(typeof _14!="undefined"&&_14!=null&&_14.length>0){var _15=_14.indexOf(_13);if(_15>=0){var end=_14.indexOf("]",_15+_13.length-1);if(end>_15){var str=_14.substring(_15+_13.length,end);if(str.length>0){_12=str;}}}}}if(_12!=null){obj.onmouseover=new Function("hs.ui.showHelp( this, '"+_12+"' );");if(!$$s(obj.href)&&!$$(obj.onclick)){var str="definitionAnchor";if(obj.className.length>0){str=" "+str;}obj.className+=str;}}};
	if(typeof hs.util=="undefined"){hs.util={};}hs.util.showFooter=function(){var _1=$("hsidFooterSection");if(_1!=null){_1.style.display="block";}};hs.util.finalizePage=function(){hs.util.tweakBodyHeight();};hs.util.tweakBodyHeight=function(){if(HS_ClientBrowserIs("msie")){return;}if(HS_ClientBrowserIs("safari")){return;}var _2=0;var _3=0;var _4=$("hsidHSRetailContentRight");if(_4!=null){_3=_4.offsetHeight;}_4=$("hsidHSRetailContentMain");if(_4!=null){_2=_4.offsetHeight;}_4=$("hsidHSContainer1");if(_4!=null){if(_2>=_3){_4.style.overflow="visible";}else{_4.style.overflow="hidden";}}};hs.util.finalizePage2=function(){hs.util.tweakBodyHeight2();};hs.util.tweakBodyHeight2=function(){if(HS_ClientBrowserIs("safari")){return;}var _5=$("hsidHSContainer3");if(_5!=null){_5.style.overflow="visible";}_5=$("hsidHSContainer1");if(_5!=null){_5.style.overflow="visible";}_5=$("hsidHSContainer2");if(_5!=null){_5.style.overflow="visible";}};
	if(typeof hs=="undefined"){hs={};}if(typeof hs.ui=="undefined"){hs.ui={};}hs.ui.tooltip=null;hs.ui.tooltipTarget=null;hs.ui.tooltipShadowFrame=null;hs.ui.tooltipRequests={};hs.ui.tooltipRequestsCount=0;hs.ui.tooltipInterval=400;hs.ui.linkToolTip=function(_1,_2,_3,_4){if(typeof _1=="undefined"||_1==null){return;}if(typeof _2=="undefined"||_2==null||_2.length<=0){return;}var id=_3;if(typeof id=="undefined"||id==null){id="";}if(typeof _4=="undefined"){_4=true;}_1.onmouseover=function(){hs.ui.showToolTip(this,_2,id,_4);};};hs.ui.showToolTip=function(_6,_7,_8,_9){if(!$$(_6)){return;}if(!$$s(_7)){return;}var _a=_8;if(!$$s(_a)){_a="";}var _b=hs.ui.tooltipRequestsCount++;hs.ui.tooltipRequests[_b]={target:_6,str:_7,boundingElementID:_a};setTimeout(function(){hs.ui.displayToolTip(_b,_9);},hs.ui.tooltipInterval);_6.onmouseout=function(){hs.ui.hideToolTip(_b);};};hs.ui.displayToolTip=function(id,_d){var _e=hs.ui.tooltipRequests[id];if(!$$(_e)||!$$(_e.target)||!$$(_e.str)){return;}var _f=_e.target;var str=_e.str;var _11=_e.boundingElementID;if(!$$(_f)){return;}if(!$$s(str)){return;}hs.ui.tooltipRequests[id]=null;if(hs.ui.tooltip==null){var _12=document.createElement("div");_12.style.paddingLeft="0px";_12.style.paddingRight="0px";_12.style.paddingTop="0px";_12.style.paddingBottom="0px";_12.style.display="none";_12.style.position="absolute";_12.style.height="auto";_12.style.borderLeft="1px solid black";_12.style.borderRight="1px solid black";_12.style.borderTop="1px solid black";_12.style.borderBottom="1px solid black";_12.style.paddingLeft="2px";_12.style.paddingRight="2px";_12.style.backgroundColor="white";_12.style.verticalAlign="middle";_12.style.color="black";_12.style.fontSize="12px";document.body.appendChild(_12);hs.ui.tooltip=_12;}if(hs.ui.tooltip==null){return;}if(HS_ClientBrowserIs("msie")){if(hs.ui.tooltipShadowFrame==null){hs.ui.tooltipShadowFrame=hs.ui.createFrame();}}hs.ui.tooltipTarget=_f;hs.ui.tooltip.innerHTML=str;var _13=null;if($$s(_11)){_13=$(_11);}hs.ui.tooltip.style.zIndex=-1000;hs.ui.tooltip.style.display="";HS_BoundElement(hs.ui.tooltip,_f,_13,null,[0,0,0,0],[_f.offsetHeight+4,0,0,0]);if(_d){hs.ui.tooltip.style.top=(Position.get(_f).top+_f.offsetHeight+4)+"px";hs.ui.tooltip.style.left=(Position.get(_f).left+_f.offsetWidth)+"px";}if(typeof _Dialogs!="undefined"&&_Dialogs!=null){_Dialogs.bringToTop(hs.ui.tooltip);}else{hs.ui.tooltip.style.zIndex=1000;}if(hs.ui.tooltipShadowFrame!=null){hs.ui.tooltipShadowFrame.style.top=hs.ui.tooltip.style.top;hs.ui.tooltipShadowFrame.style.left=hs.ui.tooltip.style.left;hs.ui.tooltipShadowFrame.style.width=(hs.ui.tooltip.offsetWidth+0)+"px";hs.ui.tooltipShadowFrame.style.height=(hs.ui.tooltip.offsetHeight+0)+"px";hs.ui.tooltipShadowFrame.style.zIndex=""+(parseInt(hs.ui.tooltip.style.zIndex,10)-1);hs.ui.tooltipShadowFrame.style.visibility="visible";}};hs.ui.hideToolTip=function(id){var _15=null;if($$(id)){_15=hs.ui.tooltipRequests[id];}if($$(_15)){var obj=_15.target;if($$(obj)){obj.onmouseout=null;}hs.ui.tooltipRequests[id]=null;}else{if(hs.ui.tooltip!=null){hs.ui.tooltip.style.display="none";hs.ui.tooltip.style.zIndex=-1000;}if(hs.ui.tooltipShadowFrame!=null){hs.ui.tooltipShadowFrame.style.visibility="hidden";hs.ui.tooltipShadowFrame.style.zIndex=-1000;}}hs.ui.tooltipTarget=null;};hs.ui.updateToolTip=function(obj,str){if(!$$(obj)){return;}if(!$$(str)){return;}if(!$$(hs.ui.tooltip)||hs.ui.tooltipTarget!=obj){return;}if(str.length>0){hs.ui.tooltip.innerHTML=str;}else{hs.ui.hideToolTip();}};
	if(typeof hs=="undefined"){hs={};}if(typeof hs.ui=="undefined"){hs.ui={};}hs.ui.helpDialog=null;hs.ui.helpDialogRequests={};hs.ui.helpDialogRequestsCount=0;hs.ui.helpDialogInterval=500;hs.ui.showHelp=function(_1,_2){if(!$$(_1)){return;}if(!$$s(_2)){return;}var _3=hs.ui.helpDialogRequestsCount++;hs.ui.helpDialogRequests[_3]={target:_1,term:_2};setTimeout("hs.ui.displayHelp( \""+_3+"\" );",hs.ui.helpDialogInterval);_1.onmouseout=new Function("hs.ui.hideHelp( \""+_3+"\" );");};hs.ui.displayHelp=function(id){var _5=hs.ui.helpDialogRequests[id];if(!$$(_5)||!$$(_5.target)||!$$(_5.term)){return;}var _6=_5.target;var _7=_5.term;if(!$$(_6)){return;}if(!$$s(_7)){return;}if(typeof _Glossary=="undefined"){return;}if(!$$(_Glossary)){return;}hs.ui.helpDialogRequests[id]=null;var _8="Definition";var _9=_Glossary[_7];if(typeof _9=="undefined"||_9==null||_9.length<=0){return;}if(hs.ui.helpDialog==null){hs.ui.helpDialog=hs.ui.createDialog(250,false);var _a=getElementByName(hs.ui.helpDialog,"div","title");if(_a!=null){_a.innerHTML=_8;_a.style.marginLeft="2px";}_a=getElementByName(hs.ui.helpDialog,"div","content");if(_a!=null){_a.style.marginTop="4px";_a.style.marginLeft="2px";_a.style.marginRight="0px";_a.style.marginBottom="2px";}}if(hs.ui.helpDialog==null){return;}if(hs.ui.underlying){hs.ui.underlying.hide();}var _a=getElementByName(hs.ui.helpDialog,"div","content");if(_a!=null){_a.innerHTML="";var _b=HS_GetElementByID("hsidHelpDialogTerm");if(_b!=null){_b=_b.cloneNode(true);_a.appendChild(_b);_b.innerHTML=_7;}_b=HS_GetElementByID("hsidHelpDialogDefinition");if(_b!=null){_b=_b.cloneNode(true);_a.appendChild(_b);_b.innerHTML="<span>&nbsp;</span>- "+_9;}}hs.ui.helpDialog.style.zIndex=-1000;hs.ui.helpDialog.style.display="block";HS_BoundElement(hs.ui.helpDialog,_6,null,null,[-5,-12,-12,-9],[0,0,0,9]);if(typeof _Dialogs!="undefined"&&_Dialogs!=null){_Dialogs.bringToTop(hs.ui.helpDialog);}else{hs.ui.helpDialog.style.zIndex=1000;}};hs.ui.hideHelp=function(id){var _d=hs.ui.helpDialogRequests[id];if($$(_d)){var _e=_d.target;if($$(_e)){_e.onmouseout=null;}hs.ui.helpDialogRequests[id]=null;}else{if(hs.ui.helpDialog==null){return;}hs.ui.helpDialog.style.display="none";hs.ui.helpDialog.style.zIndex=-1000;}};
	function HS_IsValidCurrency(_1){if(typeof _1=="undefined"||_1==null||_1.length<3){return false;}if(typeof _1[2]=="undefined"||_1[2]==null){return false;}if(_1[1]==9999&&_1[2]==9999){return false;}var _2=HS_GetCurrencyMultiplier(_1);if(Math.abs(_1[2])>=_2){return false;}return true;}function HS_GetCurrencyMultiplier(_3){var _4=100;if(typeof _3=="undefined"||_3==null||_3.length<3){return _4;}if(typeof _3[2]=="undefined"||_3[2]==null){return _4;}var _5=HS_DefaultCurrencyTick();if(_3.length>=4&&typeof _3[3]!="undefined"&&_3[3]!=null&&_3[3]>0){_5=_3[3];}_4=HS_GetTickMultiplier(_5);return _4;}function HS_DefaultCurrencyTick(){return 0.01;}function HS_GetTickMultiplier(_6){var t=_6;if(typeof t=="undefined"||t==null){t=HS_DefaultCurrencyTick();}if(isNaN(t)){t=parseFloat(t);}if(isNaN(t)||t<=0){t=HS_DefaultCurrencyTick();}var _8=1;var _9=0;while(t<1){t*=10;_8*=10;_9++;}_8=Math.max(1,_8);return _8;}function HS_GenerateCurrency(_a){return HS_GenerateCurrency2(_a,false);}function HS_GenerateCurrency2(_b,_c){return HS_GenerateCurrency3(_b,true,_c);}function HS_GenerateCurrency3(_d,_e,_f,_10){var _11=HS_DefaultCurrencyTick();if(_d.length>=4&&typeof _d[3]!="undefined"&&_d[3]!=null&&_d[3]>0){_11=_d[3];}var _12=HS_GetTickMultiplier(_11);return HS_GenerateCurrency5(_d[1],_d[2],(_12.toString().length-1),_d[0],_e,_f,_10);}function HS_GenerateCurrency4(_13,_14,_15,_16,_17){var _18=(_13<0)?true:false;_13=Math.abs(_13);var t=_16;if(typeof t=="undefined"||t==null||t<0){if(typeof _15!="undefined"&&_15!=null&&_15){t=_13-Math.floor(_13);}else{t=HS_DefaultCurrencyTick();}}var _1a=HS_GetTickMultiplier(t);var _1b=_13-Math.floor(_13);if(_1b>0&&_1b<1){_1b*=_1a;}if(typeof _17=="undefined"||_17==null){_17=true;}var _1c=Math.floor(_13);if(_18){_13=-_13;_1c=Math.ceil(_13);}return HS_GenerateCurrency5(_1c,Math.round(_1b),(_1a.toString().length-1),"USD",_17,_14);}function HS_GenerateCurrency5(_1d,_1e,_1f,_20,_21,_22,_23){var str="-";if(typeof _1d=="undefined"||_1d==null){return str;}if(typeof _1e=="undefined"||_1e==null){return str;}if(_1d==9999&&_1e==9999){return str;}var _25=false;if(_1d<0||_1e<0){_25=true;str=Math.abs(_1d).toString();}else{str=_1d.toString();}if(_21){for(var i=0;i<Math.floor((str.length-(1+i))/3);i++){str=str.substring(0,str.length-(4*i+3))+","+str.substring(str.length-(4*i+3));}}var _27=_1f;if(typeof _27=="undefined"||_27==null||_27<0){_27=2;}if(_27>0){str+=".";if(_1e<0){_1e=Math.abs(_1e);}var _28=_1e.toString();var _29=_27-_28.length;while(_29>0){_28="0"+_28;_29--;}str+=_28;}if(_25){str="-"+str;}if(_22&&typeof _20!="undefined"&&_20!=null&&_20.length>0){if(_20.toLowerCase()=="usd"){str="$"+str;}}return str;}function HS_GenerateCurrencyN(_2a){var _2b;if(HS_IsValidCurrency(_2a)){var _2c=HS_GetCurrencyMultiplier(_2a);_2b=Math.round((_2a[1]+_2a[2]/_2c)*_2c)/_2c;}else{_2b=0;}return _2b;}function HS_Futures_ToDisplayPrice(_2d,_2e){if(HS_IsValidCurrency(_2d)&&_2e["ecHedgeletType"]==HS_HEDGELET_TYPE_VARIABLE){if(_2e["bdUnderlyingFloor"]==""||_2e["bdUnderlyingCap"]==""||!HS_IsValidCurrency(_2e["cyPayout"])){return (_2d);}var _2f=HS_Futures_ToDisplayPrice2(_2d,_2e["bdUnderlyingFloor"],_2e["bdUnderlyingCap"],_2e["cyPayout"],_2e["bdTickSize"]);return _2f;}else{return (_2d);}}function HS_Futures_ToDisplayPrice2(_30,_31,cap,_33,_34){if(!HS_IsValidCurrency(_30)){return _30;}var _35=HS_GenerateCurrencyN(_33);if(_35<=0){return _30;}if(_31==null||_31.length<=0){return _30;}if(cap==null||cap.length<=0){return _30;}return HS_Futures_ToDisplayPrice3(_30,_31,cap,_35,_34);}function HS_Futures_ToDisplayPrice3(_36,_37,cap,_39,_3a){var _3b=HS_GenerateCurrencyN(_36);var _3c=HS_Futures_ToDisplayPrice_calc(_3b,_37,cap,_39,_3a);return (HS_FloatToCurrency(_36[0],_3c,false,_3a));}function HS_Futures_ToDisplayPrice_calc(_3d,_3e,cap,_40,_41){var _42=parseFloat(_3e);var _43=parseFloat(cap);var _44=_43-_42;return _3d*_44/_40+_42;}function HS_Futures_FromDisplayPrice(_45,_46,cap,_48,_49){var _4a=HS_GenerateCurrencyN(_48);if(_4a<=0){return cyPrice;}if(_46==null||_46.length<=0){return cyPrice;}if(cap==null||cap.length<=0){return cyPrice;}var _4b=parseFloat(_46);var _4c=parseFloat(cap);var _4d=_4c-_4b;return ((_45-_4b)*_4a)/_4d;}function HS_Futures_ToHedgeletPrice2(_4e,_4f,cap,_51){if(!HS_IsValidCurrency(_4e)){return _4e;}var _52=HS_GenerateCurrencyN(_4e);var _53=HS_Futures_ToHedgeletPrice3(_52,_4f,cap,_51);return (HS_FloatToCurrency(_4e[0],_53,false,HS_DefaultCurrencyTick()));}function HS_Futures_ToHedgeletPrice3(_54,_55,cap,_57,_58,_59){if(typeof _59=="undefined"){_59=0.01;}var _5a=HS_GenerateCurrencyN(_57);if(_5a<=0){return _54;}if(_55==null||_55.length<=0){return _54;}if(cap==null||cap.length<=0){return _54;}var _5b=parseFloat(_55);var _5c=parseFloat(cap);if($$s(_58)){_58=HS_DefaultCurrencyTick();}var _5d=HS_GetTickMultiplier(_58);var _5e=Math.round((_5c-_5b)*_5d)/_5d;if(_5e<=0){return _54;}var _5f=Math.round((_54-_5b)*_5d)/_5d;var _60=HS_GetTickMultiplier(_59);var _61=Math.max(0,Math.round((_5f*_5a/_5e)*_60)/_60);return _61;}function HS_CurrencyToFloat(_62){var _63;if(HS_IsValidCurrency(_62)){var _64=HS_GetCurrencyMultiplier(_62);_63=Math.round((_62[1]+_62[2]/_64)*_64)/_64;}else{_63=0;}return _63;}function HS_FloatToCurrency(_65,_66,_67,_68){var t=_68;if(typeof t=="undefined"||t==null||t<0){if(typeof _67!="undefined"&&_67!=null&&_67){t=_66-Math.floor(_66);}else{t=HS_DefaultCurrencyTick();}}var _6a=HS_GetTickMultiplier(t);var _6b=_66-Math.floor(_66);if(_6b>0&&_6b<1){_6b*=_6a;}var str=_65;if(typeof str=="undefined"||str==null||str.length<0){str="USD";}return [str,Math.floor(_66),Math.round(_6b),1/_6a];}function HS_StripCommas(_6d){if(_6d==null||typeof _6d!="string"){return _6d;}else{return _6d.replace(/,/g,"");}}
	

